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.

Activating Run?

Featured Replies

I was wondering how to activate the run energy, I was digging around the API and found the WalkingEvent class that housed the method setEnergyThreshold(#) and was wondering how to bring it into the program.

 

I used WalkingEvent.setEnergyThreshold(#); and found out that the method is not static so that went out the window. I also was looking at anything that was inherited from this class and found quite a bit but was wondering which one I would have to "attach" onto setEnergy to allow me to turn it on.

 

Thanks again guys, I am a returning programmer and was wondering if you could get me back into the kick of things.

public boolean walk(Position pos, int energyThreshold) {
    WalkingEvent event = new WalkingEvent(pos);
    event.setEnergyThreshold(energyThreshold);
    return execute(event).hasFinished();
}

This should work.

Thanks I'll try that out later.

you can use this for a position

 

public boolean walk(Position pos, int energyThreshold) {
    WalkingEvent event = new WalkingEvent(pos);
    event.setEnergyThreshold(energyThreshold);
    return execute(event).hasFinished();
}

This should work.

 

 or this for a path

public boolean walk(Position[] path, int energyThreshold) {
    WalkingEvent event = new WalkingEvent(path); //can add .setOperateCamera(boolean)
    event.setEnergyThreshold(energyThreshold);
    return execute(event).hasFinished();
}

Is there anyway to activate run from just using the Settings() class?

ya using settings#setRunning(boolean run);

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.