class 1 frintezza_1room : warrior_universal
{
handler:
	EventHandler CREATED()
	{
		myself::AddTimerEx(5000,10000);
		super;
	}

	EventHandler ATTACKED(attacker,damage)
	{
		if( myself::InMyTerritory(attacker) == 0 )
		{
			return;
		}
		super;
	}

	EventHandler CLAN_ATTACKED(attacker,damage)
	{
		if( myself::InMyTerritory(attacker) == 0 )
		{
			return;
		}
		super;
	}

	EventHandler SEE_CREATURE(creature,i0,i1,f0)
	{
		if( myself::InMyTerritory(creature) == 0 )
		{
			return;
		}
		if( Aggressive == 1 )
		{
			if( IsMagic == 0 )
			{
				if( creature.is_pc != 0 || myself::IsInCategory(11,creature.npc_class_id) != 0 )
				{
					myself::AddAttackDesire(creature,IsWalkedNpc,200);
				}
			}
		}
		super;
	}

	EventHandler OUT_OF_TERRITORY(i0,i1,i2)
	{
		myself::RemoveAllAttackDesire();
		myself::InstantTeleport(myself.sm,myself.start_x,myself.start_y,myself.start_z);
		super;
	}

}
