efox Posted April 30, 2016 Share Posted April 30, 2016 Hi there, As far as I can tell walking.walk() turns running on. Is it possible to choose when to run? also a minor issue, is it possible to walk to an exact tile? I think walk has a 'good enough' tolerance Thanks Quote Link to comment Share on other sites More sharing options...
Strange_Fk Posted May 1, 2016 Share Posted May 1, 2016 The walking in the api deviates by 1 or 2 tiles from the actual position you are trying to walk to, this is for antiban measures most likely. I know you can override the deviation amount, however I have never really needed to badly enough to actually find out how. To get to an exact position for one of my scripts i used the walker to walk to that tile and if it didn't go to the exact position I needed I then just had the mouse hover the tile i needed and then applied a mouse click after the hover to walk to that exact tile. Sorry for my poor description hahaha pretty tired right now but hope that helps a bit Quote Link to comment Share on other sites More sharing options...
Acerd Posted May 1, 2016 Share Posted May 1, 2016 (edited) use a walkingevent WalkingEvent walkingEvent = new WalkingEvent(position); walkingEvent.setEnergyThreshold(50); execute(walkingEvent); this will start using run when it has 50% energyor you can use a webwalkevent to simply disable run: WebWalkEvent webWalkEvent = new WebWalkEvent(position); webWalkEvent.disableRun(); execute(webWalkEvent); not really sure if these are what you wanted but they could work for you walkingevent: http://osbot.org/api/org/osbot/rs07/event/WalkingEvent.html webwalkevent: http://osbot.org/api/org/osbot/rs07/event/WebWalkEvent.html edit: as for walking to the exact tile , you can use do: WalkingEvent walkingEvent = new WalkingEvent(position); walkingEvent.setMinDistanceThreshold(0); walkingEvent.setMiniMapDistanceThreshold(0); execute(walkingEvent); or WebWalkEvent webWalkEvent = new WebWalkEvent(position); webWalkEvent.setBreakCondition(new Condition() { @Override public boolean evaluate() { return position.contains(myPlayer()); } }); execute(webWalkEvent); Edited May 1, 2016 by Acerd 2 Quote Link to comment Share on other sites More sharing options...
Malii Posted May 1, 2016 Share Posted May 1, 2016 (edited) Not exactly sure how you'd write it, but using getRunEnergy and setRunning are the api settings. Nevermind Acerd, got it. Edited May 1, 2016 by Malii Quote Link to comment Share on other sites More sharing options...
efox Posted May 1, 2016 Author Share Posted May 1, 2016 wow thanks for the replies. Very helpful Quote Link to comment Share on other sites More sharing options...