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);
}
}
}