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.

Is there an event with which you can indicate that the player walks from a position?

Featured Replies

Example being in the position

Position lumbridge = new Position (3222, 3218, 0);

to the position
 

Position chicken = new Position (3177, 3295, 0);

Or do you have to indicate, manually, position to position until you reach the place?

First of all, Thanks.

Edited by trainux
error in language

17 minutes ago, trainux said:

Example being in the position


Position lumbridge = new Position (3222, 3218, 0);

to the position
 


Position chicken = new Position (3177, 3295, 0);

Or do you have to indicate, manually, position to position until you reach the place?

First of all, Thanks.

From my understanding as long as the second position isn't outside the players local area (minimap I think) a simple walk to position will do, if it is quite far then you can either use the webwalker which makes it's own path but is quite resource heavy, or you can make your own path made up of multiple positions for it to walk, I highly recommend using @Explv's map tool (https://explv.github.io/) for this since it makes it easier.

Check if player is in area

If not

Walk

 

It'll keep looping until the person is in area.

  • Author
15 minutes ago, ScummyBotter said:

From my understanding as long as the second position isn't outside the players local area (minimap I think) a simple walk to position will do, if it is quite far then you can either use the webwalker which makes it's own path but is quite resource heavy, or you can make your own path made up of multiple positions for it to walk, I highly recommend using @Explv's map tool (https://explv.github.io/) for this since it makes it easier.

I was just looking at that tool, but it gave me an error that I do not know :(

osbot.org explvs.png

Still learning myself, but if you haven't figured it out, I think this works:

If (!myPlayer().getPosition().equals(chicken)

      getWalking().webWalk(chicken)

  • Author
22 minutes ago, Dab in a Lab said:

Still learning myself, but if you haven't figured it out, I think this works:

If (!myPlayer().getPosition().equals(chicken)

      getWalking().webWalk(chicken)

wow! in 2 lines! thanks thanks.
Is there a disadvantage to using this? It seems very good to be true.

1 minute ago, trainux said:

wow! in 2 lines! thanks thanks.
Is there a disadvantage to using this? It seems very good to be true.

Hahaha no problem. I honestly don't know though. I've only been scripting for 4 days, and I'm using an identical statement in my code. Just haven't been able to test it since the script won't start up for some reason

  • Author
6 minutes ago, Dab in a Lab said:

Hahaha no problem. I honestly don't know though. I've only been scripting for 4 days, and I'm using an identical statement in my code. Just haven't been able to test it since the script won't start up for some reason

Thanks brother. Problem solved.
 

3 hours ago, trainux said:

wow! in 2 lines! thanks thanks.
Is there a disadvantage to using this? It seems very good to be true.

Its just that webwalking is quite resource heavy if your looking to farm - have multiple accs - If you used paths you could get more accs for the same amount of CPU. Resulting in more money

Edited by Luke Reading

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.