Paradox68 Posted January 10, 2016 Author Share Posted January 10, 2016 (edited) AHHHHHHHHH i had .29 or something Make sure your library is the latest osbot (dev build too probably)? Works fine for me: INodeRouteFinder nodeFinder = INodeRouteFinder.createSimple(); if (!getArea(location).contains(myPlayer())) { try { WebWalkEvent evt = new WebWalkEvent(nodeFinder, destination); evt.setBreakCondition(new Condition() { @Override public boolean evaluate() { if (getObjects().closest("Gate") != null) { if (getObjects().closest("Gate").hasAction("Pay-toll(10gp)")) { getObjects().closest("Gate").interact("Pay-toll(10gp)"); } else { getObjects().closest("Gate").interact("Open"); } return false; } return true; } }); execute(evt); } catch (Exception e) { log(e); } bby pls. it doesn't walk at all anymore. I tried removing the condition and just setting the WebWalk Event and execute(evt); but it still doesnt walk.... java.lang.NoClassDefFoundError: org/osbot/rs07/api/webwalk/INodeRouteFinder at main.onLoop(main.java:163) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(we:22) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.osbot.rs07.api.webwalk.INodeRouteFinder at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 3 more Edited January 10, 2016 by Paradox68 Quote Link to comment Share on other sites More sharing options...
Joseph Posted January 10, 2016 Share Posted January 10, 2016 My bad I'm multitasking I meant to ask if you could explain creating the conditionals and implementing them into WebWalkEvent breaks over teamviewer. lol catch me in the chatboxx Quote Link to comment Share on other sites More sharing options...
Paradox68 Posted January 10, 2016 Author Share Posted January 10, 2016 catch me in the chatboxx I'm still banned on chatbox for something that happened like 7 months ago and stupid ass mods can't get over it. Quote Link to comment Share on other sites More sharing options...
Joseph Posted January 11, 2016 Share Posted January 11, 2016 Skype me I'll help you tomorrow Ds.scripts Quote Link to comment Share on other sites More sharing options...
FrostBug Posted January 11, 2016 Share Posted January 11, 2016 AHHHHHHHHH i had .29 or something INodeRouteFinder nodeFinder = INodeRouteFinder.createSimple(); if (!getArea(location).contains(myPlayer())) { try { WebWalkEvent evt = new WebWalkEvent(nodeFinder, destination); evt.setBreakCondition(new Condition() { @Override public boolean evaluate() { if (getObjects().closest("Gate") != null) { if (getObjects().closest("Gate").hasAction("Pay-toll(10gp)")) { getObjects().closest("Gate").interact("Pay-toll(10gp)"); } else { getObjects().closest("Gate").interact("Open"); } return false; } return true; } }); execute(evt); } catch (Exception e) { log(e); } bby pls. it doesn't walk at all anymore. I tried removing the condition and just setting the WebWalk Event and execute(evt); but it still doesnt walk.... java.lang.NoClassDefFoundError: org/osbot/rs07/api/webwalk/INodeRouteFinder at main.onLoop(main.java:163) at org.osbot.rs07.event.ScriptExecutor$InternalExecutor.run(we:22) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: org.osbot.rs07.api.webwalk.INodeRouteFinder at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 3 more Run it on the same client version as you're compiling against. Also please don't perform actual interactions within a condition. Do it after the condition interrupts the walker. Quote Link to comment Share on other sites More sharing options...