Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • .


    bebeli555

    Recommended Posts

    Hi,

    Use Client.getLoginResponse(RSLoginResponse.DISABLED) to determine if an account has been banned.

    If banned attempt to login a new account. This can be achieved by using LoginUtility.login(String email, String password)

    For the buttons on the home screen, you will need to make rectangles. This rectangle should cover the try again box.

    Example: tryAgainBox = new Rectangle(315, 260, 425 - 291, 30);

    You will then use this by using Dreambot's Mouse class. Mouse.click(tryAgainBox);

    Hope this helps.

    Link to comment
    Share on other sites

    23 minutes ago, NEWPROG said:

    Hi,

    Use Client.getLoginResponse(RSLoginResponse.DISABLED) to determine if an account has been banned.

    If banned attempt to login a new account. This can be achieved by using LoginUtility.login(String email, String password)

    For the buttons on the home screen, you will need to make rectangles. This rectangle should cover the try again box.

    Example: tryAgainBox = new Rectangle(315, 260, 425 - 291, 30);

    You will then use this by using Dreambot's Mouse class. Mouse.click(tryAgainBox);

    Hope this helps.

    Hi,

    I think I made an error.

    Use this instead: if (LoginUtility.getAccountStatus() == 0);

    0 means account is banned and 1 means an account is locked. So you can this for both locked and banned accounts.

    You can also access the try again button using Dreambot's API (no need for rectangle) by using the following: LoginUtility.getTryAgainButton();

    Hope this helps.

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.