#include "nw_i0_generic" void main() { object oTarget; object oSpawn; // Get the creature who triggered this event. object oPC = GetEnteringObject(); // Only fire for (real) PCs. if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) ) return; // Abort if the PC's total level is not at least 10. if ( GetHitDice(oPC) < 12 ) return; // Spawn "leviathan". oTarget = GetWaypointByTag("WP_LEvthn_SPn"); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "leviathan", GetLocation(oTarget)); AssignCommand(oSpawn, DetermineCombatRound(oPC)); DestroyObject(OBJECT_SELF); }