void main()
{

object oPC = GetEnteringObject();

if (!GetIsPC(oPC)) return;

int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));

if (DoOnce==TRUE) return;

object oTarget;
object oSpawn;
location lTarget;
oTarget = GetNearestObjectByTag("IxitLair");
lTarget = GetLocation(oTarget);

oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ixitxachitl", lTarget);
oTarget = oSpawn;
AssignCommand(oTarget, ActionAttack(oPC));

oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ixitxachitl", lTarget);
oTarget = oSpawn;
AssignCommand(oTarget, ActionAttack(oPC));

oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ixitxachitlldr", lTarget);
oTarget = oSpawn;
AssignCommand(oTarget, ActionAttack(oPC));

oTarget = GetNearestObjectByTag("WP_Ixit1");
lTarget = GetLocation(oTarget);

oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ixitxachitl", lTarget);
oTarget = oSpawn;
AssignCommand(oTarget, ActionAttack(oPC));

oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ixitxachitl", lTarget);
oTarget = oSpawn;
AssignCommand(oTarget, ActionAttack(oPC));

oTarget = GetNearestObjectByTag("WP_Ixit2");
lTarget = GetLocation(oTarget);

oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ixitxachitl", lTarget);
oTarget = oSpawn;
AssignCommand(oTarget, ActionAttack(oPC));

oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ixitxachitl", lTarget);
oTarget = oSpawn;
AssignCommand(oTarget, ActionAttack(oPC));

SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);
}

