Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • getWalking() not working?


    scriptrune

    Recommended Posts

    Posted
    getWalking().walk(new Tile(3233, 3218)) 

    This will only perform one click towards the specified tile and then returns true, instead of making the full trip.

    Shouldn't it walk completely to the destination before it returns true?

    I've tested this by putting the destination off-screen and running the script.

    Here is my code, I simply attempt to walk to the destination and then wait 10 seconds.

    @Override
    public void onStart()
    {
    }
    
    @Override
    public int onLoop()
    {
        if (getWalking().walk(new Tile(3233, 3218)))
        {
            log("success");
        }
        else
        {
            log("failure");
        }
    
        sleep(10000);
    
        return 0;
    }

     

    Posted
    6 minutes ago, dQw4w9WgXcQ said:

    only does 1 action per call

    Ah thanks, so it's up to me to provide the logic for how often and when it should click again?

     

    Not to get off topic, but could you point me in the right direction for how to specify and execute my own defined path?

    I have been looking around the API and I can't seem to find anything along the lines of:

    getWalking().walk(path)

     

    Posted
    56 minutes ago, scriptrune said:

    Ah thanks, so it's up to me to provide the logic for how often and when it should click again?

     

    Not to get off topic, but could you point me in the right direction for how to specify and execute my own defined path?

    I have been looking around the API and I can't seem to find anything along the lines of:

    
    getWalking().walk(path)

     

    For your own path you would be using the local path, here are some potentially helpful topics. 

     

     

     

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.