Jump to content

getlocalWalker


Thelogs

Recommended Posts

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
Link to comment
Share on other sites

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 by Explv
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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