Jump to content

getlocalWalker


Recommended Posts

Posted (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?

3404f3cb6cea4283b3a9001518e6a224.jpeg

 

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 by Thelogs

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...