Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 20:24:01 -04:00
parent 4e16ca63ca
commit 5197ad9a4d
7741 changed files with 5391820 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
//Put this on action taken in the conversation editor
void RemoveXPFromParty(int nXP, object oPC, int bAllParty=FALSE)
{
if (!bAllParty)
{
nXP=(GetXP(oPC)-nXP)>=0 ? GetXP(oPC)-nXP : 0;
SetXP(oPC, nXP);
}
else
{
object oMember=GetFirstFactionMember(oPC, TRUE);
while (GetIsObjectValid(oMember))
{
nXP=(GetXP(oMember)-nXP)>=0 ? GetXP(oMember)-nXP : 0;
SetXP(oMember, nXP);
oMember=GetNextFactionMember(oPC, TRUE);
}
}
}
#include "nw_i0_tool"
void main()
{
object oPC = GetPCSpeaker();
RemoveXPFromParty(434900, oPC, FALSE);
AssignCommand(oPC, TakeGoldFromCreature(50000, oPC, TRUE));
DelayCommand(5.0, RewardPartyXP(435100, oPC, FALSE));
}