dirtrider478 12 Share Posted July 18, 2020 Is it possible to add a function in my script to close the client if the account has been disabled and if so what would the script be for that? Link to comment Share on other sites More sharing options...
yeeter 517 Share Posted July 18, 2020 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 More sharing options...
dirtrider478 12 Author Share Posted July 19, 2020 Thank you ill test it out Link to comment Share on other sites More sharing options...
dirtrider478 12 Author Share Posted July 19, 2020 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 More sharing options...
yeeter 517 Share Posted July 20, 2020 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 More sharing options...
TheCloakdOne 389 Share Posted July 20, 2020 Return -1 to kill the script or System.exit(0) to kill the entire client Link to comment Share on other sites More sharing options...
LogicSoup 92 Share Posted July 20, 2020 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 More sharing options...
dirtrider478 12 Author Share Posted July 20, 2020 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.