Exemplo n.º 1
0
 public ApplyTimer(TeiravonMobile from, Mobile m, Manacles shackles)
     : base(TimeSpan.FromSeconds(3))
 {
     chains   = shackles;
     m_Player = from;
     m_Targ   = m;
     startLoc = m.Location;
 }
Exemplo n.º 2
0
        private void OnTarget(Mobile from, object obj)
        {
            if (Deleted)
            {
                return;
            }

            IPoint3D p = obj as IPoint3D;

            if (p == null)
            {
                return;
            }

            if (obj is Mobile)
            {
                Mobile m = obj as Mobile;


                Item i = m.FindItemOnLayer(Layer.TwoHanded);

                if (i != null && i is Manacles)
                {
                    Manacles manacles = i as Manacles;
                    from.AddToBackpack(manacles);
                    from.SendMessage("You release them from their restraints.");
                    m.SendMessage("You have been freed from your restraints.");
                    m.Send(new SpeedMode(0));
                    manacles.Layer = Layer.Invalid;
                    manacles.CheckCaught();
                    manacles.Movable = true;
                    return;
                }
                else
                {
                    from.SendMessage("They are not restrained.");
                    return;
                }
            }
        }
Exemplo n.º 3
0
 public EscapeTimer(TeiravonMobile from, Manacles manacles)
     : base(TimeSpan.FromSeconds(10))
 {
     m_Player = from;
     chains   = manacles;
 }