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
  • can someone tell me why this has a error?


    Recommended Posts

    why not use getBank rather than setting a GameObject?

    		getBank.depositAllItems; //other options for depositing
    	}else {
    		getBank.openClosest; //you can choose specific banks, ie FALADOR_WEST and other shit

    (that's about as simplified as can get)


    Edit: I could be remembering some of the shit wrong but it's basically that

    Edited by depwession
    Link to comment
    Share on other sites

    On 4/23/2019 at 8:51 AM, guydatpwnz said:

    can someone tell me why Bank.close(); is getting a error?


    Because Bank is a class that you can't access like that since it's not static. You're definitely new to scripting/programming and just by watching your code you have a lot to learn.

    What you want to do is getBank().close() although it won't work the way you want since the logic in that code is very bad.

    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.