using System; using Server; using Server.Network; using Server.Mobiles; using Server.Spells; namespace Server.Items { public class BluesOnlyTele : Teleporter { private bool m_RedCheck; [CommandProperty(Accesslevel.GameMaster)] public bool RedCheck { get { return m_RedCheck; } set { m_RedCheck = value; InvalidateProperties(); } } [Constructable] public BluesOnlyTele() : this( new Point3D( 0, 0, 0 ), null, false ) { } [Constructable] public BluesOnlyTele() : base( 0x1BC3 ) { m_RedCheck = false; } public override bool OnMoveOver( Mobile m ) { if ( m_Active ) { if ( !m_Creatures && !m.Player ) if ( m.Karma >=0 ) { StartTeleport( m ); return false; } else { m.SendMessage("Only Blues May Take Refuge Here!"); return true; } } } return true; } public BluesOnlyTele(Serial serial) : base(serial) { } } }