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
  • Try asking for help in the chatbox
  • Detecting if player loaded into new world after hopping


    ulamog
     Share

    Recommended Posts

    Is there a detector to see if i'm fully loaded into the world after hopping?

     

    Because now, after hopping and checking my inventory, it doesn't find any coins and wants to bank. (even if i have coins in my inventory)

     

    A standard sleep; would also not be good enough because it may slow down faster loaders.

     

    Thanks :)

    Link to comment
    Share on other sites

    i believe the method you want is the getGameState() method in the Client class. 

     

    something like : 

    getClient().getGameState().equals(GameState.LOGGED_IN)
    
    Link to comment
    Share on other sites

     

    i believe the method you want is the getGameState() method in the Client class. 

     

    something like : 

    getClient().getGameState().equals(GameState.LOGGED_IN)
    

    Didn't work :/

     

    It just detects if you're past the log-in screen.

    fixed it with:

     

     

    if(!getTabs().isOpen(Tab.INVENTORY)){

         log("Inventory tab not open");

         getTabs().open(Tab.INVENTORY);

         sleepUntil(() -> (getTabs().isOpen(Tab.INVENTORY)), 16000);

    }

         sleepUntil(() -> (shopArea.contains(getPlayers().localPlayer())), 16000);

    Edited by ulamog
    Link to comment
    Share on other sites

     Share

    ×
    ×
    • 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.