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


    guydatpwnz

    Recommended Posts

    why not use getBank rather than setting a GameObject?

    if(getInventory.isFull){
    	if(getBank.isOpen){
    		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

    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?

    https://gyazo.com/9e20a011706fdb66b7378c688b4362a1

    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

    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.