#include "nw_i0_generic"


void main()
{
    object oTarget;
    object oSpawn;

    // Get the creature who triggered this event.
    object oPC = GetEnteringObject();

    // Abort if the PC does not have the item "drumdsnc".
    if ( GetItemPossessedBy(oPC, "drumdsnc") == OBJECT_INVALID )
        return;

    // Only fire for (real) PCs.
    if ( !GetIsPC(oPC)  ||  GetIsDMPossessed(oPC) )
        return;

    // Only fire once per PC.
    if ( GetLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF)) )
        return;
    SetLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);

    // Spawn some critters.

    oTarget = GetWaypointByTag("WP_SPn_Lzrdmn1");
    oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "lzrdman1", GetLocation(oTarget));
    AssignCommand(oSpawn, DetermineCombatRound(oPC));

    oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "lzrdman2", GetLocation(oTarget));
    AssignCommand(oSpawn, DetermineCombatRound(oPC));

    oTarget = GetWaypointByTag("WP_SPn_Lzrdmn2");
    oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "lzrdman1", GetLocation(oTarget));
    AssignCommand(oSpawn, DetermineCombatRound(oPC));

    oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "lzrdman2", GetLocation(oTarget));
    AssignCommand(oSpawn, DetermineCombatRound(oPC));

    oTarget = GetWaypointByTag("WP_SPn_Lzrdmn3");
    oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "lzrdman1", GetLocation(oTarget));
    AssignCommand(oSpawn, DetermineCombatRound(oPC));

    oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "lzrdchf", GetLocation(oTarget));
    AssignCommand(oSpawn, DetermineCombatRound(oPC));

}

