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
  • [BUG?] - getDepositBox().openClosest()


    yeeter

    Recommended Posts

    Posted

    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

    Posted

    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.

    Posted
    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!

    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.