Thelogs Posted March 11, 2017 Share Posted March 11, 2017 (edited) I haven't scripted in a while and am suprised to see that localwalker is deprecated. I put this at the top: import org.osbot.rs07.api.Walking; public Area walkArea = new Area(2882, 3472, 2932, 3428); How would you guys fix this? public void walkToShop() throws InterruptedException { getLocalWalker().walk(doorArea,true); while(myPlayer().isMoving()) { sleep(50); } Entity door = getObjects().closest(walkArea, "Door"); if(door.getId() == 7122){ door.interact("Open"); sleep(random(1000,2000)); } else { getLocalWalker().walk(shopArea,true); while(myPlayer().isMoving()) { sleep(50); } } } Edited March 11, 2017 by Thelogs Quote Link to comment Share on other sites More sharing options...
Night Posted March 11, 2017 Share Posted March 11, 2017 Just use the walking class Quote Link to comment Share on other sites More sharing options...
Explv Posted March 11, 2017 Share Posted March 11, 2017 (edited) 6 minutes ago, Thelogs said: I haven't scripted in a while and am suprised to see that localwalker is deprecated. getWalking().walk(area) Next time please check the API: https://osbot.org/api/org/osbot/rs07/api/Walking.html https://osbot.org/api/org/osbot/rs07/script/MethodProvider.html#getWalking-- Edited March 11, 2017 by Explv Quote Link to comment Share on other sites More sharing options...
Thelogs Posted March 12, 2017 Author Share Posted March 12, 2017 /close topic Quote Link to comment Share on other sites More sharing options...