#include "nw_i0_tool"

//Created By Dark Omega
//Place in the OnDeath spot of each creature specified below
void MyCreateObject(int nObjectType, string sObj, location lLoc)
{
    CreateObject(OBJECT_TYPE_CREATURE, sObj, lLoc);
}
void main()
{

{

object oPC = GetLastKiller();

if (!GetIsPC(oPC)) return;

RewardPartyXP(20, oPC, TRUE);

}


{
object oArea = GetArea(OBJECT_SELF);
string sObj;
switch (Random(4))
    {
    case 0: sObj = "goblin";//resref of creature1
        break;

    case 1: sObj = "kobold";//resref of creature2
        break;

    case 2: sObj = "goblinelite";//resref of creature3
        break;

    case 3: sObj = "koboldshaman";//resref of creature4
        break;
    }
location lLoc = GetLocation(GetWaypointByTag ("NW_sd_monster1"));//Tag of the WayPoint where you want the creature to spawn
AssignCommand(oArea, DelayCommand(180.0, MyCreateObject(OBJECT_TYPE_CREATURE, sObj, lLoc)));//300.0 is the amount of time between spawns in seconds 300.0 = 5 minutes
}

}