You can check this using:
Code: Select all
bankbox := FindBankBox(ev.source);
contents := EnumerateItemsInContainer(bankbox);
amt := 0;
foreach item in contents
if(item.objtype == 0xeed)
amt := (amt + item.amount);
endif
endforeach
PrintTextAbove(me,"Your bankbox contains " + amt + " gold coins.");