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

16 lines
311 B
Plaintext

/*
Deposit all gold!
*/
void main()
{
int nInt,nGold;
string sName = GetTag(OBJECT_SELF);
nInt = GetCampaignInt("bnkblnc"+sName,"bnkblnc_"+sName);
nGold = GetGold(GetPCSpeaker());
nInt += nGold ;
SetCampaignInt("bnkblnc"+sName,"bnkblnc_"+sName,nInt);
TakeGoldFromCreature(nGold,GetPCSpeaker(),TRUE);
}