Initial Commit

Initial Commit [v1.32PRC8]
This commit is contained in:
Jaysyn904
2025-04-03 13:38:45 -04:00
parent 1213977d8c
commit b464d8da05
6922 changed files with 6176025 additions and 2 deletions

View File

@@ -0,0 +1,28 @@
void main()
{
object oPC;
int iGold;
int iGoldNow;
int iGoldTake;
oPC = GetPCSpeaker();
ClearAllActions();
RemoveHenchman(oPC, OBJECT_SELF);
SetLocalString(oPC,"Henchman","");
iGold = GetLocalInt(oPC,"RestGold");
iGoldNow = GetGold(oPC);
SetLocalInt(oPC,"RestGold",iGoldNow);
if (iGoldNow>iGold)
{
iGoldTake = (iGoldNow-iGold)/10;
if (iGoldTake>0)
{
SendMessageToPC(oPC,"Your henchman takes " + IntToString(iGoldTake) + " gold pieces as his share of the spoils.");
//DelayCommand(0.1f,TakeGold(iGoldTake,oPC));
DelayCommand(0.1f,AssignCommand(oPC,TakeGoldFromCreature(iGoldTake,oPC,TRUE)));
}
}
}