darkxor Posted December 17, 2013 Share Posted December 17, 2013 Dear Scripters! It is useful to stop your bots when onLogin() triggers with some error codes: 1) 12 - You need a members account to login to this world. Please subscribe, or use a different world.2) 3 - invalid username or password3) 32 - Your attempt to log into your account was unsuccessful. Don't worry, you can sort this out by visiting the billing system.4) 4 - Ban:)5) 5 - Another person using this account. OsBot automatically stops on error 4 (ban), but dont stop on others. Also, code 5 is account hack detector. If you get it, warning should appear. Primary code is like @Override public void onLogin(int code){ if(code==12){ //You need a members account to login to this world. Please subscribe, or use a different world. stop(); } if(code==3){ //invalid username or password stop(); } if(code==32){ //Your attempt to log into your account was unsuccessful. Don't worry, you can sort this out by visiting the billing system. stop(); } if(code==4){ isBan = true; stop(); } if(code==5){ stop(); } } Hope this will help you. Link to comment Share on other sites More sharing options...
Omoshu Posted December 17, 2013 Share Posted December 17, 2013 I don't think you need to check for every response code. Just stop the script if the response code isn't 2. Link to comment Share on other sites More sharing options...
Zuup Posted December 18, 2013 Share Posted December 18, 2013 I don't think you need to check for every response code. Just stop the script if the response code isn't 2. If I remember correct the client will keep trying to log you in, if you started a script and your account became non-member while the script ran, I guess this would fix that kind of situation. Link to comment Share on other sites More sharing options...
Supreme H Posted December 18, 2013 Share Posted December 18, 2013 Ty Link to comment Share on other sites More sharing options...
Supreme H Posted December 18, 2013 Share Posted December 18, 2013 Ty Link to comment Share on other sites More sharing options...