27 lines
582 B
Plaintext
27 lines
582 B
Plaintext
|
|
void CreateItemOnObjectVoid(string sItemTemplate, object oTarget=OBJECT_SELF, int nStackSize=1)
|
|
{
|
|
CreateItemOnObject(sItemTemplate, oTarget, nStackSize);
|
|
}
|
|
|
|
//Created by Guile 01/15/07
|
|
//Put this script OnEnter of a tracks trigger
|
|
#include "nw_i0_tool"
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetEnteringObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetItemPossessedBy(oPC, "strangestone")!= OBJECT_INVALID)
|
|
return;
|
|
|
|
DelayCommand(30.0, RewardPartyXP(1000, oPC, FALSE));
|
|
|
|
DelayCommand(30.0, RewardPartyGP(1000, oPC, FALSE));
|
|
|
|
DelayCommand(30.0, CreateItemOnObjectVoid("strangestone", oPC));
|
|
|
|
}
|