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
  • Try asking for help in the chatbox
  • [BUG?] - getDepositBox().openClosest()


    Recommended Posts

    Was trying to take the lazy mans approach to using a deposit box in a sample script I am making.  This might not be an error and just be me not understanding its intended functionality.

    Basically want to open the closest deposit box to the character.  When I call my code 

    	if (c.getDepositBox().isOpen() || c.getDepositBox().openClosest()) { ... }

    I would expect this to walk towards and open the deposit box.  


    If the deposit box is within sight of the character it will open it like I would assume it should.  

    The moment I walk out of range the bot just rotates the camera towards the deposit box and stands their.  So I checked the holy bible also know as JavaDoc.  https://dreambot.org/javadocs/


    didn't see openClosest() listed so tried open()  because the JavaDoc sound like exactly what I want.

    public boolean open()
    Attempts to open the nearest Bank Deposit Box
    Returns: true if successfully opened

    Does the same thing~

    Any feedback would be great. 



    Also can we get an update to the JavaDoc at somepoint plox? <3

    Edited by yeeter01
    changed title
    Link to comment
    Share on other sites

    6 minutes ago, Nuclear Nezz said:

    Ah from when I removed walking from camera movement.

    I'll take a look at it today. Sorry for not looking earlier, I could have had this in the current release.

    Awesome thanks Nezz as always!

    Link to comment
    Share on other sites

    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

    • 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.