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
  • Grabbing loginindex from loginscreen?


    Recommended Posts

    Trying to get some numbers to figure out the state the client is in when its at the log in screen after an account has been disconnected.

    For instance when the client has been freshly loaded without logging in comes back as (0) 


    if (getClient().getLoginIndex() == 0) {
                sleepUntil(() -> getClient().getLoginIndex() != 0, 5000);

    What is the index number for when you disconnected and the main login is not visible or is there an easy way to see the client log in state from the debug tab some how?

    Edited by dirtrider478
    Link to comment
    Share on other sites

    9 hours ago, NovaGTX said:

    There's this magical function called "log()" that allows you to find things yourself :P

    log("Index: " + getClient().getLoginIndex());


    worked like a charm thank you!

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

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