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
  • Nearest bank or deposit box


    sacred brids
     Share

    Recommended Posts

    So basically i'm trying to have my script go to the closest possible deposit or banking location.

     

    I currently have this snippet and want to change it from going to the Varrock banking area to basically the closest possible Bank or Deposit Box.

     

    else if (needsToBank()) {
                    getWalking().walk(WebBankArea.VARROCK_WEST.getArea().getCenter());
    
    Edited by sacred brids
    Link to comment
    Share on other sites

    This might be useful..

     

    2RqhwO9.png

     

    Would something like this work as well? I could define the area like this

        public static final Area BANK_AREA = new Area(
                new Tile(3013, 9718, 0)
        );
    

    Then I could have it do this

     

     

    } else if (needsToBank()) {
                    getWalking().walk(BANK_AREA.getCenter());
    
    Edited by sacred brids
    Link to comment
    Share on other sites

    Yes it would work but that doesnt get you the closest bank to you only a predetermined area of a bank. Do what Poly suggested if you want it to go to the closest bank regardless of where you are. If it's only meant for one area then just do what you said.

    Link to comment
    Share on other sites

    Yes it would work but that doesnt get you the closest bank to you only a predetermined area of a bank. Do what Poly suggested if you want it to go to the closest bank regardless of where you are. If it's only meant for one area then just do what you said.

     

    Would you be able to answer a few questions for me? I'm still getting errors when trying to import import org.dreambot.api.methods.equipment.Equipment; and import org.dreambot.api.utilities.impl.Filter;

    Link to comment
    Share on other sites

    Would you be able to answer a few questions for me? I'm still getting errors when trying to import import org.dreambot.api.methods.equipment.Equipment; and import org.dreambot.api.utilities.impl.Filter;

    • org.dreambot.api.methods.container.impl.equipment.Equipment and I don't know what you're using the filter one for?
    Edited by Just Chill
    Link to comment
    Share on other sites

     

    • org.dreambot.api.methods.container.impl.equipment.Equipment and I don't know what you're using the filter one for?

     

     

    I sent you a message.

    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
     Share

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