I guess you could try this
@Override
public int onLoop() {
if (bank.isOpen()) {
stop(false);
} else if (npcs.closest("Banker") == null || myPosition().distance(new Position(3166, 3485, 0)) > 10) {
walking.webWalk(new Position(3166, 3485, 0));
} else {
npcs.closest("Banker").interact("Bank");
}
return 69;
}