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.

How to avoid certain areas while webwalking

Featured Replies

Any idea how to avoid certain areas while webwalking? To be exact how to avoid going to the Dwarven mines from Falador by using the mining guild ladder? 

 

Another question would be how to check if a WebWalkEvent has was breaked? 

I don't know exactly, but it would sound logical to me define the area you WANT the character be walking in, and declare the walking method inside of the area check. Someone correct me if I am wrong?

  • Author

I've added a break condition if the bot is in an area that I don't want it to be and then redirect him around that area, so the web walking could resume. I do hope that there is a better solution

You can also do walking by Paths. This way you can make it completely custom and lay down multiple "Paths" so you have so more "Randomness" in your script.

Webwalk to the area before the conflicting area, then in the conflicting area use a manual path to walk. If you need to walk further just resume webwalking after you get past the problem area.

 

I use this idea for draynor's attacking tree when I walk from draynor -> grand exchange

 

1482093865.png

 

Example:

Area problem_area = new Area(...);
Area destination = new Area(...);
WebWalkEvent webEvent = new WebWalkEvent(destination);
webEvent.setEnergyThreshold(18);
webEvent.useSimplePath();
webEvent.setBreakCondition(new Condition() {
    @[member='Override']
    public boolean evaluate() {
        if (problem_area.contains(myPlayer())) {
            //build path here https://explv.github.io
            //use a foreach to loop through positions for the walkPath
            walking.walkPath(...);
            return true;
        } else
        return false;
    }
});
execute(webEvent);

Edited by Hayase

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.