- Joined
- Sep 22, 2015
- Messages
- 1,610
- Thread Author
- #1
Bank.isOpen() always returns false when bank is empty. Whenever it's open or not.
this is what i've tried and did work:
@Party @Cloud
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