apa Posted September 8, 2015 Posted September 8, 2015 I can't seem to find any classes in the API that'll help detecting if the client is logged in or not. I need to use it to check if user is logged in, if it is, do some stuff, then logout, if it isn't, login with account(0). repeat and increase the index each login across an array of a few accounts. I'm not sure how to do this with the API, its been awhile since i've used the API and widgets or anything like that don't seem to be useful. Thanks.
Muffins Posted September 8, 2015 Posted September 8, 2015 LOGGED_INpublic static final Client.LoginState LOGGED_IN Enum Client.LoginState ?
apa Posted September 8, 2015 Author Posted September 8, 2015 LOGGED_INpublic static final Client.LoginState LOGGED_IN Enum Client.LoginState ? Thank you! I missed this one. Would you happen to know of any class that would override the auto login (RS3 bots usually have it enabled by default) and allow me to target parts of the login screen? I'm used to having full access to reflection.
Joseph Posted September 8, 2015 Posted September 8, 2015 (edited) LOGGED_INpublic static final Client.LoginState LOGGED_IN Enum Client.LoginState ? client.isLoggedIn(); //returns a boolean noob why no give give the boolean method Edited September 8, 2015 by Joseph
Muffins Posted September 8, 2015 Posted September 8, 2015 noob why no give give the boolean method client.isLoggedIn(); //returns a boolean pls i just copied from the api 1
FrostBug Posted September 9, 2015 Posted September 9, 2015 Thank you! I missed this one. Would you happen to know of any class that would override the auto login (RS3 bots usually have it enabled by default) and allow me to target parts of the login screen? I'm used to having full access to reflection. What do you mean by "target parts of the login screen" You can override the auto-login event (change conditions or remove its trigger)