dirtrider478 12 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?
yeeter 539 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
dirtrider478 12 Author 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.
yeeter 539 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.
TheCloakdOne 389 Posted July 20, 2020 Return -1 to kill the script or System.exit(0) to kill the entire client
LogicSoup 92 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
dirtrider478 12 Author 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.