Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Issues with path walking

Featured Replies

Ive tried alot of things so I decided to try just walking the path.

 

here is my set up, exactly like how it was posted in the tutorials however. I am getting a erro

 

    private Position[] path = {
                new Position(3183, 3431, 0),
                new Position(3177, 3429, 0),
                new Position(3171, 3426, 0),
                new Position(3172, 3416, 0),
                new Position(3171, 3404, 0),
                new Position(3173, 3395, 0),
                new Position(3177, 3388, 0),
                new Position(3179, 3381, 0),
                new Position(3182, 3375, 0)
        };

 

Then using getWalking().walkPath(path);

 

But its wanting me to change it to .walk, and then when I change it to walk. it wants me to do other stupid shit.

 

any help?

It's asking for a list.

	List<Position> path = Arrays.asList(
		new Position(3183, 3431, 0),
		new Position(3177, 3429, 0),
		new Position(3171, 3426, 0),
		new Position(3172, 3416, 0),
		new Position(3171, 3404, 0),
		new Position(3173, 3395, 0),
		new Position(3177, 3388, 0),
		new Position(3179, 3381, 0),
		new Position(3182, 3375, 0)	
	);

Ive tried alot of things so I decided to try just walking the path.

 

here is my set up, exactly like how it was posted in the tutorials however. I am getting a erro

 

    private Position[] path = {

                new Position(3183, 3431, 0),

                new Position(3177, 3429, 0),

                new Position(3171, 3426, 0),

                new Position(3172, 3416, 0),

                new Position(3171, 3404, 0),

                new Position(3173, 3395, 0),

                new Position(3177, 3388, 0),

                new Position(3179, 3381, 0),

                new Position(3182, 3375, 0)

        };

 

Then using getWalking().walkPath(path);

 

But its wanting me to change it to .walk, and then when I change it to walk. it wants me to do other stupid shit.

 

any help?

 

As was mentioned above, you've defined it as an array, which is what the API path walking used to take (hence the outdated tutorials tell you to do it this way). Instead, you need to define it as a list.

  • Author

yup, I got it :). Now onto determining how to calculate players around me... lol anyone help me out with that one. Im in the blind with this af!

yup, I got it smile.png. Now onto determining how to calculate players around me... lol anyone help me out with that one. Im in the blind with this af!

 

 

		for (Player player : getPlayers().getAll()) {
			if (player.mycondition() == whatIamLookingFor) {
				//do stuff with player
			}
		}
  • Author
		for (Player player : getPlayers().getAll()) {
			if (player.mycondition() == whatIamLookingFor) {
				//do stuff with player
			}
		}

 

Well, tyvm MR.Abuse! <3

 

  • Author

Well what I am looking to do is calculate that if surrounding players is more then 3, to either hop or move to the next rock...

int Tomuch = 3;

 

 

the thing is, I cant do <=, or >=

 

    for (Player player : getPlayers().getAll()) {  ///////Calculating players around
                    if(player.equals(Tomuch)){
                        //hop

//walktootherrock
                    }
                }


Could I use this??

 

for (Player player : getPlayers().getAll()) {  ///////Calculating players around
                    if(player.getIndex() <=2){
                        //do something
                    }
                }

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.