Similar to MessageListener that listens for messages in-game, the LoginResponseCodeListener listens to response codes on the login screen. Below are a few of these codes:
INCORRECT_USERPASS
ACCOUNT_DISABLED
GAME_UPDATE
FULL_WORLD
STOLEN_ACCOUNT
BETA_WORLD
CUSTOMER_SUPPORT
BLOCKED_COMPUTER
As you can see, there are a variety of codes that both developers and script writers alike can use to improve your botting experience. Immediate implementation of these codes is apparent in the AutoLogin solver. When attempting to log into the game, the response code listener will check to see if such codes are received. If they are, they are evaluated for the best course of action such as:
1. If the world is full, wait a minute to try re-connecting. Do this a couple times and give up if there have been too many attempts.
2. If your account has been banned, don't try logging back in.
3. Error connecting to the server, try re-connecting in a few minutes.
Implementation (for scripters):
@Override
public void onResponseCode(int code) throws InterruptedException { }
Also check the ResponseCode listing.
Changelog:
@Alek's updates:
-Added LoginCallback
--LoginResponseCodeListener onResponseCode(int code)
--Added constants class ResponseCode
-Updated AutoLogin solver to handle various response codes
-Updated Dialogues class
@Maxi's updates:
-Added containingActions to Widgets
-Updated Trade API
Happy Botting
-The OSBot Staff