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.

Break Condtion

Featured Replies

Am I not able to use any sort of NPC as a break condition? I've been having a problem getting this to work. Maybe I'm just being a dummy xD

                walkEvent.setBreakCondition(new Condition() {
                    @Override
                    public boolean evaluate() {
                        return mage != null && mage.isVisible();
                    }
                });

 

How long are you waiting? Break condition hasn't a built in sleep timer of like 10-20 seconds you have to wait to activate. 

Why? I don't know. 

Your condition should return true if the dude is visible. 

REad this thread for More info and ways around it. 

 

  • Author
15 minutes ago, Juggles said:

How long are you waiting? Break condition hasn't a built in sleep timer of like 10-20 seconds you have to wait to activate. 

Why? I don't know. 

Your condition should return true if the dude is visible. 

REad this thread for More info and ways around it. 

 

Yeah I'm not waiting that long. I'll have to see what I can do to actually have that going for that long.

5 minutes ago, Malcolm said:

Yeah I'm not waiting that long. I'll have to see what I can do to actually have that going for that long.

Is the NPC mage already set by the time you reach the condition? In the Boolean function call 

NPC mage = getNpcs().closest(“mage”); 

before returning. That may help... 

Edited by jca

Alternatively you could set the WebWalkEvent to be asynchronous #setAsync()

And then make an infinite loop checking the condition on the main thread.

Web Walker has proven to be inconsistent at times

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.