RS2Object bankBooth = objects.closest("Bank booth");
if (bankBooth != null) {
if (bankBooth.interact("Bank")) {
while (bank.isOpen())
{
sleep(random(800, 1200));
bank.depositAll();
sleep(random(800, 1200));
bank.close();
sleep(random(800, 1200));
}
}
}
This one just hovers the close button, so am guessing that isOpen() works in this case but i also tried widgets.bank.close(); & widgets.bank.isOpen(); & widgets.bank.depositAll(); and it doesn't do anything, i guess i must be doing something wrong then.