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.

possible to not run?

Featured Replies

Hi there,

 

As far as I can tell walking.walk() turns running on. Is it possible to choose when to run? 

 

also a minor issue, is it possible to walk to an exact tile? I think walk has a 'good enough' tolerance

 

Thanks

The walking in the api deviates by 1 or 2 tiles from the actual position you are trying to walk to, this is for antiban measures most likely. I know you can override the deviation amount, however I have never really needed to badly enough to actually find out how.

 

To get to an exact position for one of my scripts i used the walker to walk to that tile and if it didn't go to the exact position I needed I then just had the mouse hover the tile i needed and then applied a mouse click after the hover to walk to that exact tile.

 

Sorry for my poor description hahaha pretty tired right now but hope that helps a bit

use a walkingevent

WalkingEvent walkingEvent = new WalkingEvent(position);
walkingEvent.setEnergyThreshold(50);
execute(walkingEvent);

this will start using run when it has 50% energy


or you can use a webwalkevent to simply disable run:

WebWalkEvent webWalkEvent = new WebWalkEvent(position);
webWalkEvent.disableRun();
execute(webWalkEvent);

not really sure if these are what you wanted but they could work for you

 

 

walkingevent: http://osbot.org/api/org/osbot/rs07/event/WalkingEvent.html

webwalkevent: http://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html

 

 

edit: as for walking to the exact tile , you can use do:

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

or

WebWalkEvent webWalkEvent = new WebWalkEvent(position);
webWalkEvent.setBreakCondition(new Condition() {

   @Override
   public boolean evaluate() {
    return position.contains(myPlayer());
  }
 });
execute(webWalkEvent);

Edited by Acerd

Not exactly sure how you'd write it, but using getRunEnergy and setRunning are the api settings.

 

 

 

Nevermind Acerd, got it.

Edited by Malii

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.