void main()
{
    switch( GetUserDefinedEventNumber() )
    {
    case 1007:  // DEATH
        {
            object oArea = GetArea( OBJECT_SELF );
            object oCreature = GetFirstObjectInArea( oArea );
            string sTag = GetTag( OBJECT_SELF );
            int bFound = FALSE;
            while( GetIsObjectValid( oCreature ) )
            {
                if( GetTag( oCreature ) == sTag &&
                    oCreature != OBJECT_SELF &&
                    !GetIsDead( oCreature ) )
                    bFound = TRUE;
                oCreature = GetNextObjectInArea( oArea );
            } // while valid creature
            if( !bFound )
            {
                object oLure = GetObjectByTag("wp_luremaster1");
                location lLure = GetLocation(oLure);

                CreateObject(OBJECT_TYPE_CREATURE,"luremaster3",lLure,FALSE);

            } // if not found
        } // DEATH
    } // switch
} // main

