コード例 #1
0
        public GoldenElemental(int oreAmount) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Body        = 166;
            BaseSoundID = 268;
            Hue         = m_DefaultHue;

            Alignment = Alignment.Elemental;

            SetStr(226, 255);
            SetDex(126, 145);
            SetInt(71, 92);

            SetHits(136, 153);

            SetDamage(9, 16);


            SetSkill(SkillName.MagicResist, 50.1, 95.0);
            SetSkill(SkillName.Tactics, 60.1, 100.0);
            SetSkill(SkillName.Wrestling, 60.1, 100.0);

            Fame  = 3500;
            Karma = -3500;

            VirtualArmor = 60;

            Item ore = new GoldOre(oreAmount);

            ore.ItemID = 0x19B9;
            PackItem(ore);
        }
コード例 #2
0
        public GoldenElemental(int oreAmount)
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            this.Name        = "a golden elemental";
            this.Body        = 166;
            this.BaseSoundID = 268;

            this.SetStr(226, 255);
            this.SetDex(126, 145);
            this.SetInt(71, 92);

            this.SetHits(136, 153);

            this.SetDamage(9, 16);

            this.SetDamageType(ResistanceType.Physical, 100);

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

            this.SetSkill(SkillName.MagicResist, 50.1, 95.0);
            this.SetSkill(SkillName.Tactics, 60.1, 100.0);
            this.SetSkill(SkillName.Wrestling, 60.1, 100.0);

            this.Fame  = 3500;
            this.Karma = -3500;

            Item ore = new GoldOre(oreAmount);

            ore.ItemID = 0x19B9;
            this.PackItem(ore);
        }
コード例 #3
0
        public GoldenElemental(int oreAmount = 2) : base(AIType.AI_Melee)
        {
            Body        = 166;
            BaseSoundID = 268;

            SetStr(226, 255);
            SetDex(126, 145);
            SetInt(71, 92);

            SetHits(136, 153);

            SetDamage(9, 16);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 60, 75);
            SetResistance(ResistanceType.Fire, 10, 20);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 30, 40);
            SetResistance(ResistanceType.Energy, 30, 40);

            SetSkill(SkillName.MagicResist, 50.1, 95.0);
            SetSkill(SkillName.Tactics, 60.1, 100.0);
            SetSkill(SkillName.Wrestling, 60.1, 100.0);

            Fame  = 3500;
            Karma = -3500;

            VirtualArmor = 60;

            Item ore = new GoldOre(oreAmount);

            ore.ItemID = 0x19B9;
            PackItem(ore);
        }
コード例 #4
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            Item ore = new GoldOre(Utility.RandomMinMax(5, 10));

            ore.ItemID = 0x19B7;
            c.DropItem(ore);
        }
コード例 #5
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            if (this.RealName == "a golden sculpture")
            {
                Item ore = new GoldOre(Utility.RandomMinMax(5, 10));
                ore.ItemID = 0x19B7;
                c.DropItem(ore);
            }
            else if (this.RealName == "an iron sculpture")
            {
                Item ore = new IronOre(Utility.RandomMinMax(5, 10));
                ore.ItemID = 0x19B7;
                c.DropItem(ore);
            }
            else if (this.RealName == "a jade sculpture")
            {
                RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "jade stones");
                c.DropItem(stones);
            }
            else if (this.RealName == "a marble sculpture")
            {
                RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "gargish marble stones");
                c.DropItem(stones);
            }
            else if (this.RealName == "a shadow iron sculpture")
            {
                Item ore = new ShadowIronOre(Utility.RandomMinMax(5, 10));
                ore.ItemID = 0x19B7;
                c.DropItem(ore);
            }
            else if (this.RealName == "a silver sculpture")
            {
                RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "silver stones");
                c.DropItem(stones);
            }
            else if (this.RealName == "a stone sculpture")
            {
                Granite granite = new Granite();
                granite.Amount = 1;
                c.DropItem(granite);
            }
            else if (this.RealName == "a bronze sculpture")
            {
                Item ore = new BronzeOre(Utility.RandomMinMax(5, 10));
                ore.ItemID = 0x19B7;
                c.DropItem(ore);
            }
        }
コード例 #6
0
        public GoldenElemental(int oreAmount) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = "a golden elemental";
            Body        = 14;
            Hue         = MaterialInfo.GetMaterialColor("gold", "monster", 0);
            BaseSoundID = 268;

            SetStr(226, 255);
            SetDex(126, 145);
            SetInt(71, 92);

            SetHits(136, 153);

            SetDamage(9, 16);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 60, 75);
            SetResistance(ResistanceType.Fire, 10, 20);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 30, 40);
            SetResistance(ResistanceType.Energy, 30, 40);

            SetSkill(SkillName.MagicResist, 50.1, 95.0);
            SetSkill(SkillName.Tactics, 60.1, 100.0);
            SetSkill(SkillName.Wrestling, 60.1, 100.0);

            Fame  = 3500;
            Karma = -3500;

            VirtualArmor = 60;

            Item ore = new GoldOre(oreAmount);

            ore.ItemID = 0x19B9;
            PackItem(ore);
        }
コード例 #7
0
ファイル: IronBeetle.cs プロジェクト: zerodowned/vivre-uo
        public void ConvertOretoIngot(Mobile from)
        {
            this.Skills.Mining.Cap = 120;
            Container backpack = this.Backpack;
            BankBox   bank     = from.BankBox;
            IronOre   item     = (IronOre)backpack.FindItemByType(typeof(IronOre));

            if (item is BaseOre)
            {
                BaseOre m_Ore = item as BaseOre;

                int toConsume = m_Ore.Amount;

                if (toConsume > 30000)
                {
                    toConsume = 30000;
                }
                else if (m_Ore.Amount < 2)
                {
                    m_Ore.Delete();
                }

                BaseIngot ingot = m_Ore.GetIngot();
                ingot.Amount = toConsume * 2;

                m_Ore.Consume(toConsume);

                this.PlaySound(0x57);

                this.AddToBackpack(item);
                this.AddToBackpack(ingot);
            }

            ShadowOre item1 = (ShadowOre)backpack.FindItemByType(typeof(ShadowOre));

            if (item1 is BaseOre)
            {
                BaseOre m_Ore = item1 as BaseOre;

                int toConsume = m_Ore.Amount;

                if (toConsume > 30000)
                {
                    toConsume = 30000;
                }
                else if (m_Ore.Amount < 2)
                {
                    m_Ore.Delete();
                }

                BaseIngot ingot = m_Ore.GetIngot();
                ingot.Amount = toConsume * 2;

                m_Ore.Consume(toConsume);

                this.PlaySound(0x57);

                this.AddToBackpack(item);
                this.AddToBackpack(ingot);
            }

            BronzeOre item2 = (BronzeOre)backpack.FindItemByType(typeof(BronzeOre));

            if (item2 is BaseOre)
            {
                BaseOre m_Ore = item2 as BaseOre;

                int toConsume = m_Ore.Amount;

                if (toConsume > 30000)
                {
                    toConsume = 30000;
                }
                else if (m_Ore.Amount < 2)
                {
                    m_Ore.Delete();
                }

                BaseIngot ingot = m_Ore.GetIngot();
                ingot.Amount = toConsume * 2;

                m_Ore.Consume(toConsume);

                this.PlaySound(0x57);

                this.AddToBackpack(item);
                this.AddToBackpack(ingot);
            }

            CopperOre item3 = (CopperOre)backpack.FindItemByType(typeof(CopperOre));

            if (item3 is BaseOre)
            {
                BaseOre m_Ore = item3 as BaseOre;

                int toConsume = m_Ore.Amount;

                if (toConsume > 30000)
                {
                    toConsume = 30000;
                }
                else if (m_Ore.Amount < 2)
                {
                    m_Ore.Delete();
                }

                BaseIngot ingot = m_Ore.GetIngot();
                ingot.Amount = toConsume * 2;

                m_Ore.Consume(toConsume);

                this.PlaySound(0x57);

                this.AddToBackpack(item);
                this.AddToBackpack(ingot);
            }

            GoldOre item4 = (GoldOre)backpack.FindItemByType(typeof(GoldOre));

            if (item4 is BaseOre)
            {
                BaseOre m_Ore = item4 as BaseOre;

                int toConsume = m_Ore.Amount;

                if (toConsume > 30000)
                {
                    toConsume = 30000;
                }
                else if (m_Ore.Amount < 2)
                {
                    m_Ore.Delete();
                }

                BaseIngot ingot = m_Ore.GetIngot();
                ingot.Amount = toConsume * 2;

                m_Ore.Consume(toConsume);

                this.PlaySound(0x57);

                this.AddToBackpack(item);
                this.AddToBackpack(ingot);
            }

            DullcopperOre item5 = (DullcopperOre)backpack.FindItemByType(typeof(DullcopperOre));

            if (item5 is BaseOre)
            {
                BaseOre m_Ore = item5 as BaseOre;

                int toConsume = m_Ore.Amount;

                if (toConsume > 30000)
                {
                    toConsume = 30000;
                }
                else if (m_Ore.Amount < 2)
                {
                    m_Ore.Delete();
                }

                BaseIngot ingot = m_Ore.GetIngot();
                ingot.Amount = toConsume * 2;

                m_Ore.Consume(toConsume);

                this.PlaySound(0x57);

                this.AddToBackpack(item);
                this.AddToBackpack(ingot);
            }

            AgapiteOre item6 = (AgapiteOre)backpack.FindItemByType(typeof(AgapiteOre));

            if (item6 is BaseOre)
            {
                BaseOre m_Ore = item6 as BaseOre;

                int toConsume = m_Ore.Amount;

                if (toConsume > 30000)
                {
                    toConsume = 30000;
                }
                else if (m_Ore.Amount < 2)
                {
                    m_Ore.Delete();
                }

                BaseIngot ingot = m_Ore.GetIngot();
                ingot.Amount = toConsume * 2;

                m_Ore.Consume(toConsume);

                this.PlaySound(0x57);

                this.AddToBackpack(item);
                this.AddToBackpack(ingot);
            }

            VeriteOre item7 = (VeriteOre)backpack.FindItemByType(typeof(VeriteOre));

            if (item7 is BaseOre)
            {
                BaseOre m_Ore = item7 as BaseOre;

                int toConsume = m_Ore.Amount;

                if (toConsume > 30000)
                {
                    toConsume = 30000;
                }
                else if (m_Ore.Amount < 2)
                {
                    m_Ore.Delete();
                }

                BaseIngot ingot = m_Ore.GetIngot();
                ingot.Amount = toConsume * 2;

                m_Ore.Consume(toConsume);

                this.PlaySound(0x57);

                this.AddToBackpack(item);
                this.AddToBackpack(ingot);
            }

            ValoriteOre item8 = (ValoriteOre)backpack.FindItemByType(typeof(ValoriteOre));

            if (item8 is BaseOre)
            {
                BaseOre m_Ore = item8 as BaseOre;

                int toConsume = m_Ore.Amount;

                if (toConsume > 30000)
                {
                    toConsume = 30000;
                }
                else if (m_Ore.Amount < 2)
                {
                    m_Ore.Delete();
                }

                BaseIngot ingot = m_Ore.GetIngot();
                ingot.Amount = toConsume * 2;

                m_Ore.Consume(toConsume);

                this.PlaySound(0x57);

                this.AddToBackpack(item);
                this.AddToBackpack(ingot);
            }
        }
コード例 #8
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            if (this.RealName == "an iron grue")
            {
                Item ore = new IronOre(Utility.RandomMinMax(3, 8));
                ore.ItemID = 0x19B7;
                c.DropItem(ore);
            }
            else if (this.RealName == "a golden grue")
            {
                Item ore = new GoldOre(Utility.RandomMinMax(3, 8));
                ore.ItemID = 0x19B9;
                c.DropItem(ore);
            }
            else if (this.RealName == "a shadow iron grue")
            {
                Item ore = new ShadowIronOre(Utility.RandomMinMax(3, 8));
                ore.ItemID = 0x19B9;
                c.DropItem(ore);
            }
            else if (this.RealName == "a valorite grue")
            {
                Item ore = new ValoriteOre(Utility.RandomMinMax(3, 8));
                ore.ItemID = 0x19B9;
                c.DropItem(ore);
            }
            else if (this.RealName == "a verite grue")
            {
                Item ore = new VeriteOre(Utility.RandomMinMax(3, 8));
                ore.ItemID = 0x19B9;
                c.DropItem(ore);
            }
            else if (this.RealName == "an agapite grue")
            {
                Item ore = new AgapiteOre(Utility.RandomMinMax(3, 8));
                ore.ItemID = 0x19B9;
                c.DropItem(ore);
            }
            else if (this.RealName == "a bronze grue")
            {
                Item ore = new BronzeOre(Utility.RandomMinMax(3, 8));
                ore.ItemID = 0x19B9;
                c.DropItem(ore);
            }
            else if (this.RealName == "a copper grue")
            {
                Item ore = new CopperOre(Utility.RandomMinMax(3, 8));
                ore.ItemID = 0x19B9;
                c.DropItem(ore);
            }
            else if (this.RealName == "a dull copper grue")
            {
                Item ore = new DullCopperOre(Utility.RandomMinMax(3, 8));
                ore.ItemID = 0x19B9;
                c.DropItem(ore);
            }
            else if (this.RealName == "a stone grue")
            {
                Granite granite = new Granite();
                granite.Amount = Utility.RandomMinMax(1, 3);
                c.DropItem(granite);
            }
        }
コード例 #9
0
        public GoldenElemental(int oreAmount) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = "a golden elemental";
            Body        = 166;
            BaseSoundID = 268;

            SetStr(426, 455);
            SetDex(126, 145);
            SetInt(71, 92);

            SetHits(636, 753);

            SetDamage(5, 15);

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 60);
            SetResistance(ResistanceType.Fire, 10);
            SetResistance(ResistanceType.Cold, -50);
            SetResistance(ResistanceType.Poison, 30);
            SetResistance(ResistanceType.Energy, 30);

            SetSkill(SkillName.MagicResist, 50.1, 95.0);
            SetSkill(SkillName.Tactics, 60.1, 100.0);
            SetSkill(SkillName.Wrestling, 60.1, 100.0);

            Fame  = 3500;
            Karma = -3500;

            PackGold(519, 625);

            PackItem(new ElementalDust(Utility.RandomMinMax(58, 112)));

            Item ore = new GoldOre(oreAmount);

            ore.ItemID = 0x19B9;
            PackItem(ore);

            if (Utility.RandomDouble() < 0.01)
            {
                PackItem(new TreasureMap(1, Map.Malas));
            }

            switch (Utility.Random(9))
            {
            case 0: PackItem(new Agate()); break;

            case 1: PackItem(new Beryl()); break;

            case 2: PackItem(new ChromeDiopside()); break;

            case 3: PackItem(new FireOpal()); break;

            case 4: PackItem(new MoonstoneCustom()); break;

            case 5: PackItem(new Onyx()); break;

            case 6: PackItem(new Opal()); break;

            case 7: PackItem(new Pearl()); break;

            case 8: PackItem(new TurquoiseCustom()); break;
            }
        }