Aantioch_Infernum/_module/nss/escort_reset2.nss
Jaysyn904 22947ad4b6 Initial Upload
Initial Upload
2023-08-08 16:22:17 -04:00

22 lines
482 B
Plaintext

#include "nw_i0_tool"
void main()
{
object oPC = GetPCSpeaker();
int nReward = (GetHitDice(oPC)*100);
SetLocalInt(GetPCSpeaker(), "escort", 6);
DelayCommand(2.0,AssignCommand(OBJECT_SELF,ActionJumpToObject(GetObjectByTag("wp_escort0"))));
if (GetAlignmentGoodEvil(oPC) == ALIGNMENT_GOOD)
{
RewardPartyXP(nReward,oPC, FALSE);
AdjustAlignment(oPC, ALIGNMENT_GOOD, 5);
}
else
{
RewardPartyXP(nReward/10,oPC, FALSE);
AdjustAlignment(oPC, ALIGNMENT_GOOD, 25);
}
}