dontbuzz Posted August 11, 2016 Share Posted August 11, 2016 (edited) I noticed when webwalking it wouldn't go to the exact position I wanted (A few tiles off sometimes) so I did a search to try and figure out how to do this and found a snippet from @@Explv WalkingEvent walkingPath = new WalkingEvent(position); walkingPath.setMiniMapDistanceThreshold(0); walkingPath.setMinDistanceThreshold(0); execute(walkingPath); Upon testing this code in my script I still encountered the same problem. Is there another workaround for this? Did you also take a look at the issue @@Alek http://osbot.org/forum/topic/90020-walking-to-a-specific-tile/ Thank you Edited August 11, 2016 by dontbuzz Quote Link to comment Share on other sites More sharing options...
Alek Posted August 11, 2016 Share Posted August 11, 2016 That is WalkingEvent, not WebWalkEvent. Quote Link to comment Share on other sites More sharing options...
dontbuzz Posted August 11, 2016 Author Share Posted August 11, 2016 (edited) That is WalkingEvent, not WebWalkEvent. I don't want to webwalk anymore cause I saw it had a min distance threshold of 2 or something. Shouldn't this code by itself walk to the exact position I choose? I'm confused haha and still learning WalkingEvent walkingPath = new WalkingEvent(position); walkingPath.setMiniMapDistanceThreshold(0); walkingPath.setMinDistanceThreshold(0); execute(walkingPath); Edited August 11, 2016 by dontbuzz Quote Link to comment Share on other sites More sharing options...
Juggles Posted August 11, 2016 Share Posted August 11, 2016 (edited) You can use this to click one a specific tile if the tile is visible on your minimap already. Position PositionToWalkTo = new Position(0,0,0); MiniMapTileDestination Spot = new MiniMapTileDestination(getBot(), PositionToWalkTo); getMouse().click(Spot); Edited August 11, 2016 by lg_juggles Quote Link to comment Share on other sites More sharing options...
dontbuzz Posted August 11, 2016 Author Share Posted August 11, 2016 You can use this to click one a specific tile if the tile is visible on your minimap already. Position PositionToWalkTo = new Position(0,0,0); MiniMapTileDestination Spot = new MiniMapTileDestination(getBot(), PositionToWalkTo); getMouse().click(Spot); I tried this earlier aswell but it still missed the tile sometimes Quote Link to comment Share on other sites More sharing options...
Transporter Posted August 11, 2016 Share Posted August 11, 2016 (edited) I tried this earlier aswell but it still missed the tile sometimes public static boolean walkExact(Script script, Position position) { WalkingEvent event = new WalkingEvent(position); event.setMinDistanceThreshold(0); return script.execute(event).hasFinished(); } use dis. Edited August 11, 2016 by Transporter 2 Quote Link to comment Share on other sites More sharing options...
dontbuzz Posted August 11, 2016 Author Share Posted August 11, 2016 (edited) public static boolean walkExact(Script script, Position position) { WalkingEvent event = new WalkingEvent(position); event.setMinDistanceThreshold(0); return script.execute(event).hasFinished(); } use dis. EDIT: THIS WORKED FOR ME Edited August 11, 2016 by dontbuzz Quote Link to comment Share on other sites More sharing options...
Transporter Posted August 11, 2016 Share Posted August 11, 2016 Same thing still happens haha I use this and it walks to the exact tile for me. walkExact(script, new Position(x, y, z)); Use it like this. Quote Link to comment Share on other sites More sharing options...
Alek Posted August 11, 2016 Share Posted August 11, 2016 I use this and it walks to the exact tile for me. walkExact(script, new Position(x, y, z)); Use it like this. Why would wrapping the method do anything? Check the result of the event executing. Quote Link to comment Share on other sites More sharing options...
dontbuzz Posted August 11, 2016 Author Share Posted August 11, 2016 public static boolean walkExact(Script script, Position position) { WalkingEvent event = new WalkingEvent(position); event.setMinDistanceThreshold(0); return script.execute(event).hasFinished(); } use dis. THIS ACTUALLY WORKED THANKS. I had deleted my script folder accidentally just before i tried this and found out i was still running the non-updated version of my script somehow. Quote Link to comment Share on other sites More sharing options...
Slick Posted February 8, 2022 Share Posted February 8, 2022 On 8/11/2016 at 3:00 AM, Transporter said: public static boolean walkExact(Script script, Position position) { WalkingEvent event = new WalkingEvent(position); event.setMinDistanceThreshold(0); return script.execute(event).hasFinished(); } use dis. This works but the script for some reason pauses for 1-2 seconds after executing the event. I am running my script in mirror mode Quote Link to comment Share on other sites More sharing options...