rjames94 Posted December 17, 2021 Share Posted December 17, 2021 I'm making a script for new accounts that requires walking into the wilderness. I'm using webwalk to get to that location, however the wilderness ditch warning stops it. I have code to click Enter wilderness but will not run because web walk hasn't reached the destination. Is there a more optimal solution than making two Areas and web walking to ditch and then web walking to wilderness location? Anything to interrupt the one webwalk method? or something similar Quote Link to comment Share on other sites More sharing options...
Gunman Posted December 17, 2021 Share Posted December 17, 2021 47 minutes ago, rjames94 said: I'm making a script for new accounts that requires walking into the wilderness. I'm using webwalk to get to that location, however the wilderness ditch warning stops it. I have code to click Enter wilderness but will not run because web walk hasn't reached the destination. Is there a more optimal solution than making two Areas and web walking to ditch and then web walking to wilderness location? Anything to interrupt the one webwalk method? or something similar WebWalkEvent and set break condition https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html 1 Quote Link to comment Share on other sites More sharing options...
rjames94 Posted December 17, 2021 Author Share Posted December 17, 2021 1 hour ago, Gunman said: WebWalkEvent and set break condition https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html So I have it working, but there's quite a big delay before clicking. I found some other threads on this about setting the event mode to async, I did that but the mouse moves rapidly and double clicks and not very reliable. Here's the code I have so far. if (state == 1 && !isMyWidgetWorking()) { WebWalkEvent webWalkEvent = new WebWalkEvent(obeliskArea); webWalkEvent.setBreakCondition(new Condition() { @Override public boolean evaluate() { return isMyWidgetWorking(); } }); execute(webWalkEvent); } else { getMyWidget().interact(); } https://imgur.com/afyCFDL Quote Link to comment Share on other sites More sharing options...
Chris Posted December 17, 2021 Share Posted December 17, 2021 21 minutes ago, rjames94 said: So I have it working, but there's quite a big delay before clicking. I found some other threads on this about setting the event mode to async, I did that but the mouse moves rapidly and double clicks and not very reliable. Here's the code I have so far. if (state == 1 && !isMyWidgetWorking()) { WebWalkEvent webWalkEvent = new WebWalkEvent(obeliskArea); webWalkEvent.setBreakCondition(new Condition() { @Override public boolean evaluate() { return isMyWidgetWorking(); } }); execute(webWalkEvent); } else { getMyWidget().interact(); } https://imgur.com/afyCFDL https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html#setHighBreakPriority-boolean- 1 Quote Link to comment Share on other sites More sharing options...
ItPoke Posted December 18, 2021 Share Posted December 18, 2021 Honestly, weird, this is not a feature of the webwalk. Could be a boolean to allow it to jump the wildy ditch. @rjames94 you could make a feature request for this. Quote Link to comment Share on other sites More sharing options...
rjames94 Posted December 20, 2021 Author Share Posted December 20, 2021 On 12/17/2021 at 3:48 PM, Chris said: https://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html#setHighBreakPriority-boolean- This did it, thank you. Quote Link to comment Share on other sites More sharing options...