Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Bug Bank.isOpen()

Joined
Sep 22, 2015
Messages
1,610
Bank.isOpen() always returns false when bank is empty. Whenever it's open or not.

this is what i've tried and did work:

Code:
InterfaceComponent bankComponent = Interfaces.newQuery().containers(762).visible().texts("Bank of Runescape").heights(32).widths(495).types(InterfaceComponent.Type.LABEL).results().first();
        if(!Inventory.isEmpty()) {
            if (Bank.isOpen() || bankComponent != null) {
                System.out.println("Bank is open");
                if(Bank.depositInventory()){
                    System.out.println("Success of deposit");
                    System.out.println("Tab status: " + getCurrentTab());
                } else {
                    System.out.println("Fails to deposit");
                    System.out.println("Tab status: " + getCurrentTab());
                }
            } else {
                System.out.println("Bank is closed, opening bank");
                Bank.open();
            }
        }

@Party @Cloud
 
Top