I'm trying to empty a players inventory into the bank then continue the script, but the above two lines do nothing without error.
if (!inventory.isEmpty()) { //banks if anything in inventory
map.walk([sample coords]); //walk to bank
bankbooth.interact("Bank"); //open bank
bank.depositAll(); //empty inventory into bank
bank.close(); //close bank window
}