kook723 Posted September 14, 2018 Share Posted September 14, 2018 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. Quote Link to comment Share on other sites More sharing options...
Juggles Posted September 15, 2018 Share Posted September 15, 2018 (edited) if (FallyBank.contains(myPlayer) { if (!getInvent.contains(duel ring) { withdraw } else { teleport } } else { walking.webWalk(Yanille) } Edited September 15, 2018 by Juggles Quote Link to comment Share on other sites More sharing options...
kook723 Posted September 15, 2018 Author Share Posted September 15, 2018 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. Quote Link to comment Share on other sites More sharing options...
urmom Posted September 15, 2018 Share Posted September 15, 2018 I think there is a bug in the code itself, cause all you did is good. Try to bypass it without using webwalk then.. Quote Link to comment Share on other sites More sharing options...