Yea, I think a great addition to the API would be some worked examples . They would really help newer scripters get started, however if you're good at reading API docs from other areas (even standard java libs), it makes it alot easier.
As for opening banks, you can do stuff like
i
if (bank.isOpen()) {
//withdraw stuff etc
} else {
RS2Object bank = objects.closest("Bank booth");
if (bank != null && bank.exists()) {
bank.interact("Open");Timer t = new Timer(0L);
while (!bank.isOpen() && t.getElapsed() < timeout) {
sleep(400);
}
}
thats a really basic example which I wrote in the reply box, should do the trick but you will need a timer class. Theres simpler ways with conditional sleep (check api for this one), but that works fine too.
apa