UW2_PRC8/_module/nss/dungeonreward1.nss

27 lines
582 B
Plaintext
Raw Normal View History

2023-09-25 20:24:01 -04:00
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));
}