12 lines
358 B
Plaintext
12 lines
358 B
Plaintext
#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);
|
|
}
|