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 confused after teleport, how to update position?


    miquel011

    Recommended Posts

    After teleporting somehow i try to walk back to varrock from lumbridge and the bot still believes its on varrock, is there any way to update my current tile on the web or anything i can do about it?

     

    to walk i always use this:

        private void playerWalk(Area area) {
            if (getWalking().walk(area.getRandomTile())) {
                if (!getWalking().isRunEnabled() && getWalking().getRunEnergy() > Calculations.random(30, 70)) {
                    getWalking().toggleRun();
                }
                sleep(Calculations.random(2000, 3000));
            }
        }

    Works everytime BUT after teleport

    edit:

    tried to stop the bot, teleport manually and start it, then it works perfectly... hmm this is the code i use to teleport.

    after withdraw my items:

                    if (lumbridgeArea.contains(getLocalPlayer().getTile())) {
                        sleep(50000, 60000);
                    } else {
                        if (getMagic().castSpell(Normal.HOME_TELEPORT)) {
                            sleep(10000, 20000);
                        }
                    }

     

    THANKS!

    Link to comment
    Share on other sites

    How does the bot still think it's in Varrock? Can you post a gif?

     

    Also, there is no need to enable run manually. You can just do the following and it will enable it when necessary, using the default walk methods.

    getWalking().setRunThreshold(int runThreshold) 

     

    Link to comment
    Share on other sites

    3 hours ago, MadsPH said:

    How does the bot still think it's in Varrock? Can you post a gif?

     

    Also, there is no need to enable run manually. You can just do the following and it will enable it when necessary, using the default walk methods.

    
    getWalking().setRunThreshold(int runThreshold) 

    Hey! thanks!!! nice one to save code.

     

    Link to comment
    Share on other sites

    29 minutes ago, Nex said:

    restart the client this was a bug due to rs update

    i guess i did something wrong, it happened yesterday too, from the beginning never worked as expected. Maybe im stupid and my code is shit lol

    Link to comment
    Share on other sites

    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.