Initial Upload
Initial Upload
This commit is contained in:
19
_module/nss/money_remove.nss
Normal file
19
_module/nss/money_remove.nss
Normal file
@@ -0,0 +1,19 @@
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
|
||||
if (!GetIsPC(oPC)) return;
|
||||
|
||||
int DoOnce = GetCampaignInt("money_remove",GetTag(OBJECT_SELF),oPC);
|
||||
if (DoOnce==1) return;
|
||||
|
||||
int iGold = GetGold(oPC);
|
||||
if(iGold>1000000)
|
||||
{
|
||||
AssignCommand(oPC, TakeGoldFromCreature(iGold-1000000, oPC, TRUE));
|
||||
SendMessageToPC(oPC,"Excess funds removed.");
|
||||
SetCampaignInt("money_remove",GetTag(OBJECT_SELF),1,oPC);
|
||||
}
|
||||
else return;
|
||||
}
|
Reference in New Issue
Block a user