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.

How do I walk one tile over?

Featured Replies

What I want to do is get the current position of the player, and then walk one 'x' tile over:

 

int x = myPlayer().getPosition().getX() + 1;

int y = myPlayer().getPosition().getY();

int z = myPlayer().getPosition().getZ();

WalkingEvent newPosition = new WalkingEvent(new Position(x, y, z);

execute(newPosition); 

 

AND, it doesn't work... It's as if it skips over this line of code

getwalking.walk(myPosition().translate(0, 2,));

 

translate
public Position translate(int x,
                          int y)
Creates a cloned instance of this position with the given translation.
Parameters:
x - The x value to translate.
y - The y value to translate.
Returns:
The new position object.

 

13 minutes ago, Chris said:

getwalking.walk(myPosition().translate(0, 2,));

 


translate
public Position translate(int x,
                          int y)
Creates a cloned instance of this position with the given translation.
Parameters:
x - The x value to translate.
y - The y value to translate.
Returns:
The new position object.

 

I just tried it and the bot still does nothing...

[So I'm trying to get the bot to move a tile over if it can't light a fire on a plant or another fire. I've already incorporated a message listener for "You can't light...". The message listener works fine and the method gets executed but it doesn't walk to the next 'x' tile.]

Edited by Noidlox

try creating a walk event and setting the minthreshold to 0

WalkEvent#minimumThreshold(0)

or

new Position(1 tile over).interact("Walk here")

or

 MiniMapTileDestination(Bot bot, Position position, boolean exactPosition) 

2 hours ago, Polymorphism said:

WalkEvent#minimumThreshold(0)

or

new Position(1 tile over).interact("Walk here")

or

 MiniMapTileDestination(Bot bot, Position position, boolean exactPosition) 

That did the trick!

Tysm dude :)

3 hours ago, Chris said:

try creating a walk event and setting the minthreshold to 0

I'll try this for fun when I get time. TY

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.