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


    dirtrider478

    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) 

    example-

    if (getClient().getLoginIndex() == 0) {
                getMouse().click(existingUser);
                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?

    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

    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.