Alangara_PRC8/_module/nss/jh_bnk_x_54.nss

17 lines
281 B
Plaintext
Raw Normal View History

2024-06-05 21:21:06 -04:00
/*
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);
}