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.

Won't move one tile to the left/right

Featured Replies

image.png.c25c35af793e0cf644a60a8b4e48c7db.png

I can not get this to work so it moves one position to the south, it does log all the loggers, but does not move.
I have tried putting a conditional sleep after the walk but doesn't work

The idea is that when player is standing on a fire in the 'firemakingStartingArea' and tries to light a log, the message pops up, and it moves one tile to the south.

Edited by Maxo

Reading the documentation usually helps 😉
https://osbot.org/api/org/osbot/rs07/api/Walking.html

B4eX6gL.png

fDDhNOT.png
By default the threshold is set 2 and 5 ^
You will have create your own WalkingEvent and set setMinDistanceThreshold(0) 😉
 

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


You should never execute any code thats interacts with the game in any way in the onMessage method in my opinion, should only be done in the onLoop.
Also mirror mode can skip messages very easily, so checking messages should never affect any script logic 😉

Edited by Khaleesi

Like Khal said wouldn't recommend doing that in the onMessage. But an alternative to walk a tile that short of a distance you can also just directly interact with the tile
 

new Position(0, 0, 0).interact(getBot(), "Walk here");

Rather than using onmessage, setup an animation timeout timer that resets everytime it animates. Set it to 5-10 secs or so and have it move tiles if it doesnt animate within that time. onMessage is unreliable in mirror.

  • Author
On 10/6/2022 at 3:08 AM, FushigiBot said:

Rather than using onmessage, setup an animation timeout timer that resets everytime it animates. Set it to 5-10 secs or so and have it move tiles if it doesnt animate within that time. onMessage is unreliable in mirror.

Is there a way to just check if there is a fire on the tile where i am standing? Seems stupid to just try and and see if it works every time

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.