Thelogs Posted March 11, 2017 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
Explv Posted March 11, 2017 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