Skip 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.

getWalking().walk() issue

Featured Replies

1. OSBot Version (do NOT put "current version", be specific): 2.4.127

2. A description of the issue. Include relevant logs.: Calling getWalking().walk(); on a position that one tile around the player's position (including diagonally) doesn't do anything. I tried it in multiple places. In the image below, every time the tile is logged it is also attempting to walk there (one south).

qbh0UmQ.png

3. Are you receiving any errors in the client canvas or the logger?: No.

4. How can you replicate the issue?: Try walking one tile away.

5. Has this issue persisted through multiple versions? If so, how far back?: I've only used 2.4.127, so not sure.

You need to be able to walk on the destination tile. If there is an object there that you can't walk on, then the even will fail. This is why you cannot use something like myPlayer.getArea(1) or area.getrandomposition

  • Author
2 minutes ago, Alek said:

You need to be able to walk on the destination tile. If there is an object there that you can't walk on, then the even will fail. This is why you cannot use something like myPlayer.getArea(1) or area.getrandomposition

 

You're able to walk on that tile though. 

18 minutes ago, VladBots said:

Calling getWalking().walk(); on a position that one tile around the player's position (including diagonally) doesn't do anything. I tried it in multiple places. In the image below, every time the tile is logged it is also attempting to walk there (one south).

If you want to walk a single tile away you need to create a custom WalkingEvent and set the min distance threshold to 0:

WalkingEvent walkingEvent = new WalkingEvent(position);
walkingEvent.setMinDistanceThreshold(0);
execute(walkingEvent);

By default (using getWalking().walk())  it won't walk unless the destination tile is >= 3 tiles away:

nGqgQ9f.png

 

Edited by Explv

Position tile = New Position(xxxx, yyyy, z);

tile.interact(bot, "Walk here");

  • Author
4 minutes ago, Explv said:

If you want to walk a single tile away you need to create a custom WalkingEvent and set the min distance threshold to 0:


WalkingEvent walkingEvent = new WalkingEvent(position);
walkingEvent.setMinDistanceThreshold(0);
execute(walkingEvent);

By default (using getWalking().walk())  it won't walk unless the destination tile is >= 3 tiles away:

 

 

I see. I don't understand why they wouldn't make 0 the default though. :think:If you don't have that knowledge it just looks broken.

 

3 minutes ago, whipz said:

Position tile = New Position(xxxx, yyyy, z);

tile.interact(bot, "Walk here");

 

Already made my own "hack", but thanks! :)

Just now, VladBots said:

 

I see. I don't understand why they wouldn't make 0 the default though. :think:If you don't have that knowledge it just looks broken.

I guess it is to add an element of randomness.

  • Alek locked this topic
Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.