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
  • World hopper issue


    kamilo

    Recommended Posts

    6 hours ago, HyperCrusher said:

    The world switcher widget doesn't update the world text until loading is complete, in fact for a brief moment after loading is complete the text is "Loading..."
    image.png.575b7ad3f2512e9021c0edaa31bbf342.png
    this means we can set a sleepuntil that checks this widgets text, with a timeout that is sizeable

    
    public void hopToWorld(int world){
            String worldText = "Current world - ";
            getWorldHopper().hopWorld(world);
            sleepUntil(() -> getWidgets().getWidget(69).getChild(2).getText().equals(worldText + world), 20000);
        }

     

    good idea seems to work, was running more smoother with this for sure. something else bugged out upon untering this tho so i gotta find that before i fully use this

     

    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.