December 18, 20169 yr 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?
December 18, 20169 yr 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?
December 18, 20169 yr 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
December 18, 20169 yr 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.
December 18, 20169 yr 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, 20169 yr by Hayase
Create an account or sign in to comment