Alangara_PRC8/_module/nss/mn_misc_banktok.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

19 lines
516 B
Plaintext

#include "mn_checkinv"
#include "x2_inc_switches"
void main()
{
int nEvent =GetUserDefinedItemEventNumber();
object oPC;
// Item unique power activated
if (nEvent == X2_ITEM_EVENT_ACTIVATE)
{
oPC = GetItemActivator();
object bankToken = findItem( oPC, "MN_MISC_BANKTOK" );
int balance = GetLocalInt( bankToken, "BALANCE" );
string message = "You currently have "+IntToString(balance)+" gold in your account.";
FloatingTextStringOnCreature(message,oPC,FALSE);
}
}