16 lines
311 B
Plaintext
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);
|
|
}
|