Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

17 lines
281 B
Plaintext

/*
Take All gold from account!
*/
void main()
{
int nInt,iInt;
string sName;
sName =GetTag(OBJECT_SELF);
nInt = GetCampaignInt("bnkblnc"+sName,"bnkblnc_"+sName);
iInt = nInt-1;
GiveGoldToCreature(GetPCSpeaker(),iInt);
SetCampaignInt("bnkblnc"+sName,"bnkblnc_"+sName,1);
}