Exemplo n.º 1
0
        public override void OnAfterDelete()
        {
            Instances.Remove(this);

            if (m_Timer != null)
            {
                m_Timer.Stop();
            }

            m_Timer = null;

            base.OnAfterDelete();
        }
Exemplo n.º 2
0
        public Djinn()
            : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Body = 0x311;
            Hue  = 33072;
            Name = "Djinn";

            SetStr(320, 500);
            SetDex(200, 300);
            SetInt(600, 700);

            SetHits(2003);

            SetDamage(11, 13);

            SetDamageType(ResistanceType.Physical, 0);
            SetDamageType(ResistanceType.Fire, 50);
            SetDamageType(ResistanceType.Energy, 50);

            SetResistance(ResistanceType.Physical, 50, 60);
            SetResistance(ResistanceType.Fire, 60, 70);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 30, 40);
            SetResistance(ResistanceType.Energy, 80, 90);

            SetSkill(SkillName.Wrestling, 60.0, 80.0);
            SetSkill(SkillName.Tactics, 60.0, 80.0);
            SetSkill(SkillName.MagicResist, 60.0, 80.0);
            SetSkill(SkillName.Magery, 100.0, 120.0);
            SetSkill(SkillName.EvalInt, 60.0, 110.0);
            SetSkill(SkillName.DetectHidden, 55.0);

            Fame  = 15000;
            Karma = -15000;

            if (Instances == null)
            {
                Instances = new List <Djinn>();
            }

            Instances.Add(this);

            Timer SelfDeleteTimer = new InternalSelfDeleteTimer(this);

            SelfDeleteTimer.Start();

            m_Timer = new SummonEfreetTimer(this);
            m_Timer.Start();
        }
Exemplo n.º 3
0
        public Djinn()
            : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            m_Instances.Add(this);

            this.Body = 0x2EA;
            this.Name = "Djinn";

            this.SetStr(476, 505);
            this.SetDex(76, 95);
            this.SetInt(301, 325);

            this.SetHits(586, 603);

            this.SetDamage(16, 20);

            this.SetDamageType(ResistanceType.Physical, 0);
            this.SetDamageType(ResistanceType.Fire, 40);
            this.SetDamageType(ResistanceType.Energy, 60);

            this.SetResistance(ResistanceType.Physical, 45, 60);
            this.SetResistance(ResistanceType.Fire, 50, 60);
            this.SetResistance(ResistanceType.Cold, 30, 40);
            this.SetResistance(ResistanceType.Poison, 20, 30);
            this.SetResistance(ResistanceType.Energy, 30, 40);

            this.SetSkill(SkillName.Wrestling, 60.0, 80.0);
            this.SetSkill(SkillName.Tactics, 70.0, 80.0);
            this.SetSkill(SkillName.MagicResist, 100.0, 110.0);
            this.SetSkill(SkillName.Magery, 120.0, 130.0);
            this.SetSkill(SkillName.EvalInt, 100.0, 110.0);
            this.SetSkill(SkillName.Meditation, 100.0, 110.0);

            this.Fame  = 15000;
            this.Karma = -15000;

            Timer SelfDeleteTimer = new InternalSelfDeleteTimer(this);

            SelfDeleteTimer.Start();

            this.m_Timer = new SummonEfreetTimer(this);
            this.m_Timer.Start();
        }
Exemplo n.º 4
0
        public Djinn()
            : base()
        {
            m_Instances.Add(this);

            this.Name = "Djinn";
            this.Hue  = 12;

            this.SetStr(476, 505);
            this.SetDex(76, 95);
            this.SetInt(301, 325);

            this.SetHits(586, 603);

            this.SetDamage(16, 20);

            this.SetDamageType(ResistanceType.Physical, 0);
            this.SetDamageType(ResistanceType.Fire, 40);
            this.SetDamageType(ResistanceType.Energy, 60);

            this.SetResistance(ResistanceType.Physical, 45, 60);
            this.SetResistance(ResistanceType.Fire, 50, 60);
            this.SetResistance(ResistanceType.Cold, 30, 40);
            this.SetResistance(ResistanceType.Poison, 20, 30);
            this.SetResistance(ResistanceType.Energy, 30, 40);

            this.Fame  = 15000;
            this.Karma = -15000;

            Timer SelfDeleteTimer = new InternalSelfDeleteTimer(this);

            SelfDeleteTimer.Start();

            this.m_Timer = new SummonEfreetTimer(this);
            this.m_Timer.Start();
        }