예제 #1
0
 public FollowMasterAI(BaseCreature m)
     : base(m)
 {
     if (m is CorpseMinion)
     {
         m_MinMobile = (CorpseMinion)m;
     }
 }
예제 #2
0
            public ExpireTimer(CorpseMinion mobile, TimeSpan delay)
                : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
            {
                m_CorpseMinion = mobile;

                m_End = DateTime.UtcNow + delay;

                Priority = TimerPriority.TwoFiftyMS;
            }
        public FollowMasterAI(BaseCreature m)
            : base(m)
        {
            if (m is CorpseMinion)
                m_MinMobile = (CorpseMinion)m;



        }
예제 #4
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_ResPrice    = reader.ReadInt();
            m_CorpsePrice = reader.ReadInt();
            m_CanRes      = reader.ReadBool();
            m_IsBanker    = reader.ReadBool();
            m_Minion      = reader.ReadMobile() as CorpseMinion;
        }
예제 #5
0
        //method doubles as null protection - used often
        public void TrySpawnMinion()
        {
            if (m_Minion != null && !m_Minion.Deleted)
            {
                return;
            }

            PublicOverheadMessage(MessageType.Spell, 908, true, "Ahn Durst Ku");
            Animate(200, 2, 2, true, true, 2);

            CorpseMinion cm = new CorpseMinion(this);

            m_Minion = cm;

            cm.OnBeforeSpawn(this.Location, this.Map);
            InvalidateProperties(); //on spawner ??

            cm.MoveToWorld(this.Location, this.Map);

            cm.OnAfterSpawn();
        }
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            m_ResPrice = reader.ReadInt();
            m_CorpsePrice = reader.ReadInt();
            m_CanRes = reader.ReadBool();
            m_IsBanker = reader.ReadBool();
            m_Minion = reader.ReadMobile() as CorpseMinion;
        }
        //method doubles as null protection - used often
        public void TrySpawnMinion()
        {
            if (m_Minion != null && !m_Minion.Deleted)
                return;

            PublicOverheadMessage(MessageType.Spell, 908, true, "Ahn Durst Ku");
            Animate(200, 2, 2, true, true, 2);

            CorpseMinion cm = new CorpseMinion(this);

            m_Minion = cm;

            cm.OnBeforeSpawn(this.Location, this.Map);
            InvalidateProperties(); //on spawner ??

            cm.MoveToWorld(this.Location, this.Map);

            cm.OnAfterSpawn();

        }
            public ExpireTimer(CorpseMinion mobile, TimeSpan delay)
                : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
            {
                m_CorpseMinion = mobile;

                m_End = DateTime.Now + delay;

                Priority = TimerPriority.TwoFiftyMS;
            }