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.

Script isn't walking when it's close to the position

Featured Replies

Hey guys,

When my bot is close to the coordinates it has to go to and it gets the new command:
 

getWalking().walk(AREA);

It just ignores it and thinks it's there already, I have to same problem when I'm using webWalk instead of the normal walk function.

Does anyone perhaps know when I'm doing wrong here?

Edited by Evesy
typo's

I'm not exactly sure what it was but IIRC it checks if you are within X tiles to the destination, so when you get close to the target it returns true.
Meaning if you wanted to get to a specific tile you would need to add a custom method, see below.

private static boolean walk(Script script, Position position) {
        WalkingEvent event = new WalkingEvent(position);
        event.setMinDistanceThreshold(0);
        return script.execute(event).hasFinished();
    }

I could be wrong maybe better to check with someone who isn't as rusty as me when it comes to the methods.

  • Author
1 hour ago, fhhhphgj said:

I'm not exactly sure what it was but IIRC it checks if you are within X tiles to the destination, so when you get close to the target it returns true.
Meaning if you wanted to get to a specific tile you would need to add a custom method, see below.


private static boolean walk(Script script, Position position) {
        WalkingEvent event = new WalkingEvent(position);
        event.setMinDistanceThreshold(0);
        return script.execute(event).hasFinished();
    }

I could be wrong maybe better to check with someone who isn't as rusty as me when it comes to the methods.

 

8 minutes ago, Juggles said:

If you're within 2-3 tiles it thinks you're in the area. Use the code above to override it

 

Thanks a lot guys! Noob question coming in: how do I implement this?..

walk(script, position);

18 minutes ago, Evesy said:

 

 

Thanks a lot guys! Noob question coming in: how do I implement this?..

 

Why can't you set min distance for webwalk, I was wondering that the other day?

  • Author

Thanks a lot everyone, I'm going to try it out today!

6 hours ago, Zummy said:

Why can't you set min distance for webwalk, I was wondering that the other day?

Yes I'm also wondering this now haha

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.