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
  • Automatically logging in?


    dominospizza

    Recommended Posts

     

    Is there a way to automatically login through code? Can't find anything in the docs. Can only find the logout method.

    getInstance().getTabs().logout();

     

    You don't need to worry about it. Pretty sure the bot client already handles automatic login. Don't see why you'd need it in your script?

    Link to comment
    Share on other sites

    If you have an account set in the client, there's a RandomEvent that handles logging in when you're logged out.

     

    I don't have an account set in the client, trying to set my own break handler. Which handles breaks at random intervals. Is there already a function for this?

    Link to comment
    Share on other sites

    I don't have an account set in the client, trying to set my own break handler. Which handles breaks at random intervals. Is there already a function for this?

    Can just make an account and randomize the intervals through here. Not sure if that's what you're asking.

    https://dreambot.org/forums/index.php/topic/8861-howto-break-system/

    Link to comment
    Share on other sites

    Can just make an account and randomize the intervals through here. Not sure if that's what you're asking.

    https://dreambot.org/forums/index.php/topic/8861-howto-break-system/

     

    Is there no way to do it through code? The closest thing I can find is re-running the client through the shell using this.

     

    https://dreambot.org/forums/index.php/topic/2360-dreambots-quickstart%E2%84%A2/

    Link to comment
    Share on other sites

    Is there no way to do it through code? The closest thing I can find is re-running the client through the shell using this.

     

    https://dreambot.org/forums/index.php/topic/2360-dreambots-quickstart%E2%84%A2/

    You will need to implement your own LoginHandler I would suggest looking at the Client Class in the API specifically look at getGameState and getLoginIndex. Then you will need to interact with rectangles and use the getColorPicker to figure out what part of the Login you are at. Then once you have that all setup just type your username and password using getKeyboard.type().

     

    Kind of hard to explain, but you wanted to know how :P

    Link to comment
    Share on other sites

    You will need to implement your own LoginHandler I would suggest looking at the Client Class in the API specifically look at getGameState and getLoginIndex. Then you will need to interact with rectangles and use the getColorPicker to figure out what part of the Login you are at. Then once you have that all setup just type your username and password using getKeyboard.type().

     

    Kind of hard to explain, but you wanted to know how :P

     

    No, I understand. Thanks a ton!

    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.