Exemple #1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_Navrey = (Navrey)reader.ReadMobile();

            m_Pillars = new NavreysPillar[3];

            m_Pillars[0] = (NavreysPillar)reader.ReadItem();
            m_Pillars[1] = (NavreysPillar)reader.ReadItem();
            m_Pillars[2] = (NavreysPillar)reader.ReadItem();

            TypeRestart = reader.ReadTimeSpan();

            if (m_Navrey == null)
            {
                Timer.DelayCall(TimeSpan.Zero, new TimerCallback(Respawn));
            }
            else
            {
                SetAllPillars(NavreysPillarState.On);
            }
        }
Exemple #2
0
            public RockRainTimer(Navrey navrey)
                : base(TimeSpan.Zero, TimeSpan.FromSeconds(0.25))
            {
                m_Navrey = navrey;
                m_Ticks  = 120;

                m_Navrey.CantWalk = true;
            }
 public override void OnAdded(object parent)
 {
     if (parent is Mobile)
     {
         if (((Mobile)parent).Frozen && Navrey.Table.ContainsKey((Mobile)parent))
         {
             ((Mobile)parent).Frozen = false;
             Navrey.RemoveFromTable((Mobile)parent);
             ((Mobile)parent).SendMessage("You have been released from Navrey's web!");
         }
     }
 }
Exemple #4
0
        public void Respawn()
        {
            Navrey navrey = new Navrey(this);

            navrey.RangeHome = 20;

            navrey.MoveToWorld(Map.GetSpawnPosition(Location, 10), Map);

            SetAllPillars(NavreysPillarState.On);

            m_Navrey = navrey;
        }
Exemple #5
0
        public override void OnAdded(object parent)
        {
            if (parent is Mobile)
            {
                ((Mobile)parent).SendLocalizedMessage(1151094, GetNameInfo(ItemID)); // You manage to equip the stone ~1_token~ and find you can no longer move!

                if (((Mobile)parent).Frozen && Navrey.Table.ContainsKey((Mobile)parent))
                {
                    ((Mobile)parent).Frozen = false;
                    Navrey.RemoveFromTable((Mobile)parent);
                    ((Mobile)parent).SendLocalizedMessage(1005603); //You can move again!
                }
            }
        }