April 30, 20169 yr 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
May 1, 20169 yr 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
May 1, 20169 yr 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, 20169 yr by Acerd
May 1, 20169 yr Not exactly sure how you'd write it, but using getRunEnergy and setRunning are the api settings. Nevermind Acerd, got it. Edited May 1, 20169 yr by Malii
Create an account or sign in to comment