public override void InitOutfit()
        {
            AddItem( new Backpack() );
            AddItem( new Sandals( 0x8FD ) );
            AddItem( new BoneHelm() );

            Item item;

            item = new LeatherLegs();
            item.Hue = 0x2C3;
            AddItem( item );

            item = new LeatherGloves();
            item.Hue = 0x2C3;
            AddItem( item );

            item = new LeatherGorget();
            item.Hue = 0x2C3;
            AddItem( item );

            item = new LeatherChest();
            item.Hue = 0x2C3;
            AddItem( item );

            item = new LeatherArms();
            item.Hue = 0x2C3;
            AddItem( item );
        }
		public Sparrow()
		{
			Name = "Captian Jack Sparrow";
                        Title = "The Pirate";
			Body = 400;
			CantWalk = true;
			Hue = Utility.RandomSkinHue();

			LeatherArms LeatherArms = new LeatherArms();
			LeatherArms.Hue = 1157;
			AddItem( LeatherArms );
			
			LeatherCap LeatherCap = new LeatherCap();
			LeatherCap.Hue = 1157;
			AddItem( LeatherCap );
			
			LeatherGloves LeatherGloves = new LeatherGloves();
			LeatherGloves.Hue = 1157;
			AddItem( LeatherGloves );

			LeatherLegs LeatherLegs = new LeatherLegs();
			LeatherLegs.Hue = 1157;
			AddItem( LeatherLegs );
			
			LeatherChest LeatherChest = new LeatherChest();
			LeatherChest.Hue = 1157;
			AddItem( LeatherChest );

			LeatherGorget LeatherGorget = new LeatherGorget();
			LeatherGorget.Hue = 1157;
			AddItem( LeatherGorget );




                        int hairHue = 1153;

			switch ( Utility.Random( 1 ) )
			{
				case 0: AddItem( new PonyTail( hairHue ) ); break;
				case 1: AddItem( new Goatee( hairHue ) ); break;
			} 
			
			Blessed = true;
			
			}
Exemple #3
0
        public BagofLeatherArmor()
        {
            Movable = true;
            Hue     = 0x55;
            Name    = "a bag of Leather Armor";

            LeatherChest chest = new LeatherChest();

            chest.Quality  = Quality.Exceptional;
            chest.LootType = LootType.Blessed;
            DropItem(chest);

            LeatherArms arms = new LeatherArms();

            arms.Quality  = Quality.Exceptional;
            arms.LootType = LootType.Blessed;
            DropItem(arms);

            LeatherGloves gloves = new LeatherGloves();

            gloves.Quality  = Quality.Exceptional;
            gloves.LootType = LootType.Blessed;
            DropItem(gloves);

            LeatherGorget gorget = new LeatherGorget();

            gorget.Quality  = Quality.Exceptional;
            gorget.LootType = LootType.Blessed;
            DropItem(gorget);

            LeatherLegs legs = new LeatherLegs();

            legs.Quality  = Quality.Exceptional;
            legs.LootType = LootType.Blessed;
            DropItem(legs);

            LeatherCap cap = new LeatherCap();

            cap.Quality  = Quality.Exceptional;
            cap.LootType = LootType.Blessed;
            DropItem(cap);
        }
		public HoneycombProcessingKettleQuestNPC()
		{
			Name = "Old Man";
			Body = 400;
			Hue = Utility.RandomSkinHue();

			LeatherArms LeatherArms = new LeatherArms();
			LeatherArms.Hue = 2418;
			AddItem( LeatherArms );
						
			LeatherGloves LeatherGloves = new LeatherGloves();
			LeatherGloves.Hue = 2418;
			AddItem( LeatherGloves );

			LeatherLegs LeatherLegs = new LeatherLegs();
			LeatherLegs.Hue = 2418;
			AddItem( LeatherLegs );
			
			LeatherChest LeatherChest = new LeatherChest();
			LeatherChest.Hue = 2418;
			AddItem( LeatherChest );

			LeatherGorget LeatherGorget = new LeatherGorget();
			LeatherGorget.Hue = 2418;
			AddItem( LeatherGorget );

                        int hairHue = 2406;

			switch ( Utility.Random( 1 ) )
			{
				case 0: AddItem( new PonyTail( hairHue ) ); break;
				case 1: AddItem( new Goatee( hairHue ) ); break;
			} 
			
			Blessed = true;
			
			}
		public DummySuper() : base(AIType.AI_Mage, FightMode.Closest, 15, 1, 0.2, 0.6)
		{
			// A Dummy Super Mage
			int iHue = 20 + Team * 40;
			int jHue = 25 + Team * 40;

			// Skills and Stats
			this.InitStats( 125, 125, 125 );
			this.Skills[SkillName.Magery].Base = 120;
			this.Skills[SkillName.EvalInt].Base = 120;
			this.Skills[SkillName.Anatomy].Base = 120;
			this.Skills[SkillName.Wrestling].Base = 120;
			this.Skills[SkillName.Meditation].Base = 120;
			this.Skills[SkillName.Poisoning].Base = 100;
			this.Skills[SkillName.Inscribe].Base = 100;

			// Name
			this.Name = "Super Mage";

			// Equip
			Spellbook book = new Spellbook();
			book.Movable = false;
			book.LootType = LootType.Newbied;
			book.Content =0xFFFFFFFFFFFFFFFF;
			AddItem( book );

			LeatherArms lea = new LeatherArms();
			lea.Movable = false;
			lea.LootType = LootType.Newbied;
			lea.Crafter = this;
			lea.Quality = ArmorQuality.Regular;
			AddItem( lea );

			LeatherChest lec = new LeatherChest();
			lec.Movable = false;
			lec.LootType = LootType.Newbied;
			lec.Crafter = this;
			lec.Quality = ArmorQuality.Regular;
			AddItem( lec );

			LeatherGorget leg = new LeatherGorget();
			leg.Movable = false;
			leg.LootType = LootType.Newbied;
			leg.Crafter = this;
			leg.Quality = ArmorQuality.Regular;
			AddItem( leg );

			LeatherLegs lel = new LeatherLegs();
			lel.Movable = false;
			lel.LootType = LootType.Newbied;
			lel.Crafter = this;
			lel.Quality = ArmorQuality.Regular;
			AddItem( lel );

			Sandals snd = new Sandals();
			snd.Hue = iHue;
			snd.LootType = LootType.Newbied;
			AddItem( snd );

			JesterHat jhat = new JesterHat();
			jhat.Hue = iHue;
			AddItem( jhat );

			Doublet dblt = new Doublet();
			dblt.Hue = iHue;
			AddItem( dblt );

			// Spells
			AddSpellAttack( typeof(Spells.First.MagicArrowSpell) );
			AddSpellAttack( typeof(Spells.First.WeakenSpell) );
			AddSpellAttack( typeof(Spells.Third.FireballSpell) );
			AddSpellDefense( typeof(Spells.Third.WallOfStoneSpell) );
			AddSpellDefense( typeof(Spells.First.HealSpell) );
		}
Exemple #6
0
        public MongbatHideoutTreasureChest1() : base(0xE43)
        {
            Name    = "a treasure chest -40-";
            Movable = true;
            Weight  = 1000.0;

            TrapPower = 0;
            Locked    = true;

            RequiredSkill = 40;
            LockLevel     = 40;
            MaxLockLevel  = 80;

/////////////////////////////////// Gold
            if (Utility.RandomDouble() < 0.25)
            {
                DropItem(new Gold(Utility.Random(20, 300)));
            }

/////////////////////////////////////// Supplies

            switch (Utility.Random(19))
            {
            case 0: DropItem(new Board(60)); break;

            case 1: DropItem(new BoltOfCloth(60)); break;

            case 2: DropItem(new Bottle(60)); break;

            case 3: DropItem(new CopperWire(60)); break;

            case 4: DropItem(new Cotton(60)); break;

            case 5: DropItem(new DarkYarn(60)); break;

            case 6: DropItem(new Feather(60)); break;

            case 7: DropItem(new Flax(60)); break;

            case 8: DropItem(new Gears(60)); break;

            case 9: DropItem(new GoldWire(60)); break;

            case 10: DropItem(new IronIngot(60)); break;

            case 11: DropItem(new IronWire(60)); break;

            case 12: DropItem(new Leather(60)); break;

            case 13: DropItem(new LightYarn(60)); break;

            case 14: DropItem(new Shaft(60)); break;

            case 15: DropItem(new SilverWire(60)); break;

            case 16: DropItem(new SpoolOfThread(60)); break;

            case 17: DropItem(new Springs(60)); break;

            case 18: DropItem(new Wool(60)); break;
            }

            switch (Utility.Random(5))
            {
            case 0: DropItem(new BeetleEgg(15)); break;

            case 1: DropItem(new FishScale(15)); break;

            case 2: DropItem(new Nirnroot(15)); break;

            case 3: DropItem(new SerpentScale(15)); break;

            case 4: DropItem(new ThunderStone(15)); break;
            }

            Item ReagentLoot = Loot.RandomReagent();

            ReagentLoot.Amount = Utility.RandomMinMax(5, 10);
            DropItem(ReagentLoot);

            if (Utility.RandomDouble() < 0.05)
            {
                DropItem(new SackFlour());
            }

/////////////////////////////////////// Rare Items

            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new DyeTub());
            }

/////////////////////////////////////// LV 1-15
            if (Utility.RandomDouble() < 0.10)
            {
                BaseWeapon weapon = Loot.RandomWeapon(true);
                switch (Utility.Random(36))
                {
                case 0: weapon = new Hatchet(); break;                     // Lv1

                case 1: weapon = new Axe(); break;                         // Lv5

                case 2: weapon = new BattleAxe(); break;                   // Lv10

                case 3: weapon = new Bow(); break;                         // Lv1

                case 4: weapon = new Crossbow(); break;                    // Lv1

                case 5: weapon = new Balestra(); break;                    // Lv5

                case 6: weapon = new ElvenLeafBow(); break;                // Lv5

                case 7: weapon = new MagicalShortbow(); break;             // Lv10

                case 8: weapon = new RepeatingCrossbow(); break;           // Lv10

                case 9: weapon = new SkinningKnife(); break;               // Lv1

                case 10: weapon = new Cleaver(); break;                    // Lv5

                case 11: weapon = new Dagger(); break;                     // Lv5

                case 12: weapon = new ButcherKnife(); break;               // Lv10

                case 13: weapon = new EbonyDagger(); break;                // Lv10

                case 14: weapon = new Sai(); break;                        // Lv15

                case 15: weapon = new Club(); break;                       // Lv1

                case 16: weapon = new Nunchaku(); break;                   // Lv1

                case 17: weapon = new Mace(); break;                       // Lv5

                case 18: weapon = new Maul(); break;                       // Lv10

                case 19: weapon = new Scepter(); break;                    // Lv15

                case 20: weapon = new Pitchfork(); break;                  // Lv1

                case 21: weapon = new ShortSpear(); break;                 // Lv5

                case 22: weapon = new Pilum(); break;                      // Lv10

                case 23: weapon = new Pike(); break;                       // Lv15

                case 24: weapon = new GnarledStaff(); break;               // Lv1

                case 25: weapon = new ShepherdsCrook(); break;             // Lv1

                case 26: weapon = new QuarterStaff(); break;               // Lv10

                case 27: weapon = new ReptilianStaff(); break;             // Lv15

                case 28: weapon = new Bokuto(); break;                     // Lv1

                case 29: weapon = new BoneHarvester(); break;              // Lv1

                case 30: weapon = new Cutlass(); break;                    // Lv1

                case 31: weapon = new ElvenMachete(); break;               // Lv1

                case 32: weapon = new Kryss(); break;                      // Lv1

                case 33: weapon = new EbonyRapier(); break;                // Lv10

                case 34: weapon = new Scimitar(); break;                   // Lv10

                default: weapon = new Leafblade(); break;                  // Lv1
                }

                switch (Utility.Random(14))
                {
                case 0: weapon.Attributes.AttackChance = Utility.RandomMinMax(1, 5); break;

                case 1: weapon.Attributes.DefendChance = Utility.RandomMinMax(1, 5); break;

                case 2: weapon.Attributes.Luck = Utility.RandomMinMax(1, 10); break;

                case 3: weapon.Attributes.WeaponSpeed = Utility.RandomMinMax(1, 25); break;

                case 4: weapon.WeaponAttributes.HitDispel = Utility.RandomMinMax(2, 10); break;

                case 5: weapon.WeaponAttributes.HitFireball = Utility.RandomMinMax(2, 10); break;

                case 6: weapon.WeaponAttributes.HitHarm = Utility.RandomMinMax(2, 10); break;

                case 7: weapon.WeaponAttributes.HitLeechHits = Utility.RandomMinMax(2, 10); break;

                case 8: weapon.WeaponAttributes.HitLeechMana = Utility.RandomMinMax(2, 10); break;

                case 9: weapon.WeaponAttributes.HitLeechStam = Utility.RandomMinMax(2, 10); break;

                case 10: weapon.WeaponAttributes.HitLightning = Utility.RandomMinMax(2, 10); break;

                case 11: weapon.WeaponAttributes.HitLowerAttack = Utility.RandomMinMax(2, 10); break;

                case 12: weapon.WeaponAttributes.HitLowerDefend = Utility.RandomMinMax(2, 10); break;

                default: weapon.Attributes.WeaponDamage = Utility.RandomMinMax(1, 10); break;
                }

                DropItem(weapon);
            }

/////////////////////////////////////// LV 1-15
            if (Utility.RandomDouble() < 0.10)
            {
                BaseArmor armor = Loot.RandomArmor(true);
                switch (Utility.Random(39))
                {
                case 0: armor = new LeatherArms(); break;                       // Lv1

                case 1: armor = new LeatherBustierArms(); break;                // Lv1

                case 2: armor = new LeatherCap(); break;                        // Lv1

                case 3: armor = new LeatherChest(); break;                      // Lv1

                case 4: armor = new LeatherGloves(); break;                     // Lv1

                case 5: armor = new LeatherGorget(); break;                     // Lv1

                case 6: armor = new LeatherLegs(); break;                       // Lv1

                case 7: armor = new LeatherShorts(); break;                     // Lv1

                case 8: armor = new LeatherSkirt(); break;                      // Lv1

                case 9: armor = new FemaleLeafChest(); break;                   // Lv1

                case 10: armor = new LeafArms(); break;                         // Lv3

                case 11: armor = new LeafChest(); break;                        // Lv3

                case 12: armor = new LeafGloves(); break;                       // Lv3

                case 13: armor = new LeafGorget(); break;                       // Lv3

                case 14: armor = new LeafLegs(); break;                         // Lv3

                case 15: armor = new LeafTonlet(); break;                       // Lv3

                case 16: armor = new LeatherDo(); break;                        // Lv6

                case 17: armor = new LeatherHaidate(); break;                   // Lv6

                case 18: armor = new LeatherHiroSode(); break;                  // Lv6

                case 19: armor = new LeatherJingasa(); break;                   // Lv6

                case 20: armor = new LeatherMempo(); break;                     // Lv6

                case 21: armor = new LeatherNinjaHood(); break;                 // Lv6

                case 22: armor = new LeatherNinjaJacket(); break;               // Lv6

                case 23: armor = new LeatherNinjaMitts(); break;                // Lv6

                case 24: armor = new LeatherNinjaPants(); break;                // Lv6

                case 25: armor = new LeatherSuneate(); break;                   // Lv6

                case 26: armor = new EbonsilkArms(); break;                     // Lv9

                case 27: armor = new EbonsilkChest(); break;                    // Lv9

                case 28: armor = new EbonsilkGloves(); break;                   // Lv9

                case 29: armor = new EbonsilkGorget(); break;                   // Lv9

                case 30: armor = new EbonsilkLegs(); break;                     // Lv9

                case 31: armor = new EbonsilkTiara(); break;                    // Lv9

                case 32: armor = new ChitinArms(); break;                       // Lv12

                case 33: armor = new ChitinChest(); break;                      // Lv12

                case 34: armor = new ChitinGloves(); break;                     // Lv12

                case 35: armor = new ChitinGorget(); break;                     // Lv12

                case 36: armor = new ChitinHelmet(); break;                     // Lv12

                case 37: armor = new ChitinLegs(); break;                       // Lv12

                default: armor = new FemaleLeatherChest(); break;               // Lv1
                }

                BaseRunicTool.ApplyAttributesTo(armor, 3, 5, 50);
                DropItem(armor);
            }

            if (Utility.RandomDouble() < 0.05)
            {
                BaseHat hat = Loot.RandomHat(true);
                BaseRunicTool.ApplyAttributesTo(hat, 3, 5, 10);
                DropItem(hat);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseClothing clothing = Loot.RandomClothing(true);
                BaseRunicTool.ApplyAttributesTo(clothing, 3, 5, 10);
                DropItem(clothing);
            }

            if (Utility.RandomDouble() < 0.05)
            {
                BaseShield shield1 = new Buckler();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield1, 3, 5, 50);
                }
                DropItem(shield1);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseShield shield2 = new WoodenShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield2, 3, 5, 50);
                }
                DropItem(shield2);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseShield shield3 = new AmmoniteShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield3, 3, 5, 50);
                }
                DropItem(shield3);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseShield shield4 = new BronzeShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield4, 3, 5, 50);
                }
                DropItem(shield4);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseShield shield5 = new MetalShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield5, 3, 5, 50);
                }
                DropItem(shield5);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseShield shield6 = new WoodenKiteShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield6, 3, 5, 50);
                }
                DropItem(shield6);
            }

            if (Utility.RandomDouble() < 0.05)
            {
                BaseJewel bracelet = new SilverBracelet();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(bracelet, 3, 5, 10);
                }
                DropItem(bracelet);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseJewel earrings = new SilverEarrings();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(earrings, 3, 5, 10);
                }
                DropItem(earrings);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseJewel necklace = new SilverNecklace();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(necklace, 3, 5, 10);
                }
                DropItem(necklace);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseJewel ring = new SilverRing();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(ring, 3, 5, 10);
                }
                DropItem(ring);
            }
        }
        public static BaseArmor NewbLRCArmor()
        {
            BaseArmor armor = null;

            switch( Utility.Random( 6 ) )
            {
                case 0: armor = new LeatherChest(); break;
                case 1: armor = new LeatherLegs(); break;
                case 2: armor = new LeatherArms(); break;
                case 3: armor = new LeatherGloves(); break;
                case 4: armor = new LeatherGorget(); break;
                case 5: armor = new LeatherCap(); break;
            }

            BaseRunicTool.ApplyAttributesTo(armor, Utility.Random( 3 ), 40, 80);

            armor.Attributes.LowerRegCost = 12 + Utility.Random( 5 ) + Utility.Random( 5 );
            armor.Hue = 2207;

            return armor;
        }
        public NewPlayerPackage()
        {
            Name     = "New Player Welcome Package";
            Hue      = 1281;
            LootType = LootType.Newbied;


            /*
             * Spellbook book1 = new Spellbook();
             * book1.Content = ulong.MaxValue;
             * DropItem(book1);
             * book1.Location = new Point3D(16, 83, 0);
             *
             * BookOfChivalry book2 = new BookOfChivalry();
             * book2.Content = 1023;//all spells
             * DropItem(book2);
             * book2.Location = new Point3D(33, 83, 0);
             *
             * NecromancerSpellbook book3 = new NecromancerSpellbook();
             * book3.Content = 0x1FFFF;
             * DropItem(book3);
             * book3.Location = new Point3D(49, 83, 0);
             */

            BaseArmor armor = new LeatherChest();

            armor.Hue      = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.LowerManaCost        = 2;
            armor.Attributes.LowerRegCost         = 5;
            armor.Attributes.Luck      = 10;
            armor.Attributes.BonusMana = 3;
            armor.Attributes.RegenMana = 1;
            armor.ColdBonus            = 1;
            armor.EnergyBonus          = 1;
            armor.FireBonus            = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(61, 74, 0);

            armor          = new LeatherLegs();
            armor.Hue      = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.RegenHits            = 1;
            armor.Attributes.BonusHits            = 3;
            armor.Attributes.LowerManaCost        = 2;
            armor.Attributes.LowerRegCost         = 5;
            armor.Attributes.Luck = 10;
            armor.ColdBonus       = 1;
            armor.EnergyBonus     = 1;
            armor.FireBonus       = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(71, 78, 0);

            armor          = new LeatherArms();
            armor.Hue      = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.LowerManaCost        = 2;
            armor.Attributes.LowerRegCost         = 5;
            armor.Attributes.Luck      = 10;
            armor.Attributes.BonusStam = 3;
            armor.Attributes.RegenStam = 1;
            armor.ColdBonus            = 1;
            armor.EnergyBonus          = 1;
            armor.FireBonus            = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(94, 84, 0);

            armor          = new LeatherGloves();
            armor.Hue      = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.LowerManaCost        = 2;
            armor.Attributes.LowerRegCost         = 5;
            armor.Attributes.Luck     = 10;
            armor.Attributes.BonusStr = 2;
            armor.ColdBonus           = 1;
            armor.EnergyBonus         = 1;
            armor.FireBonus           = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(108, 85, 0);

            armor          = new LeatherGorget();
            armor.Hue      = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.LowerManaCost        = 2;
            armor.Attributes.LowerRegCost         = 5;
            armor.Attributes.BonusInt             = 2;
            armor.Attributes.Luck = 10;
            armor.ColdBonus       = 1;
            armor.EnergyBonus     = 1;
            armor.FireBonus       = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(122, 79, 0);

            armor          = new LeatherCap();
            armor.Hue      = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.BonusDex             = 2;
            armor.Attributes.LowerManaCost        = 2;
            armor.Attributes.LowerRegCost         = 5;
            armor.Attributes.Luck = 10;
            armor.ColdBonus       = 1;
            armor.EnergyBonus     = 1;
            armor.FireBonus       = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(115, 88, 0);

            armor          = new MetalShield();
            armor.Hue      = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.AttackChance         = 5;
            armor.Attributes.DefendChance         = 5;
            armor.Attributes.SpellChanneling      = 1;
            armor.Attributes.Luck = 10;
            armor.ColdBonus       = 1;
            armor.EnergyBonus     = 1;
            armor.FireBonus       = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(132, 85, 0);

            BaseJewel ring = new GoldRing();

            ring.LootType = LootType.Newbied;
            ring.Attributes.NightSight   = 1;
            ring.Attributes.SpellDamage  = 5;
            ring.Attributes.WeaponDamage = 5;
            DropItem(ring);
            ring.Location = new Point3D(140, 60, 0);

            Item item = new Bandage(100);

            DropItem(item);
            item.Location = new Point3D(135, 66, 0);
        }
Exemple #9
0
		public override void OnGaveMeleeAttack(Mobile defender)
		{
			int kpgainmin, kpgainmax;

			switch (Stage)
			{
				case 1:
					{
						if (defender is BaseCreature)
						{
							var bc = (BaseCreature)defender;

							if (bc.Controlled != true)
							{
								kpgainmin = 5 + (bc.HitsMax) / 10;
								kpgainmax = 5 + (bc.HitsMax) / 5;

								KP += Utility.RandomList(kpgainmin, kpgainmax);
							}
						}

						if (KP >= 85000)
						{
							if (S1)
							{
								S1 = false;

								int hits = HitsMax + 500;
								int va = VirtualArmor + 10;
								int mindamage = DamageMin + 1;
								int maxdamage = DamageMax + 1;

								Warmode = false;

								Say("*" + Name + " achieves a new level of combat*");
								SetDamage(mindamage, maxdamage);
								SetHits(hits);

								VirtualArmor = va;
								Stage = 2;
								Title = "the Shadow Knight";

								RawStr += 200;
								RawInt += 30;
								RawDex += 20;

								Item del = FindItemOnLayer(Layer.OuterTorso); // The Robe

								if (del != null)
								{
									del.Delete();
								}

								del = FindItemOnLayer(Layer.InnerTorso);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor chest = new LeatherChest();
								chest.Hue = 1175;
								chest.Movable = false;
								AddItem(chest);

								del = FindItemOnLayer(Layer.Pants);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor legs = new LeatherLegs();
								legs.Hue = 1175;
								legs.Movable = false;
								AddItem(legs);

								del = FindItemOnLayer(Layer.Neck);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor gorget = new LeatherGorget();
								gorget.Hue = 1175;
								gorget.Movable = false;
								AddItem(gorget);

								del = FindItemOnLayer(Layer.Gloves);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor gloves = new LeatherGloves();
								gloves.Hue = 1175;
								gloves.Movable = false;
								AddItem(gloves);

								del = FindItemOnLayer(Layer.Helm);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor helm = new LeatherCap();
								helm.Hue = 1175;
								helm.Movable = false;
								AddItem(helm);

								del = FindItemOnLayer(Layer.Arms);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor arms = new LeatherArms();
								arms.Hue = 1175;
								arms.Movable = false;
								AddItem(arms);

								del = FindItemOnLayer(Layer.Shoes);

								if (del != null)
								{
									del.Delete();
								}

								Item sandals = new Sandals();
								sandals.Hue = 1153;
								sandals.Movable = false;
								AddItem(sandals);
							}
						}
					}
					break;
				case 2:
					{
						if (defender is BaseCreature)
						{
							var bc = (BaseCreature)defender;

							if (bc.Controlled != true)
							{
								kpgainmin = 5 + bc.HitsMax / 20;
								kpgainmax = 5 + bc.HitsMax / 10;

								KP += Utility.RandomList(kpgainmin, kpgainmax);
							}
						}

						if (KP >= 100000)
						{
							if (S2)
							{
								S2 = false;

								int hits = HitsMax + 100;
								int va = VirtualArmor + 10;
								int mindamage = DamageMin + 1;
								int maxdamage = DamageMax + 1;

								Warmode = false;

								Say("*" + Name + " achieves a new level of combat*");
								SetDamage(mindamage, maxdamage);
								SetHits(hits);

								VirtualArmor = va;
								Stage = 3;
								Title = "the Golden Knight";

								RawStr += 100;
								RawInt += 20;
								RawDex += 10;

								Item del = FindItemOnLayer(Layer.InnerTorso);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor chest = new StuddedChest();
								chest.Hue = 1161;
								chest.Movable = false;
								AddItem(chest);

								del = FindItemOnLayer(Layer.Pants);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor legs = new StuddedLegs();
								legs.Hue = 1161;
								legs.Movable = false;
								AddItem(legs);

								del = FindItemOnLayer(Layer.Neck);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor gorget = new StuddedGorget();
								gorget.Hue = 1161;
								gorget.Movable = false;
								AddItem(gorget);

								del = FindItemOnLayer(Layer.Gloves);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor gloves = new StuddedGloves();
								gloves.Hue = 1161;
								gloves.Movable = false;
								AddItem(gloves);

								del = FindItemOnLayer(Layer.Helm);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor helm = new LeatherCap();
								helm.Hue = 1161;
								helm.Movable = false;
								AddItem(helm);

								del = FindItemOnLayer(Layer.Arms);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor arms = new StuddedArms();
								arms.Hue = 1161;
								arms.Movable = false;
								AddItem(arms);
							}
						}
					}
					break;
				case 3:
					{
						if (defender is BaseCreature)
						{
							var bc = (BaseCreature)defender;

							if (bc.Controlled != true)
							{
								kpgainmin = 5 + bc.HitsMax / 30;
								kpgainmax = 5 + bc.HitsMax / 20;

								KP += Utility.RandomList(kpgainmin, kpgainmax);
							}
						}

						if (KP >= 500000)
						{
							if (S3)
							{
								S3 = false;

								int hits = HitsMax + 100;
								int va = VirtualArmor + 10;
								int mindamage = DamageMin + 1;
								int maxdamage = DamageMax + 1;

								Warmode = false;

								Say("*" + Name + " achieves a new level of combat*");
								SetDamage(mindamage, maxdamage);
								SetHits(hits);

								VirtualArmor = va;
								Stage = 4;
								Title = "the Blood Knight";

								RawStr += 100;
								RawInt += 120;
								RawDex += 10;

								Item del = FindItemOnLayer(Layer.InnerTorso);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor chest = new PlateChest();
								chest.Hue = 1157;
								chest.Movable = false;
								AddItem(chest);

								del = FindItemOnLayer(Layer.Pants);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor legs = new PlateLegs();
								legs.Hue = 1157;
								legs.Movable = false;
								AddItem(legs);

								del = FindItemOnLayer(Layer.Neck);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor gorget = new PlateGorget();
								gorget.Hue = 1157;
								gorget.Movable = false;
								AddItem(gorget);

								del = FindItemOnLayer(Layer.Gloves);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor gloves = new PlateGloves();
								gloves.Hue = 1157;
								gloves.Movable = false;
								AddItem(gloves);

								del = FindItemOnLayer(Layer.Helm);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor helm = new PlateHelm();
								helm.Hue = 1157;
								helm.Movable = false;
								AddItem(helm);

								del = FindItemOnLayer(Layer.Arms);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor arms = new PlateArms();
								arms.Hue = 1157;
								arms.Movable = false;
								AddItem(arms);

								del = FindItemOnLayer(Layer.Shoes);

								if (del != null)
								{
									del.Delete();
								}
							}
						}
					}
					break;
				case 4:
					{
						if (defender is BaseCreature)
						{
							var bc = (BaseCreature)defender;

							if (bc.Controlled != true)
							{
								kpgainmin = 5 + bc.HitsMax / 50;
								kpgainmax = 5 + bc.HitsMax / 40;

								KP += Utility.RandomList(kpgainmin, kpgainmax);
							}
						}

						if (KP >= 1000000)
						{
							if (S4)
							{
								S4 = false;

								int hits = HitsMax + 100;
								int va = VirtualArmor + 10;
								int mindamage = DamageMin + 5;
								int maxdamage = DamageMax + 5;

								Warmode = false;

								Say("*" + Name + " achieves a new level of combat*");
								SetDamage(mindamage, maxdamage);
								SetHits(hits);

								VirtualArmor = va;
								Stage = 5;
								Title = "the Knight of Destiny";

								RawStr += 100;
								RawInt += 120;
								RawDex += 20;

								Item del = FindItemOnLayer(Layer.InnerTorso);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor chest = new BoneChest();
								chest.Hue = 1152;
								chest.Movable = false;
								AddItem(chest);

								del = FindItemOnLayer(Layer.Pants);
								if (del != null)
								{
									del.Delete();
								}

								BaseArmor legs = new BoneLegs();
								legs.Hue = 1152;
								legs.Movable = false;
								AddItem(legs);

								del = FindItemOnLayer(Layer.Neck);

								if (del != null)
								{
									del.Delete();
								}

								del = FindItemOnLayer(Layer.Gloves);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor gloves = new BoneGloves();
								gloves.Hue = 1152;
								gloves.Movable = false;
								AddItem(gloves);

								del = FindItemOnLayer(Layer.Helm);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor helm = new BoneHelm();
								helm.Hue = 1152;
								helm.Movable = false;
								AddItem(helm);

								del = FindItemOnLayer(Layer.Arms);

								if (del != null)
								{
									del.Delete();
								}

								BaseArmor arms = new BoneArms();
								arms.Hue = 1152;
								arms.Movable = false;
								AddItem(arms);

								del = FindItemOnLayer(Layer.Shoes);

								if (del != null)
								{
									del.Delete();
								}

								Item sandals = new Sandals();
								sandals.Hue = 1152;
								sandals.Movable = false;
								AddItem(sandals);
							}
						}
					}
					break;
				case 5:
					{
						if (defender is BaseCreature)
						{
							var bc = (BaseCreature)defender;

							if (bc.Controlled != true)
							{
								kpgainmin = 5 + bc.HitsMax / 160;
								kpgainmax = 5 + bc.HitsMax / 100;

								KP += Utility.RandomList(kpgainmin, kpgainmax);
							}
						}

						if (KP >= 5000000)
						{
							if (S5)
							{
								S5 = false;

								int hits = HitsMax + 100;
								int va = VirtualArmor + 100;
								int mindamage = DamageMin + 5;
								int maxdamage = DamageMax + 5;

								Warmode = false;
								
								Say("*" + Name + " is Reborn*");
								Say("Master, please lend me some armor");
								SetDamage(mindamage, maxdamage);
								SetHits(hits);
								
								VirtualArmor = va;
								Stage = 6;
								Title = "the Champion";

								RawStr += 100;
								RawInt += 120;
								RawDex += 20;

								Item del = FindItemOnLayer(Layer.InnerTorso);

								if (del != null)
								{
									del.Delete();
								}

								del = FindItemOnLayer(Layer.Pants);

								if (del != null)
								{
									del.Delete();
								}

								del = FindItemOnLayer(Layer.Neck);

								if (del != null)
								{
									del.Delete();
								}

								del = FindItemOnLayer(Layer.Gloves);

								if (del != null)
								{
									del.Delete();
								}

								del = FindItemOnLayer(Layer.Helm);

								if (del != null)
								{
									del.Delete();
								}

								del = FindItemOnLayer(Layer.Arms);

								if (del != null)
								{
									del.Delete();
								}

								del = FindItemOnLayer(Layer.Shoes);

								if (del != null)
								{
									del.Delete();
								}
							}
						}
					}
					break;
				case 6:
					{
						if (defender is BaseCreature)
						{
							var bc = (BaseCreature)defender;

							if (bc.Controlled != true)
							{
								kpgainmin = 5 + bc.HitsMax / 540;
								kpgainmax = 5 + bc.HitsMax / 480;

								KP += Utility.RandomList(kpgainmin, kpgainmax);
							}
						}

						if (KP >= 10000000)
						{
							if (S6)
							{
								S6 = false;

								int hits = HitsMax + 350;
								int va = VirtualArmor + 100;
								int mindamage = DamageMin + 15;
								int maxdamage = DamageMax + 15;

								Warmode = false;
								Say("*" + Name + " is now a Great Champion and loyal friend*");

								if (ControlMaster != null)
								{
									Title = ", Guardian of " + ControlMaster.Name + "";
								}

								SetDamage(mindamage, maxdamage);
								SetHits(hits);
								
								VirtualArmor = va;
								Stage = 7;

								RawStr += 125;
								RawInt += 125;
								RawDex += 35;
							}
						}
					}
					break;
				case 7:
					{
						if (defender is BaseCreature)
						{
							var bc = (BaseCreature)defender;

							if (bc.Controlled != true)
							{
								kpgainmin = 5 + bc.Hits / 740;
								kpgainmax = 5 + bc.Hits / 660;

								KP += Utility.RandomList(kpgainmin, kpgainmax);
							}
						}
					}
					break;
			}

			base.OnGaveMeleeAttack(defender);
		}
        public BrotherhoodGuard( int choice )
            : base(Nation.Alyrian)
        {
            int chance = Utility.RandomMinMax( 1, 6 );
            Nation nation = Nation.Alyrian;

            switch( chance )
            {
                case 1: nation = Nation.Alyrian; break;
                case 2: nation = Nation.Azhuran; break;
                case 3: nation = Nation.Khemetar; break;
                case 4: nation = Nation.Mhordul; break;
                case 5: nation = Nation.Tyrean; break;
                case 6: nation = Nation.Vhalurian; break;
            }

            Hue = BaseKhaerosMobile.AssignRacialHue( nation );
            HairItemID = BaseKhaerosMobile.AssignRacialHair( nation, this.Female );
            int hairhue = BaseKhaerosMobile.AssignRacialHairHue( nation );
            HairHue = hairhue;

            if( !this.Female )
            {

                FacialHairItemID = BaseKhaerosMobile.AssignRacialFacialHair( nation );
                FacialHairHue = hairhue;
            }

            if( this.Backpack == null )
                AddItem( new Backpack() );

            SetStr( 150 );
            SetDex( 75 );
            SetInt( 75 );

            SetDamage( 10, 15 );

            SetHits( 400 );

            SetDamageType( ResistanceType.Blunt, 100 );

            SetResistance( ResistanceType.Blunt, 10 );
            SetResistance( ResistanceType.Piercing, 10 );
            SetResistance( ResistanceType.Slashing, 10 );

            SetSkill( SkillName.Anatomy, 100.0 );
            SetSkill( SkillName.Archery, 100.0 );
            SetSkill( SkillName.Fencing, 100.0 );
            SetSkill( SkillName.Macing, 100.0 );
            SetSkill( SkillName.Swords, 100.0 );
            SetSkill( SkillName.Tactics, 100.0 );
            SetSkill( SkillName.Polearms, 100.0 );
            SetSkill( SkillName.ExoticWeaponry, 100.0 );
            SetSkill( SkillName.Axemanship, 100.0 );
            SetSkill( SkillName.UnarmedFighting, 100.0 );

            this.Fame = 12000;
            this.Karma = -12000;

            this.VirtualArmor = 0;

            FightMode = FightMode.Closest;

            Name = "Lucent Brotherhood Guard";

            if( choice > 3 || choice < 1 )
                choice = Utility.RandomMinMax( 1, 3 );

            switch( choice )
            {
                case 1:
                {
                    PlateChest chest = new PlateChest();
                    chest.Resource = CraftResource.Bronze;
                    chest.Hue = 2989;

                    PlateArms arms = new PlateArms();
                    arms.Resource = CraftResource.Bronze;
                    arms.Hue = 2989;

                    PlateLegs legs = new PlateLegs();
                    legs.Resource = CraftResource.Bronze;
                    legs.Hue = 2989;

                    PlateGorget gorget = new PlateGorget();
                    gorget.Resource = CraftResource.Bronze;
                    gorget.Hue = 2989;

                    PlateGloves gloves = new PlateGloves();
                    gloves.Resource = CraftResource.Bronze;
                    gloves.Hue = 2989;

                    EquipItem( chest );
                    EquipItem( arms );
                    EquipItem( legs );
                    EquipItem( gorget );
                    EquipItem( gloves );
                    EquipItem( new Greatsword() );
                    break;
                }

                case 2:
                {
                    StuddedChest chest = new StuddedChest();
                    chest.Resource = CraftResource.BeastLeather;
                    chest.Hue = 2989;

                    StuddedArms arms = new StuddedArms();
                    arms.Resource = CraftResource.BeastLeather;
                    arms.Hue = 2989;

                    StuddedLegs legs = new StuddedLegs();
                    legs.Resource = CraftResource.BeastLeather;
                    legs.Hue = 2989;

                    StuddedGorget gorget = new StuddedGorget();
                    gorget.Resource = CraftResource.BeastLeather;
                    gorget.Hue = 2989;

                    StuddedGloves gloves = new StuddedGloves();
                    gloves.Resource = CraftResource.BeastLeather;
                    gloves.Hue = 2989;

                    MetalShield shield = new MetalShield();
                    shield.Resource = CraftResource.Bronze;
                    shield.Hue = 2989;

                    LeatherBoots boots = new LeatherBoots();
                    boots.Resource = CraftResource.BeastLeather;
                    boots.Hue = 2989;

                    EquipItem( chest );
                    EquipItem( arms );
                    EquipItem( legs );
                    EquipItem( gorget );
                    EquipItem( gloves );
                    EquipItem( shield );
                    EquipItem( boots );
                    EquipItem( new Rapier() );
                    break;
                }

                case 3:
                {
                    LeatherChest chest = new LeatherChest();
                    chest.Resource = CraftResource.BeastLeather;
                    chest.Hue = 2989;

                    LeatherArms arms = new LeatherArms();
                    arms.Resource = CraftResource.BeastLeather;
                    arms.Hue = 2989;

                    LeatherLegs legs = new LeatherLegs();
                    legs.Resource = CraftResource.BeastLeather;
                    legs.Hue = 2989;

                    LeatherGorget gorget = new LeatherGorget();
                    gorget.Resource = CraftResource.BeastLeather;
                    gorget.Hue = 2989;

                    LeatherGloves gloves = new LeatherGloves();
                    gloves.Resource = CraftResource.BeastLeather;
                    gloves.Hue = 2989;

                    LeatherBoots boots = new LeatherBoots();
                    boots.Resource = CraftResource.BeastLeather;
                    boots.Hue = 2989;

                    EquipItem( chest );
                    EquipItem( arms );
                    EquipItem( legs );
                    EquipItem( gorget );
                    EquipItem( gloves );
                    EquipItem( boots );
                    EquipItem( new Crossbow() );
                    AI = AIType.AI_Archer;
                    PackItem( new Bolt( Utility.RandomMinMax( 10, 20 ) ) );
                    break;
                }
            }

            Surcoat surcoat = new Surcoat();
            surcoat.Hue = 2879;
            surcoat.Name = "Lucent Brotherhood Surcoat";
            surcoat.ItemID = 15527;

            FloppyHat mask = new FloppyHat();
            mask.Hue = 2879;
            mask.Name = "Lucent Brotherhood Mask";
            mask.ItemID = 15337;

            EquipItem( new ElegantCloak( 2989 ) );
            EquipItem( mask );
            EquipItem( surcoat );
        }
Exemple #11
0
 public override void InitOutfit()
 {
     Item item = null;
     if ( !Female )
     {
         item = AddRandomHair();
         item.Hue = Utility.RandomHairHue();
         item = AddRandomFacialHair( item.Hue );
         item = new Shirt();
         item.Hue = Utility.RandomNondyedHue();
         AddItem( item );
         item = new ShortPants();
         item.Hue = Utility.RandomNondyedHue();
         AddItem( item );
         item = Utility.RandomBool() ? (Item)new Boots() : (Item)new ThighBoots();
         AddItem( item );
         item = new LeatherGorget();
         item.Hue = 443;
         AddItem( item );
         PackGold( 15, 100 );
     } else {
         item = AddRandomHair();
         item.Hue = Utility.RandomHairHue();
         item = new Shirt();
         item.Hue = Utility.RandomNondyedHue();
         AddItem( item );
         item = new Skirt();
         item.Hue = Utility.RandomNondyedHue();
         AddItem( item );
         item = Utility.RandomBool() ? (Item)new Boots() : (Item)new ThighBoots();
         AddItem( item );
         item = new LeatherGorget();
         item.Hue = 443;
         AddItem( item );
         PackGold( 15, 100 );
     }
 }
        public NewPlayerPackage()
        {
            Name = "New Player Welcome Package";
            Hue = 1281;
            LootType = LootType.Newbied;
            

            /*
            Spellbook book1 = new Spellbook();
            book1.Content = ulong.MaxValue;
            DropItem(book1);
            book1.Location = new Point3D(16, 83, 0);

            BookOfChivalry book2 = new BookOfChivalry();
            book2.Content = 1023;//all spells
            DropItem(book2);
            book2.Location = new Point3D(33, 83, 0);

            NecromancerSpellbook book3 = new NecromancerSpellbook();
            book3.Content = 0x1FFFF;
            DropItem(book3);
            book3.Location = new Point3D(49, 83, 0);
            */ 

            BaseArmor armor = new LeatherChest();
            armor.Hue = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.LowerManaCost = 2;
            armor.Attributes.LowerRegCost = 5;
            armor.Attributes.Luck = 10;
            armor.Attributes.BonusMana = 3;
            armor.Attributes.RegenMana = 1;
            armor.ColdBonus = 1;
            armor.EnergyBonus = 1;
            armor.FireBonus = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(61, 74, 0);

            armor = new LeatherLegs();
            armor.Hue = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.RegenHits = 1;
            armor.Attributes.BonusHits = 3;
            armor.Attributes.LowerManaCost = 2;
            armor.Attributes.LowerRegCost = 5;
            armor.Attributes.Luck = 10;
            armor.ColdBonus = 1;
            armor.EnergyBonus = 1;
            armor.FireBonus = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(71, 78, 0);

            armor = new LeatherArms();
            armor.Hue = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.LowerManaCost = 2;
            armor.Attributes.LowerRegCost = 5;
            armor.Attributes.Luck = 10;
            armor.Attributes.BonusStam = 3;
            armor.Attributes.RegenStam = 1;
            armor.ColdBonus = 1;
            armor.EnergyBonus = 1;
            armor.FireBonus = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(94, 84, 0);

            armor = new LeatherGloves();
            armor.Hue = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.LowerManaCost = 2;
            armor.Attributes.LowerRegCost = 5;
            armor.Attributes.Luck = 10;
            armor.Attributes.BonusStr = 2;
            armor.ColdBonus = 1;
            armor.EnergyBonus = 1;
            armor.FireBonus = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(108, 85, 0);

            armor = new LeatherGorget();
            armor.Hue = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.LowerManaCost = 2;
            armor.Attributes.LowerRegCost = 5;
            armor.Attributes.BonusInt = 2;
            armor.Attributes.Luck = 10;
            armor.ColdBonus = 1;
            armor.EnergyBonus = 1;
            armor.FireBonus = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(122, 79, 0);

            armor = new LeatherCap();
            armor.Hue = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.BonusDex = 2;
            armor.Attributes.LowerManaCost = 2;
            armor.Attributes.LowerRegCost = 5;
            armor.Attributes.Luck = 10;
            armor.ColdBonus = 1;
            armor.EnergyBonus = 1;
            armor.FireBonus = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(115, 88, 0);

            armor = new MetalShield();
            armor.Hue = 537;
            armor.LootType = LootType.Newbied;
            armor.ArmorAttributes.DurabilityBonus = 20;
            armor.Attributes.AttackChance = 5;
            armor.Attributes.DefendChance = 5;
            armor.Attributes.SpellChanneling = 1;
            armor.Attributes.Luck = 10;
            armor.ColdBonus = 1;
            armor.EnergyBonus = 1;
            armor.FireBonus = 1;
            //armor.ArmorRatingBonus = 2;
            armor.PoisonBonus = 1;
            DropItem(armor);
            armor.Location = new Point3D(132, 85, 0);

            BaseJewel ring = new GoldRing();
            ring.LootType = LootType.Newbied;
            ring.Attributes.NightSight = 1;
            ring.Attributes.SpellDamage = 5;
            ring.Attributes.WeaponDamage = 5;
            DropItem(ring);
            ring.Location = new Point3D(140, 60, 0);

            Item item = new Bandage(100);
            DropItem(item);
            item.Location = new Point3D(135, 66, 0);
        }
        public FamousPiratesAssassin()
            : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6)
        {
            // A FamousPirates Hybrid Assassin
            int Hue = 2075;

            // Skills and Stats
            this.InitStats(305, 305, 305);
            this.Skills[SkillName.Magery].Base = 150;
            this.Skills[SkillName.EvalInt].Base = 150;
            this.Skills[SkillName.Swords].Base = 150;
            this.Skills[SkillName.Tactics].Base = 150;
            this.Skills[SkillName.Meditation].Base = 150;
            this.Skills[SkillName.Poisoning].Base = 100;

            // Name
            this.Name = "BootStrap Bill Turner";

            // Equip
            Spellbook book = FullSpellbook();
            AddToBackpack(book);

            Katana kat = new Katana();
            kat.Movable = false;
            kat.LootType = LootType.Regular;
            kat.Crafter = this;
            kat.Poison = Poison.Deadly;
            kat.PoisonCharges = 30;
            kat.Quality = WeaponQuality.Exceptional;
            AddToBackpack(kat);

            LeatherArms lea = new LeatherArms();
            lea.Movable = false;
            lea.LootType = LootType.Regular;
            lea.Crafter = this;
            lea.Quality = ArmorQuality.Exceptional;
            AddItem(lea);

            LeatherChest lec = new LeatherChest();
            lec.Movable = false;
            lec.LootType = LootType.Regular;
            lec.Crafter = this;
            lec.Quality = ArmorQuality.Exceptional;
            AddItem(lec);

            LeatherGorget leg = new LeatherGorget();
            leg.Movable = false;
            leg.LootType = LootType.Regular;
            leg.Crafter = this;
            leg.Quality = ArmorQuality.Exceptional;
            AddItem(leg);

            LeatherLegs lel = new LeatherLegs();
            lel.Movable = false;
            lel.LootType = LootType.Regular;
            lel.Crafter = this;
            lel.Quality = ArmorQuality.Exceptional;
            AddItem(lel);

            Boots snd = new Boots();
			snd.Movable = false;
            snd.Hue = Hue;
            snd.LootType = LootType.Regular;
            AddItem(snd);

            TricorneHat tch = new TricorneHat();
            tch.Movable = false;
            tch.Hue = Hue;
            AddItem(tch);

            DeadlyPoisonPotion pota = new DeadlyPoisonPotion();
            pota.LootType = LootType.Regular;
            AddToBackpack(pota);

            DeadlyPoisonPotion potb = new DeadlyPoisonPotion();
            potb.LootType = LootType.Regular;
            AddToBackpack(potb);

            DeadlyPoisonPotion potc = new DeadlyPoisonPotion();
            potc.LootType = LootType.Regular;
            AddToBackpack(potc);

            DeadlyPoisonPotion potd = new DeadlyPoisonPotion();
            potd.LootType = LootType.Regular;
            AddToBackpack(potd);

            Bandage band = new Bandage(50);
            AddToBackpack(band);

        }
        public FamousPiratesHealer()
            : base(AIType.AI_Healer, FightMode.Closest, 15, 1, 0.2, 0.6)
        {
            // A FamousPirates Healer Mage
            int Hue = 2075;

            // Skills and Stats
            this.InitStats(250, 250, 250);
            this.Skills[SkillName.Magery].Base = 150;
            this.Skills[SkillName.EvalInt].Base = 150;
            this.Skills[SkillName.Anatomy].Base = 150;
            this.Skills[SkillName.Wrestling].Base = 150;
            this.Skills[SkillName.Meditation].Base = 150;
            this.Skills[SkillName.Healing].Base = 100;

            // Name
            this.Name = "Governor Swann";

            // Equip
            Spellbook book = FullSpellbook();
            AddItem(book);

            LeatherArms lea = new LeatherArms();
            lea.Movable = false;
            lea.LootType = LootType.Regular;
            lea.Crafter = this;
            lea.Quality = ArmorQuality.Exceptional;
            AddItem(lea);

            LeatherChest lec = new LeatherChest();
            lec.Movable = false;
            lec.LootType = LootType.Regular;
            lec.Crafter = this;
            lec.Quality = ArmorQuality.Exceptional;
            AddItem(lec);

            LeatherGorget leg = new LeatherGorget();
            leg.Movable = false;
            leg.LootType = LootType.Regular;
            leg.Crafter = this;
            leg.Quality = ArmorQuality.Exceptional;
            AddItem(leg);

            LeatherLegs lel = new LeatherLegs();
            lel.Movable = false;
            lel.LootType = LootType.Regular;
            lel.Crafter = this;
            lel.Quality = ArmorQuality.Exceptional;
            AddItem(lel);

            Boots snd = new Boots();
			snd.Movable = false;
            snd.Hue = Hue;
            snd.LootType = LootType.Regular;
            AddItem(snd);

            TricorneHat tch = new TricorneHat();
            tch.Movable = false;
            tch.Hue = Hue;
            AddItem(tch);

            Robe robe = new Robe();
			robe.Movable = false;
            robe.Hue = Hue;
            AddItem(robe);

        }
        public FamousPiratesSuper()
            : base(AIType.AI_Mage, FightMode.Closest, 15, 1, 0.2, 0.6)
        {
            // A FamousPirates Super Mage
            int Hue = 2075;

            // Skills and Stats
            this.InitStats(250, 250, 250);
            this.Skills[SkillName.Magery].Base = 150;
            this.Skills[SkillName.EvalInt].Base = 150;
            this.Skills[SkillName.Anatomy].Base = 150;
            this.Skills[SkillName.Wrestling].Base = 150;
            this.Skills[SkillName.Meditation].Base = 150;
            this.Skills[SkillName.Poisoning].Base = 100;
            this.Skills[SkillName.Inscribe].Base = 100;

            // Name
            this.Name = "Captain Jack Sparrow";

            // Equip
            Spellbook book = FullSpellbook();
            AddItem(book);

            LeatherArms lea = new LeatherArms();
            lea.Movable = false;
            lea.LootType = LootType.Regular;
            lea.Crafter = this;
            lea.Quality = ArmorQuality.Exceptional;
            AddItem(lea);

            LeatherChest lec = new LeatherChest();
            lec.Movable = false;
            lec.LootType = LootType.Regular;
            lec.Crafter = this;
            lec.Quality = ArmorQuality.Exceptional;
            AddItem(lec);

            LeatherGorget leg = new LeatherGorget();
            leg.Movable = false;
            leg.LootType = LootType.Regular;
            leg.Crafter = this;
            leg.Quality = ArmorQuality.Exceptional;
            AddItem(leg);

            LeatherLegs lel = new LeatherLegs();
            lel.Movable = false;
            lel.LootType = LootType.Regular;
            lel.Crafter = this;
            lel.Quality = ArmorQuality.Exceptional;
            AddItem(lel);

            Boots snd = new Boots();
			snd.Movable = false;
            snd.Hue = Hue;
            snd.LootType = LootType.Regular;
            AddItem(snd);

            JesterHat jhat = new JesterHat();
			jhat.Movable = false;
            jhat.Hue = Hue;
            AddItem(jhat);

            Doublet dblt = new Doublet();
			dblt.Movable = false;
            dblt.Hue = Hue;
            AddItem(dblt);

            // Spells
            AddSpellAttack(typeof(Spells.First.MagicArrowSpell));
            AddSpellAttack(typeof(Spells.First.WeakenSpell));
            AddSpellAttack(typeof(Spells.Sixth.ExplosionSpell));
            AddSpellDefense(typeof(Spells.Third.WallOfStoneSpell));
            AddSpellDefense(typeof(Spells.Fourth.GreaterHealSpell));
        }
		public DummyThief() : base(AIType.AI_Thief, FightMode.Closest, 15, 1, 0.2, 0.6)
		{
			// A Dummy Hybrid Thief
			int iHue = 20 + Team * 40;
			int jHue = 25 + Team * 40;

			// Skills and Stats
			this.InitStats( 105, 105, 105 );
			this.Skills[SkillName.Healing].Base = 120;
			this.Skills[SkillName.Anatomy].Base = 120;
			this.Skills[SkillName.Stealing].Base = 120;
			this.Skills[SkillName.ArmsLore].Base = 100;
			this.Skills[SkillName.Meditation].Base = 120;
			this.Skills[SkillName.Wrestling].Base = 120;

			// Name
			this.Name = "Hybrid Thief";

			// Equip
			Spellbook book = new Spellbook();
			book.Movable = false;
			book.LootType = LootType.Newbied;
			book.Content =0xFFFFFFFFFFFFFFFF;
			AddItem( book );

			LeatherArms lea = new LeatherArms();
			lea.Movable = false;
			lea.LootType = LootType.Newbied;
			lea.Crafter = this;
			lea.Quality = ArmorQuality.Regular;
			AddItem( lea );

			LeatherChest lec = new LeatherChest();
			lec.Movable = false;
			lec.LootType = LootType.Newbied;
			lec.Crafter = this;
			lec.Quality = ArmorQuality.Regular;
			AddItem( lec );

			LeatherGorget leg = new LeatherGorget();
			leg.Movable = false;
			leg.LootType = LootType.Newbied;
			leg.Crafter = this;
			leg.Quality = ArmorQuality.Regular;
			AddItem( leg );

			LeatherLegs lel = new LeatherLegs();
			lel.Movable = false;
			lel.LootType = LootType.Newbied;
			lel.Crafter = this;
			lel.Quality = ArmorQuality.Regular;
			AddItem( lel );

			Sandals snd = new Sandals();
			snd.Hue = iHue;
			snd.LootType = LootType.Newbied;
			AddItem( snd );

			Cap cap = new Cap();
			cap.Hue = iHue;
			AddItem( cap );

			Robe robe = new Robe();
			robe.Hue = iHue;
			AddItem( robe );

			Bandage band = new Bandage( 50 );
			AddToBackpack( band );
		}
        public FamousPiratesStun()
            : base(AIType.AI_Mage, FightMode.Closest, 15, 1, 0.2, 0.6)
        {

            // A FamousPirates Stun Mage
            int Hue = 2075;

            // Skills and Stats
            this.InitStats(210, 210, 250);
            this.Skills[SkillName.Magery].Base = 100;
            this.Skills[SkillName.EvalInt].Base = 150;
            this.Skills[SkillName.Anatomy].Base = 80;
            this.Skills[SkillName.Wrestling].Base = 80;
            this.Skills[SkillName.Meditation].Base = 100;
            this.Skills[SkillName.Poisoning].Base = 100;


            // Name
            this.Name = "William Turner";

            // Equip
            Spellbook book = FullSpellbook();
            AddItem(book);

            LeatherArms lea = new LeatherArms();
            lea.Movable = false;
            lea.LootType = LootType.Regular;
            lea.Crafter = this;
            lea.Quality = ArmorQuality.Exceptional;
            AddItem(lea);

            LeatherChest lec = new LeatherChest();
            lec.Movable = false;
            lec.LootType = LootType.Regular;
            lec.Crafter = this;
            lec.Quality = ArmorQuality.Exceptional;
            AddItem(lec);

            LeatherGorget leg = new LeatherGorget();
            leg.Movable = false;
            leg.LootType = LootType.Regular;
            leg.Crafter = this;
            leg.Quality = ArmorQuality.Exceptional;
            AddItem(leg);

            LeatherLegs lel = new LeatherLegs();
            lel.Movable = false;
            lel.LootType = LootType.Regular;
            lel.Crafter = this;
            lel.Quality = ArmorQuality.Exceptional;
            AddItem(lel);

            Boots bts = new Boots();
			bts.Movable = false;
            bts.Hue = Hue;
            AddItem(bts);

            TricorneHat tch = new TricorneHat();
            tch.Movable = false;
            tch.Hue = Hue;
            AddItem(tch);

            // Spells
            AddSpellAttack(typeof(Spells.First.MagicArrowSpell));
            AddSpellAttack(typeof(Spells.First.WeakenSpell));
            AddSpellAttack(typeof(Spells.Sixth.ExplosionSpell));
            AddSpellDefense(typeof(Spells.Third.WallOfStoneSpell));
            AddSpellDefense(typeof(Spells.Fourth.GreaterHealSpell));
        }
        public AmazonTreeSettlementTreasureChest() : base(0xE43)
        {
            Name    = "a treasure chest -10-";
            Movable = true;
            Weight  = 1000.0;

            TrapPower = 0;
            Locked    = true;

            RequiredSkill = 10;
            LockLevel     = 10;
            MaxLockLevel  = 15;

            // Gold
            if (Utility.RandomDouble() < 0.25)
            {
                DropItem(new Gold(Utility.Random(15, 200)));
            }

/////////////////////////////////////// Supplies

            if (Utility.RandomDouble() < 0.10)
            {
                DropItem(new Arrow(Utility.Random(2, 6)));
            }

            if (Utility.RandomDouble() < 0.10)
            {
                DropItem(new Bolt(Utility.Random(2, 6)));
            }

            Item ReagentLoot = Loot.RandomReagent();

            ReagentLoot.Amount = Utility.Random(2, 6);
            DropItem(ReagentLoot);

            if (Utility.RandomDouble() < 0.10)
            {
                DropItem(new Bandage(Utility.Random(2, 6)));
            }

            if (Utility.RandomDouble() < 0.10)
            {
                DropItem(new Bedroll());
            }

            if (Utility.RandomDouble() < 0.10)
            {
                DropItem(new Bottle(Utility.Random(2, 6)));
            }

            if (Utility.RandomDouble() < 0.10)
            {
                DropItem(new Lockpick(Utility.Random(2, 6)));
            }

            Item PotionLoot = Loot.RandomPotion();

            DropItem(PotionLoot);

/////////////////////////////////////// Tools

            if (Utility.RandomDouble() < 0.10)
            {
                DropItem(new FishingPole());
            }

            if (Utility.RandomDouble() < 0.10)
            {
                DropItem(new Shovel());
            }

            if (Utility.RandomDouble() < 0.10)
            {
                DropItem(new Skillet());
            }

/////////////////////////////////////// Rare Items

            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new DyeTub());
            }

            if (Utility.RandomDouble() < 0.05)
            {
                DropItem(new AmazonianFighterBelt());
            }
            if (Utility.RandomDouble() < 0.05)
            {
                DropItem(new AmazonianFighterBoots());
            }
            if (Utility.RandomDouble() < 0.05)
            {
                DropItem(new AmazonianFighterBustier());
            }
            if (Utility.RandomDouble() < 0.05)
            {
                DropItem(new AmazonianFighterGloves());
            }
            if (Utility.RandomDouble() < 0.05)
            {
                DropItem(new AmazonianFighterHelmet());
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseWeapon weapon = Loot.RandomWeapon(true);
                switch (Utility.Random(21))
                {
                case 0: weapon = new Hatchet(); break;

                case 1: weapon = new Bow(); break;

                case 2: weapon = new Crossbow(); break;

                case 3: weapon = new Club(); break;

                case 4: weapon = new Mace(); break;

                case 5: weapon = new Maul(); break;

                case 6: weapon = new Pitchfork(); break;

                case 7: weapon = new ShortSpear(); break;

                case 8: weapon = new GnarledStaff(); break;

                case 9: weapon = new ShepherdsCrook(); break;

                case 10: weapon = new Cutlass(); break;

                case 11: weapon = new Katana(); break;

                case 12: weapon = new Kryss(); break;

                case 13: weapon = new Scimitar(); break;

                case 14: weapon = new AssassinSpike(); break;

                case 15: weapon = new DiamondMace(); break;

                case 16: weapon = new Leafblade(); break;

                case 17: weapon = new MagicalShortbow(); break;

                case 18: weapon = new RadiantScimitar(); break;

                case 19: weapon = new WildStaff(); break;

                default: weapon = new Dagger(); break;
                }

                BaseRunicTool.ApplyAttributesTo(weapon, 2, 10, 15);
                weapon.DamageLevel     = (WeaponDamageLevel)Utility.Random(2);
                weapon.AccuracyLevel   = (WeaponAccuracyLevel)Utility.Random(2);
                weapon.DurabilityLevel = (WeaponDurabilityLevel)Utility.Random(2);
                weapon.Quality         = WeaponQuality.Regular;

                DropItem(weapon);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseArmor armor = Loot.RandomArmor(true);
                switch (Utility.Random(10))
                {
                case 0: armor = new FemaleLeatherChest(); break;

                case 1: armor = new LeatherBustierArms(); break;

                case 2: armor = new LeatherArms(); break;

                case 3: armor = new LeatherCap(); break;

                case 4: armor = new LeatherGloves(); break;

                case 5: armor = new LeatherGorget(); break;

                case 6: armor = new LeatherLegs(); break;

                case 7: armor = new LeatherShorts(); break;

                case 8: armor = new LeatherSkirt(); break;

                default: armor = new LeatherChest(); break;
                }

                BaseRunicTool.ApplyAttributesTo(armor, 3, 10, 15);
                armor.ProtectionLevel = (ArmorProtectionLevel)Utility.Random(3);
                armor.Durability      = (ArmorDurabilityLevel)Utility.Random(3);
                armor.Quality         = ArmorQuality.Regular;

                DropItem(armor);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseHat hat = Loot.RandomHat(true);
                switch (Utility.Random(5))
                {
                case 0: hat = new BearMask(); break;

                case 1: hat = new DeerMask(); break;

                case 2: hat = new FeatheredHat(); break;

                case 3: hat = new WizardsHat(); break;

                default: hat = new TribalMask(); break;
                }

                BaseRunicTool.ApplyAttributesTo(hat, 3, 10, 15);

                DropItem(hat);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseClothing clothing = Loot.RandomClothing(true);
                BaseRunicTool.ApplyAttributesTo(clothing, 3, 10, 15);

                DropItem(clothing);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseShield shield = new MetalShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield, 3, 10, 15);
                }

                DropItem(shield);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel bracelet = new GoldBracelet();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(bracelet, 3, 10, 15);
                }

                DropItem(bracelet);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel earrings = new GoldEarrings();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(earrings, 3, 10, 15);
                }

                DropItem(earrings);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel necklace = new GoldNecklace();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(necklace, 3, 10, 15);
                }

                DropItem(necklace);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel ring = new GoldRing();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(ring, 3, 10, 15);
                }

                DropItem(ring);
            }
        }
		public EvilBioEngineer() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			SpeechHue = Utility.RandomDyedHue();
			Title = "the insane bio engineer";
			Hue = Utility.RandomSkinHue();

			if ( this.Female = Utility.RandomBool() )
			{
				Body = 0x191;
				Name = NameList.RandomName( "female" );
			}
			else
			{
				Body = 0x190;
				Name = NameList.RandomName( "male" );
			}

			SetStr( 125, 175 );
			SetDex( 115, 125 );
			SetInt( 115, 125 );

			SetHits( 750, 1250 );
			SetMana( 1000 );

			SetDamage( 10, 23 );

			SetSkill( SkillName.Fencing, 66.0, 97.5 );
			SetSkill( SkillName.Macing, 65.0, 87.5 );
			SetSkill( SkillName.MagicResist, 25.0, 47.5 );
			SetSkill( SkillName.Swords, 65.0, 87.5 );
			SetSkill( SkillName.Tactics, 65.0, 87.5 );
			SetSkill( SkillName.Wrestling, 15.0, 37.5 );
			SetSkill( SkillName.EvalInt, 55.0, 67.5 );
			SetSkill( SkillName.Magery, 55.0, 67.5 );

			switch ( Utility.Random( 7 ))
			{
				case 0: AddItem( new Longsword() ); break;
				case 1: AddItem( new Cutlass() ); break;
				case 2: AddItem( new Broadsword() ); break;
				case 3: AddItem( new Axe() ); break;
				case 4: AddItem( new Club() ); break;
				case 5: AddItem( new Dagger() ); break;
				case 6: AddItem( new Spear() ); break;
			}

			Fame = 5000;
			Karma = -5000;

			AddItem( new Boots() );

			int hue = Utility.RandomMinMax( 1355, 1378 );  //Random Damage Type Hue

			Item robe = new Robe();
			robe.Hue = hue;
			AddItem( robe );

			Item chest = new LeatherChest();
			chest.Hue = hue;
			AddItem( chest );

			Item gloves = new LeatherGloves();
			gloves.Hue = hue;
			AddItem( gloves );

			Item gorget = new LeatherGorget();
			gorget.Hue = hue;
			AddItem( gorget );

			Item legs = new LeatherLegs();
			legs.Hue = hue;
			AddItem( legs );

			Item arms = new LeatherArms();
			arms.Hue = hue;
			AddItem( arms );

			Item hair = new Item( Utility.RandomList( 0x203B, 0x2049, 0x2048, 0x204A ) );
			hair.Hue = Utility.RandomNondyedHue();
			hair.Layer = Layer.Hair;
			hair.Movable = false;
			AddItem( hair );

			PackItem( new Organics( Utility.RandomMinMax( 150, 300 ) ) );

			if ( Utility.Random( 100 ) < 25 )
			{
				switch ( Utility.Random( 2 ))
				{
					case 0: PackItem( new EmptyDNAVial() ); break;
					case 1: PackItem( new EmptyDNAVialSet() ); break;
				}
			}
		}
        public static void CreateItem(ItemInfo info, Mobile m)
        {
            if (m == null)
                return;

            Item item = null;
            BaseCreature bc = null;
            switch (info.IncrID)
            {
                case 0: item = new BlackPearl(999); break;
                case 1: item = new Bloodmoss(999); break;
                case 2: item = new MandrakeRoot(999); break;
                case 3: item = new Garlic(999); break;
                case 4: item = new Ginseng(999); break;
                case 5: item = new Nightshade(999); break;
                case 6: item = new SpidersSilk(999); break;
                case 7: item = new SulfurousAsh(999); break;
                case 8: item = new Bag();
                        ((Bag)item).DropItem( new BlackPearl(100) );
                        ((Bag)item).DropItem( new Bloodmoss(100) );
                        ((Bag)item).DropItem( new MandrakeRoot(100) );
                        ((Bag)item).DropItem( new Garlic(100) );
                        ((Bag)item).DropItem( new Ginseng(100) );
                        ((Bag)item).DropItem( new Nightshade(100) );
                        ((Bag)item).DropItem( new SpidersSilk(100) );
                        ((Bag)item).DropItem( new SulfurousAsh(100) );
                        break;
                case 9: item = new BatWing(999); break;
                case 10: item = new GraveDust(999); break;
                case 11: item = new DaemonBlood(999); break;
                case 12: item = new NoxCrystal(999); break;
                case 13: item = new PigIron(999); break;
                case 14: item = new Bag();
                        ((Bag)item).DropItem( new BatWing(100) );
                        ((Bag)item).DropItem( new GraveDust(100) );
                        ((Bag)item).DropItem( new DaemonBlood(100) );
                        ((Bag)item).DropItem( new NoxCrystal(100) );
                        ((Bag)item).DropItem( new PigIron(100) );
                        break;
                case 15: for (int i=0; i < 2; i++) //The last potion is dropped later
                        {
                            item = new RefreshPotion();
                            m.AddToBackpack(item);
                        }
                        item = new RefreshPotion();
                        break;
                case 16: for (int i=0; i < 2; i++) //The last potion is dropped later
                        {
                            item = new RefreshPotion();
                            m.AddToBackpack(item);
                        }
                        item = new LesserCurePotion();
                        break;
                case 17: for (int i=0; i < 2; i++) //The last potion is dropped later
                        {
                            item = new RefreshPotion();
                            m.AddToBackpack(item);
                        }
                        item = new LesserHealPotion();
                        break;
                case 18: for (int i=0; i < 2; i++) //The last potion is dropped later
                        {
                            item = new RefreshPotion();
                            m.AddToBackpack(item);
                        }
                        item = new NightSightPotion();
                        break;
                case 19: item = new Bandage(50); break;
                case 20: item = new Bandage(200); break;
                case 21: item = new Bandage(1000); break;
                case 22: item = new Arrow(100); break;
                case 23: item = new Arrow(1000); break;
                case 24: item = new Bolt(100); break;
                case 25: item = new Bolt(1000); break;
                case 26: bc = new Horse(); break;
                case 27: bc = new PackLlama(); break;
                case 28: item = new Club();
                        BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 29: item = new WarFork();
                        BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 30: item = new Katana();
                        BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 31: item = new Bow();
                        BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 32: item = new MetalKiteShield();
                        BaseRunicTool.ApplyAttributesTo((BaseShield)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 33: item = new WoodenShield();
                        BaseRunicTool.ApplyAttributesTo((BaseShield)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 34: item = new LeatherChest();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 35: item = new LeatherGloves();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 36: item = new LeatherGorget();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 37: item = new LeatherLegs();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 38: item = new LeatherCap();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 39: item = new LeatherArms();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 40: item = new Gold(300); break;
                case 41: item = new Gold(3000); break;
                case 42: item = new Server.Engines.BulkOrders.BulkOrderBook(); break;
                case 43: item = new Drums();
                        ((BaseInstrument)item).Quality = InstrumentQuality.Exceptional;
                        break;
                case 44: item = new TambourineTassel();
                        ((BaseInstrument)item).Quality = InstrumentQuality.Exceptional;
                        break;
                case 45: item = new Server.Multis.SmallDragonBoatDeed(); break;
                case 46: item = new Server.Multis.LargeDragonBoatDeed(); break;
            }

            if (item != null)
            {
                m.AddToBackpack(item);
                m.SendMessage("Here are the goods you requested.");
            }
            else if (bc != null)
            {
                bc.Controlled = true;
                bc.ControlMaster = m;
                bc.MoveToWorld( m.Location, m.Map );
                m.SendMessage("Here is the pet you requested.");
            }
            else
            {
                m.SendMessage("That item is not available. Please report the bug at the site that will open in your browser.");
                m.LaunchBrowser( "http://bug.casiopia.net/" );
                m.AddToBackpack( new VeriteGem(info.Price) );
            }
        }
		public EvilGenetecist() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			SpeechHue = Utility.RandomDyedHue();
			Title = "the evil genetecist";
			Hue = Utility.RandomSkinHue();

			if ( this.Female = Utility.RandomBool() )
			{
				Body = 0x191;
				Name = NameList.RandomName( "female" );
			}
			else
			{
				Body = 0x190;
				Name = NameList.RandomName( "male" );
			}

			SetStr( 200, 275 );
			SetDex( 115, 125 );
			SetInt( 200, 275 );

			SetHits( 1900, 2100 );
			SetMana( 1000 );

			SetDamage( 10, 23 );

			SetSkill( SkillName.Fencing, 66.0, 97.5 );
			SetSkill( SkillName.Macing, 65.0, 87.5 );
			SetSkill( SkillName.MagicResist, 25.0, 47.5 );
			SetSkill( SkillName.Swords, 65.0, 87.5 );
			SetSkill( SkillName.Tactics, 65.0, 87.5 );
			SetSkill( SkillName.Wrestling, 15.0, 37.5 );
			SetSkill( SkillName.EvalInt, 55.0, 67.5 );
			SetSkill( SkillName.Magery, 90.0, 105.5 );

			Fame = 5000;
			Karma = -5000;

			AddItem( new Boots() );

			int hue = Utility.RandomMinMax( 1410, 1450 );  //Random Zog Green

			Item robe = new Robe();
			robe.Hue = hue;
			AddItem( robe );

			Item chest = new LeatherChest();
			chest.Hue = hue;
			AddItem( chest );

			Item gloves = new LeatherGloves();
			gloves.Hue = hue;
			AddItem( gloves );

			Item gorget = new LeatherGorget();
			gorget.Hue = hue;
			AddItem( gorget );

			Item legs = new LeatherLegs();
			legs.Hue = hue;
			AddItem( legs );

			Item arms = new LeatherArms();
			arms.Hue = hue;
			AddItem( arms );

			Item hair = new Item( Utility.RandomList( 0x203B, 0x2049, 0x2048, 0x204A ) );
			hair.Hue = Utility.RandomNondyedHue();
			hair.Layer = Layer.Hair;
			hair.Movable = false;
			AddItem( hair );

			PackItem( new Organics( Utility.RandomMinMax( 250, 400 ) ) );

			if ( Utility.Random( 100 ) < 35 )
			{
				switch ( Utility.Random( 2 ))
				{
					case 0: PackItem( new EmptyDNAVial() ); break;
					case 1: PackItem( new EmptyDNAVialSet() ); break;
				}
			}

			if ( Utility.Random( 500 ) < 3 )
			{
				DNAItem dna = new DNAItem();

				switch ( Utility.Random( 4 ) )
				{
					case 0:
					dna.DNAName = "a dark father";
					dna.DNAType = DNAType.Prowess;
					dna.DNAQuality = DNAQuality.VeryHigh;
					dna.DNAStr = 500;
					dna.DNAHits = 30000;
					dna.DNADamageMin = 17;
					dna.DNADamageMax = 21;
					dna.DNAArmor = 64;
					dna.DNAPhysicalResist = 30; 
					dna.DNATactics = 100;
					dna.DNAWrestling = 100;
					PackItem( dna );
					break;

					case 1:
					dna.DNAName = "a fox guardian";
					dna.DNAType = DNAType.Environment;
					dna.DNAQuality = DNAQuality.VeryHigh;
					dna.DNADex = 275;
					dna.DNAStam = 300;
					dna.DNAColdResist = 30; 
					dna.DNAFireResist = 60; 
					dna.DNAPoisoning = 100;
					PackItem( dna );
					break;

					case 2:
					dna.DNAName = "Mondain The Wizard";
					dna.DNAType = DNAType.Mental;
					dna.DNAQuality = DNAQuality.VeryHigh;
					dna.DNAInt = 415;
					dna.DNAMana = 1000;
					dna.DNAEnergyResist = 70; 
					dna.DNAPoisonResist = 70;
					dna.DNAMagery = 100;
					dna.DNAEvalInt = 100;
					PackItem( dna );
					break;

					case 3:
					dna.DNAName = "a hell chicken";
					dna.DNAType = DNAType.Mimic;
					dna.DNABodyValue = 208;
					dna.DNASoundID = 110;
					dna.DNAHealAttack = true;
					dna.DNATrialByFire = true;
					PackItem( dna );
					break;
					
				}
			}
		}
        public EvilTannis()
            : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "Evil Tannis";
            Title = "the spider genetecist";
            Hue = 0;
            Body = 400;

            SetStr(200, 275);
            SetDex(115, 125);
            SetInt(200, 275);

            SetHits(1900, 2100);
            SetMana(1000);

            SetDamage(10, 23);

            SetSkill(SkillName.Fencing, 66.0, 97.5);
            SetSkill(SkillName.Macing, 65.0, 87.5);
            SetSkill(SkillName.MagicResist, 25.0, 47.5);
            SetSkill(SkillName.Swords, 65.0, 87.5);
            SetSkill(SkillName.Tactics, 65.0, 87.5);
            SetSkill(SkillName.Wrestling, 15.0, 37.5);
            SetSkill(SkillName.EvalInt, 55.0, 67.5);
            SetSkill(SkillName.Magery, 90.0, 105.5);

            Fame = 5000;
            Karma = -5000;

            AddItem(new Boots());

            int hue = Utility.RandomMinMax(1410, 1450);  //Random Zog Green

            Item robe = new Robe();
            robe.Hue = hue;
            AddItem(robe);

            Item chest = new LeatherChest();
            chest.Hue = hue;
            AddItem(chest);

            Item gloves = new LeatherGloves();
            gloves.Hue = hue;
            AddItem(gloves);

            Item gorget = new LeatherGorget();
            gorget.Hue = hue;
            AddItem(gorget);

            Item legs = new LeatherLegs();
            legs.Hue = hue;
            AddItem(legs);

            Item arms = new LeatherArms();
            arms.Hue = hue;
            AddItem(arms);

            Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A));
            hair.Hue = Utility.RandomNondyedHue();
            hair.Layer = Layer.Hair;
            hair.Movable = false;
            AddItem(hair);

            PackItem(new EvilTannisHead());

        }
        public SocietyGuard( int choice )
            : base(Nation.Alyrian)
        {
            int chance = Utility.RandomMinMax( 1, 6 );
            Nation nation = Nation.Alyrian;

            switch( chance )
            {
                case 1: nation = Nation.Alyrian; break;
                case 2: nation = Nation.Azhuran; break;
                case 3: nation = Nation.Khemetar; break;
                case 4: nation = Nation.Mhordul; break;
                case 5: nation = Nation.Tyrean; break;
                case 6: nation = Nation.Vhalurian; break;
            }

            Hue = BaseKhaerosMobile.AssignRacialHue( nation );
            HairItemID = BaseKhaerosMobile.AssignRacialHair( nation, this.Female );
            int hairhue = BaseKhaerosMobile.AssignRacialHairHue( nation );
            HairHue = hairhue;

            if( !this.Female )
            {

                FacialHairItemID = BaseKhaerosMobile.AssignRacialFacialHair( nation );
                FacialHairHue = hairhue;
            }

            if( this.Backpack == null )
                AddItem( new Backpack() );

            SetStr( 150 );
            SetDex( 75 );
            SetInt( 75 );

            SetDamage( 10, 15 );

            SetHits( 400 );

            SetDamageType( ResistanceType.Blunt, 100 );

            SetResistance( ResistanceType.Blunt, 10 );
            SetResistance( ResistanceType.Piercing, 10 );
            SetResistance( ResistanceType.Slashing, 10 );

            SetSkill( SkillName.Anatomy, 100.0 );
            SetSkill( SkillName.Archery, 100.0 );
            SetSkill( SkillName.Fencing, 100.0 );
            SetSkill( SkillName.Macing, 100.0 );
            SetSkill( SkillName.Swords, 100.0 );
            SetSkill( SkillName.Tactics, 100.0 );
            SetSkill( SkillName.Polearms, 100.0 );
            SetSkill( SkillName.ExoticWeaponry, 100.0 );
            SetSkill( SkillName.Axemanship, 100.0 );
            SetSkill( SkillName.UnarmedFighting, 100.0 );

            this.Fame = 12000;
            this.Karma = -12000;

            this.VirtualArmor = 0;

            FightMode = FightMode.Closest;

            Name = "Society of Rymaliel Guard";

            if( choice > 3 || choice < 1 )
                choice = Utility.RandomMinMax( 1, 3 );

            switch( choice )
            {
                case 1:
                {
                    PlateChest chest = new PlateChest();
                    chest.Resource = CraftResource.Bronze;
                    chest.Hue = 2830;

                    PlateArms arms = new PlateArms();
                    arms.Resource = CraftResource.Bronze;
                    arms.Hue = 2830;

                    PlateLegs legs = new PlateLegs();
                    legs.Resource = CraftResource.Bronze;
                    legs.Hue = 2830;

                    PlateGorget gorget = new PlateGorget();
                    gorget.Resource = CraftResource.Bronze;
                    gorget.Hue = 2830;

                    PlateGloves gloves = new PlateGloves();
                    gloves.Resource = CraftResource.Bronze;
                    gloves.Hue = 2830;

                    CloseHelm helm = new CloseHelm();
                    helm.Resource = CraftResource.Bronze;
                    helm.Hue = 2830;

                    VhalurianMetalKiteShield shield = new VhalurianMetalKiteShield();
                    shield.Resource = CraftResource.Bronze;
                    shield.Name = "Society of Rymaliel Kite Shield";
                    shield.Hue = 2413;
                    shield.ItemID = 15726;

                    EquipItem( chest );
                    EquipItem( arms );
                    EquipItem( legs );
                    EquipItem( gorget );
                    EquipItem( gloves );
                    EquipItem( shield );
                    EquipItem( helm );
                    EquipItem( new Longsword() );
                    break;
                }

                case 2:
                {
                    StuddedChest chest = new StuddedChest();
                    chest.Resource = CraftResource.BeastLeather;
                    chest.Hue = 2830;

                    StuddedArms arms = new StuddedArms();
                    arms.Resource = CraftResource.BeastLeather;
                    arms.Hue = 2830;

                    StuddedLegs legs = new StuddedLegs();
                    legs.Resource = CraftResource.BeastLeather;
                    legs.Hue = 2830;

                    StuddedGorget gorget = new StuddedGorget();
                    gorget.Resource = CraftResource.BeastLeather;
                    gorget.Hue = 2830;

                    StuddedGloves gloves = new StuddedGloves();
                    gloves.Resource = CraftResource.BeastLeather;
                    gloves.Hue = 2830;

                    VhalurianMetalKiteShield shield = new VhalurianMetalKiteShield();
                    shield.Resource = CraftResource.Bronze;
                    shield.Name = "Society of Rymaliel Kite Shield";
                    shield.Hue = 2413;
                    shield.ItemID = 15726;

                    ThighBoots boots = new ThighBoots();
                    boots.Resource = CraftResource.BeastLeather;
                    boots.Hue = 2989;

                    EquipItem( chest );
                    EquipItem( arms );
                    EquipItem( legs );
                    EquipItem( gorget );
                    EquipItem( gloves );
                    EquipItem( shield );
                    EquipItem( boots );
                    EquipItem( new FlangedMace() );
                    break;
                }

                case 3:
                {
                    LeatherChest chest = new LeatherChest();
                    chest.Resource = CraftResource.BeastLeather;
                    chest.Hue = 2830;

                    LeatherArms arms = new LeatherArms();
                    arms.Resource = CraftResource.BeastLeather;
                    arms.Hue = 2830;

                    LeatherLegs legs = new LeatherLegs();
                    legs.Resource = CraftResource.BeastLeather;
                    legs.Hue = 2830;

                    LeatherGorget gorget = new LeatherGorget();
                    gorget.Resource = CraftResource.BeastLeather;
                    gorget.Hue = 2830;

                    LeatherGloves gloves = new LeatherGloves();
                    gloves.Resource = CraftResource.BeastLeather;
                    gloves.Hue = 2830;

                    ThighBoots boots = new ThighBoots();
                    boots.Resource = CraftResource.BeastLeather;
                    boots.Hue = 2830;

                    EquipItem( chest );
                    EquipItem( arms );
                    EquipItem( legs );
                    EquipItem( gorget );
                    EquipItem( gloves );
                    EquipItem( boots );
                    EquipItem( new CompositeShortbow() );
                    AI = AIType.AI_Archer;
                    PackItem( new Arrow( Utility.RandomMinMax( 10, 20 ) ) );
                    break;
                }
            }

            Surcoat surcoat = new Surcoat();
            surcoat.Name = "Society of Rymaliel Surcoat";
            surcoat.ItemID = 15483;

            EquipItem( surcoat );
        }
		public PegLeg() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "Peg Leg";
			Body = 159;

			SetStr( 60, 110 );
			SetDex( 60, 100 );
			SetInt( 60, 100 );

			SetHits( 200 );

			SetDamage( 5, 25 );

			SetDamageType( ResistanceType.Physical, 50 );
			SetDamageType( ResistanceType.Fire, 60 );
			SetDamageType( ResistanceType.Energy, 10 );

			SetResistance( ResistanceType.Physical, 30, 80 );
			SetResistance( ResistanceType.Fire, 20, 100 );
			SetResistance( ResistanceType.Cold, 10, 15 );
			SetResistance( ResistanceType.Poison, 20 );
			SetResistance( ResistanceType.Energy, 0, 20 );

			SetSkill( SkillName.Anatomy, 120 );
			SetSkill( SkillName.EvalInt, 90, 95.0 );
			SetSkill( SkillName.Magery, 50.5, 100.0 );
			SetSkill( SkillName.Meditation, 60 );
			SetSkill( SkillName.MagicResist, 10.1, 50.0 );
			SetSkill( SkillName.Tactics, 115, 125 );
			SetSkill( SkillName.Swords, 115, 125 );

			Fame = 8000;
			Karma = -8000;

			Kills = 10;

			Hue = 1271;

			VirtualArmor = 50;

			LeatherArms LeatherArms = new LeatherArms();
			LeatherArms.Hue = 1175;
			AddItem( LeatherArms );
			
			LeatherCap LeatherCap = new LeatherCap();
			LeatherCap.Hue = 1157;
			AddItem( LeatherCap );
			
			LeatherGloves LeatherGloves = new LeatherGloves();
			LeatherGloves.Hue = 1175;
			AddItem( LeatherGloves );

			LeatherLegs LeatherLegs = new LeatherLegs();
			LeatherLegs.Hue = 1157;
			AddItem( LeatherLegs );
			
			LeatherChest LeatherChest = new LeatherChest();
			LeatherChest.Hue = 1175;
			AddItem( LeatherChest );

			LeatherGorget LeatherGorget = new LeatherGorget();
			LeatherGorget.Hue = 1157;
			AddItem( LeatherGorget );

			//AddItem( new SparrowBlade() );
 			PackItem( new PegLeghook() );
			PackItem( new PegLegHead() );


		}
        public InsulariiHealer()
            : base(Nation.Alyrian)
        {
            int chance = Utility.RandomMinMax( 1, 6 );
            Nation nation = Nation.Alyrian;

            switch( chance )
            {
                case 1: nation = Nation.Alyrian; break;
                case 2: nation = Nation.Azhuran; break;
                case 3: nation = Nation.Khemetar; break;
                case 4: nation = Nation.Mhordul; break;
                case 5: nation = Nation.Tyrean; break;
                case 6: nation = Nation.Vhalurian; break;
            }

            Hue = BaseKhaerosMobile.AssignRacialHue( nation );
            HairItemID = BaseKhaerosMobile.AssignRacialHair( nation, this.Female );
            int hairhue = BaseKhaerosMobile.AssignRacialHairHue( nation );
            HairHue = hairhue;

            if( !this.Female )
            {
                FacialHairItemID = BaseKhaerosMobile.AssignRacialFacialHair( nation );
                FacialHairHue = hairhue;
            }

            if( this.Backpack == null )
                AddItem( new Backpack() );

            SetStr( 150 );
            SetDex( 75 );
            SetInt( 75 );

            SetDamage( 10, 15 );

            SetHits( 400 );
            SetMana( 300 );

            SetDamageType( ResistanceType.Blunt, 100 );

            SetResistance( ResistanceType.Blunt, 10 );
            SetResistance( ResistanceType.Piercing, 10 );
            SetResistance( ResistanceType.Slashing, 10 );

            SetSkill( SkillName.Anatomy, 100.0 );
            SetSkill( SkillName.Archery, 100.0 );
            SetSkill( SkillName.Fencing, 100.0 );
            SetSkill( SkillName.Macing, 100.0 );
            SetSkill( SkillName.Swords, 100.0 );
            SetSkill( SkillName.Tactics, 100.0 );
            SetSkill( SkillName.Polearms, 100.0 );
            SetSkill( SkillName.ExoticWeaponry, 100.0 );
            SetSkill( SkillName.Axemanship, 100.0 );
            SetSkill( SkillName.UnarmedFighting, 100.0 );

            this.Fame = 14000;

            this.VirtualArmor = 0;

            FightMode = FightMode.Closest;

            Title = "the Insularii Healer";
            Name = BaseKhaerosMobile.GiveInsulariiName( this.Female );

            LeatherChest chest = new LeatherChest();
            chest.Resource = CraftResource.BeastLeather;
            chest.Hue = 2591;

            LeatherArms arms = new LeatherArms();
            arms.Resource = CraftResource.BeastLeather;
            arms.Hue = 2591;

            LeatherLegs legs = new LeatherLegs();
            legs.Resource = CraftResource.BeastLeather;
            legs.Hue = 2591;

            LeatherGorget gorget = new LeatherGorget();
            gorget.Resource = CraftResource.BeastLeather;
            gorget.Hue = 2591;

            LeatherGloves gloves = new LeatherGloves();
            gloves.Resource = CraftResource.BeastLeather;
            gloves.Hue = 2591;

            BlackLeatherBoots boots = new BlackLeatherBoots();
            boots.Hue = 2591;

            GnarledStaff staff = new GnarledStaff();
            staff.Resource = CraftResource.Redwood;

            EquipItem( chest );
            EquipItem( arms );
            EquipItem( legs );
            EquipItem( gorget );
            EquipItem( gloves );
            EquipItem( boots );
            EquipItem( staff );

            Surcoat surcoat = new Surcoat();
            surcoat.Name = "Insularii Surcoat";
            surcoat.ItemID = 15502;
            surcoat.Hue = 2799;

            EquipItem( surcoat );
        }
		public ChickenPlucker() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) 
		{ 
			SetStr( 2205, 3245 );
			SetDex( 781, 995 );
			SetInt( 2361, 4475 );
			
			SetHits( 8650, 10000 );

			SetDamage( 15, 25 );

			SetDamageType( ResistanceType.Physical, 50, 70 );
			SetDamageType( ResistanceType.Fire, 50, 70 );
			SetDamageType( ResistanceType.Energy, 50, 70 );
			SetDamageType( ResistanceType.Poison, 50, 70 );

			SetResistance( ResistanceType.Physical, 100 );
			SetResistance( ResistanceType.Fire, 30, 50 );
			SetResistance( ResistanceType.Cold, 30, 50 );
			SetResistance( ResistanceType.Poison, 30, 50 );
			SetResistance( ResistanceType.Energy, 30, 50 );
			
			SetSkill( SkillName.Wrestling, 90, 120 );
			SetSkill( SkillName.Tactics, 90, 120 );
			SetSkill( SkillName.Healing, 120, 150 );
			SetSkill( SkillName.SpiritSpeak, 120, 150 );
			SetSkill( SkillName.Anatomy, 90, 120 );
			SetSkill( SkillName.Magery, 90, 120 );
			SetSkill( SkillName.MagicResist, 90, 120 );
			SetSkill( SkillName.Meditation, 90, 120 );
			SetSkill( SkillName.DetectHidden, 20000, 30000 );
			
			Fame = 5000;
			Karma = -5000;
 			
			Name = "Pixel";
			Title = "The Chicken Plucking Thief";
			Body = 0x190; 

			SpeechHue = Utility.RandomDyedHue(); 

			Hue = Utility.RandomSkinHue(); 

						
			LeatherChest chest = new LeatherChest(); 
			chest.Hue = 2492; 
			AddItem( chest ); 
			LeatherArms arms = new LeatherArms(); 
			arms.Hue = 2492; 
			AddItem( arms ); 
			LeatherGloves gloves = new LeatherGloves(); 
			gloves.Hue = 2492; 
			AddItem( gloves ); 
			LeatherGorget gorget = new LeatherGorget(); 
			gorget.Hue = 2492; 
			AddItem( gorget ); 
			LeatherLegs legs = new LeatherLegs(); 
			legs.Hue = 2492; 
			AddItem( legs ); 
			
			
			
			PackGold( 2420, 3690 );
			
			if( Utility.Random( 50 ) < 50 ) 
			switch ( Utility.Random( 50 ))
			{ 
        		case 0:	PackItem( new FighterCloak() );
        		break;
        		case 1: PackItem( new DruidCloak() );
        		break;
        		case 2: PackItem( new Piwafwi() );
        		break;
        		case 3: PackItem( new RogueCloak() );
        		break;
        		case 4: PackItem( new RogueSandals() );
        		break;
        		case 5: PackItem( new MasterSandals() );
        		break;
        		
		}

	} 
Exemple #27
0
        public Death()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "Death";
            Title = "    The 4th Horseman";
            Body = 400;
            SpeechHue = 2128;
            Hue = 161;
            VirtualArmor = 45;
            Kills = 10;

            SetStr( 125 );
            SetDex( 251 );
            SetInt( 130 );

            SetHits(12000);
            SetDamage(25,45);
            SetDamageType(ResistanceType.Poison, 100);

            SetResistance(ResistanceType.Physical, 45,55);
            SetResistance(ResistanceType.Fire, 45, 55);
            SetResistance(ResistanceType.Cold, 45, 55);
            SetResistance(ResistanceType.Energy, 45, 55);
            SetResistance(ResistanceType.Poison, 100);

            SetSkill(SkillName.Wrestling, 85.0, 92.5);
            SetSkill(SkillName.Tactics, 78.5, 87.2);
            SetSkill(SkillName.Anatomy, 68.7, 85.6);
            SetSkill(SkillName.Fencing, 92.5, 95.6);

            Fame = 0;
            Karma = -10000;
            Item Weapon = new ScytheOfDeath();

            Weapon.Movable = false;

            AddItem(Weapon);
              //  PackItem(new MasterCoin(40));

            VirtualArmor = 30;

            new PaleHorse().Rider = this;

            Item apron = new HalfApron(161);
            apron.Movable = false;
            AddItem( apron );

            Item hair = new ShortHair( 161 );
            hair.Movable = false;
            AddItem( hair );

            Item shoes = new Sandals(161);
            shoes.Movable = false;
            AddItem( shoes );

            Item mask = new OrcishKinMask(161);
               mask.Movable = false;
            AddItem( mask );

            Item robe = new Robe(161);
            robe.Movable = false;
            AddItem( robe );

            Item gloves = new LeatherGloves();
            gloves.Movable = false;
            gloves.Hue = 161;
            AddItem( gloves );

            Item gorget = new LeatherGorget();
            gorget.Movable = false;
            gorget.Hue = 161;
            AddItem( gorget );
        }
        public static BaseArmor NewbLuckArmor()
        {
            BaseArmor armor = null;

            switch( Utility.Random( 6 ) )
            {
                case 0: armor = new LeatherChest(); break;
                case 1: armor = new LeatherLegs(); break;
                case 2: armor = new LeatherArms(); break;
                case 3: armor = new LeatherGloves(); break;
                case 4: armor = new LeatherGorget(); break;
                case 5: armor = new LeatherCap(); break;
            }

            BaseRunicTool.ApplyAttributesTo(armor, Utility.Random( 4 ), 40, 80);

            int luck = 65 + Utility.Random( 21 ) + Utility.Random( 21 );
            if( luck > 100 )
                luck = 100;

            armor.Attributes.Luck = luck;
            armor.Hue = 2123;

            return armor;
        }
		public DummyStun() : base(AIType.AI_Mage, FightMode.Closest, 15, 1, 0.2, 0.6)
		{

			// A Dummy Stun Mage
			int iHue = 20 + Team * 40;
			int jHue = 25 + Team * 40;

			// Skills and Stats
			this.InitStats( 90, 90, 125 );
			this.Skills[SkillName.Magery].Base = 100;
			this.Skills[SkillName.EvalInt].Base = 120;
			this.Skills[SkillName.Anatomy].Base = 80;
			this.Skills[SkillName.Wrestling].Base = 80;
			this.Skills[SkillName.Meditation].Base = 100;
			this.Skills[SkillName.Poisoning].Base = 100;


			// Name
			this.Name = "Stun Mage";

			// Equip
			Spellbook book = new Spellbook();
			book.Movable = false;
			book.LootType = LootType.Newbied;
			book.Content =0xFFFFFFFFFFFFFFFF;
			AddItem( book );

			LeatherArms lea = new LeatherArms();
			lea.Movable = false;
			lea.LootType = LootType.Newbied;
			lea.Crafter = this;
			lea.Quality = ArmorQuality.Regular;
			AddItem( lea );

			LeatherChest lec = new LeatherChest();
			lec.Movable = false;
			lec.LootType = LootType.Newbied;
			lec.Crafter = this;
			lec.Quality = ArmorQuality.Regular;
			AddItem( lec );

			LeatherGorget leg = new LeatherGorget();
			leg.Movable = false;
			leg.LootType = LootType.Newbied;
			leg.Crafter = this;
			leg.Quality = ArmorQuality.Regular;
			AddItem( leg );

			LeatherLegs lel = new LeatherLegs();
			lel.Movable = false;
			lel.LootType = LootType.Newbied;
			lel.Crafter = this;
			lel.Quality = ArmorQuality.Regular;
			AddItem( lel );

			Boots bts = new Boots();
			bts.Hue = iHue;
			AddItem( bts );

			Cap cap = new Cap();
			cap.Hue = iHue;
			AddItem( cap );

			// Spells
			AddSpellAttack( typeof(Spells.First.MagicArrowSpell) );
			AddSpellAttack( typeof(Spells.First.WeakenSpell) );
			AddSpellAttack( typeof(Spells.Third.FireballSpell) );
			AddSpellDefense( typeof(Spells.Third.WallOfStoneSpell) );
			AddSpellDefense( typeof(Spells.First.HealSpell) );
		}
Exemple #30
0
        public DummyHealer()
            : base(AIType.AI_Healer, FightMode.Closest, 15, 1, 0.2, 0.6)
        {
            // A Dummy Healer Mage
            int iHue = 20 + this.Team * 40;
            int jHue = 25 + this.Team * 40;

            // Skills and Stats
            this.InitStats(125, 125, 125);
            this.Skills[SkillName.Magery].Base = 120;
            this.Skills[SkillName.EvalInt].Base = 120;
            this.Skills[SkillName.Anatomy].Base = 120;
            this.Skills[SkillName.Wrestling].Base = 120;
            this.Skills[SkillName.Meditation].Base = 120;
            this.Skills[SkillName.Healing].Base = 100;

            // Name
            this.Name = "Healer";

            // Equip
            Spellbook book = new Spellbook();
            book.Movable = false;
            book.LootType = LootType.Newbied;
            book.Content = 0xFFFFFFFFFFFFFFFF;
            this.AddItem(book);

            LeatherArms lea = new LeatherArms();
            lea.Movable = false;
            lea.LootType = LootType.Newbied;
            lea.Crafter = this;
            lea.Quality = ArmorQuality.Regular;
            this.AddItem(lea);

            LeatherChest lec = new LeatherChest();
            lec.Movable = false;
            lec.LootType = LootType.Newbied;
            lec.Crafter = this;
            lec.Quality = ArmorQuality.Regular;
            this.AddItem(lec);

            LeatherGorget leg = new LeatherGorget();
            leg.Movable = false;
            leg.LootType = LootType.Newbied;
            leg.Crafter = this;
            leg.Quality = ArmorQuality.Regular;
            this.AddItem(leg);

            LeatherLegs lel = new LeatherLegs();
            lel.Movable = false;
            lel.LootType = LootType.Newbied;
            lel.Crafter = this;
            lel.Quality = ArmorQuality.Regular;
            this.AddItem(lel);

            Sandals snd = new Sandals();
            snd.Hue = iHue;
            snd.LootType = LootType.Newbied;
            this.AddItem(snd);

            Cap cap = new Cap();
            cap.Hue = iHue;
            this.AddItem(cap);

            Robe robe = new Robe();
            robe.Hue = iHue;
            this.AddItem(robe);
        }
		public DummyAssassin() : base(AIType.AI_Melee, FightMode.Closest, 15, 1, 0.2, 0.6)
		{
			// A Dummy Hybrid Assassin
			int iHue = 20 + Team * 40;
			int jHue = 25 + Team * 40;

			// Skills and Stats
			this.InitStats( 105, 105, 105 );
			this.Skills[SkillName.Magery].Base = 120;
			this.Skills[SkillName.EvalInt].Base = 120;
			this.Skills[SkillName.Swords].Base = 120;
			this.Skills[SkillName.Tactics].Base = 120;
			this.Skills[SkillName.Meditation].Base = 120;
			this.Skills[SkillName.Poisoning].Base = 100;

			// Name
			this.Name = "Hybrid Assassin";

			// Equip
			Spellbook book = new Spellbook();
			book.Movable = false;
			book.LootType = LootType.Newbied;
			book.Content =0xFFFFFFFFFFFFFFFF;
			AddToBackpack( book );

			Katana kat = new Katana();
			kat.Movable = false;
			kat.LootType = LootType.Newbied;
			kat.Crafter = this;
			kat.Poison = Poison.Deadly;
			kat.PoisonCharges = 12;
			kat.Quality = WeaponQuality.Regular;
			AddToBackpack( kat );

			LeatherArms lea = new LeatherArms();
			lea.Movable = false;
			lea.LootType = LootType.Newbied;
			lea.Crafter = this;
			lea.Quality = ArmorQuality.Regular;
			AddItem( lea );

			LeatherChest lec = new LeatherChest();
			lec.Movable = false;
			lec.LootType = LootType.Newbied;
			lec.Crafter = this;
			lec.Quality = ArmorQuality.Regular;
			AddItem( lec );

			LeatherGorget leg = new LeatherGorget();
			leg.Movable = false;
			leg.LootType = LootType.Newbied;
			leg.Crafter = this;
			leg.Quality = ArmorQuality.Regular;
			AddItem( leg );

			LeatherLegs lel = new LeatherLegs();
			lel.Movable = false;
			lel.LootType = LootType.Newbied;
			lel.Crafter = this;
			lel.Quality = ArmorQuality.Regular;
			AddItem( lel );

			Sandals snd = new Sandals();
			snd.Hue = iHue;
			snd.LootType = LootType.Newbied;
			AddItem( snd );

			Cap cap = new Cap();
			cap.Hue = iHue;
			AddItem( cap );

			Robe robe = new Robe();
			robe.Hue = iHue;
			AddItem( robe );

			DeadlyPoisonPotion pota = new DeadlyPoisonPotion();
			pota.LootType = LootType.Newbied;
			AddToBackpack( pota );

			DeadlyPoisonPotion potb = new DeadlyPoisonPotion();
			potb.LootType = LootType.Newbied;
			AddToBackpack( potb );

			DeadlyPoisonPotion potc = new DeadlyPoisonPotion();
			potc.LootType = LootType.Newbied;
			AddToBackpack( potc );

			DeadlyPoisonPotion potd = new DeadlyPoisonPotion();
			potd.LootType = LootType.Newbied;
			AddToBackpack( potd );

			Bandage band = new Bandage( 50 );
			AddToBackpack( band );

		}
		public override void OnGaveMeleeAttack( Mobile defender )
		{
			int kpgainmin, kpgainmax;

			if ( this.Stage == 1 )
			{
				if ( defender is BaseCreature )
				{
					BaseCreature bc = (BaseCreature)defender;

					if ( bc.Controlled != true )
					{
						kpgainmin = 6 + ( bc.HitsMax ) / 10;
						kpgainmax = 6 + ( bc.HitsMax ) / 10;

						this.KP += Utility.RandomList( kpgainmin, kpgainmax );
					}
				}

				if ( this.KP >= 50000 )
				{
					if ( this.S1 == true )
					{
						this.S1 = false;
						int hits, va, mindamage, maxdamage;

						hits = ( this.HitsMax + 200 );

						va = ( this.VirtualArmor + 10 );

						mindamage = this.DamageMin + ( 1 );
						maxdamage = this.DamageMax + ( 1 );

						this.Warmode = false;
						this.Say( "*"+ this.Name +" achieves a new level of combat*");
						this.SetDamage( mindamage, maxdamage );
						this.SetHits( hits );
						this.VirtualArmor = va;
						this.Stage = 2;
						this.Title = "the Shadow Knight";

						this.SetDamageType( ResistanceType.Physical, 20 );
						this.SetDamageType( ResistanceType.Fire, 20 );
						this.SetDamageType( ResistanceType.Cold, 20 );
						this.SetDamageType( ResistanceType.Poison, 20 );
						this.SetDamageType( ResistanceType.Energy, 20 );

						this.SetResistance( ResistanceType.Physical, 45 );
						this.SetResistance( ResistanceType.Fire, 45 );
						this.SetResistance( ResistanceType.Cold, 45 );
						this.SetResistance( ResistanceType.Poison, 45 );
						this.SetResistance( ResistanceType.Energy, 45 );

						this.RawStr += 20;
						this.RawInt += 10;
						this.RawDex += 10;

						Item del = this.FindItemOnLayer( Layer.OuterTorso ); // The Robe
						if ( del != null )
						{
							del.Delete();
						}

						del = this.FindItemOnLayer( Layer.InnerTorso );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor chest = new LeatherChest();
						chest.Hue = 1175;
						chest.Movable = false;
						AddItem( chest );

						del = this.FindItemOnLayer( Layer.Pants );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor legs = new LeatherLegs();
						legs.Hue = 1175;
						legs.Movable = false;	
						AddItem( legs );

						del = this.FindItemOnLayer( Layer.Neck );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor gorget = new LeatherGorget();
						gorget.Hue = 1175;
						gorget.Movable = false;	
						AddItem( gorget );

						del = this.FindItemOnLayer( Layer.Gloves );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor gloves = new LeatherGloves();
						gloves.Hue = 1175;
						gloves.Movable = false;	
						AddItem( gloves );

						del = this.FindItemOnLayer( Layer.Helm );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor helm = new LeatherCap();
						helm.Hue = 1175;
						helm.Movable = false;	
						AddItem( helm );

						del = this.FindItemOnLayer( Layer.Arms );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor arms = new LeatherArms();
						arms.Hue = 1175;
						arms.Movable = false;	
						AddItem( arms );

						del = this.FindItemOnLayer( Layer.Shoes );
						if ( del != null )
						{
							del.Delete();
						}
						Item sandals = new Sandals();
						sandals.Hue = 1153;
						sandals.Movable = false;	
						AddItem( sandals );
					}
				}
			}

			else if ( this.Stage == 2 )
			{
				if ( defender is BaseCreature )
				{
					BaseCreature bc = (BaseCreature)defender;

					if ( bc.Controlled != true )
					{
						kpgainmin = 5 + ( bc.HitsMax ) / 10;
						kpgainmax = 5 + ( bc.HitsMax ) / 10;

						this.KP += Utility.RandomList( kpgainmin, kpgainmax );
					}
				}

				if ( this.KP >= 100000 )
				{
					if ( this.S2 == true )
					{
						this.S2 = false;
						int hits, va, mindamage, maxdamage;

						hits = ( this.HitsMax + 100 );

						va = ( this.VirtualArmor + 5 );

						mindamage = this.DamageMin + ( 2 );
						maxdamage = this.DamageMax + ( 2 );

						this.Warmode = false;
						this.Say( "*"+ this.Name +" achieves a new level of combat*");
						this.SetDamage( mindamage, maxdamage );
						this.SetHits( hits );
						this.VirtualArmor = va;
						this.Stage = 3;
						this.Title = "the Golden Knight";

						this.SetDamageType( ResistanceType.Physical, 20 );
						this.SetDamageType( ResistanceType.Fire, 20 );
						this.SetDamageType( ResistanceType.Cold, 20 );
						this.SetDamageType( ResistanceType.Poison, 20 );
						this.SetDamageType( ResistanceType.Energy, 20 );

						this.SetResistance( ResistanceType.Physical, 55 );
						this.SetResistance( ResistanceType.Fire, 55 );
						this.SetResistance( ResistanceType.Cold, 55 );
						this.SetResistance( ResistanceType.Poison, 55 );
						this.SetResistance( ResistanceType.Energy, 55 );

						this.RawStr += 20;
						this.RawInt += 50;
						this.RawDex += 50;

						Item del = this.FindItemOnLayer( Layer.InnerTorso );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor chest = new StuddedChest();
						chest.Hue = 1161;
						chest.Movable = false;
						AddItem( chest );

						del = this.FindItemOnLayer( Layer.Pants );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor legs = new StuddedLegs();
						legs.Hue = 1161;
						legs.Movable = false;	
						AddItem( legs );

						del = this.FindItemOnLayer( Layer.Neck );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor gorget = new StuddedGorget();
						gorget.Hue = 1161;
						gorget.Movable = false;	
						AddItem( gorget );

						del = this.FindItemOnLayer( Layer.Gloves );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor gloves = new StuddedGloves();
						gloves.Hue = 1161;
						gloves.Movable = false;	
						AddItem( gloves );

						del = this.FindItemOnLayer( Layer.Helm );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor helm = new LeatherCap();
						helm.Hue = 1161;
						helm.Movable = false;	
						AddItem( helm );

						del = this.FindItemOnLayer( Layer.Arms );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor arms = new StuddedArms();
						arms.Hue = 1161;
						arms.Movable = false;	
						AddItem( arms );
					}
				}
			}

			else if ( this.Stage == 3 )
			{
				if ( defender is BaseCreature )
				{
					BaseCreature bc = (BaseCreature)defender;

					if ( bc.Controlled != true )
					{
						kpgainmin = 4 + ( bc.HitsMax ) / 20;
						kpgainmax = 4 + ( bc.HitsMax ) / 20;

						this.KP += Utility.RandomList( kpgainmin, kpgainmax );
					}
				}

				if ( this.KP >= 150000 )
				{
					if ( this.S3 == true )
					{
						this.S3 = false;
						int hits, va, mindamage, maxdamage;

						hits = ( this.HitsMax + 100 );

						va = ( this.VirtualArmor + 5 );

						mindamage = this.DamageMin + ( 1 );
						maxdamage = this.DamageMax + ( 1 );

						this.Warmode = false;
						this.Say( "*"+ this.Name +" achieves a new level of combat*");
						this.SetDamage( mindamage, maxdamage );
						this.SetHits( hits );
						this.VirtualArmor = va;
						this.Stage = 4;
						this.Title = "the Blood Knight";

						this.SetResistance( ResistanceType.Physical, 60 );
						this.SetResistance( ResistanceType.Fire, 60 );
						this.SetResistance( ResistanceType.Cold, 60 );
						this.SetResistance( ResistanceType.Poison, 60 );
						this.SetResistance( ResistanceType.Energy, 60 );

						this.RawStr += 20;
						this.RawInt += 30;
						this.RawDex += 30;


						Item del = this.FindItemOnLayer( Layer.InnerTorso );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor chest = new PlateChest();
						chest.Hue = 1157;
						chest.Movable = false;
						AddItem( chest );

						del = this.FindItemOnLayer( Layer.Pants );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor legs = new PlateLegs();
						legs.Hue = 1157;
						legs.Movable = false;	
						AddItem( legs );

						del = this.FindItemOnLayer( Layer.Neck );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor gorget = new PlateGorget();
						gorget.Hue = 1157;
						gorget.Movable = false;	
						AddItem( gorget );

						del = this.FindItemOnLayer( Layer.Gloves );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor gloves = new PlateGloves();
						gloves.Hue = 1157;
						gloves.Movable = false;	
						AddItem( gloves );

						del = this.FindItemOnLayer( Layer.Helm );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor helm = new PlateHelm();
						helm.Hue = 1157;
						helm.Movable = false;	
						AddItem( helm );

						del = this.FindItemOnLayer( Layer.Arms );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor arms = new PlateArms();
						arms.Hue = 1157;
						arms.Movable = false;	
						AddItem( arms );
						
						del = this.FindItemOnLayer( Layer.Shoes );
						if ( del != null )
						{
							del.Delete();
						}
					}
				}
			}

			else if ( this.Stage == 4 )
			{
				if ( defender is BaseCreature )
				{
					BaseCreature bc = (BaseCreature)defender;

					if ( bc.Controlled != true )
					{
						kpgainmin = 3 + ( bc.HitsMax ) / 25;
						kpgainmax = 3 + ( bc.HitsMax ) / 30;

						this.KP += Utility.RandomList( kpgainmin, kpgainmax );
					}
				}

				if ( this.KP >= 250000 )
				{
					if ( this.S4 == true )
					{
						this.S4 = false;
						int hits, va, mindamage, maxdamage;

						hits = ( this.HitsMax + 100 );

						va = ( this.VirtualArmor + 3 );

						mindamage = this.DamageMin + ( 1 );
						maxdamage = this.DamageMax + ( 1 );

						this.Warmode = false;
						this.Say( "*"+ this.Name +" achieves a new level of combat*");
						this.SetDamage( mindamage, maxdamage );
						this.SetHits( hits );
						this.VirtualArmor = va;
						this.Stage = 5;
						this.Title = "the Knight of Destiny";

						this.SetDamageType( ResistanceType.Physical, 20 );
						this.SetDamageType( ResistanceType.Fire, 20 );
						this.SetDamageType( ResistanceType.Cold, 20 );
						this.SetDamageType( ResistanceType.Poison, 20 );
						this.SetDamageType( ResistanceType.Energy, 20 );

						this.SetResistance( ResistanceType.Physical, 70 );
						this.SetResistance( ResistanceType.Fire, 70 );
						this.SetResistance( ResistanceType.Cold, 70 );
						this.SetResistance( ResistanceType.Poison, 70 );
						this.SetResistance( ResistanceType.Energy, 70 );

						this.RawStr += 20;
						this.RawInt += 10;
						this.RawDex += 10;

						Item del = this.FindItemOnLayer( Layer.InnerTorso );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor chest = new BoneChest();
						chest.Hue = 1152;
						chest.Movable = false;
						AddItem( chest );

						del = this.FindItemOnLayer( Layer.Pants );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor legs = new BoneLegs();
						legs.Hue = 1152;
						legs.Movable = false;	
						AddItem( legs );

						del = this.FindItemOnLayer( Layer.Neck );
						if ( del != null )
						{
							del.Delete();
						}

						del = this.FindItemOnLayer( Layer.Gloves );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor gloves = new BoneGloves();
						gloves.Hue = 1152;
						gloves.Movable = false;	
						AddItem( gloves );

						del = this.FindItemOnLayer( Layer.Helm );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor helm = new BoneHelm();
						helm.Hue = 1152;
						helm.Movable = false;	
						AddItem( helm );

						del = this.FindItemOnLayer( Layer.Arms );
						if ( del != null )
						{
							del.Delete();
						}
						BaseArmor arms = new BoneArms();
						arms.Hue = 1152;
						arms.Movable = false;	
						AddItem( arms );

						del = this.FindItemOnLayer( Layer.Shoes );
						if ( del != null )
						{
							del.Delete();
						}
						Item sandals = new Sandals();
						sandals.Hue = 1152;
						sandals.Movable = false;	
						AddItem( sandals );
					}
				}
			}

			else if ( this.Stage == 5 )
			{
				if ( defender is BaseCreature )
				{
					BaseCreature bc = (BaseCreature)defender;

					if ( bc.Controlled != true )
					{
						kpgainmin = 2 + ( bc.HitsMax ) / 35;
						kpgainmax = 2 + ( bc.HitsMax ) / 35;

						this.KP += Utility.RandomList( kpgainmin, kpgainmax );
					}
				}

				if ( this.KP >= 350000 )
				{
					if ( this.S5 == true )
					{
						this.S5 = false;
						int hits, va, mindamage, maxdamage;

						hits = ( this.HitsMax + 100 );

						va = ( this.VirtualArmor + 10 );

						mindamage = this.DamageMin + ( 3 );
						maxdamage = this.DamageMax + ( 3 );

						this.Warmode = false;
						this.Say( "*"+ this.Name +" is Reborn*");
						this.Say( "Master, please lend me some armor");
						this.SetDamage( mindamage, maxdamage );
						this.SetHits( hits );
						this.VirtualArmor = va;
						this.Stage = 6;
						this.Title = "the Champion";

						this.SetResistance( ResistanceType.Physical, 5 );
						this.SetResistance( ResistanceType.Fire, 5 );
						this.SetResistance( ResistanceType.Cold, 5 );
						this.SetResistance( ResistanceType.Poison, 5 );
						this.SetResistance( ResistanceType.Energy, 5 );

						this.RawStr += 40;
						this.RawInt += 30;
						this.RawDex += 30;

						Item del = this.FindItemOnLayer( Layer.InnerTorso );
						if ( del != null )
						{
							del.Delete();
						}


						del = this.FindItemOnLayer( Layer.Pants );
						if ( del != null )
						{
							del.Delete();
						}


						del = this.FindItemOnLayer( Layer.Neck );
						if ( del != null )
						{
							del.Delete();
						}


						del = this.FindItemOnLayer( Layer.Gloves );
						if ( del != null )
						{
							del.Delete();
						}


						del = this.FindItemOnLayer( Layer.Helm );
						if ( del != null )
						{
							del.Delete();
						}


						del = this.FindItemOnLayer( Layer.Arms );
						if ( del != null )
						{
							del.Delete();
						}


						del = this.FindItemOnLayer( Layer.Shoes );
						if ( del != null )
						{
							del.Delete();
						}

					}
				}
			}

			else if ( this.Stage == 6 )
			{
				if ( defender is BaseCreature )
				{
					BaseCreature bc = (BaseCreature)defender;

					if ( bc.Controlled != true )
					{
						kpgainmin = 1 + ( bc.HitsMax ) / 40;
						kpgainmax = 1 + ( bc.HitsMax ) / 40;

						this.KP += Utility.RandomList( kpgainmin, kpgainmax );
					}
				}

				if ( this.KP >= 400000 )
				{
					if ( this.S6 == true )
					{
						this.S6 = false;
						int hits, va, mindamage, maxdamage;

						hits = ( this.HitsMax + 200 );

						va = ( this.VirtualArmor + 10 );

						mindamage = this.DamageMin + ( 3 );
						maxdamage = this.DamageMax + ( 3 );

						this.Warmode = false;
						this.Say( "*"+ this.Name +" is now a great champion and loyal friend*");
						if ( this.ControlMaster != null )
						{
							this.Title = ", Loyal Subject of " + this.ControlMaster.Name + "";
						}
						this.SetDamage( mindamage, maxdamage );
						this.SetHits( hits );
						this.VirtualArmor = va;
						this.Stage = 7;

						this.SetDamageType( ResistanceType.Physical, 40 );
						this.SetDamageType( ResistanceType.Fire, 40 );
						this.SetDamageType( ResistanceType.Cold, 40 );
						this.SetDamageType( ResistanceType.Poison, 40 );
						this.SetDamageType( ResistanceType.Energy, 40 );

						this.RawStr += 40;
						this.RawInt += 40;
						this.RawDex += 40;
					}
				}
			}

			else if ( this.Stage == 7 )
			{
				if ( defender is BaseCreature )
				{
					BaseCreature bc = (BaseCreature)defender;

					if ( bc.Controlled != true )
					{
						kpgainmin = 1 + ( bc.Hits ) / 50;
						kpgainmax = 1 + ( bc.Hits ) / 50;

						this.KP += Utility.RandomList( kpgainmin, kpgainmax );
					}
				}
			}

			base.OnGaveMeleeAttack( defender );
		}
Exemple #33
0
        public static void EquipSociety(Armament a, Mobile m)
        {
            if (a == Armament.LightCavalry)
                a = (Armament)1;
            else if (a == Armament.HeavyCavalry)
                a = (Armament)3;

            switch (a)
            {
                case Armament.Light:
                    {
                        LeatherChest chest = new LeatherChest();
                        chest.Resource = CraftResource.BeastLeather;
                        chest.Hue = 2830;

                        LeatherArms arms = new LeatherArms();
                        arms.Resource = CraftResource.BeastLeather;
                        arms.Hue = 2830;

                        LeatherLegs legs = new LeatherLegs();
                        legs.Resource = CraftResource.BeastLeather;
                        legs.Hue = 2830;

                        LeatherGorget gorget = new LeatherGorget();
                        gorget.Resource = CraftResource.BeastLeather;
                        gorget.Hue = 2830;

                        LeatherGloves gloves = new LeatherGloves();
                        gloves.Resource = CraftResource.BeastLeather;
                        gloves.Hue = 2830;

                        ThighBoots boots = new ThighBoots();
                        boots.Resource = CraftResource.BeastLeather;
                        boots.Hue = 2830;

                        m.EquipItem(chest);
                        m.EquipItem(arms);
                        m.EquipItem(legs);
                        m.EquipItem(gorget);
                        m.EquipItem(gloves);
                        m.EquipItem(boots);

                        Shortsword ss = new Shortsword();
                        ss.Resource = CraftResource.Bronze;
                        m.EquipItem(ss);

                        VhalurianMetalKiteShield shield = new VhalurianMetalKiteShield();
                        shield.Resource = CraftResource.Bronze;
                        shield.Name = "Society of Rymaliel Kite Shield";
                        shield.Hue = 2413;
                        shield.ItemID = 15726;
                        m.EquipItem(shield);

                        break;
                    }
                case Armament.Medium:
                    {
                        ChainChest chest = new ChainChest();
                        chest.Resource = CraftResource.Bronze;
                        chest.Hue = 2830;

                        ChainArms arms = new ChainArms();
                        arms.Resource = CraftResource.Bronze;
                        arms.Hue = 2830;

                        ChainLegs legs = new ChainLegs();
                        legs.Resource = CraftResource.Bronze;
                        legs.Hue = 2830;

                        ChainGorget gorget = new ChainGorget();
                        gorget.Resource = CraftResource.Bronze;
                        gorget.Hue = 2830;

                        ChainGloves gloves = new ChainGloves();
                        gloves.Resource = CraftResource.Bronze;
                        gloves.Hue = 2830;

                        VhalurianMetalKiteShield shield = new VhalurianMetalKiteShield();
                        shield.Resource = CraftResource.Bronze;
                        shield.Name = "Society of Rymaliel Kite Shield";
                        shield.Hue = 2413;
                        shield.ItemID = 15726;
                        m.EquipItem(shield);

                        FlangedMace fm = new FlangedMace();
                        fm.Resource = CraftResource.Bronze;
                        m.EquipItem(fm);

                        ThighBoots boots = new ThighBoots();
                        boots.Resource = CraftResource.BeastLeather;
                        boots.Hue = 2989;

                        m.EquipItem(chest);
                        m.EquipItem(arms);
                        m.EquipItem(legs);
                        m.EquipItem(gorget);
                        m.EquipItem(gloves);
                        m.EquipItem(shield);
                        m.EquipItem(fm);
                        m.EquipItem(boots);

                        break;
                    }
                case Armament.Heavy:
                    {
                        PlateChest chest = new PlateChest();
                        chest.Resource = CraftResource.Bronze;
                        chest.Hue = 2830;

                        PlateArms arms = new PlateArms();
                        arms.Resource = CraftResource.Bronze;
                        arms.Hue = 2830;

                        PlateLegs legs = new PlateLegs();
                        legs.Resource = CraftResource.Bronze;
                        legs.Hue = 2830;

                        PlateGorget gorget = new PlateGorget();
                        gorget.Resource = CraftResource.Bronze;
                        gorget.Hue = 2830;

                        PlateGloves gloves = new PlateGloves();
                        gloves.Resource = CraftResource.Bronze;
                        gloves.Hue = 2830;

                        CloseHelm helm = new CloseHelm();
                        helm.Resource = CraftResource.Bronze;
                        helm.Hue = 2830;

                        VhalurianMetalKiteShield shield = new VhalurianMetalKiteShield();
                        shield.Resource = CraftResource.Bronze;
                        shield.Name = "Society of Rymaliel Kite Shield";
                        shield.Hue = 2413;
                        shield.ItemID = 15726;
                        m.EquipItem(shield);

                        Longsword sword = new Longsword();
                        sword.Resource = CraftResource.Iron;

                        m.EquipItem(chest);
                        m.EquipItem(arms);
                        m.EquipItem(legs);
                        m.EquipItem(gorget);
                        m.EquipItem(gloves);
                        m.EquipItem(shield);
                        m.EquipItem(helm);
                        m.EquipItem(sword);

                        m.EquipItem(new ElegantCloak(2751));

                        break;
                    }
                case Armament.Ranged:
                    {
                        LeatherChest chest = new LeatherChest();
                        chest.Resource = CraftResource.BeastLeather;
                        chest.Hue = 2830;

                        LongPants legs = new LongPants();
                        legs.Resource = CraftResource.Wool;
                        legs.Hue = 2830;

                        LeatherGorget gorget = new LeatherGorget();
                        gorget.Resource = CraftResource.BeastLeather;
                        gorget.Hue = 2830;

                        LeatherGloves gloves = new LeatherGloves();
                        gloves.Resource = CraftResource.BeastLeather;
                        gloves.Hue = 2830;

                        ThighBoots boots = new ThighBoots();
                        boots.Resource = CraftResource.BeastLeather;
                        boots.Hue = 2830;

                        WingedHelm helm = new WingedHelm();
                        helm.Resource = CraftResource.Copper;

                        CompositeBow bow = new CompositeBow();
                        bow.Resource = CraftResource.Ash;

                        m.EquipItem(chest);
                        m.EquipItem(legs);
                        m.EquipItem(gorget);
                        m.EquipItem(gloves);
                        m.EquipItem(boots);
                        m.EquipItem(helm);
                        m.EquipItem(bow);

                        if (m is BaseCreature)
                        {
                            BaseCreature bc = m as BaseCreature;
                            bc.AI = AIType.AI_Archer;
                            bc.PackItem(new Arrow(Utility.RandomMinMax(10, 20)));
                        }

                        break;
                    }
            }

            Surcoat coat = new Surcoat();
            coat.ItemID = 15483;
            coat.Name = "A Surcoat of the Society of Rymaliel";
            m.EquipItem(coat);
        }
        public FamousPiratesThief()
            : base(AIType.AI_Thief, FightMode.Closest, 15, 1, 0.2, 0.6)
        {
            // A FamousPirates Hybrid Thief
            int Hue = 2075;

            // Skills and Stats
            this.InitStats(205, 205, 205);
            this.Skills[SkillName.Healing].Base = 150;
            this.Skills[SkillName.Anatomy].Base = 150;
            this.Skills[SkillName.Stealing].Base = 150;
            this.Skills[SkillName.ArmsLore].Base = 100;
            this.Skills[SkillName.Meditation].Base = 150;
            this.Skills[SkillName.Wrestling].Base = 150;

            // Name
            this.Name = "Cutler Beckettt";

            // Equip
            Spellbook book = FullSpellbook();
            AddItem(book);

            LeatherArms lea = new LeatherArms();
            lea.Movable = false;
            lea.LootType = LootType.Regular;
            lea.Crafter = this;
            lea.Quality = ArmorQuality.Exceptional;
            AddItem(lea);

            LeatherChest lec = new LeatherChest();
            lec.Movable = false;
            lec.LootType = LootType.Regular;
            lec.Crafter = this;
            lec.Quality = ArmorQuality.Exceptional;
            AddItem(lec);

            LeatherGorget leg = new LeatherGorget();
            leg.Movable = false;
            leg.LootType = LootType.Regular;
            leg.Crafter = this;
            leg.Quality = ArmorQuality.Exceptional;
            AddItem(leg);

            LeatherLegs lel = new LeatherLegs();
            lel.Movable = false;
            lel.LootType = LootType.Regular;
            lel.Crafter = this;
            lel.Quality = ArmorQuality.Exceptional;
            AddItem(lel);

            Boots snd = new Boots();
			snd.Movable = false;
            snd.Hue = Hue;
            snd.LootType = LootType.Regular;
            AddItem(snd);

            TricorneHat tch = new TricorneHat();
            tch.Movable = false;
            tch.Hue = Hue;
            AddItem(tch);

             Kilt Klt = new Kilt();
			 Klt.Movable = false;
             Klt.Hue = Hue;
            AddItem(Klt);

            Bandage band = new Bandage(50);
            AddToBackpack(band);

        }