#include "mn_checkinv" void main() { object bankToken = findItem( GetPCSpeaker(), "MN_MISC_BANKTOK" ); int balance = GetLocalInt( bankToken, "BALANCE" ); int amount = balance; // Amount to withdraw if (balance >= amount) { balance = balance - amount; GiveGoldToCreature( GetPCSpeaker(), amount ); SetLocalInt( bankToken, "BALANCE", balance ); SetCustomToken(100, IntToString(balance) ); } SetPlotFlag(bankToken, FALSE); DestroyObject( bankToken ); }