Jump to content

A Simple Login Handler


Recommended Posts

Posted (edited)

ezgif_com_crop.gif

 

 

Using a bare backbone of the login handler with nothing in my onLoop().

 

Not sure if OsBot client onResponseCode method is little janky atm or whats up but if your account is disabled or error response 'login limit exceeded' it'll repeatedly type your username/password shown above.

 

 

 

 

 

^ that should be handling it but for some reason it is not. Sorry to keep bugging! Just only getting banned when login limit exceeded and then it repeatedly types username / password :p

 

 

Having exactly the same problem. Any idea how to fix this?

 

I have added an extra check for disabled accounts, and tested it, it seems to work now, try the updated code in my post

Edited by Explv
  • Like 2
  • 1 month later...
Posted

It types my login name and password whenever it has done loading the map when it walks a distance.

I've already placed a check using this method but it doesnt help.

public boolean isLoading() {
        return 
        getClient().getLoginState() == LoginState.LOADING || 
                getClient().getLoginState() == LoginState.LOADING_MAP;
    }

Plz help.

  • 3 weeks later...
  • 2 weeks later...
Posted
On 12/28/2016 at 0:25 PM, Explv said:

 

 

 

I have added an extra check for disabled accounts, and tested it, it seems to work now, try the updated code in my post

I added this to my scripts exactly as you showed in the example code and when I run the script to login it uses the normal login handler and none of the methods you provided are being run. What am I doing wrong?

Posted
9 hours ago, dmmslaver said:

I added this to my scripts exactly as you showed in the example code and when I run the script to login it uses the normal login handler and none of the methods you provided are being run. What am I doing wrong?

Are you disabling the OSBot auto-login? Launch your bots with CLI and include the "allow -norandom" command.

  • 2 weeks later...
  • 1 month later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...