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.

Loot out of screen

Featured Replies

Dear great community ?

Making my first script, can any1 help me with this loot state?

Just writed the loot state and found a bug (when loot is out of screen) So he can't get the interact ''take''  but is true on minimap I want it the bot get to the loot. but I can not find the webwalk for it.

Any1 can help me?

private void loot() {
    final GroundItem BlueWizardHeadOrBeads = getGroundItems().closest(579);
    if (BlueWizardHeadOrBeads != null && BlueWizardHeadOrBeads.isVisible() && BlueWizardHeadOrBeads.interact("Take")){
        new ConditionalSleep(2000) {
            @Override
            public boolean condition() throws InterruptedException {
                return !BlueWizardHeadOrBeads.exists();
            }
        }.sleep();
    } else 
        }
    }
}

 

You should definitely consider using names instead of ID's for things like this, much easier for you to understand and correct errors when you read over it again.

GroundItem hat = getGroundItems().closest("Blue wizard hat");

if (hat != null) {
InteractionEvent pickup = new InteractionEvent(hat,"Take");
pickup.setWalkTo(true);
execute(pickup);
}

(Code was written in the browser & not tested)

You can use interaction events to walk to items, I wouldn't rely on it too heavily though.

There's also a lot of other things you can use InteractionEvents for, you should use this page on the API to see this.

https://osbot.org/api/org/osbot/rs07/event/InteractionEvent.html

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.