Initial Upload
Initial Upload
This commit is contained in:
21
_module/nss/escort_reset2.nss
Normal file
21
_module/nss/escort_reset2.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
#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);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user