コード例 #1
0
ファイル: Vessels.cs プロジェクト: slawdis/uoodyssey-scripts
        public ShipNS() : base(0x0)
        {
            Movable = false;
            ItemID  = Utility.RandomList(0x0, 0x2, 0x4, 0x6, 0x8, 0xA, 0xC, 0xE, 0x10, 0x12, 0x14, 0x16) + 163;
            Hue     = 0x5BE;
            switch (Utility.Random(30))
            {
            case 1: Hue = MaterialInfo.GetMaterialColor("ash", "", 0);            break;

            case 2: Hue = MaterialInfo.GetMaterialColor("cherry", "", 0);         break;

            case 3: Hue = MaterialInfo.GetMaterialColor("ebony", "", 0);          break;

            case 4: Hue = MaterialInfo.GetMaterialColor("golden oak", "", 0);     break;

            case 5: Hue = MaterialInfo.GetMaterialColor("hickory", "", 0);        break;

            case 6: Hue = MaterialInfo.GetMaterialColor("mahogany", "", 0);       break;

            case 7: Hue = MaterialInfo.GetMaterialColor("oak", "", 0);            break;

            case 8: Hue = MaterialInfo.GetMaterialColor("pine", "", 0);           break;

            case 9: Hue = MaterialInfo.GetMaterialColor("rosewood", "", 0);       break;

            case 10: Hue = MaterialInfo.GetMaterialColor("walnut", "", 0);        break;

            case 11: Hue = MaterialInfo.GetMaterialColor("petrified", "", 0);     break;

            case 12: Hue = MaterialInfo.GetMaterialColor("driftwood", "", 0);     break;
            }
        }
コード例 #2
0
ファイル: Vessels.cs プロジェクト: slawdis/uoodyssey-scripts
        public ShipEW() : base(0x1)
        {
            Movable = false;
            ItemID  = Utility.RandomList(0x1, 0x3, 0x5, 0x7, 0x9, 0xB, 0xD, 0xF, 0x11, 0x13, 0x15, 0x17) + 163;
            Hue     = 0x5BE;
            switch (Utility.Random(30))
            {
            case 1: Hue = MaterialInfo.GetMaterialColor("ash", "", 0);            break;

            case 2: Hue = MaterialInfo.GetMaterialColor("cherry", "", 0);         break;

            case 3: Hue = MaterialInfo.GetMaterialColor("ebony", "", 0);          break;

            case 4: Hue = MaterialInfo.GetMaterialColor("golden oak", "", 0);     break;

            case 5: Hue = MaterialInfo.GetMaterialColor("hickory", "", 0);        break;

            case 6: Hue = MaterialInfo.GetMaterialColor("mahogany", "", 0);       break;

            case 7: Hue = MaterialInfo.GetMaterialColor("oak", "", 0);            break;

            case 8: Hue = MaterialInfo.GetMaterialColor("pine", "", 0);           break;

            case 9: Hue = MaterialInfo.GetMaterialColor("rosewood", "", 0);       break;

            case 10: Hue = MaterialInfo.GetMaterialColor("walnut", "", 0);        break;

            case 11: Hue = MaterialInfo.GetMaterialColor("petrified", "", 0);     break;

            case 12: Hue = MaterialInfo.GetMaterialColor("driftwood", "", 0);     break;
            }
        }
コード例 #3
0
        public OilMetal(int amount) : base(0x1FDD)
        {
            Weight    = 0.01;
            Stackable = true;
            Amount    = amount;

            switch (Utility.RandomMinMax(0, 12))
            {
            case 0: Hue = MaterialInfo.GetMaterialColor("dull copper", "classic", 0); Name = "oil of metal enhancement ( dull copper )";  break;

            case 1: Hue = MaterialInfo.GetMaterialColor("shadow iron", "classic", 0); Name = "oil of metal enhancement ( shadow iron )";  break;

            case 2: Hue = MaterialInfo.GetMaterialColor("copper", "classic", 0); Name = "oil of metal enhancement ( copper )";            break;

            case 3: Hue = MaterialInfo.GetMaterialColor("bronze", "classic", 0); Name = "oil of metal enhancement ( bronze )";            break;

            case 4: Hue = MaterialInfo.GetMaterialColor("gold", "classic", 0); Name = "oil of metal enhancement ( gold )";                break;

            case 5: Hue = MaterialInfo.GetMaterialColor("agapite", "classic", 0); Name = "oil of metal enhancement ( agapite )";          break;

            case 6: Hue = MaterialInfo.GetMaterialColor("verite", "classic", 0); Name = "oil of metal enhancement ( verite )";            break;

            case 7: Hue = MaterialInfo.GetMaterialColor("valorite", "classic", 0); Name = "oil of metal enhancement ( valorite )";        break;

            case 8: Hue = MaterialInfo.GetMaterialColor("steel", "classic", 0); Name = "oil of metal enhancement ( steel )";              break;

            case 9: Hue = MaterialInfo.GetMaterialColor("brass", "classic", 0); Name = "oil of metal enhancement ( brass )";              break;

            case 10: Hue = MaterialInfo.GetMaterialColor("mithril", "classic", 0); Name = "oil of metal enhancement ( mithril )"; break;

            case 11: Hue = MaterialInfo.GetMaterialColor("obsidian", "classic", 0); Name = "oil of metal enhancement ( obsidian )";       break;

            case 12: Hue = MaterialInfo.GetMaterialColor("nepturite", "classic", 0); Name = "oil of metal enhancement ( nepturite )";     break;
            }
        }
コード例 #4
0
        public OilLeather(int amount) : base(0x1FDD)
        {
            Weight    = 0.01;
            Stackable = true;
            Amount    = amount;

            switch (Utility.RandomMinMax(0, 9))
            {
            case 0: Hue = MaterialInfo.GetMaterialColor("deep sea", "", 0); Name = "oil of leather enhancement ( deep sea )";     break;

            case 1: Hue = MaterialInfo.GetMaterialColor("lizard", "", 0); Name = "oil of leather enhancement ( lizard )"; break;

            case 2: Hue = MaterialInfo.GetMaterialColor("serpent", "", 0); Name = "oil of leather enhancement ( serpent )";       break;

            case 3: Hue = MaterialInfo.GetMaterialColor("necrotic", "", 0); Name = "oil of leather enhancement ( necrotic )";     break;

            case 4: Hue = MaterialInfo.GetMaterialColor("volcanic", "", 0); Name = "oil of leather enhancement ( volcanic )";     break;

            case 5: Hue = MaterialInfo.GetMaterialColor("frozen", "", 0); Name = "oil of leather enhancement ( frozen )"; break;

            case 6: Hue = MaterialInfo.GetMaterialColor("goliath", "", 0); Name = "oil of leather enhancement ( goliath )";       break;

            case 7: Hue = MaterialInfo.GetMaterialColor("draconic", "", 0); Name = "oil of leather enhancement ( draconic )";     break;

            case 8: Hue = MaterialInfo.GetMaterialColor("hellish", "", 0); Name = "oil of leather enhancement ( hellish )";       break;

            case 9: Hue = MaterialInfo.GetMaterialColor("dinosaur", "", 0); Name = "oil of leather enhancement ( dinosaur )";     break;
            }
        }
コード例 #5
0
        public WoodenGolem() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "a wooden golem";
            Body = 301;

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, 30, 35);
            SetResistance(ResistanceType.Cold, 10, 20);
            SetResistance(ResistanceType.Poison, 100);
            SetResistance(ResistanceType.Energy, 15, 25);

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

            int modifySta = 0;
            int modifyHit = 0;
            int modifyDmg = 0;

            switch (Utility.Random(11))
            {
            case 0: PackItem(new Log(Utility.RandomMinMax(10, 20)));                  Hue = 0x000;    break;

            case 1: PackItem(new AshLog(Utility.RandomMinMax(10, 20)));               Hue = MaterialInfo.GetMaterialColor("ash", "", 0);            modifySta = 5;  modifyHit = 10;         modifyDmg = 1;  break;

            case 2: PackItem(new CherryLog(Utility.RandomMinMax(10, 20)));    Hue = MaterialInfo.GetMaterialColor("cherry", "", 0);         modifySta = 10; modifyHit = 20;         modifyDmg = 2;  break;

            case 3: PackItem(new EbonyLog(Utility.RandomMinMax(10, 20)));     Hue = MaterialInfo.GetMaterialColor("ebony", "", 0);          modifySta = 15; modifyHit = 30;         modifyDmg = 3;  break;

            case 4: PackItem(new GoldenOakLog(Utility.RandomMinMax(10, 20))); Hue = MaterialInfo.GetMaterialColor("golden oak", "", 0);     modifySta = 20; modifyHit = 40;         modifyDmg = 4;  break;

            case 5: PackItem(new HickoryLog(Utility.RandomMinMax(10, 20)));   Hue = MaterialInfo.GetMaterialColor("hickory", "", 0);        modifySta = 25; modifyHit = 50;         modifyDmg = 5;  break;

            case 6: PackItem(new MahoganyLog(Utility.RandomMinMax(10, 20)));  Hue = MaterialInfo.GetMaterialColor("mahogany", "", 0);       modifySta = 30; modifyHit = 60;         modifyDmg = 6;  break;

            case 7: PackItem(new OakLog(Utility.RandomMinMax(10, 20)));               Hue = MaterialInfo.GetMaterialColor("oak", "", 0);            modifySta = 35; modifyHit = 70;         modifyDmg = 7;  break;

            case 8: PackItem(new PineLog(Utility.RandomMinMax(10, 20)));              Hue = MaterialInfo.GetMaterialColor("pine", "", 0);           modifySta = 40; modifyHit = 80;         modifyDmg = 8;  break;

            case 9: PackItem(new RosewoodLog(Utility.RandomMinMax(10, 20)));  Hue = MaterialInfo.GetMaterialColor("rosewood", "", 0);       modifySta = 45; modifyHit = 90;         modifyDmg = 9;  break;

            case 10: PackItem(new WalnutLog(Utility.RandomMinMax(10, 20)));   Hue = MaterialInfo.GetMaterialColor("walnut", "", 0);         modifySta = 50; modifyHit = 100;        modifyDmg = 10; break;
            }

            SetStr((121 + modifySta), (160 + modifySta));
            SetDex((51 + modifySta), (70 + modifySta));
            SetInt((31 + modifySta), (42 + modifySta));

            SetHits((101 + modifyHit), (118 + modifyHit));
            SetStam(0);

            SetDamage((10 + modifyDmg), (15 + modifyDmg));

            Fame  = 2250;
            Karma = -2250;

            VirtualArmor = 29;
        }
コード例 #6
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);
            Mobile killer  = this.LastKiller;
            Item   granite = new Granite();

            if (this.Hue == MaterialInfo.GetMaterialColor("copper", "monster", 0))
            {
                granite = new CopperGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("verite", "monster", 0))
            {
                granite = new VeriteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("valorite", "monster", 0))
            {
                granite = new ValoriteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("agapite", "monster", 0))
            {
                granite = new AgapiteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("bronze", "monster", 0))
            {
                granite = new BronzeGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("dull copper", "monster", 0))
            {
                granite = new DullCopperGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("gold", "monster", 0))
            {
                granite = new GoldGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("shadow iron", "monster", 0))
            {
                granite = new ShadowIronGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("nepturite", "monster", 0))
            {
                granite = new NepturiteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("obsidian", "monster", 0))
            {
                granite = new ObsidianGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("xormite", "monster", 0))
            {
                granite = new XormiteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("mithril", "monster", 0))
            {
                granite = new MithrilGranite();
            }

            granite.Amount = Utility.RandomMinMax(1, 2);

            c.DropItem(granite);
        }
コード例 #7
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            if (this.Hue == 0)
            {
                c.DropItem(new IronOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("copper", "monster", 0))
            {
                c.DropItem(new CopperOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("verite", "monster", 0))
            {
                c.DropItem(new VeriteOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("valorite", "monster", 0))
            {
                c.DropItem(new ValoriteOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("agapite", "monster", 0))
            {
                c.DropItem(new AgapiteOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("bronze", "monster", 0))
            {
                c.DropItem(new BronzeOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("dull copper", "monster", 0))
            {
                c.DropItem(new DullCopperOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("gold", "monster", 0))
            {
                c.DropItem(new GoldOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("shadow iron", "monster", 0))
            {
                c.DropItem(new ShadowIronOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("mithril", "monster", 0))
            {
                c.DropItem(new MithrilOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("xormite", "monster", 0))
            {
                c.DropItem(new XormiteOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("obsidian", "monster", 0))
            {
                c.DropItem(new ObsidianOre(Utility.RandomMinMax(10, 40)));
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("nepturite", "monster", 0))
            {
                c.DropItem(new NepturiteOre(Utility.RandomMinMax(10, 40)));
            }
        }
コード例 #8
0
        public DragonLamp() : base(0x11CD)
        {
            Name     = "dragon lamp";
            Duration = TimeSpan.Zero;
            BurntOut = false;
            Burning  = false;
            Light    = LightType.Circle225;
            Weight   = 20.0;

            if (Hue == 0)
            {
                switch (Utility.RandomMinMax(0, 20))
                {
                case 0: Hue = MaterialInfo.GetMaterialColor("copper", "", 0); LampName = ""; LampColor = "Copper"; break;

                case 1: Hue = MaterialInfo.GetMaterialColor("verite", "", 0); LampName = ""; LampColor = "Verite"; break;

                case 2: Hue = MaterialInfo.GetMaterialColor("valorite", "", 0); LampName = ""; LampColor = "Valorite"; break;

                case 3: Hue = MaterialInfo.GetMaterialColor("agapite", "", 0); LampName = ""; LampColor = "Agapite"; break;

                case 4: Hue = MaterialInfo.GetMaterialColor("bronze", "", 0); LampName = ""; LampColor = "Bronze"; break;

                case 5: Hue = MaterialInfo.GetMaterialColor("dull copper", "", 0); LampName = ""; LampColor = "Dull Copper"; break;

                case 6: Hue = MaterialInfo.GetMaterialColor("gold", "", 0); LampName = ""; LampColor = "Gold"; break;

                case 7: Hue = MaterialInfo.GetMaterialColor("shadow iron", "", 0); LampName = ""; LampColor = "Shadow Iron"; break;

                case 8: Hue = MaterialInfo.GetMaterialColor("steel", "", 0); LampName = ""; LampColor = "Steel"; break;

                case 9: Hue = MaterialInfo.GetMaterialColor("brass", "", 0); LampName = ""; LampColor = "Brass"; break;

                case 10: Hue = MaterialInfo.GetMaterialColor("mithril", "", 0); LampName = ""; LampColor = "Mithril"; break;

                case 11: Hue = MaterialInfo.GetMaterialColor("xormite", "", 0); LampName = ""; LampColor = "Xormite"; break;

                case 12: Hue = MaterialInfo.GetMaterialColor("obsidian", "", 0); LampName = ""; LampColor = "Obsidian"; break;

                case 13: Hue = MaterialInfo.GetMaterialColor("nepturite", "", 0); LampName = ""; LampColor = "Nepturite"; break;

                case 14: Hue = 0x966; LampName = ""; LampColor = "Black"; break;

                case 15: Hue = 0x9C2; LampName = ""; LampColor = "White"; break;

                case 16: Hue = 2500; LampName = ""; LampColor = "Stone"; break;

                case 17: Hue = 2001; LampName = ""; LampColor = "Green"; break;

                case 18: Hue = 0x845; LampName = ""; LampColor = "Red"; break;

                case 19: Hue = 0x1F4; LampName = ""; LampColor = "Blue"; break;

                case 20: Hue = 0x84C; LampName = ""; LampColor = "Sea"; break;
                }
            }
        }
コード例 #9
0
        public DragonPedStatue() : base(0x278C)
        {
            Name   = "dragon statue";
            Light  = LightType.Circle225;
            Weight = 20.0;

            if (Hue == 0)
            {
                switch (Utility.RandomMinMax(0, 20))
                {
                case 0: Hue = MaterialInfo.GetMaterialColor("copper", "", 0); StatueName = ""; StatueColor = "Copper"; break;

                case 1: Hue = MaterialInfo.GetMaterialColor("verite", "", 0); StatueName = ""; StatueColor = "Verite"; break;

                case 2: Hue = MaterialInfo.GetMaterialColor("valorite", "", 0); StatueName = ""; StatueColor = "Valorite"; break;

                case 3: Hue = MaterialInfo.GetMaterialColor("agapite", "", 0); StatueName = ""; StatueColor = "Agapite"; break;

                case 4: Hue = MaterialInfo.GetMaterialColor("bronze", "", 0); StatueName = ""; StatueColor = "Bronze"; break;

                case 5: Hue = MaterialInfo.GetMaterialColor("dull copper", "", 0); StatueName = ""; StatueColor = "Dull Copper"; break;

                case 6: Hue = MaterialInfo.GetMaterialColor("gold", "", 0); StatueName = ""; StatueColor = "Gold"; break;

                case 7: Hue = MaterialInfo.GetMaterialColor("shadow iron", "", 0); StatueName = ""; StatueColor = "Shadow Iron"; break;

                case 8: Hue = MaterialInfo.GetMaterialColor("steel", "", 0); StatueName = ""; StatueColor = "Steel"; break;

                case 9: Hue = MaterialInfo.GetMaterialColor("brass", "", 0); StatueName = ""; StatueColor = "Brass"; break;

                case 10: Hue = MaterialInfo.GetMaterialColor("mithril", "", 0); StatueName = ""; StatueColor = "Mithril"; break;

                case 11: Hue = MaterialInfo.GetMaterialColor("xormite", "", 0); StatueName = ""; StatueColor = "Xormite"; break;

                case 12: Hue = MaterialInfo.GetMaterialColor("obsidian", "", 0); StatueName = ""; StatueColor = "Obsidian"; break;

                case 13: Hue = MaterialInfo.GetMaterialColor("nepturite", "", 0); StatueName = ""; StatueColor = "Nepturite"; break;

                case 14: Hue = 0x966; StatueName = ""; StatueColor = "Black"; break;

                case 15: Hue = 0x9C2; StatueName = ""; StatueColor = "White"; break;

                case 16: Hue = 2500; StatueName = ""; StatueColor = "Stone"; break;

                case 17: Hue = 2001; StatueName = ""; StatueColor = "Green"; break;

                case 18: Hue = 0x845; StatueName = ""; StatueColor = "Red"; break;

                case 19: Hue = 0x1F4; StatueName = ""; StatueColor = "Blue"; break;

                case 20: Hue = 0x84C; StatueName = ""; StatueColor = "Sea"; break;
                }
            }
        }
コード例 #10
0
        public void HueMe()
        {
            switch (Hunger)
            {
            case 0:         Hue = MaterialInfo.GetMaterialColor("onyx", "monster", 0); break;

            case 1:         Hue = MaterialInfo.GetMaterialColor("quartz", "monster", 0); break;

            case 2:         Hue = MaterialInfo.GetMaterialColor("ruby", "monster", 0); break;

            case 3:         Hue = MaterialInfo.GetMaterialColor("sapphire", "monster", 0); break;

            case 4:         Hue = MaterialInfo.GetMaterialColor("spinel", "monster", 0); break;

            case 5:         Hue = MaterialInfo.GetMaterialColor("topaz", "monster", 0); break;

            case 6:         Hue = MaterialInfo.GetMaterialColor("amethyst", "monster", 0); break;

            case 7:         Hue = MaterialInfo.GetMaterialColor("emerald", "monster", 0); break;

            case 8:         Hue = MaterialInfo.GetMaterialColor("garnet", "monster", 0); break;

            case 9:         Hue = MaterialInfo.GetMaterialColor("silver", "monster", 0); break;

            case 10:        Hue = MaterialInfo.GetMaterialColor("star ruby", "monster", 0); break;

            case 11:        Hue = MaterialInfo.GetMaterialColor("jade", "monster", 0); break;

            case 12:        Hue = MaterialInfo.GetMaterialColor("copper", "monster", 0); break;

            case 13:        Hue = MaterialInfo.GetMaterialColor("verite", "monster", 0); break;

            case 14:        Hue = MaterialInfo.GetMaterialColor("valorite", "monster", 0); break;

            case 15:        Hue = MaterialInfo.GetMaterialColor("agapite", "monster", 0); break;

            case 16:        Hue = MaterialInfo.GetMaterialColor("bronze", "monster", 0); break;

            case 17:        Hue = MaterialInfo.GetMaterialColor("dull copper", "monster", 0); break;

            case 18:        Hue = MaterialInfo.GetMaterialColor("gold", "monster", 0); break;

            case 19:        Hue = MaterialInfo.GetMaterialColor("shadow iron", "monster", 0); break;

            case 20:        Hue = MaterialInfo.GetMaterialColor("mithril", "monster", 0); break;

            case 21:        Hue = MaterialInfo.GetMaterialColor("xormite", "monster", 0); break;

            case 22:        Hue = MaterialInfo.GetMaterialColor("obsidian", "monster", 0); break;

            case 23:        Hue = MaterialInfo.GetMaterialColor("nepturite", "monster", 0); break;
            }
        }
コード例 #11
0
        public override void OnAfterSpawn()
        {
            Hue = 0x430;             // Iron

            switch (Utility.RandomMinMax(0, 12))
            {
            case 0: Hue = MaterialInfo.GetMaterialColor("copper", "monster", 0); break;                     // Copper

            case 1: Hue = MaterialInfo.GetMaterialColor("verite", "monster", 0); break;                     // Verite

            case 2: Hue = MaterialInfo.GetMaterialColor("valorite", "monster", 0); break;                   // Valorite

            case 3: Hue = MaterialInfo.GetMaterialColor("agapite", "monster", 0); break;                    // Agapite

            case 4: Hue = MaterialInfo.GetMaterialColor("bronze", "monster", 0); break;                     // Bronze

            case 5: Hue = MaterialInfo.GetMaterialColor("dull copper", "monster", 0); break;                // Dull Copper

            case 6: Hue = MaterialInfo.GetMaterialColor("gold", "monster", 0); break;                       // Gold

            case 7: Hue = MaterialInfo.GetMaterialColor("shadow iron", "monster", 0); break;                // Shadow Iron

            case 8:
                if (Worlds.IsExploringSeaAreas(this) == true)
                {
                    Hue = MaterialInfo.GetMaterialColor("nepturite", "monster", 0);
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Serpent Island")
                {
                    Hue = MaterialInfo.GetMaterialColor("obsidian", "monster", 0);
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Underworld" && this.Map == Map.TerMur)
                {
                    Hue = MaterialInfo.GetMaterialColor("xormite", "monster", 0);
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Underworld")
                {
                    Hue = MaterialInfo.GetMaterialColor("mithril", "monster", 0);
                }
                break;                         // Special
            }

            base.OnAfterSpawn();
        }
コード例 #12
0
        public ValoriteElemental(int oreAmount) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            // TODO: Gas attack
            Name        = "a valorite elemental";
            Body        = 14;
            Hue         = MaterialInfo.GetMaterialColor("valorite", "monster", 0);
            BaseSoundID = 268;

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

            SetHits(136, 153);

            SetDamage(28);

            SetDamageType(ResistanceType.Physical, 25);
            SetDamageType(ResistanceType.Fire, 25);
            SetDamageType(ResistanceType.Cold, 25);
            SetDamageType(ResistanceType.Energy, 25);

            SetResistance(ResistanceType.Physical, 65, 75);
            SetResistance(ResistanceType.Fire, 50, 60);
            SetResistance(ResistanceType.Cold, 50, 60);
            SetResistance(ResistanceType.Poison, 50, 60);
            SetResistance(ResistanceType.Energy, 40, 50);

            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 = 38;

            Item ore = new ValoriteOre(oreAmount);

            ore.ItemID = 0x19B9;
            PackItem(ore);
        }
コード例 #13
0
        public MetalDragon() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = "a metallic dragon";
            Body        = 59;
            BaseSoundID = 362;
            Hue         = MaterialInfo.GetMaterialColor("copper", "monster", Hue);

            SetStr(796, 825);
            SetDex(86, 105);
            SetInt(436, 475);

            SetHits(478, 495);

            SetDamage(16, 22);

            SetDamageType(ResistanceType.Physical, 75);
            SetDamageType(ResistanceType.Fire, 25);

            SetResistance(ResistanceType.Physical, 55, 65);
            SetResistance(ResistanceType.Fire, 60, 70);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 25, 35);
            SetResistance(ResistanceType.Energy, 35, 45);

            SetSkill(SkillName.EvalInt, 30.1, 40.0);
            SetSkill(SkillName.Magery, 30.1, 40.0);
            SetSkill(SkillName.MagicResist, 99.1, 100.0);
            SetSkill(SkillName.Tactics, 97.6, 100.0);
            SetSkill(SkillName.Wrestling, 90.1, 92.5);

            Fame  = 15000;
            Karma = -15000;

            VirtualArmor = 60;

            Tamable      = true;
            ControlSlots = 3;
            MinTameSkill = 93.9;
        }
コード例 #14
0
        public BronzeElemental(int oreAmount) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            // TODO: Gas attack
            Name        = "a bronze elemental";
            Body        = 14;
            Hue         = MaterialInfo.GetMaterialColor("bronze", "monster", 0);
            BaseSoundID = 268;

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

            SetHits(136, 153);

            SetDamage(9, 16);

            SetDamageType(ResistanceType.Physical, 30);
            SetDamageType(ResistanceType.Fire, 70);

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

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

            Fame  = 5000;
            Karma = -5000;

            VirtualArmor = 29;

            Item ore = new BronzeOre(oreAmount);

            ore.ItemID = 0x19B9;
            PackItem(ore);
        }
コード例 #15
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);
        }
コード例 #16
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            if (this.Hue == MaterialInfo.GetMaterialColor("onyx", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "onyx scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("quartz", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "quartz scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("ruby", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "ruby scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("sapphire", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "sapphire scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("spinel", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "spinel scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("topaz", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "topaz scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("amethyst", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "amethyst scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("emerald", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "emerald scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("garnet", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "garnet scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("silver", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "silver scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("star ruby", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "star ruby scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("jade", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "jade scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("copper", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "copper scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("verite", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "verite scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("valorite", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "valorite scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("agapite", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "agapite scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("bronze", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "bronze scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("dull copper", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "dull copper scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("gold", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "gold scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("shadow iron", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "shadow iron scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("brass", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "brass scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("steel", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 3), "steel scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("mithril", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "mithril scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("xormite", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "xormite scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("obsidian", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "obsidian scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("nepturite", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(2, 4), "nepturite scales");
                c.DropItem(scale);
            }
        }
コード例 #17
0
            public LearnGraniteGump(Mobile from) : base(25, 25)
            {
                this.Closable   = true;
                this.Disposable = true;
                this.Dragable   = true;
                this.Resizable  = false;

                AddPage(0);

                AddImage(0, 430, 155);
                AddImage(300, 430, 155);
                AddImage(600, 430, 155);
                AddImage(0, 0, 155);
                AddImage(300, 0, 155);
                AddImage(0, 300, 155);
                AddImage(300, 300, 155);
                AddImage(600, 0, 155);
                AddImage(600, 300, 155);

                AddImage(2, 2, 129);
                AddImage(300, 2, 129);
                AddImage(598, 2, 129);
                AddImage(2, 298, 129);
                AddImage(302, 298, 129);
                AddImage(598, 298, 129);

                AddImage(6, 7, 133);
                AddImage(230, 46, 132);
                AddImage(530, 46, 132);
                AddImage(680, 7, 134);
                AddImage(598, 428, 129);
                AddImage(298, 428, 129);
                AddImage(2, 428, 129);
                AddImage(5, 484, 142);
                AddImage(329, 693, 140);
                AddImage(573, 693, 140);
                AddImage(856, 695, 143);

                AddItem(575, 122, 2859);
                AddItem(346, 120, 3898);
                AddItem(663, 131, 3854);
                AddItem(834, 101, 4632);
                AddItem(308, 122, 6009);
                AddItem(752, 130, 4787);
                AddItem(486, 131, 3718);

                AddHtml(170, 70, 600, 21, @"<BODY><BASEFONT Color=White><BIG>CRAFTING WITH SAND AND STONE</BIG></BASEFONT></BODY>", (bool)false, (bool)false);

                int i = 135;
                int o = 36;

                AddItem(100, i, 6011, 0);
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Regular</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("dull copper", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Dull Copper</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("shadow iron", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Shadow Iron</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("copper", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Copper</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("bronze", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Bronze Oak</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("gold", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Gold</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("agapite", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Agapite</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("verite", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Verite</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("valorite", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Valorite</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("nepturite", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Nepturite</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("obsidian", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Obsidian</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("mithril", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Mithril</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("xormite", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Xormite</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 6011, MaterialInfo.GetMaterialColor("dwarven", "classic", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Dwarven</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;

                AddHtml(303, 198, 573, 466, @"<BODY><BASEFONT Color=#FCFF00><BIG><br>Mining is the skill one needs to find granite within caves and mountains. With this granite, stone crafters can make stone furniture and statues. You simply need to get a pick axe or a shovel, double-click it, and then target a mountain side or caven floor. Although you will normally get regular granite, you will eventually get skilled enough to dig up other types of granite.<br><br>The many types of granite are listed here, but only their color makes them unique. So making a statue from shadow iron granite will make a blackened statue.<br><br>In order to make things from the granite, you need to first learn how to dig for it. Legends tell of the gargoyles, and how they can teach the likes of men these secrets. Then if you carpentry skill is good enough, you can begin crafting with a mallet and chisel.<br><br>Mining is also the skill one needs to find sand on beaches and desert sands. With this sand, glass blowers can make items such as bottles and jars. You simply need to get a pick axe or a shovel, double-click it, and then target a the sand at your feet. Sand comes in piles and an alchemist can use a blow pipe to create bottles, for example. This artful crafting is said to also be taught by the gargoyles.</BIG></BASEFONT></BODY>", (bool)false, (bool)false);
            }
コード例 #18
0
        public override void OnAfterSpawn()
        {
            bool IsChromatic = false;

            switch (Utility.RandomMinMax(0, 20))
            {
            case 0: Hue = MaterialInfo.GetMaterialColor("jade", "monster", 0); IsChromatic = true; break;       // jade

            case 1: Hue = MaterialInfo.GetMaterialColor("onyx", "monster", 0); IsChromatic = true; break;       // onyx

            case 2: Hue = MaterialInfo.GetMaterialColor("quartz", "monster", 0); IsChromatic = true; break;     // quartz

            case 3: Hue = MaterialInfo.GetMaterialColor("ruby", "monster", 0); IsChromatic = true; break;       // ruby

            case 4: Hue = MaterialInfo.GetMaterialColor("sapphire", "monster", 0); IsChromatic = true; break;   // sapphire

            case 5: Hue = MaterialInfo.GetMaterialColor("spinel", "monster", 0); IsChromatic = true; break;     // spinel

            case 6: Hue = MaterialInfo.GetMaterialColor("topaz", "monster", 0); IsChromatic = true; break;      // topaz

            case 7: Hue = MaterialInfo.GetMaterialColor("amethyst", "monster", 0); IsChromatic = true; break;   // amethyst

            case 8: Hue = MaterialInfo.GetMaterialColor("emerald", "monster", 0); IsChromatic = true; break;    // emerald

            case 9: Hue = MaterialInfo.GetMaterialColor("garnet", "monster", 0); IsChromatic = true; break;     // garnet

            case 10: Hue = MaterialInfo.GetMaterialColor("silver", "monster", 0); break;                        // silver

            case 11: Hue = MaterialInfo.GetMaterialColor("star ruby", "monster", 0); IsChromatic = true; break; // star ruby

            case 12: Hue = MaterialInfo.GetMaterialColor("copper", "monster", Hue); break;                      // Copper

            case 13: Hue = MaterialInfo.GetMaterialColor("verite", "monster", Hue); break;                      // Verite

            case 14: Hue = MaterialInfo.GetMaterialColor("valorite", "monster", Hue); break;                    // Valorite

            case 15: Hue = MaterialInfo.GetMaterialColor("agapite", "monster", Hue); break;                     // Agapite

            case 16: Hue = MaterialInfo.GetMaterialColor("bronze", "monster", Hue); break;                      // Bronze

            case 17: Hue = MaterialInfo.GetMaterialColor("dull copper", "monster", Hue); break;                 // Dull Copper

            case 18: Hue = MaterialInfo.GetMaterialColor("gold", "monster", Hue); break;                        // Gold

            case 19: Hue = MaterialInfo.GetMaterialColor("shadow iron", "monster", Hue); break;                 // Shadow Iron

            case 20:
                if (Worlds.IsExploringSeaAreas(this) == true)
                {
                    Hue = MaterialInfo.GetMaterialColor("nepturite", "monster", 0);
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Savaged Empire")
                {
                    Hue = MaterialInfo.GetMaterialColor("steel", "monster", Hue);
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Serpent Island")
                {
                    Hue = MaterialInfo.GetMaterialColor("obsidian", "monster", Hue);
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Island of Umber Veil")
                {
                    Hue = MaterialInfo.GetMaterialColor("brass", "monster", Hue);
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Underworld" && this.Map == Map.TerMur)
                {
                    Hue = MaterialInfo.GetMaterialColor("xormite", "monster", Hue);
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Underworld")
                {
                    Hue = MaterialInfo.GetMaterialColor("copper", "mithril", Hue);
                }
                break;                         // Special
            }

            if (IsChromatic)
            {
                this.Name = "a chromatic dragon";
            }

            base.OnAfterSpawn();
        }
コード例 #19
0
ファイル: Reaper.cs プロジェクト: slawdis/uoodyssey-scripts
        public Reaper() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = "a reaper";
            Body        = 47;
            BaseSoundID = 442;

            SetDamageType(ResistanceType.Physical, 80);
            SetDamageType(ResistanceType.Poison, 20);

            SetResistance(ResistanceType.Physical, 35, 45);
            SetResistance(ResistanceType.Fire, 15, 25);
            SetResistance(ResistanceType.Cold, 10, 20);
            SetResistance(ResistanceType.Poison, 40, 50);
            SetResistance(ResistanceType.Energy, 30, 40);

            SetSkill(SkillName.EvalInt, 90.1, 100.0);
            SetSkill(SkillName.Magery, 90.1, 100.0);
            SetSkill(SkillName.MagicResist, 100.1, 125.0);
            SetSkill(SkillName.Tactics, 45.1, 60.0);
            SetSkill(SkillName.Wrestling, 50.1, 60.0);

            Fame  = 3500;
            Karma = -3500;

            VirtualArmor = 40;

            PackItem(new MandrakeRoot(5));

            int modifySta = 0;
            int modifyHit = 0;
            int modifyDmg = 0;

            switch (Utility.Random(11))
            {
            case 0: PackItem(new Log(Utility.RandomMinMax(10, 20)));                  Hue = 0x000;    break;

            case 1: PackItem(new AshLog(Utility.RandomMinMax(10, 20)));               Hue = MaterialInfo.GetMaterialColor("ash", "", 0);            modifySta = 5;  modifyHit = 10;         modifyDmg = 1;  break;

            case 2: PackItem(new CherryLog(Utility.RandomMinMax(10, 20)));    Hue = MaterialInfo.GetMaterialColor("cherry", "", 0);         modifySta = 10; modifyHit = 20;         modifyDmg = 2;  break;

            case 3: PackItem(new EbonyLog(Utility.RandomMinMax(10, 20)));     Hue = MaterialInfo.GetMaterialColor("ebony", "", 0);          modifySta = 15; modifyHit = 30;         modifyDmg = 3;  break;

            case 4: PackItem(new GoldenOakLog(Utility.RandomMinMax(10, 20))); Hue = MaterialInfo.GetMaterialColor("golden oak", "", 0);     modifySta = 20; modifyHit = 40;         modifyDmg = 4;  break;

            case 5: PackItem(new HickoryLog(Utility.RandomMinMax(10, 20)));   Hue = MaterialInfo.GetMaterialColor("hickory", "", 0);        modifySta = 25; modifyHit = 50;         modifyDmg = 5;  break;

            case 6: PackItem(new MahoganyLog(Utility.RandomMinMax(10, 20)));  Hue = MaterialInfo.GetMaterialColor("mahogany", "", 0);       modifySta = 30; modifyHit = 60;         modifyDmg = 6;  break;

            case 7: PackItem(new OakLog(Utility.RandomMinMax(10, 20)));               Hue = MaterialInfo.GetMaterialColor("oak", "", 0);            modifySta = 35; modifyHit = 70;         modifyDmg = 7;  break;

            case 8: PackItem(new PineLog(Utility.RandomMinMax(10, 20)));              Hue = MaterialInfo.GetMaterialColor("pine", "", 0);           modifySta = 40; modifyHit = 80;         modifyDmg = 8;  break;

            case 9: PackItem(new RosewoodLog(Utility.RandomMinMax(10, 20)));  Hue = MaterialInfo.GetMaterialColor("rosewood", "", 0);       modifySta = 45; modifyHit = 90;         modifyDmg = 9;  break;

            case 10: PackItem(new WalnutLog(Utility.RandomMinMax(10, 20)));   Hue = MaterialInfo.GetMaterialColor("walnut", "", 0);         modifySta = 50; modifyHit = 100;        modifyDmg = 10; break;
            }

            SetStr((66 + modifySta), (215 + modifySta));
            SetDex((66 + modifySta), (75 + modifySta));
            SetInt((101 + modifySta), (250 + modifySta));

            SetHits((40 + modifyHit), (129 + modifyHit));
            SetStam(0);

            SetDamage((9 + modifyDmg), (11 + modifyDmg));

            if (Utility.Random(100) > 60)
            {
                int seed_to_give = Utility.Random(100);

                if (seed_to_give > 90)
                {
                    PlantType type;
                    switch (Utility.Random(17))
                    {
                    case 0: type = PlantType.CampionFlowers; break;

                    case 1: type = PlantType.Poppies; break;

                    case 2: type = PlantType.Snowdrops; break;

                    case 3: type = PlantType.Bulrushes; break;

                    case 4: type = PlantType.Lilies; break;

                    case 5: type = PlantType.PampasGrass; break;

                    case 6: type = PlantType.Rushes; break;

                    case 7: type = PlantType.ElephantEarPlant; break;

                    case 8: type = PlantType.Fern; break;

                    case 9: type = PlantType.PonytailPalm; break;

                    case 10: type = PlantType.SmallPalm; break;

                    case 11: type = PlantType.CenturyPlant; break;

                    case 12: type = PlantType.WaterPlant; break;

                    case 13: type = PlantType.SnakePlant; break;

                    case 14: type = PlantType.PricklyPearCactus; break;

                    case 15: type = PlantType.BarrelCactus; break;

                    default: type = PlantType.TribarrelCactus; break;
                    }
                    PlantHue hue;
                    switch (Utility.Random(4))
                    {
                    case 0: hue = PlantHue.Pink; break;

                    case 1: hue = PlantHue.Magenta; break;

                    case 2: hue = PlantHue.FireRed; break;

                    default: hue = PlantHue.Aqua; break;
                    }

                    PackItem(new Seed(type, hue, false));
                }
                else if (seed_to_give > 70)
                {
                    PackItem(Engines.Plants.Seed.RandomPeculiarSeed(Utility.RandomMinMax(1, 4)));
                }
                else if (seed_to_give > 40)
                {
                    PackItem(Engines.Plants.Seed.RandomBonsaiSeed());
                }
                else
                {
                    PackItem(new Engines.Plants.Seed());
                }
            }
        }
コード例 #20
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            string metal = "Iron";

            if (this.Hue == MaterialInfo.GetMaterialColor("onyx", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "onyx scales");
                c.DropItem(scale);
                metal = "Onyx";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("quartz", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "quartz scales");
                c.DropItem(scale);
                metal = "Quartz";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("ruby", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "ruby scales");
                c.DropItem(scale);
                metal = "Ruby";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("sapphire", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "sapphire scales");
                c.DropItem(scale);
                metal = "Sapphire";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("spinel", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "spinel scales");
                c.DropItem(scale);
                metal = "Spinel";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("topaz", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "topaz scales");
                c.DropItem(scale);
                metal = "Topaz";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("amethyst", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "amethyst scales");
                c.DropItem(scale);
                metal = "Amethyst";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("emerald", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "emerald scales");
                c.DropItem(scale);
                metal = "Emerald";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("garnet", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "garnet scales");
                c.DropItem(scale);
                metal = "Garnet";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("silver", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "silver scales");
                c.DropItem(scale);
                metal = "Silver";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("star ruby", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "star ruby scales");
                c.DropItem(scale);
                metal = "Star Ruby";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("jade", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "jade scales");
                c.DropItem(scale);
                metal = "Jade";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("copper", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "copper scales");
                c.DropItem(scale);
                metal = "Copper";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("verite", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "verite scales");
                c.DropItem(scale);
                metal = "Verite";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("valorite", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "valorite scales");
                c.DropItem(scale);
                metal = "Valorite";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("agapite", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "agapite scales");
                c.DropItem(scale);
                metal = "Agapite";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("bronze", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "bronze scales");
                c.DropItem(scale);
                metal = "Bronze";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("dull copper", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "dull copper scales");
                c.DropItem(scale);
                metal = "Dull Copper";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("gold", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "gold scales");
                c.DropItem(scale);
                metal = "Golden";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("shadow iron", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "shadow iron scales");
                c.DropItem(scale);
                metal = "Shadow Iron";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("brass", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "brass scales");
                c.DropItem(scale);
                metal = "Brass";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("steel", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "steel scales");
                c.DropItem(scale);
                metal = "Steel";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("mithril", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "mithril scales");
                c.DropItem(scale);
                metal = "Mithril";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("xormite", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "xormite scales");
                c.DropItem(scale);
                metal = "Xormite";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("obsidian", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "obsidian scales");
                c.DropItem(scale);
                metal = "Obsidian";
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("nepturite", "monster", Hue))
            {
                Item scale = new HardScales(Utility.RandomMinMax(10, 50), "nepturite scales");
                c.DropItem(scale);
                metal = "Nepturite";
            }

            Mobile killer = this.LastKiller;

            if (killer != null)
            {
                if (killer is BaseCreature)
                {
                    killer = ((BaseCreature)killer).GetMaster();
                }

                if (killer is PlayerMobile)
                {
                    if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 25) == 1)
                    {
                        DragonLamp lamp = new DragonLamp();
                        lamp.Hue       = this.Hue;
                        lamp.LampName  = "";
                        lamp.LampColor = metal;
                        c.DropItem(lamp);
                    }
                }
            }
        }
コード例 #21
0
        public MagicalDyes(int amount) : base(0xF7D)
        {
            Weight    = 0.01;
            Stackable = true;
            Amount    = amount;

            switch (Utility.RandomMinMax(0, 80))
            {
            case 0: Hue = 0x483; Name = "magical dye ( dark green )"; break;

            case 1: Hue = 0x484; Name = "magical dye ( dark blue )"; break;

            case 2: Hue = 0x485; Name = "magical dye ( dark red )"; break;

            case 3: Hue = 0x486; Name = "magical dye ( dark purple )"; break;

            case 4: Hue = 0x487; Name = "magical dye ( dark yellow )"; break;

            case 5: Hue = 0x488; Name = "magical dye ( dark bluegreen )"; break;

            case 6: Hue = 0x48A; Name = "magical dye ( blue green )"; break;

            case 7: Hue = 0x48B; Name = "magical dye ( purple green )"; break;

            case 8: Hue = 0x48C; Name = "magical dye ( green blue )"; break;

            case 9: Hue = 0x493; Name = "magical dye ( green purple )"; break;

            case 10: Hue = 0x494; Name = "magical dye ( blue red )"; break;

            case 11: Hue = 0x495; Name = "magical dye ( bright blue )"; break;

            case 12: Hue = 0x497; Name = "magical dye ( darkness )"; break;

            case 13: Hue = 0x498; Name = "magical dye ( blue darkness )"; break;

            case 14: Hue = 0x2EF; Name = "magical dye ( colorless )"; break;

            case 15: Hue = 0x47E; Name = "magical dye ( winter snow )"; break;

            case 16: Hue = 0x47F; Name = "magical dye ( winter ice )"; break;

            case 17: Hue = 0x480; Name = "magical dye ( solid ice )"; break;

            case 18: Hue = 0x481; Name = "magical dye ( snow white )"; break;

            case 19: Hue = 0x482; Name = "magical dye ( dark snow )"; break;

            case 20: Hue = 0x4AB; Name = "magical dye ( frost )"; break;

            case 21: Hue = 0xB83; Name = "magical dye ( jade )"; break;

            case 22: Hue = 0xB93; Name = "magical dye ( darker jade )"; break;

            case 23: Hue = 0xB94; Name = "magical dye ( dark jade )"; break;

            case 24: Hue = 0xB95; Name = "magical dye ( medium jade )"; break;

            case 25: Hue = 0xB96; Name = "magical dye ( light jade )"; break;

            case 26: Hue = 0x48F; Name = "magical dye ( green light )"; break;

            case 27: Hue = 0x490; Name = "magical dye ( purple light )"; break;

            case 28: Hue = 0x491; Name = "magical dye ( brown light )"; break;

            case 29: Hue = 0x48D; Name = "magical dye ( ice light )"; break;

            case 30: Hue = 0x48E; Name = "magical dye ( fire light )"; break;

            case 31: Hue = 0x499; Name = "magical dye ( gold )"; break;

            case 32: Hue = 0x4AA; Name = "magical dye ( rose red )"; break;

            case 33: Hue = 0x4AC; Name = "magical dye ( sun )"; break;

            case 34: Hue = 0x489; Name = "magical dye ( fire )"; break;

            case 35: Hue = 0x496; Name = "magical dye ( blaze )"; break;

            case 36: Hue = 0x492; Name = "magical dye ( slickness )"; break;

            case 37: Hue = 0x7E3; Name = "magical dye ( nightmare )"; break;

            case 38: Hue = 0x1;   Name = "magical dye ( pitch black )"; break;

            case 39: Hue = 0x81C; Name = "magical dye ( moonlight )"; break;

            case 40: Hue = 0x81B; Name = "magical dye ( dark nights )"; break;

            case 41: Hue = 0xB97; Name = "magical dye ( necrotic flesh )"; break;

            case 42: Hue = 0x6F3; Name = "magical dye ( bloody hell )"; break;

            case 43: Hue = 0xB85; Name = "magical dye ( bloodstone )"; break;

            case 44: Hue = 0x5B5; Name = "magical dye ( dark blood )"; break;

            case 45: Hue = 0x9C2; Name = "magical dye ( ghostly )"; break;

            case 46: Hue = 0x9C3; Name = "magical dye ( ghostly bright )"; break;

            case 47: Hue = MaterialInfo.GetMaterialColor("dull copper", "", 0); Name = "magical dye ( dull copper metal )"; break;

            case 48: Hue = MaterialInfo.GetMaterialColor("shadow iron", "", 0); Name = "magical dye ( shadow iron metal )"; break;

            case 49: Hue = MaterialInfo.GetMaterialColor("copper", "", 0); Name = "magical dye ( copper metal )"; break;

            case 50: Hue = MaterialInfo.GetMaterialColor("bronze", "", 0); Name = "magical dye ( bronze metal )"; break;

            case 51: Hue = MaterialInfo.GetMaterialColor("gold", "", 0); Name = "magical dye ( gold metal )"; break;

            case 52: Hue = MaterialInfo.GetMaterialColor("agapite", "", 0); Name = "magical dye ( agapite metal )"; break;

            case 53: Hue = MaterialInfo.GetMaterialColor("verite", "", 0); Name = "magical dye ( verite metal )"; break;

            case 54: Hue = MaterialInfo.GetMaterialColor("valorite", "", 0); Name = "magical dye ( valorite metal )"; break;

            case 55: Hue = MaterialInfo.GetMaterialColor("steel", "", 0); Name = "magical dye ( steel metal )"; break;

            case 56: Hue = MaterialInfo.GetMaterialColor("brass", "", 0); Name = "magical dye ( brass metal )"; break;

            case 57: Hue = MaterialInfo.GetMaterialColor("mithril", "", 0); Name = "magical dye ( mithril metal )"; break;

            case 58: Hue = MaterialInfo.GetMaterialColor("obsidian", "", 0); Name = "magical dye ( obsidian metal )"; break;

            case 59: Hue = MaterialInfo.GetMaterialColor("nepturite", "", 0); Name = "magical dye ( nepturite metal )"; break;

            case 60: Hue = MaterialInfo.GetMaterialColor("deep sea", "", 0); Name = "magical dye ( deep sea skin )"; break;

            case 61: Hue = MaterialInfo.GetMaterialColor("lizard", "", 0); Name = "magical dye ( lizard skin )"; break;

            case 62: Hue = MaterialInfo.GetMaterialColor("serpent", "", 0); Name = "magical dye ( serpent skin )"; break;

            case 63: Hue = MaterialInfo.GetMaterialColor("necrotic", "", 0); Name = "magical dye ( necrotic skin )"; break;

            case 64: Hue = MaterialInfo.GetMaterialColor("volcanic", "", 0); Name = "magical dye ( volcanic skin )"; break;

            case 65: Hue = MaterialInfo.GetMaterialColor("frozen", "", 0); Name = "magical dye ( frozen skin )"; break;

            case 66: Hue = MaterialInfo.GetMaterialColor("goliath", "", 0); Name = "magical dye ( goliath skin )"; break;

            case 67: Hue = MaterialInfo.GetMaterialColor("draconic", "", 0); Name = "magical dye ( draconic skin )"; break;

            case 68: Hue = MaterialInfo.GetMaterialColor("hellish", "", 0); Name = "magical dye ( hellish skin )"; break;

            case 69: Hue = MaterialInfo.GetMaterialColor("dinosaur", "", 0); Name = "magical dye ( dinosaur skin )"; break;

            case 70: Hue = MaterialInfo.GetMaterialColor("ash", "", 0); Name = "magical dye ( ash wood )"; break;

            case 71: Hue = MaterialInfo.GetMaterialColor("cherry", "", 0); Name = "magical dye ( cherry wood )"; break;

            case 72: Hue = MaterialInfo.GetMaterialColor("ebony", "", 0); Name = "magical dye ( ebony wood )"; break;

            case 73: Hue = MaterialInfo.GetMaterialColor("gold", "", 0); Name = "magical dye ( golden oak wood )"; break;

            case 74: Hue = MaterialInfo.GetMaterialColor("hickory", "", 0); Name = "magical dye ( hickory wood )"; break;

            case 75: Hue = MaterialInfo.GetMaterialColor("mahogany", "", 0); Name = "magical dye ( mahogany wood )"; break;

            case 76: Hue = MaterialInfo.GetMaterialColor("oak", "", 0); Name = "magical dye ( oak wood )"; break;

            case 77: Hue = MaterialInfo.GetMaterialColor("pine", "", 0); Name = "magical dye ( pine wood )"; break;

            case 78: Hue = MaterialInfo.GetMaterialColor("rosewood", "", 0); Name = "magical dye ( rosewood wood )"; break;

            case 79: Hue = MaterialInfo.GetMaterialColor("walnut", "", 0); Name = "magical dye ( walnut wood )"; break;

            case 80: Hue = MaterialInfo.GetMaterialColor("driftwood", "", 0); Name = "magical dye ( driftwood wood )"; break;
            }
        }
コード例 #22
0
        public AnyElemental() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = "a grue";
            BaseSoundID = 0x56F;
            Body        = 142;

            switch (Utility.RandomMinMax(1, 10))
            {
            case 1:         RealName = "an iron grue"; break;

            case 2:         RealName = "a golden grue"; break;

            case 3:         RealName = "a shadow iron grue"; break;

            case 4:         RealName = "a valorite grue"; break;

            case 5:         RealName = "a verite grue"; break;

            case 6:         RealName = "an agapite grue"; break;

            case 7:         RealName = "a bronze grue"; break;

            case 8:         RealName = "a copper grue"; break;

            case 9:         RealName = "a dull copper grue"; break;

            case 10:        RealName = "a stone grue"; break;
            }

            if (RealName == "an iron grue")
            {
                Hue = 0x430;

                SetStr(126, 155);
                SetDex(66, 85);
                SetInt(71, 92);

                SetHits(76, 93);

                SetDamage(9, 16);

                SetDamageType(ResistanceType.Physical, 100);

                SetResistance(ResistanceType.Physical, 30, 35);
                SetResistance(ResistanceType.Fire, 10, 20);
                SetResistance(ResistanceType.Cold, 10, 20);
                SetResistance(ResistanceType.Poison, 15, 25);
                SetResistance(ResistanceType.Energy, 15, 25);

                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 = 34;
            }
            else if (RealName == "a golden grue")
            {
                Hue = MaterialInfo.GetMaterialColor("gold", "monster", 0);

                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;
            }
            else if (RealName == "a shadow iron grue")
            {
                Hue = MaterialInfo.GetMaterialColor("shadow iron", "monster", 0);

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

                SetHits(136, 153);

                SetDamage(9, 16);

                SetDamageType(ResistanceType.Physical, 100);

                SetResistance(ResistanceType.Physical, 30, 40);
                SetResistance(ResistanceType.Fire, 30, 40);
                SetResistance(ResistanceType.Cold, 20, 30);
                SetResistance(ResistanceType.Poison, 10, 20);
                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  = 4500;
                Karma = -4500;

                VirtualArmor = 23;
            }
            else if (RealName == "a valorite grue")
            {
                Hue = MaterialInfo.GetMaterialColor("valorite", "monster", 0);

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

                SetHits(136, 153);

                SetDamage(28);

                SetDamageType(ResistanceType.Physical, 25);
                SetDamageType(ResistanceType.Fire, 25);
                SetDamageType(ResistanceType.Cold, 25);
                SetDamageType(ResistanceType.Energy, 25);

                SetResistance(ResistanceType.Physical, 65, 75);
                SetResistance(ResistanceType.Fire, 50, 60);
                SetResistance(ResistanceType.Cold, 50, 60);
                SetResistance(ResistanceType.Poison, 50, 60);
                SetResistance(ResistanceType.Energy, 40, 50);

                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 = 38;
            }
            else if (RealName == "a verite grue")
            {
                Hue = MaterialInfo.GetMaterialColor("verite", "monster", 0);

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

                SetHits(136, 153);

                SetDamage(9, 16);

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

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

                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 = 35;
            }
            else if (RealName == "an agapite grue")
            {
                Hue = MaterialInfo.GetMaterialColor("agapite", "monster", 0);

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

                SetHits(136, 153);

                SetDamage(28);

                SetDamageType(ResistanceType.Physical, 100);

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

                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 = 32;
            }
            else if (RealName == "a bronze grue")
            {
                Hue = MaterialInfo.GetMaterialColor("bronze", "monster", 0);

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

                SetHits(136, 153);

                SetDamage(9, 16);

                SetDamageType(ResistanceType.Physical, 30);
                SetDamageType(ResistanceType.Fire, 70);

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

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

                Fame  = 5000;
                Karma = -5000;

                VirtualArmor = 29;
            }
            else if (RealName == "a copper grue")
            {
                Hue = MaterialInfo.GetMaterialColor("copper", "monster", 0);

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

                SetHits(136, 153);

                SetDamage(9, 16);

                SetDamageType(ResistanceType.Physical, 100);

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

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

                Fame  = 4800;
                Karma = -4800;

                VirtualArmor = 26;
            }
            else if (RealName == "a dull copper grue")
            {
                Hue = MaterialInfo.GetMaterialColor("dull copper", "monster", 0);

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

                SetHits(136, 153);

                SetDamage(9, 16);

                SetDamageType(ResistanceType.Physical, 100);

                SetResistance(ResistanceType.Physical, 30, 40);
                SetResistance(ResistanceType.Fire, 30, 40);
                SetResistance(ResistanceType.Cold, 10, 20);
                SetResistance(ResistanceType.Poison, 20, 30);
                SetResistance(ResistanceType.Energy, 20, 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;

                VirtualArmor = 20;
            }
            else if (RealName == "a stone grue")
            {
                Hue = 0x31C;

                SetStr(126, 155);
                SetDex(66, 85);
                SetInt(71, 92);

                SetHits(76, 93);

                SetDamage(9, 16);

                SetDamageType(ResistanceType.Physical, 100);

                SetResistance(ResistanceType.Physical, 30, 35);
                SetResistance(ResistanceType.Fire, 10, 20);
                SetResistance(ResistanceType.Cold, 10, 20);
                SetResistance(ResistanceType.Poison, 15, 25);
                SetResistance(ResistanceType.Energy, 15, 25);

                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 = 34;
            }
        }
コード例 #23
0
        public MetalGolem() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.4, 0.8)
        {
            Name = "a construct";
            Body = 752;

            Item ore = new CopperIngot(Utility.RandomMinMax(13, 21)); ore.Delete();

            double scalar = 1.0;

            switch (Utility.Random(10))
            {
            case 0: ore = new IronIngot(Utility.RandomMinMax(13, 21)); Hue = 0x430; scalar = 1.0; RealName = "an iron construct"; break;                                                                  // Iron

            case 1: ore = new DullCopperIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("dull copper", "monster", 0); scalar = 1.1; RealName = "a dull copper construct"; break; // Dull Copper

            case 2: ore = new ShadowIronIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("shadow iron", "monster", 0); scalar = 1.2; RealName = "a shadow iron construct"; break; // Shadow Iron

            case 3: ore = new CopperIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("copper", "monster", 0); scalar = 1.3; RealName = "a copper construct"; break;               // Copper

            case 4: ore = new BronzeIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("bronze", "monster", 0); scalar = 1.4; RealName = "a bronze construct"; break;               // Bronze

            case 5: ore = new GoldIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("gold", "monster", 0); scalar = 1.5; RealName = "a golden construct"; break;                   // Gold

            case 6: ore = new AgapiteIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("agapite", "monster", 0); scalar = 1.6; RealName = "an agapite construct"; break;           // Agapite

            case 7: ore = new VeriteIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("verite", "monster", 0); scalar = 1.7; RealName = "a verite construct"; break;               // Verite

            case 8: ore = new ValoriteIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("valorite", "monster", 0); scalar = 1.8; RealName = "a valorite construct"; break;         // Valorite

            case 9:
                if (Worlds.IsExploringSeaAreas(this) == true)
                {
                    ore = new NepturiteIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("nepturite", "monster", 0); scalar = 1.9; RealName = "a nepturite construct";
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Serpent Island")
                {
                    ore = new ObsidianIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("obsidian", "monster", 0); scalar = 1.9; RealName = "an obsidian construct";
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Underworld" && this.Map == Map.TerMur)
                {
                    ore = new XormiteIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("xormite", "monster", 0); scalar = 2.0; RealName = "a xormite construct";
                }
                else if (Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y) == "the Underworld")
                {
                    ore = new MithrilIngot(Utility.RandomMinMax(13, 21)); Hue = MaterialInfo.GetMaterialColor("mithril", "monster", 0); scalar = 2.1; RealName = "a mithril construct";
                }
                else
                {
                    ore = new IronIngot(Utility.RandomMinMax(13, 21)); Hue = 0x430; scalar = 1.0; RealName = "an iron construct";
                }
                break;                         // Special
            }

            PackItem(ore);


            SetStr((int)(251 * scalar), (int)(350 * scalar));
            SetDex((int)(76 * scalar), (int)(100 * scalar));
            SetInt((int)(101 * scalar), (int)(150 * scalar));

            SetHits((int)(151 * scalar), (int)(210 * scalar));

            SetDamage((int)(13 * scalar), (int)(24 * scalar));

            SetDamageType(ResistanceType.Physical, 100);

            SetResistance(ResistanceType.Physical, (int)(35 * scalar), (int)(55 * scalar));

            SetResistance(ResistanceType.Fire, (int)(100 * scalar));

            SetResistance(ResistanceType.Cold, (int)(10 * scalar), (int)(30 * scalar));
            SetResistance(ResistanceType.Poison, 100);
            SetResistance(ResistanceType.Energy, (int)(30 * scalar), (int)(40 * scalar));

            SetSkill(SkillName.MagicResist, (150.1 * scalar), (190.0 * scalar));
            SetSkill(SkillName.Tactics, (60.1 * scalar), (100.0 * scalar));
            SetSkill(SkillName.Wrestling, (60.1 * scalar), (100.0 * scalar));

            Fame  = (int)(3500 * scalar);
            Karma = (int)(-3500 * scalar);

            if (0.1 > Utility.RandomDouble())
            {
                PackItem(new PowerCrystal());
            }

            if (0.15 > Utility.RandomDouble())
            {
                PackItem(new ClockworkAssembly());
            }

            if (0.2 > Utility.RandomDouble())
            {
                PackItem(new ArcaneGem());
            }

            if (0.25 > Utility.RandomDouble())
            {
                PackItem(new Gears(Utility.RandomMinMax(1, 5)));
            }

            if (0.25 > Utility.RandomDouble())
            {
                PackItem(new BottleOil(Utility.RandomMinMax(1, 5)));
            }
        }
コード例 #24
0
            public LearnLeatherGump(Mobile from) : base(25, 25)
            {
                this.Closable   = true;
                this.Disposable = true;
                this.Dragable   = true;
                this.Resizable  = false;

                AddPage(0);

                AddImage(0, 430, 155);
                AddImage(300, 430, 155);
                AddImage(600, 430, 155);
                AddImage(0, 0, 155);
                AddImage(300, 0, 155);
                AddImage(0, 300, 155);
                AddImage(300, 300, 155);
                AddImage(600, 0, 155);
                AddImage(600, 300, 155);

                AddImage(2, 2, 129);
                AddImage(300, 2, 129);
                AddImage(598, 2, 129);
                AddImage(2, 298, 129);
                AddImage(302, 298, 129);
                AddImage(598, 298, 129);

                AddImage(6, 7, 133);
                AddImage(230, 46, 132);
                AddImage(530, 46, 132);
                AddImage(680, 7, 134);
                AddImage(598, 428, 129);
                AddImage(298, 428, 129);
                AddImage(2, 428, 129);
                AddImage(5, 484, 142);
                AddImage(329, 693, 140);
                AddImage(573, 693, 140);
                AddImage(856, 695, 143);

                AddItem(717, 121, 5068);
                AddItem(409, 129, 3921);
                AddItem(506, 124, 3998);
                AddItem(616, 120, 19585);
                AddItem(308, 114, 4216);
                AddItem(833, 109, 4219);

                AddHtml(170, 70, 600, 21, @"<BODY><BASEFONT Color=#FBFBFB><BIG>INFORMATION ON VARIOUS TYPES OF LEATHER</BIG></BASEFONT></BODY>", (bool)false, (bool)false);

                int i = 135;
                int o = 42;

                AddItem(100, i, 4199, 0);
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Regular</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("deep sea", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Deep Sea</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("lizard", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Lizard</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("serpent", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Serpent</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("necrotic", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Necrotic</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("volcanic", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Volcanic</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("frozen", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Frozen</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("goliath", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Goliath</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("draconic", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Draconic</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("hellish", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Hellish</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("dinosaur", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Dinosaur</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 4199, MaterialInfo.GetMaterialColor("alien", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Alien</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;

                AddHtml(303, 198, 573, 466, @"<BODY><BASEFONT Color=#FCFF00><BIG><br>There are various types of hides you may acquire from skinning creatures throughout the land. For some examples - snakes have serpent hides, lizardmen have lizard hides, sea serpents have deep sea hides, polar bears have frozen hides, lava lizards have volcanic hides, dragons have draconic hides, zombies have necrotic hides, demons have hellish hides, and giants have goliath hides. Each type of hide is different in color, but also has various levels of protection when creating clothing with it.<br><br>The many types of leather are listed here, starting up and then going down to higher quality leather. Making a tunic out of draconic leather will be a much better tunic than one made of lizard leather, for example. <br><br>A tailor would need a certain skill level to work with each of these types of leather. Hides can be obtained from skinning certain creatures by double clickin a bladed weapon and then targeting a corpse. These hides can then be cut with scissors and made into sheets of leather. Then a sewing kit can be used to craft the leather into various armor and bags.</BIG></BASEFONT></BODY>", (bool)false, (bool)false);
            }
コード例 #25
0
        public override void OnDoubleClick(Mobile from)
        {
            if (from.Blessed)
            {
                from.SendMessage("You cannot look through that while in this state.");
            }
            else if (!from.InRange(GetWorldLocation(), 3))
            {
                from.SendMessage("You will have to get closer to it!");
            }
            else if (m_Uses < 5)
            {
                m_Uses++;
                if (Server.Misc.GetPlayerInfo.LuckyPlayer(from.Luck) && Utility.RandomBool())
                {
                    m_Uses--;
                }

                from.PlaySound(0x2E5);
                from.SendMessage("You pull something from the treasure hoard!");

                Item item = null;

                switch (Utility.Random(17))
                {
                case 0:
                    item = Loot.RandomArty();
                    break;

                case 1:
                    item = DungeonLoot.RandomSlayer();
                    break;

                case 2:
                    item = Loot.RandomSArty();
                    break;

                case 3:
                    if (Server.Misc.GetPlayerInfo.EvilPlay(from) == true && Utility.RandomMinMax(0, 10) == 10)
                    {
                        item = DungeonLoot.RandomEvil();
                    }
                    else
                    {
                        item = Loot.RandomRelic();
                        if (item is DDRelicWeapon && Server.Misc.GetPlayerInfo.OrientalPlay(from) == true)
                        {
                            Server.Items.DDRelicWeapon.MakeOriental(item);
                        }
                        else if (item is DDRelicStatue && Server.Misc.GetPlayerInfo.OrientalPlay(from) == true)
                        {
                            Server.Items.DDRelicStatue.MakeOriental(item);
                        }
                        else if (item is DDRelicBanner && item.ItemID != 0x2886 && item.ItemID != 0x2887 && Server.Misc.GetPlayerInfo.OrientalPlay(from) == true)
                        {
                            Server.Items.DDRelicBanner.MakeOriental(item);
                        }
                    }
                    break;

                case 4:
                    item = DungeonLoot.RandomRare();
                    if (item.Stackable == true)
                    {
                        item.Amount = Utility.RandomMinMax(5, 20);
                    }
                    break;

                case 5:
                    item = DungeonLoot.RandomLoreBooks();
                    break;

                case 6:
                    if (Utility.Random(4) != 1)
                    {
                        item = Loot.RandomScroll(0, 7, SpellbookType.Regular);
                    }
                    else
                    {
                        item = Loot.RandomScroll(0, 17, SpellbookType.Necromancer);
                    }
                    break;

                case 7:
                    int luckMod = from.Luck; if (luckMod > 2000)
                    {
                        luckMod = 2000;
                    }

                    if ((Region.Find(from.Location, from.Map)).IsPartOf("the Ancient Crash Site") ||
                        (Region.Find(from.Location, from.Map)).IsPartOf("the Ancient Sky Ship"))
                    {
                        item = new DDXormite((luckMod + Utility.RandomMinMax(333, 666)));
                    }
                    else if (Worlds.GetMyWorld(from.Map, from.Location, from.X, from.Y) == "the Mines of Morinia")
                    {
                        item = new Crystals((luckMod + Utility.RandomMinMax(200, 400)));
                    }
                    else if (Worlds.GetMyWorld(from.Map, from.Location, from.X, from.Y) == "the Underworld")
                    {
                        item = new DDJewels((luckMod + Utility.RandomMinMax(500, 1000)));
                    }
                    else
                    {
                        item = new Gold((luckMod + Utility.RandomMinMax(1000, 2000)));
                    }
                    break;

                case 8:
                case 9:
                case 10:
                case 11:
                    item = Loot.RandomArmorOrShieldOrWeaponOrJewelry(Server.LootPackEntry.IsInIslesDread(from));
                    ContainerFunctions.LootMutate(from, Server.LootPack.GetRegularLuckChance(from), item, from.Backpack, Utility.RandomMinMax(5, 10));
                    break;

                case 12:
                    item = Loot.RandomInstrument();

                    int attributeCount;
                    int min, max;
                    Server.Misc.ContainerFunctions.GetRandomAOSStats(out attributeCount, out min, out max, 6);

                    BaseInstrument instr = (BaseInstrument)item;

                    int cHue = 0;
                    int cUse = 0;

                    switch (instr.Resource)
                    {
                    case CraftResource.AshTree: cHue = MaterialInfo.GetMaterialColor("ash", "", 0); cUse = 20; break;

                    case CraftResource.CherryTree: cHue = MaterialInfo.GetMaterialColor("cherry", "", 0); cUse = 40; break;

                    case CraftResource.EbonyTree: cHue = MaterialInfo.GetMaterialColor("ebony", "", 0); cUse = 60; break;

                    case CraftResource.GoldenOakTree: cHue = MaterialInfo.GetMaterialColor("gold", "", 0); cUse = 80; break;

                    case CraftResource.HickoryTree: cHue = MaterialInfo.GetMaterialColor("hickory", "", 0); cUse = 100; break;

                    case CraftResource.MahoganyTree: cHue = MaterialInfo.GetMaterialColor("mahogany", "", 0); cUse = 120; break;

                    case CraftResource.DriftwoodTree: cHue = MaterialInfo.GetMaterialColor("driftwood", "", 0); cUse = 120; break;

                    case CraftResource.OakTree: cHue = MaterialInfo.GetMaterialColor("oak", "", 0); cUse = 140; break;

                    case CraftResource.PineTree: cHue = MaterialInfo.GetMaterialColor("pine", "", 0); cUse = 160; break;

                    case CraftResource.RosewoodTree: cHue = MaterialInfo.GetMaterialColor("rosewood", "", 0); cUse = 180; break;

                    case CraftResource.WalnutTree: cHue = MaterialInfo.GetMaterialColor("walnute", "", 0); cUse = 200; break;
                    }

                    if (!(Server.Misc.Worlds.IsOnSpaceship(from.Location, from.Map)))
                    {
                        if (cHue > 0)
                        {
                            item.Hue = cHue;
                        }
                        else if (Utility.RandomMinMax(1, 4) == 1)
                        {
                            item.Hue = Utility.RandomColor(0);
                        }
                        Server.Misc.MorphingTime.MakeOrientalItem(item, from);
                        item.Name = LootPackEntry.MagicItemName(item, from, Region.Find(from.Location, from.Map));
                    }
                    else
                    {
                        string newName = "odd alien";
                        switch (Utility.RandomMinMax(0, 6))
                        {
                        case 0: newName = "odd"; break;

                        case 1: newName = "unusual"; break;

                        case 2: newName = "bizarre"; break;

                        case 3: newName = "curious"; break;

                        case 4: newName = "peculiar"; break;

                        case 5: newName = "strange"; break;

                        case 6: newName = "weird"; break;
                        }

                        switch (Utility.RandomMinMax(1, 4))
                        {
                        case 1: item = new Pipes();             item.Name = newName + " " + Server.Misc.RandomThings.GetRandomAlienRace() + " pipes";           break;

                        case 2: item = new Pipes();             item.Name = newName + " " + Server.Misc.RandomThings.GetRandomAlienRace() + " pan flute";       break;

                        case 3: item = new Fiddle();    item.Name = newName + " " + Server.Misc.RandomThings.GetRandomAlienRace() + " violin";          break;

                        case 4: item = new Fiddle();    item.Name = newName + " " + Server.Misc.RandomThings.GetRandomAlienRace() + " fiddle";          break;
                        }

                        BaseInstrument lute = (BaseInstrument)item;
                        lute.Resource = CraftResource.None;

                        item.Hue = Utility.RandomColor(0);
                    }

                    instr.UsesRemaining = instr.UsesRemaining + cUse;

                    BaseRunicTool.ApplyAttributesTo((BaseInstrument)item, attributeCount, min, max);

                    SlayerName slayer = BaseRunicTool.GetRandomSlayer();

                    instr.Quality = InstrumentQuality.Regular;
                    if (Utility.RandomMinMax(1, 4) == 1)
                    {
                        instr.Quality = InstrumentQuality.Exceptional;
                    }

                    if (Utility.RandomMinMax(1, 4) == 1)
                    {
                        instr.Slayer = slayer;
                    }

                    break;

                case 13:
                    item = Loot.RandomGem();
                    break;

                case 14:
                    item = Loot.RandomPotion();
                    break;

                case 15:
                    item = Loot.RandomWand(); Server.Misc.MaterialInfo.ColorMetal(item, 0); string wandOwner = ""; if (Utility.RandomMinMax(1, 3) == 1)
                    {
                        wandOwner = Server.LootPackEntry.MagicWandOwner() + " ";
                    }
                    item.Name = wandOwner + item.Name;
                    break;

                case 16:
                    m_Uses = 6;                             // STOP GIVING LOOT WHEN THEY GET A CONTAINER
                    int chestLuck = Server.Misc.GetPlayerInfo.LuckyPlayerArtifacts(from.Luck);
                    if (chestLuck < 3)
                    {
                        chestLuck = 3;
                    }
                    if (chestLuck > 8)
                    {
                        chestLuck = 8;
                    }
                    item        = new LootChest(Utility.RandomMinMax(3, chestLuck));
                    item.ItemID = Utility.RandomList(0x9AB, 0xE40, 0xE41, 0xE7C);
                    item.Hue    = Utility.RandomList(0x961, 0x962, 0x963, 0x964, 0x965, 0x966, 0x967, 0x968, 0x969, 0x96A, 0x96B, 0x96C, 0x96D, 0x96E, 0x96F, 0x970, 0x971, 0x972, 0x973, 0x974, 0x975, 0x976, 0x977, 0x978, 0x979, 0x97A, 0x97B, 0x97C, 0x97D, 0x97E, 0x4AA);

                    Region reg = Region.Find(from.Location, from.Map);

                    string box = "hoard chest";
                    switch (Utility.RandomMinMax(0, 7))
                    {
                    case 0: box = "hoard chest";            break;

                    case 1: box = "treasure chest";         break;

                    case 2: box = "secret chest";           break;

                    case 3: box = "fabled chest";           break;

                    case 4: box = "legendary chest";        break;

                    case 5: box = "mythical chest";         break;

                    case 6: box = "lost chest";                     break;

                    case 7: box = "stolen chest";           break;
                    }

                    if (Server.Misc.Worlds.IsOnSpaceship(from.Location, from.Map))
                    {
                        Server.Misc.ContainerFunctions.MakeSpaceCrate(((LockableContainer)item));
                        box = item.Name;
                    }

                    switch (Utility.RandomMinMax(0, 1))
                    {
                    case 0: item.Name = box + " from " + Server.Misc.Worlds.GetRegionName(from.Map, from.Location);       break;

                    case 1: item.Name = box + " of " + HoardName;   break;
                    }
                    int xTraCash = Utility.RandomMinMax(5000, 8000);

                    int zone = 0;
                    if (Worlds.IsOnSpaceship(from.Location, from.Map))
                    {
                        zone = 1;
                    }
                    else if (Worlds.GetMyWorld(from.Map, from.Location, from.X, from.Y) == "the Underworld")
                    {
                        zone = 2;
                    }

                    ContainerFunctions.AddGoldToContainer(xTraCash, (LootChest)item, zone, from);
                    int artychance = GetPlayerInfo.LuckyPlayerArtifacts(from.Luck) + 10;
                    if (Utility.RandomMinMax(0, 100) < artychance)
                    {
                        Item artys = Loot.RandomArty(); ((LootChest)item).DropItem(artys); BaseContainer.DropItemFix(artys, from, ((LootChest)item).ItemID, ((LootChest)item).GumpID);
                    }
                    break;
                }

                if (item != null)
                {
                    if (Worlds.IsOnSpaceship(from.Location, from.Map))
                    {
                        Server.Misc.MorphingTime.MakeSpaceAceItem(item, from);
                    }

                    if (item is Container)
                    {
                        item.MoveToWorld(from.Location, from.Map);
                    }
                    else
                    {
                        from.AddToBackpack(item);
                    }
                }
                else
                {
                    if (Worlds.IsOnSpaceship(from.Location, from.Map))
                    {
                        item = new DDXormite((from.Luck + Utility.RandomMinMax(333, 666)));
                    }
                    else if (Worlds.GetMyWorld(from.Map, from.Location, from.X, from.Y) == "the Underworld")
                    {
                        item = new DDJewels((from.Luck + Utility.RandomMinMax(500, 1000)));
                    }
                    else
                    {
                        item = new Gold((from.Luck + Utility.RandomMinMax(1000, 2000)));
                    }
                    if (item != null)
                    {
                        from.AddToBackpack(item);
                    }
                }
            }
            else
            {
                from.SendMessage("There is nothing else worth taking from this pile!");
                this.Delete();
            }
        }
コード例 #26
0
            public LearnMetalGump(Mobile from) : base(25, 25)
            {
                this.Closable   = true;
                this.Disposable = true;
                this.Dragable   = true;
                this.Resizable  = false;

                AddPage(0);

                AddImage(0, 430, 155);
                AddImage(300, 430, 155);
                AddImage(600, 430, 155);
                AddImage(0, 0, 155);
                AddImage(300, 0, 155);
                AddImage(0, 300, 155);
                AddImage(300, 300, 155);
                AddImage(600, 0, 155);
                AddImage(600, 300, 155);

                AddImage(2, 2, 129);
                AddImage(300, 2, 129);
                AddImage(598, 2, 129);
                AddImage(2, 298, 129);
                AddImage(302, 298, 129);
                AddImage(598, 298, 129);

                AddImage(6, 7, 133);
                AddImage(230, 46, 132);
                AddImage(530, 46, 132);
                AddImage(680, 7, 134);
                AddImage(598, 428, 129);
                AddImage(298, 428, 129);
                AddImage(2, 428, 129);
                AddImage(5, 484, 142);
                AddImage(329, 693, 140);
                AddImage(573, 693, 140);
                AddImage(856, 695, 143);

                AddItem(839, 111, 4017);
                AddItem(351, 112, 3898);
                AddItem(572, 126, 5092);
                AddItem(655, 123, 7865);
                AddItem(308, 114, 6585);
                AddItem(730, 117, 4015);
                AddItem(502, 126, 3718);

                AddHtml(170, 70, 600, 21, @"<BODY><BASEFONT Color=#FBFBFB><BIG>INFORMATION ON VARIOUS TYPES OF METAL</BIG></BASEFONT></BODY>", (bool)false, (bool)false);

                int i = 115;
                int o = 32;

                AddItem(100, i, 7153, 0);
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Iron</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("dull copper", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Dull Copper</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("shadow iron", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Shadow Iron</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("copper", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Copper</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("bronze", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Bronze</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("gold", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Gold</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("agapite", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Agapite</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("verite", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Verite</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("valorite", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Valorite</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("nepturite", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Nepturite</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("obsidian", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Obsidian</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("steel", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Steel</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("brass", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Brass</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("mithril", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Mithril</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("xormite", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Xormite</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7153, MaterialInfo.GetMaterialColor("dwarven", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Dwarven</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;

                AddHtml(303, 198, 573, 466, @"<BODY><BASEFONT Color=#FCFF00><BIG><br>Mining is the skill one needs to find ore within caves and mountains. With this ore, ingot can be crafted and then blacksmiths and tinkers can then create weapons, armor, and tools. You simply need to get a pick axe or a shovel, double-click it, and then target a mountain side or caven floor. Although you will normally get regular ore, you will eventually get skilled enough to dig up other types of ore.<br><br>The many types of metal are listed here, starting up and then going down to higher quality metal. Making a shield out of valorite will be a much better shield than one made of copper, for example. The same goes for weapons forged from metal. Whatever the color of metal you use, the weapon or armor will retain the color of the metal. The same goes for many of the containers you can make from metal. A metal chest made from shadow iron will be black in color.<br><br>In order to make things from the ore, you need to turn the ore into ingots. To do this, double-click the ingots and target a forge. These forges are commonly found in blacksmith shops. Then you can begin crafting with a blacksmith hammer, or tinker with tinker tools. Keep in mind that in order to smith items, you will need to be near a forge and anvil.</BIG></BASEFONT></BODY>", (bool)false, (bool)false);
            }
コード例 #27
0
        public GemDragon(string name) : base(name, 61, 0x3E90, AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name        = "a dragyn";
            Body        = 61;
            BaseSoundID = 362;

            SetStr(796, 825);
            SetDex(86, 105);
            SetInt(436, 475);

            SetHits(478, 495);

            SetDamage(16, 22);

            SetDamageType(ResistanceType.Physical, 75);
            SetDamageType(ResistanceType.Fire, 25);

            SetResistance(ResistanceType.Physical, 55, 65);
            SetResistance(ResistanceType.Fire, 60, 70);
            SetResistance(ResistanceType.Cold, 30, 40);
            SetResistance(ResistanceType.Poison, 25, 35);
            SetResistance(ResistanceType.Energy, 35, 45);

            SetSkill(SkillName.EvalInt, 30.1, 40.0);
            SetSkill(SkillName.Magery, 30.1, 40.0);
            SetSkill(SkillName.MagicResist, 99.1, 100.0);
            SetSkill(SkillName.Tactics, 97.6, 100.0);
            SetSkill(SkillName.Wrestling, 90.1, 92.5);

            Fame  = 15000;
            Karma = -15000;

            VirtualArmor = 60;

            Tamable      = true;
            ControlSlots = 3;
            MinTameSkill = 93.9;

            switch (Utility.Random(12))
            {
            case 0: Hue = MaterialInfo.GetMaterialColor("jade", "monster", 0); break;                        // jade

            case 1: Hue = MaterialInfo.GetMaterialColor("onyx", "monster", 0); break;                        // onyx

            case 2: Hue = MaterialInfo.GetMaterialColor("quartz", "monster", 0); break;                      // quartz

            case 3: Hue = MaterialInfo.GetMaterialColor("ruby", "monster", 0); break;                        // ruby

            case 4: Hue = MaterialInfo.GetMaterialColor("sapphire", "monster", 0); break;                    // sapphire

            case 5: Hue = MaterialInfo.GetMaterialColor("spinel", "monster", 0); break;                      // spinel

            case 6: Hue = MaterialInfo.GetMaterialColor("topaz", "monster", 0); break;                       // topaz

            case 7: Hue = MaterialInfo.GetMaterialColor("amethyst", "monster", 0); break;                    // amethyst

            case 8: Hue = MaterialInfo.GetMaterialColor("emerald", "monster", 0); break;                     // emerald

            case 9: Hue = MaterialInfo.GetMaterialColor("garnet", "monster", 0); break;                      // garnet

            case 10: Hue = MaterialInfo.GetMaterialColor("silver", "monster", 0); break;                     // silver

            case 11: Hue = MaterialInfo.GetMaterialColor("star ruby", "monster", 0); break;                  // star ruby
            }
        }
コード例 #28
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            if (this.Hue == MaterialInfo.GetMaterialColor("onyx", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "onyx scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("quartz", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "quartz scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("ruby", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "ruby scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("sapphire", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "sapphire scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("spinel", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "spinel scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("topaz", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "topaz scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("amethyst", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "amethyst scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("emerald", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "emerald scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("garnet", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "garnet scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("silver", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "silver scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("star ruby", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "star ruby scales");
                c.DropItem(scale);
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("jade", "monster", 0))
            {
                Item scale = new HardScales(Utility.RandomMinMax(5, 10), "jade scales");
                c.DropItem(scale);
            }
        }
コード例 #29
0
        public SearchBase(int style)
        {
            int surface = Utility.RandomList(0x40A3, 0x40A4, 0x40A5, 0x40A6, 0x40A7, 0x40A8, 0x40A9, 0x40AA, 0x40AB, 0x40AC, 0x40AD, 0x40AE, 0x40AF, 0x40B0, 0x40B1, 0x40B2, 0x40B3, 0x40B4, 0x40B5, 0x40B6, 0x40B7, 0x40B8, 0x40B9, 0x40BA, 0x40BB);

            int iPed   = 0x71E;
            int hThing = 6;

            string sPed = "an ornately ";

            switch (Utility.RandomMinMax(0, 10))
            {
            case 0: sPed = "an ornately ";          break;

            case 1: sPed = "a beautifully ";        break;

            case 2: sPed = "an expertly ";          break;

            case 3: sPed = "an artistically ";      break;

            case 4: sPed = "an exquisitely ";       break;

            case 5: sPed = "a decoratively ";       break;

            case 6: sPed = "an ancient ";           break;

            case 7: sPed = "an old ";                       break;

            case 8: sPed = "an unusually ";         break;

            case 9: sPed = "a curiously ";          break;

            case 10: sPed = "an oddly ";            break;
            }
            sPed = sPed + "crafted stone";

            int    iColor = 0;
            int    iThing = 0x9AA;
            string sArty  = "a strange";

            switch (Utility.RandomMinMax(0, 6))
            {
            case 0: sArty = "an odd ";              break;

            case 1: sArty = "an unusual ";  break;

            case 2: sArty = "a bizarre ";   break;

            case 3: sArty = "a curious ";   break;

            case 4: sArty = "a peculiar ";  break;

            case 5: sArty = "a strange ";   break;

            case 6: sArty = "a weird ";             break;
            }

            string sThing = "metal chest";

            switch (Utility.RandomMinMax(0, 1))
            {
            case 0: iThing = 0x9AA; sThing = "metal chest"; break;

            case 1: iThing = 0xE7D; sThing = "metal chest"; break;
            }

            switch (Utility.RandomMinMax(0, 18))
            {
            case 0: iColor = MaterialInfo.GetMaterialColor("silver", "classic", 0); sThing = "silver chest";              break;

            case 1: iColor = MaterialInfo.GetMaterialColor("emerald", "classic", 0); sThing = "emerald chest";            break;

            case 2: iColor = MaterialInfo.GetMaterialColor("jade", "classic", 0); sThing = "jade chest";                  break;

            case 3: iColor = MaterialInfo.GetMaterialColor("onyx", "classic", 0); sThing = "onyx chest";                  break;

            case 4: iColor = MaterialInfo.GetMaterialColor("ruby", "classic", 0); sThing = "ruby chest";                  break;

            case 5: iColor = MaterialInfo.GetMaterialColor("sapphire", "classic", 0); sThing = "sapphire chest";          break;

            case 6: iColor = 0x317; sThing = "iron chest";                  break;

            case 7: iColor = MaterialInfo.GetMaterialColor("dull copper", "classic", 0); sThing = "dull copper chest";    break;

            case 8: iColor = MaterialInfo.GetMaterialColor("shadow iron", "classic", 0); sThing = "shadow iron chest";    break;

            case 9: iColor = MaterialInfo.GetMaterialColor("copper", "classic", 0); sThing = "copper chest";                              break;

            case 10: iColor = MaterialInfo.GetMaterialColor("bronze", "classic", 0); sThing = "bronze chest";                             break;

            case 11: iColor = MaterialInfo.GetMaterialColor("gold", "classic", 0); sThing = "golden chest";                               break;

            case 12: iColor = MaterialInfo.GetMaterialColor("agapite", "classic", 0); sThing = "agapite chest";                   break;

            case 13: iColor = MaterialInfo.GetMaterialColor("verite", "classic", 0); sThing = "verite chest";                             break;

            case 14: iColor = MaterialInfo.GetMaterialColor("valorite", "classic", 0); sThing = "valorite chest";                 break;

            case 15: iColor = MaterialInfo.GetMaterialColor("nepturite", "classic", 0); sThing = "nepturite chest";               break;

            case 16: iColor = MaterialInfo.GetMaterialColor("obsidian", "classic", 0); sThing = "obsidian chest";                 break;

            case 17: iColor = MaterialInfo.GetMaterialColor("mithril", "classic", 0); sThing = "mithril chest";                   break;

            case 18: iColor = MaterialInfo.GetMaterialColor("dwarven", "classic", 0); sThing = "dwarven chest";                   break;
            }

            sThing = sArty + sThing;

            ///// DO THE CARVINGS ON THE BAG OR BOX ///////////////////////////////////////////////////////////
            string sLanguage = "pixie";

            switch (Utility.RandomMinMax(0, 25))
            {
            case 0: sLanguage = "balron"; break;

            case 1: sLanguage = "pixie"; break;

            case 2: sLanguage = "centaur"; break;

            case 3: sLanguage = "demonic"; break;

            case 4: sLanguage = "dragon"; break;

            case 5: sLanguage = "dwarvish"; break;

            case 6: sLanguage = "elven"; break;

            case 7: sLanguage = "fey"; break;

            case 8: sLanguage = "gargoyle"; break;

            case 9: sLanguage = "cyclops"; break;

            case 10: sLanguage = "gnoll"; break;

            case 11: sLanguage = "goblin"; break;

            case 12: sLanguage = "gremlin"; break;

            case 13: sLanguage = "druidic"; break;

            case 14: sLanguage = "tritun"; break;

            case 15: sLanguage = "minotaur"; break;

            case 16: sLanguage = "naga"; break;

            case 17: sLanguage = "ogrish"; break;

            case 18: sLanguage = "orkish"; break;

            case 19: sLanguage = "sphinx"; break;

            case 20: sLanguage = "treekin"; break;

            case 21: sLanguage = "trollish"; break;

            case 22: sLanguage = "undead"; break;

            case 23: sLanguage = "vampire"; break;

            case 24: sLanguage = "dark elf"; break;

            case 25: sLanguage = "magic"; break;
            }

            string sPart = "a strange";

            switch (Utility.RandomMinMax(0, 5))
            {
            case 0: sPart = "a strange";    break;

            case 1: sPart = "an odd";               break;

            case 2: sPart = "an ancient";   break;

            case 3: sPart = "a weird";              break;

            case 4: sPart = "a cryptic";    break;

            case 5: sPart = "a mystical";   break;
            }

            string sPart2 = "symbols";

            switch (Utility.RandomMinMax(0, 5))
            {
            case 0: sPart2 = "symbol";      break;

            case 1: sPart2 = "rune";        break;

            case 2: sPart2 = "glyph";       break;

            case 3: sPart2 = "mark";        break;

            case 4: sPart2 = "sign";        break;

            case 5: sPart2 = "letter";      break;
            }

            string RuneCarving = sPart + " " + sLanguage + " " + sPart2;

            if (style > 0)
            {
                surface     = 0x22C1;
                RuneCarving = "transparent aluminum";
                iThing      = 0x3865;
                sThing      = "cargo chest";
                iColor      = 0;
                iPed        = 0x22BD;
                sPed        = "transparent aluminum";
                hThing      = 4;
            }

            AddComplexComponent((BaseAddon)this, iThing, 0, 0, hThing, iColor, -1, sThing, 1);                  // CHEST
            AddComplexComponent((BaseAddon)this, 0x1647, 0, 0, 0, 0, 29, sPed, 1);                              // LIGHT
            AddComplexComponent((BaseAddon)this, iPed, 0, 0, 0, 0, -1, sPed, 1);                                // PED
            AddComplexComponent((BaseAddon)this, surface, 0, 0, 5, 0, -1, RuneCarving, 1);                      // TOP OF PED
        }
コード例 #30
0
            public LearnWoodBookGump(Mobile from) : base(25, 25)
            {
                this.Closable   = true;
                this.Disposable = true;
                this.Dragable   = true;
                this.Resizable  = false;

                AddPage(0);

                AddImage(0, 430, 155);
                AddImage(300, 430, 155);
                AddImage(600, 430, 155);
                AddImage(0, 0, 155);
                AddImage(300, 0, 155);
                AddImage(0, 300, 155);
                AddImage(300, 300, 155);
                AddImage(600, 0, 155);
                AddImage(600, 300, 155);

                AddImage(2, 2, 129);
                AddImage(300, 2, 129);
                AddImage(598, 2, 129);
                AddImage(2, 298, 129);
                AddImage(302, 298, 129);
                AddImage(598, 298, 129);

                AddImage(6, 7, 133);
                AddImage(230, 46, 132);
                AddImage(530, 46, 132);
                AddImage(680, 7, 134);
                AddImage(598, 428, 129);
                AddImage(298, 428, 129);
                AddImage(2, 428, 129);
                AddImage(5, 484, 142);
                AddImage(329, 693, 140);
                AddImage(573, 693, 140);
                AddImage(856, 695, 143);

                AddItem(717, 121, 7980);
                AddItem(409, 129, 4148);
                AddItem(506, 124, 4142);
                AddItem(602, 126, 4138);
                AddItem(308, 114, 3670);
                AddItem(808, 98, 1928);
                AddItem(831, 121, 1928);
                AddItem(807, 83, 4528);

                AddHtml(170, 70, 600, 21, @"<BODY><BASEFONT Color=#FBFBFB><BIG>INFORMATION ON VARIOUS TYPES OF WOOD</BIG></BASEFONT></BODY>", (bool)false, (bool)false);

                int i = 135;
                int o = 32;

                AddItem(100, i, 7137, 0);
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Regular</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("ash", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Ash</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("cherry", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Cherry</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("ebony", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Ebony</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("golden oak", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Golden Oak</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("hickory", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Hickory</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("mahogany", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Mahogany</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("oak", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Oak</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("pine", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Pine</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("ghostwood", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Ghostwood</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("rosewood", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Rosewood</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("walnut", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Walnut</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("petrified", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Petrified</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("driftwood", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Driftwood</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;
                AddItem(100, i, 7137, MaterialInfo.GetMaterialColor("elven", "", 0));
                AddHtml(150, i, 137, 21, @"<BODY><BASEFONT Color=#FCFF00><BIG>Elven</BIG></BASEFONT></BODY>", (bool)false, (bool)false); i = i + o;

                AddHtml(303, 198, 573, 466, @"<BODY><BASEFONT Color=#FCFF00><BIG><br>Lumberjacking is a task carried out long before the mining of ore. You simply need to get an axe, double-click it, and then target a tree to begin chopping. Although you will normally get regular wood, you will eventually get skilled enough to chop other types of wood. With wood you can make arrows, bows, and crossbows with the fletching skill. You can also make furniture, weapons, and armor with the carpentry skill.<br><br>The many types of wood are listed here, starting up and then going down to higher quality wood. Making a shield out of walnut will be a much better shield than one made of ash, for example. The same goes for bows, crossbows, and other weapons made of wood. Whatever the color of wood you use, the weapon, armor, or instrument will retain the color of the wood. The same goes for many of the furniture and containers you can make from wood. A wooden chest made from cherry wood will be red in color.<br><br>In order to make things from the wood, you need to turn the logs into boards. To do this, double-click the logs and target a saw mill. These mills are commonly found in carpenter shops. Then you can begin crafting with a carpentry tool, or fletching with bowyer tools.</BIG></BASEFONT></BODY>", (bool)false, (bool)false);
            }