27 lines
415 B
Plaintext
27 lines
415 B
Plaintext
//Created by Guile 12/31/06
|
|
//Put this script OnEnter of a tracks trigger
|
|
|
|
#include "nw_i0_tool"
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
|
|
|
|
if (DoOnce==TRUE) return;
|
|
|
|
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
|
|
|
|
if (GetHitDice(oPC) <= 1)
|
|
{
|
|
RewardPartyXP(3330, oPC, FALSE);
|
|
|
|
RewardPartyGP(33300, oPC, FALSE);
|
|
|
|
}
|
|
}
|
|
|