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.

Web Walking banking???

Featured Replies

I want to use web walking to walk from falador west bank to yanille bank. I expect the web walking to search the bank, withdraw a ring of dueling, teleport to castle wars, and then walk to yanille. Using the code below I tested a few scenarios. 

Quote

@Override
public int onLoop() throws InterruptedException {
    webWalk(Banks.YANILLE);
    return 240;
}

public void webWalk(Area area) throws InterruptedException {
    Utils.log("[WebWalk] - walk to area");
    WebWalkEvent event = new WebWalkEvent(area);
    PathPreferenceProfile ppp = new PathPreferenceProfile();
    ppp.checkBankForItems(true);
    ppp.checkInventoryForItems(true);
    ppp.checkEquipmentForItems(true);
    ppp.setAllowTeleports(true);
    event.setPathPreferenceProfile(ppp);
    boolean prefetch = event.prefetchRequirements(bot.getMethods());
    Utils.log("[WebWalk] - Done fetching requirements (" + prefetch + ")");
    execute(event);
    Utils.log("Done executing");
    sleep(300);
}

Scenario 1: In falador bank with nothing in inventory/equipment and bank closed. RESULT: Tries walking up and over white wolf mountain. Does not attempt to check bank.

Scenario 2: In falador bank with nothing in inventory/equipment and bank opened. RESULT: Sits at bank, does not try to withdraw ring of dueling. Logs spamming: 

Quote

WebWalkingEvent; Terminated! Exceeded attempt threshold.

Scenario 3: In falador bank with ring of dueling either in inventory or equipped.  RESULT: Successfully teleports to castle wars, then walks to yanille. 

 

Am I doing something wrong here, or is the code broken? Thanks for any help you can provide, tried figuring it out on my own first. 

if (FallyBank.contains(myPlayer) {

       if (!getInvent.contains(duel ring) {
              withdraw

      } else {
         teleport 
      }

 } else {

        walking.webWalk(Yanille)

}

Edited by Juggles

  • Author
18 minutes ago, Juggles said:

if (FallyBank.contains(myPlayer) {

       if (!getInvent.contains(duel ring) {
              withdraw

      } else {
         teleport 
      }

 } else {

        walking.webWalk(Yanille)

}

 

Thanks but not what I'm looking for. Trying to make use of the PathPreferenceProfile#checkBankForItems method, would be much more flexible.

I think there is a bug in the code itself, cause all you did is good. Try to bypass it without using webwalk then..

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.