@LabelIndex 63999
@StringIndex 0
class 0 ai_boss08_seeker : default_npc {
handler:
	EventHandler CREATED(reply,i0,c0) {
		if( reply != 0 ) {
			i0 = myself::GetGlobalMap(4);
			if( i0 != -1 ) {
				c0 = gg::GetCreatureFromIndex(i0);
				if( myself::IsNullCreature(c0) == 0 && c0.alive ) {
					if( c0.db_value > 1 ) {
						myself::Despawn();
					}
				} else {
					myself::Despawn();
				}
			}
		}
	}

	EventHandler SEE_CREATURE(creature,i0,c0) {
		if( creature.is_pc == 0 && myself::IsInCategory(12,creature.class_id) == 0 ) {
			return;
		} else {
			i0 = myself::GetGlobalMap(4);
			if( i0 != -1 ) {
				c0 = gg::GetCreatureFromIndex(i0);
				if( myself::IsNullCreature(c0) == 0 && c0.alive ) {
					if( c0.db_value <= 1 ) {
						gg::SendScriptEvent(c0,0,2);
						myself::Despawn();
					}
				}
			}
		}
	}

}
