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
  • Close client on account disabled?


    dirtrider478
     Share

    Recommended Posts

    if (getClient().getLoginIndex() = 12) {
       System.exit(69420);
    }

     

     

    I typed that without testing but iirc that should be the disabled login index

    Link to comment
    Share on other sites

    8 hours ago, yeeter01 said:

    if (getClient().getLoginIndex() = 12) {
       System.exit(69420);
    }

     

    I typed that without testing but iirc that should be the disabled login index

    Doesnt work cause once account tries re logging if account is disabled it kills the script. 

    Link to comment
    Share on other sites

    Is that not what you asked for?

    "add a function in my script to close the client if the account has been disabled"

    Give a better example of what you are actually wanting to do then.

    Link to comment
    Share on other sites

    On 7/19/2020 at 2:21 AM, dirtrider478 said:

    Doesnt work cause once account tries re logging if account is disabled it kills the script. 

    Make your own login handler and use the provided code above from previous comments to kill your client

    Link to comment
    Share on other sites

    2 hours ago, LogicSoup said:

    Make your own login handler and use the provided code above from previous comments to kill your client

    I was afraid thats what I was going to have to do and would I have to input the username and password in the login handler of the script or would the handler already detect the selected account through quick launch command?

    Never made a login handler but ill probably do it in the near future.

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