Ejemplo n.º 1
0
            public RockRainTimer(NavreyNightEyes navrey)
                : base(TimeSpan.Zero, TimeSpan.FromSeconds(0.25))
            {
                m_Navrey = navrey;
                m_Ticks  = 120;

                m_Navrey.CantWalk = true;
            }
Ejemplo n.º 2
0
        public void Respawn()
        {
            NavreyNightEyes navrey = new NavreyNightEyes(this);

            navrey.RangeHome = 20;

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

            SetAllPillars(NavreysPillarState.On);

            m_Navrey = navrey;
        }
Ejemplo n.º 3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            /*int version = */
            reader.ReadInt();

            m_Navrey = (NavreyNightEyes)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();

            if (m_Navrey == null)
            {
                Timer.DelayCall(TimeSpan.Zero, new TimerCallback(Respawn));
            }
            else
            {
                SetAllPillars(NavreysPillarState.On);
            }
        }