Butters Posted December 18, 2016 Share Posted December 18, 2016 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? Quote Link to comment Share on other sites More sharing options...
Wife Posted December 18, 2016 Share Posted December 18, 2016 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? Quote Link to comment Share on other sites More sharing options...
Butters Posted December 18, 2016 Author Share Posted December 18, 2016 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 Quote Link to comment Share on other sites More sharing options...
Xerifos Posted December 18, 2016 Share Posted December 18, 2016 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. Quote Link to comment Share on other sites More sharing options...
Hayase Posted December 18, 2016 Share Posted December 18, 2016 (edited) 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 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 December 18, 2016 by Hayase 2 Quote Link to comment Share on other sites More sharing options...