Alangara_PRC8/_module/nss/jh_bnk_x_45.nss

18 lines
279 B
Plaintext
Raw Permalink Normal View History

2024-06-05 21:21:06 -04:00
/*
Take 500 gold from the account!
*/
void main()
{
int nInt;
string sName;
sName =GetTag(OBJECT_SELF);
nInt = GetCampaignInt("bnkblnc"+sName,"bnkblnc_"+sName);
nInt -=500;
SetCampaignInt("bnkblnc"+sName,"bnkblnc_"+sName,nInt);
GiveGoldToCreature(GetPCSpeaker(),500);
}