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
  • getBank().getClosestBankLocation().getCenter().distance() bug


    RetroBot
     Share

    Recommended Posts

    I've always had trouble walking to lumbridge bank before I made my own method. However while running tests with walking to the nearest bank I have found out it's because dreambot doesnt account the z coordinate when grabbing the distance. Here is a screenshot showing what I mean. http://i.imgur.com/zK3mFZY.png

    Link to comment
    Share on other sites

    its bcz dreambot is only on the surface it doesnt realy support upstairs or downstairs you will have to make a method for you yourself

    Link to comment
    Share on other sites

    Yeah I had to do something like

    if(bank.distance(getLocalPlayer()) > 9 || bank.getZ() != getLocalPlayer().getZ()) {
    // walk to bank
    } else {
    // open bank
    }
    

    So it would walk to the top of Lumbridge castle to bank.

    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.