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.

WebWalkEvent : setBreakCondition : Unseen Delay?

Featured Replies

Hello all, thanks for reading!

 

So, I am putting together a lil script that requires some custom obstacle handling. All fine and dandy, I got the handler written and if I let it run while I path manually, it blazes through the obstacle at breakneck speeds! HOWEVER, if I use the setBreakCondition feature of WebWalkEvent the script takes a good 1-3 seconds before it even begins handling the obstacle. 

Script's current delays as set by me:
onLoop(): 200

 WebWalkEvent evt = new WebWalkEvent(targetArea);
                evt.setBreakCondition(new Condition() {

                    @Override
                    public boolean evaluate() {
                        return dialogues.inDialogue();
                    }
                });
                execute(evt);

I figured it could be the dialogues.inDialogue(); check, but generally it is returning extremely quick (so I don't think it is causing the 1-3 second delay).

Note this isn't a killer for the script, just very noticeable and slow. Anyone know what's up?

Thanks in advance for your advice,

Avid

 

EDIT: Upon timing the delay, it's anywhere from 1-10 seconds. The ten second delays, seeming like forever!

Edited by avid

Check your whole script for an extra sleep. 

Its happened to me before and wasted an hour trying to fix a fake problem when all i needed to do was remove my sleep. 

 

Event code is fine, Nothing wrong with the event

Check the logger too, I feel like there might be positions in your area that the webwalker can’t reach and it’s looping until it finds a position it can reach.

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.