Пример #1
0
        public override bool OnMoveOver(Mobile m)
        {
            PlayerMobile mobile = m as PlayerMobile;

            if (m.IsStaff())
                return true;
            else if (mobile != null)
            {

                if (mobile.AbyssEntry == false)
                {
                    m.SendLocalizedMessage(1112226);
                    return false;
                }
                else
                {
                    m.SendLocalizedMessage(1113708);
                    return true;
                }
            }
            else
                return false;
        }
Пример #2
0
 public override void OnExit(Mobile m)
 {
     if (m.IsStaff())
         m.SendMessage("You have left a protected treasure map area.");
 }
Пример #3
0
 public override void OnEnter(Mobile m)
 {
     if (m.IsStaff())
         m.SendMessage("You have entered a protected treasure map area.");
 }
		public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
		{
			base.GetContextMenuEntries(from, list);
			if (from.IsStaff())
			{
				list.Add(new EnableContextMenuEntry(!m_Active, this));
			}
		}
		public override void OnDoubleClick(Mobile from)
		{
			// Only staff can open the box
			if(from.IsStaff())
				base.OnDoubleClick(from);
		}
Пример #6
0
 public override void OnDoubleClick(Mobile from)
 {
     if (from.IsStaff() || from.InRange(GetWorldLocation(), 2)) {
         from.SendGump( new Miab_Gump( from, this ) );
     }
     else {
         from.SendLocalizedMessage(500446); // That is too far away.
     }
 }