Initial Commit
Initial Commit
This commit is contained in:
11
_module/nss/del_sendgold.nss
Normal file
11
_module/nss/del_sendgold.nss
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "x4_inc_functions"
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
string sMessage = GetLastPCChatMessage(oPC);
|
||||
string sDB = CharacterDB(oPC);
|
||||
int nGold = StringToInt(sMessage);
|
||||
TakeGoldFromCreature(nGold, oPC, TRUE);
|
||||
nGold = GetCampaignInt(sDB, "GOLD_IN_LOCKER") + 9*nGold/10;
|
||||
SetCampaignInt(sDB, "GOLD_IN_LOCKER", nGold);
|
||||
}
|
||||
Reference in New Issue
Block a user