Ejemplo n.º 1
0
        public override void OnEnter(Mobile m)
        {
            if (m == null || m is WandererOfTheVoid)
            {
                return;
            }

            if (m.AccessLevel > AccessLevel.Player)
            {
                return;
            }

            if (Controller.Successful != null)
            {
                if (m is PlayerMobile)
                {
                    if (m == Controller.Successful)
                    {
                        return;
                    }
                }
                else if (m is BaseCreature)
                {
                    var bc = (BaseCreature) m;
                    if ((bc.Controlled && bc.ControlMaster == Controller.Successful) || bc.Summoned)
                    {
                        return;
                    }
                }
            }
            Timer kick = new LeverPuzzleController.LampRoomKickTimer(m);
            kick.Start();
        }
        public override void OnEnter(Mobile m)
        {
            if (m == null || m is WandererOfTheVoid)
            {
                return;
            }

            if (m.AccessLevel > AccessLevel.Player)
            {
                return;
            }

            if (Controller.Successful != null)
            {
                if (m is PlayerMobile)
                {
                    if (m == Controller.Successful)
                    {
                        return;
                    }
                }
                else if (m is BaseCreature)
                {
                    BaseCreature bc = (BaseCreature)m;
                    if ((bc.Controlled && bc.ControlMaster == Controller.Successful) || bc.Summoned)
                    {
                        return;
                    }
                }
            }
            Timer kick = new LeverPuzzleController.LampRoomKickTimer(m);

            kick.Start();
        }
Ejemplo n.º 3
0
 public override void OnDeath(Mobile m)
 {
     if (m != null && !m.Deleted && !(m is WandererOfTheVoid))
     {
         Timer kick = new LeverPuzzleController.LampRoomKickTimer(m);
         kick.Start();
     }
 }
 public override void OnDeath(Mobile m)
 {
     if (m != null && !m.Deleted && !(m is WandererOfTheVoid))
     {
         Timer kick = new LeverPuzzleController.LampRoomKickTimer(m);
         kick.Start();;
     }
 }
Ejemplo n.º 5
0
 public static void OnLogin(LoginEventArgs e)
 {
     Mobile m = e.Mobile;
     Rectangle2D rect = LeverPuzzleController.lr_Rect;
     if (m.X >= rect.X && m.X <= (rect.X + 10) && m.Y >= rect.Y && m.Y <= (rect.Y + 10) && m.Map == Map.Internal)
     {
         Timer kick = new LeverPuzzleController.LampRoomKickTimer(m);
         kick.Start();
     }
 }
Ejemplo n.º 6
0
        public override void OnDeath(Mobile m)
        {
            if (m?.Deleted != false || m is WandererOfTheVoid)
            {
                return;
            }
            Timer kick = new LeverPuzzleController.LampRoomKickTimer(m);

            kick.Start();
        }
Ejemplo n.º 7
0
        public static void OnLogin(Mobile m)
        {
            Rectangle2D rect = LeverPuzzleController.lr_Rect;

            if (m.X >= rect.X && m.X <= (rect.X + 10) && m.Y >= rect.Y && m.Y <= (rect.Y + 10) && m.Map == Map.Internal)
            {
                Timer kick = new LeverPuzzleController.LampRoomKickTimer(m);
                kick.Start();
            }
        }