UW2_PRC8/_module/nss/dungeonreward1.nss
Jaysyn904 5197ad9a4d Initial upload
Initial upload
2023-09-25 20:24:01 -04:00

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));
}