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


    RetroBot

    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

    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.