Inheritance: BaseArmor
Ejemplo n.º 1
0
		public WoodElfEliteWarrior() : base( AIType.AI_SphereMelee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Body = 0x190;
			Name = NameList.RandomName( "male" );
			Hue = 0x597;

			SetStr( 60, 80 );
			SetDex( 81, 95 );
			SetInt( 70, 100 );

			SetHits( 80, 100 );
			SetStam( 81, 95 );

			SetDamage( 10, 30 );

			SetSkill( SkillName.Swords, 60.0, 100.0 ); //we dont need to give him uberskillz
			SetSkill( SkillName.Tactics, 50.0, 100.0 );
			SetSkill( SkillName.MagicResist, 15.0, 38.0 );
			SetSkill( SkillName.Wrestling, 25.0, 40.0 );

			Fame = 0;
			Karma = Utility.RandomMinMax( -2500, -5000 );

			VirtualArmor = 18;

			//AddItem(Server.Items.Hair.GetRandomHair(Female));
			AddItem( new Sandals( Utility.RandomNeutralHue() ) );
			AddItem( new VikingSword() );
			AddItem( new WoodenShield() );
			AddItem( new Goatee( Serial.NewItem ) );
			AddItem( new MetalKiteShield() );
			StuddedChest che = new StuddedChest();
			che.Hue = 0x045e;

			StuddedGloves glo = new StuddedGloves();
			glo.Hue = 0x045e;

			StuddedLegs leg = new StuddedLegs();
			leg.Hue = 0x0599;

			StuddedArms arm = new StuddedArms();
			arm.Hue = 0x0599;

			StuddedGorget gor = new StuddedGorget();
			gor.Hue = 0x045e;

			BodySash sas = new BodySash();
			sas.Hue = 0x0599;

			Cloak cape = new Cloak();
			cape.Hue = 0x045e;

			AddItem( cape );
			AddItem( gor );
			AddItem( sas );
			AddItem( arm );
			AddItem( glo );
			AddItem( leg );
			AddItem( che );
		}
Ejemplo n.º 2
0
        public LysanderGathenwale()
            : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Title = "the Cursed";

            Hue = 0x8838;
            Body = 0x190;
            Name = "Lysander Gathenwale";

            AddItem( new Boots( 0x599 ) );
            AddItem( new Cloak( 0x96F ) );

            Spellbook spellbook = new Spellbook();
            RingmailGloves gloves = new RingmailGloves();
            StuddedChest chest = new StuddedChest();
            PlateArms arms = new PlateArms();

            spellbook.Hue = 0x599;
            gloves.Hue = 0x599;
            chest.Hue = 0x96F;
            arms.Hue = 0x599;

            AddItem( spellbook );
            AddItem( gloves );
            AddItem( chest );
            AddItem( arms );

            SetStr( 111, 120 );
            SetDex( 71, 80 );
            SetInt( 121, 130 );

            SetHits( 180, 207 );
            SetMana( 227, 265 );

            SetDamage( 5, 13 );

            SetResistance( ResistanceType.Physical, 35, 45 );
            SetResistance( ResistanceType.Fire, 25, 30 );
            SetResistance( ResistanceType.Cold, 50, 60 );
            SetResistance( ResistanceType.Poison, 25, 35 );
            SetResistance( ResistanceType.Energy, 25, 35 );

            SetSkill( SkillName.UnarmedFighting, 80.1, 90.0 );
            SetSkill( SkillName.Tactics, 90.1, 100.0 );
            SetSkill( SkillName.MagicResist, 80.1, 90.0 );
            SetSkill( SkillName.Magery, 90.1, 100.0 );
            SetSkill( SkillName.Invocation, 95.1, 100.0 );
            SetSkill( SkillName.Meditation, 90.1, 100.0 );

            Fame = 5000;
            Karma = -10000;

            Item reags = Loot.RandomReagent();
            reags.Amount = 30;
            PackItem( reags );
        }
Ejemplo n.º 3
0
        public WeaponsTrainer()
            : base("the weapons trainer")
        {
            Female = Utility.RandomBool();
            Body = Female ? 401 : 400;
            Name = NameList.RandomName( Female ? "female" : "male" );
            Hue = Utility.RandomSkinHue();
            SetStr( 96, 110 );
            SetDex( 91, 105 );
            SetInt( 71, 85 );
            Karma = Utility.RandomMinMax( 13, -45 );

            SetSkill( SkillName.Tactics, 75, 97.5 );
            SetSkill( SkillName.MagicResist, 65, 87.5 );
            SetSkill( SkillName.Parry, 75, 97.5 );
            SetSkill( SkillName.Swords, 67.5, 90 );
            SetSkill( SkillName.Macing, 67.5, 90 );
            SetSkill( SkillName.Fencing, 67.5, 90 );
            SetSkill( SkillName.Wrestling, 67.5, 90 );

            Item item = null;
            if ( !Female )
            {
                item = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item = AddRandomFacialHair( item.Hue );
                item = new StuddedChest();
                AddItem( item );
                item = new StuddedLegs();
                AddItem( item );
                item = new StuddedArms();
                AddItem( item );
                item = new StuddedGloves();
                AddItem( item );
                item = Utility.RandomBool() ? (Item)new Boots() : (Item)new ThighBoots();
                AddItem( item );
                PackGold( 15, 100 );
            } else {
                item = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item = new StuddedChest();
                AddItem( item );
                item = new StuddedLegs();
                AddItem( item );
                item = new StuddedArms();
                AddItem( item );
                item = new StuddedGloves();
                AddItem( item );
                item = Utility.RandomBool() ? (Item)new Boots() : (Item)new ThighBoots();
                AddItem( item );
                PackGold( 15, 100 );
            }
        }
Ejemplo n.º 4
0
		public LysanderGathenwale() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Title = "the Cursed";

			Hue = 0x8838;
			Body = 0x190;

			AddItem( Immovable( new Boots( 0x599 )) );
			AddItem( Immovable(new Cloak( 0x96F )) );

			Spellbook spellbook = new Spellbook();
			spellbook.LootType = LootType.Blessed;
			RingmailGloves gloves = new RingmailGloves();
			StuddedChest chest = new StuddedChest();
			PlateArms arms = new PlateArms();

			spellbook.Hue = 0x599;
			gloves.Hue = 0x599;
			chest.Hue = 0x96F;
			arms.Hue = 0x599;

			AddItem( Immovable(spellbook) );
			AddItem( Immovable( gloves) );
			AddItem( Immovable(chest) );
			AddItem( Immovable(arms) );

			SetStr( 111, 120 );
			SetDex( 71, 80 );
			SetInt( 121, 130 );

			SetHits( 180, 207 );
			SetMana( 227, 265 );

			SetDamage( 5, 13 );
			

			SetSkill( SkillName.Wrestling, 80.1, 90.0 );
			SetSkill( SkillName.Tactics, 90.1, 100.0 );
			SetSkill( SkillName.MagicResist, 80.1, 90.0 );
			SetSkill( SkillName.Magery, 90.1, 100.0 );
			SetSkill( SkillName.EvalInt, 95.1, 100.0 );
			SetSkill( SkillName.Meditation, 90.1, 100.0 );

			Fame = 5000;
			Karma = -10000;

			Item reags = Loot.RandomReagent();
			reags.Amount = 30;
			PackItem( reags );
		}
Ejemplo n.º 5
0
		public WoodElfFighter() : base( AIType.AI_SphereMelee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Body = 0x190;
			Name = NameList.RandomName( "male" );
			Hue = 0x597;

			SetStr( 45, 65 ); //I've set him up with normal stats since we've defined his Hits and his weapons speed elsewhere.
			SetDex( 55, 70 );
			SetInt( 70, 100 );

			SetHits( 80, 100 ); // here are his hits according to the spherescript. random between 250 and 350
			SetStam( 81, 95 );

			SetDamage( 5, 10 ); //i set his damage to be low since he hits like 3 times a second. This will probably need to be tweaked.

			SetSkill( SkillName.Swords, 60.0, 80.0 ); //we dont need to give him uberskillz
			SetSkill( SkillName.Tactics, 50.0, 80.0 );
			SetSkill( SkillName.MagicResist, 15.0, 38.0 );
			SetSkill( SkillName.Wrestling, 25.0, 40.0 );

			Fame = 0;
			Karma = Utility.RandomMinMax( -2500, -4000 );

			VirtualArmor = 6; //this might need to be tweaked

			//AddItem( Server.Items.Hair.GetRandomHair( Female ) );
			AddItem( new Sandals( Utility.RandomNeutralHue() ) );
			AddItem( new Longsword() );
			AddItem( new WoodenShield() );
			StuddedChest che = new StuddedChest();
			che.Hue = 0x0599;
			StuddedGloves glo = new StuddedGloves();
			glo.Hue = 0x0599;
			StuddedLegs leg = new StuddedLegs();
			leg.Hue = 0x0599;
			AddItem( glo );
			AddItem( leg );
			AddItem( che );
		}
Ejemplo n.º 6
0
        public BagofStuddedArmor()
        {
            Movable = true;
            Hue     = 0x65;
            Name    = "a bag of Studded Armor";

            StuddedChest chest = new StuddedChest();

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

            StuddedArms arms = new StuddedArms();

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

            StuddedGloves gloves = new StuddedGloves();

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

            StuddedGorget gorget = new StuddedGorget();

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

            StuddedLegs legs = new StuddedLegs();

            legs.Quality  = Quality.Exceptional;
            legs.LootType = LootType.Blessed;
            DropItem(legs);
        }
Ejemplo n.º 7
0
        public TylAriadne()
            : base(AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2)
        {
            Name = "Tyl Ariadne";
            Title = "o instrutor de defesa";
            BodyValue = 0x190;
            Hue = 0x8374;
            HairItemID = 0;

            InitStats( 100, 100, 25 );

            SetSkill( SkillName.Anatomy, 120.0 );
            SetSkill( SkillName.Parry, 120.0 );
            SetSkill( SkillName.Healing, 120.0 );
            SetSkill( SkillName.Tactics, 120.0 );
            SetSkill( SkillName.Swords, 120.0 );
            SetSkill( SkillName.Meditation, 120.0 );
            SetSkill( SkillName.Focus, 120.0 );

            AddItem( new Backpack() );
            AddItem( new ElvenBoots( 0x96D ) );

            Item item;

            item = new StuddedLegs();
            item.Hue = 0x96D;
            AddItem( item );

            item = new StuddedGloves();
            item.Hue = 0x96D;
            AddItem( item );

            item = new StuddedGorget();
            item.Hue = 0x96D;
            AddItem( item );

            item = new StuddedChest();
            item.Hue = 0x96D;
            AddItem( item );

            item = new StuddedArms();
            item.Hue = 0x96D;
            AddItem( item );

            item = new DiamondMace();
            item.Hue = 0x96D;
            AddItem( item );
        }
Ejemplo n.º 8
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 NewbArcher()
            : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            SpeechHue = Utility.RandomDyedHue();
            Title = "the archer";
            Hue = Utility.RandomSkinHue();

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

            SetStr( 146, 160 );
            SetDex( 121, 135 );
            SetInt( 61, 75 );

            SetDamage( 10, 17 );

            SetSkill( SkillName.MagicResist, 35.0, 47.5 );
            SetSkill( SkillName.Archery, 85.0, 97.5 );
            SetSkill( SkillName.Tactics, 75.0, 87.5 );

            Fame = 3000;
            Karma = -3000;

            // Equip
            Item toArm = new StuddedChest();
            toArm.LootType = LootType.Blessed;
            AddItem( toArm );

            toArm = new StuddedLegs();
            toArm.LootType = LootType.Blessed;
            AddItem( toArm );

            toArm = new StuddedArms();
            toArm.LootType = LootType.Blessed;
            AddItem( toArm );

            toArm = new StuddedGloves();
            toArm.LootType = LootType.Blessed;
            AddItem( toArm );

            toArm = new Bow();
            toArm.Movable = false;
            toArm.LootType = LootType.Blessed;
            AddItem( toArm );

            Utility.AssignRandomHair( this );

            PackItem( new Bandage( Utility.Random( 8, 4 ) ) );
            PackItem( new Arrow( Utility.Random( 30, 20 ) ) );

            if( Utility.RandomDouble() < 0.2 )
                PackItem( NewbWarrior.NewbLuckArmor() );
        }
Ejemplo n.º 10
0
        public Recaro()
            : base(AIType.AI_Vendor, FightMode.None, 2, 1, 0.5, 2)
        {
            Name = "Recaro";
            Title = "o instrutor de esgrima";
            BodyValue = 0x190;
            Hue = 0x83EA;
            HairItemID = 0x203C;
            HairHue = 0x455;
            FacialHairItemID = 0x204D;
            FacialHairHue = 0x455;

            InitStats( 100, 100, 25 );

            SetSkill( SkillName.Anatomy, 120.0 );
            SetSkill( SkillName.Parry, 120.0 );
            SetSkill( SkillName.Healing, 120.0 );
            SetSkill( SkillName.Tactics, 120.0 );
            SetSkill( SkillName.Fencing, 120.0 );
            SetSkill( SkillName.Focus, 120.0 );

            AddItem( new Backpack() );
            AddItem( new Shoes( 0x455 ) );
            AddItem( new WarFork() );

            Item item;

            item = new StuddedLegs();
            item.Hue = 0x455;
            AddItem( item );

            item = new StuddedGloves();
            item.Hue = 0x455;
            AddItem( item );

            item = new StuddedGorget();
            item.Hue = 0x455;
            AddItem( item );

            item = new StuddedChest();
            item.Hue = 0x455;
            AddItem( item );

            item = new StuddedArms();
            item.Hue = 0x455;
            AddItem( item );
        }
Ejemplo n.º 11
0
        public static void EquipImperial(Armament a, Mobile m)
        {
            if (a == Armament.LightCavalry)
                a = (Armament)1;
            else if (a == Armament.HeavyCavalry)
                a = (Armament)3;

            Surcoat coat = new Surcoat();
            coat.ItemID = 15476;
            coat.Name = "A Surcoat of the Imperial Legion";
            coat.Hue = 2751;
            m.EquipItem(coat);

            switch (a)
            {
                case Armament.Light:
                    {
                        LeatherBoots boots = new LeatherBoots();
                        boots.Resource = CraftResource.BeastLeather;
                        boots.Hue = 1899;
                        m.EquipItem(boots);

                        WolfMask mask = new WolfMask();
                        mask.Hue = 1899;
                        m.EquipItem(mask);

                        StuddedChest sc = new StuddedChest();
                        sc.Resource = CraftResource.BeastLeather;
                        sc.Hue = 1899;
                        m.EquipItem(sc);

                        StuddedLegs sl = new StuddedLegs();
                        sl.Resource = CraftResource.BeastLeather;
                        sl.Hue = 1899;
                        m.EquipItem(sl);

                        StuddedArms sa = new StuddedArms();
                        sa.Resource = CraftResource.BeastLeather;
                        sa.Hue = 1899;
                        m.EquipItem(sa);

                        StuddedGloves sg = new StuddedGloves();
                        sg.Resource = CraftResource.BeastLeather;
                        sg.Hue = 1899;
                        m.EquipItem(sg);

                        StuddedGorget so = new StuddedGorget();
                        so.Resource = CraftResource.BeastLeather;
                        so.Hue = 1899;
                        m.EquipItem(so);

                        VhalurianGladius vg = new VhalurianGladius();
                        vg.Resource = CraftResource.Iron;
                        vg.Hue = 0;
                        m.EquipItem(vg);

                        WoodenShield ws = new WoodenShield();
                        ws.Resource = CraftResource.Ash;
                        m.EquipItem(ws);

                        break;
                    }
                case Armament.Medium:
                    {
                        ChainChest cc = new ChainChest();
                        cc.Resource = CraftResource.Bronze;
                        cc.Hue = 1899;
                        m.EquipItem(cc);

                        ChainLegs cl = new ChainLegs();
                        cl.Resource = CraftResource.Bronze;
                        cl.Hue = 1899;
                        m.EquipItem(cl);

                        ChainCoif co = new ChainCoif();
                        co.Resource = CraftResource.Bronze;
                        co.Hue = 1899;
                        m.EquipItem(co);

                        RingmailArms ra = new RingmailArms();
                        ra.Resource = CraftResource.Bronze;
                        ra.Hue = 1899;
                        m.EquipItem(ra);

                        RingmailGloves rg = new RingmailGloves();
                        rg.Resource = CraftResource.Bronze;
                        rg.Hue = 1899;
                        m.EquipItem(rg);

                        TyreanKiteShield vmks = new TyreanKiteShield();
                        vmks.Resource = CraftResource.Bronze;
                        vmks.Hue = 1899;
                        m.EquipItem(vmks);

                        LeatherBoots boots = new LeatherBoots();
                        boots.Resource = CraftResource.BeastLeather;
                        boots.Hue = 1899;
                        m.EquipItem(boots);

                        TyreanOrnateAxe axe = new TyreanOrnateAxe();
                        axe.Resource = CraftResource.Iron;
                        m.EquipItem(axe);

                        break;
                    }
                case Armament.Heavy:
                    {
                        VhalurianOrnatePlateLegs vopl = new VhalurianOrnatePlateLegs();
                        vopl.Resource = CraftResource.Bronze;
                        vopl.Hue = 1899;
                        m.EquipItem(vopl);

                        VhalurianOrnatePlateGorget vopo = new VhalurianOrnatePlateGorget();
                        vopo.Resource = CraftResource.Bronze;
                        vopo.Hue = 1899;
                        m.EquipItem(vopo);

                        PlateSabatons ps = new PlateSabatons();
                        ps.Resource = CraftResource.Bronze;
                        ps.Hue = 1899;
                        m.EquipItem(ps);

                        VhalurianOrnateKiteShield voks = new VhalurianOrnateKiteShield();
                        voks.Resource = CraftResource.Bronze;
                        voks.Hue = 1899;
                        m.EquipItem(voks);

                        VhalurianWarHammer hammer = new VhalurianWarHammer();
                        hammer.Resource = CraftResource.Iron;
                        m.EquipItem(hammer);

                        TyreanHalfPlateChest thpc = new TyreanHalfPlateChest();
                        thpc.Resource = CraftResource.Bronze;
                        thpc.Hue = 1899;
                        m.EquipItem(thpc);

                        TyreanHalfPlateArms thpa = new TyreanHalfPlateArms();
                        thpa.Resource = CraftResource.Bronze;
                        thpa.Hue = 1899;
                        m.EquipItem(thpa);

                        TyreanHalfPlateGloves thpg = new TyreanHalfPlateGloves();
                        thpg.Resource = CraftResource.Bronze;
                        thpg.Hue = 1899;
                        m.EquipItem(thpg);

                        TyreanWingedHelm twh = new TyreanWingedHelm();
                        twh.Resource = CraftResource.Bronze;
                        twh.Hue = 1899;
                        m.EquipItem(twh);

                        m.EquipItem(new ElegantCloak(2751));

                        break;
                    }
                case Armament.Ranged:
                    {
                        FurBoots boots = new FurBoots();
                        boots.Resource = CraftResource.RegularLeather;
                        boots.Hue = 1899;
                        m.EquipItem(boots);

                        Bandana bandana = new Bandana();
                        bandana.Hue = 1899;
                        m.EquipItem(bandana);

                        LeatherChest lc = new LeatherChest();
                        lc.Resource = CraftResource.RegularLeather;
                        lc.Hue = 1899;
                        m.EquipItem(lc);

                        Quiver qv = new Quiver();
                        qv.Layer = Layer.Earrings;
                        m.EquipItem(qv);

                        RaggedPants rp = new RaggedPants();
                        rp.Resource = CraftResource.Cotton;
                        rp.Hue = 1899;
                        m.EquipItem(rp);

                        LeatherGloves lg = new LeatherGloves();
                        lg.Resource = CraftResource.RegularLeather;
                        lg.Hue = 1899;
                        m.EquipItem(lg);

                        VhalurianLongbow bow = new VhalurianLongbow();
                        bow.Resource = CraftResource.Yew;
                        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;
                    }
            }
        }
Ejemplo n.º 12
0
        public static void EquipTyrean(Armament a, Mobile m)
        {
            if (a == Armament.LightCavalry)
                a = (Armament)1;
            else if (a == Armament.HeavyCavalry)
                a = (Armament)3;

            Surcoat coat = new Surcoat();
            coat.ItemID = 15477;
            coat.Name = "A Surcoat of the Jarlsgaard";
            coat.Hue = 2741;
            m.EquipItem(coat);

            switch (a)
            {
                case Armament.Light:
                    {
                        StuddedChest lc = new StuddedChest();
                        lc.Resource = CraftResource.BeastLeather;
                        lc.Hue = 1899;
                        m.EquipItem(lc);

                        StuddedLegs ll = new StuddedLegs();
                        ll.Resource = CraftResource.BeastLeather;
                        ll.Hue = 1899;
                        m.EquipItem(ll);

                        StuddedArms la = new StuddedArms();
                        la.Resource = CraftResource.BeastLeather;
                        la.Hue = 1899;
                        m.EquipItem(ll);

                        StuddedGloves lg = new StuddedGloves();
                        lg.Resource = CraftResource.BeastLeather;
                        lg.Hue = 1899;
                        m.EquipItem(lg);

                        StuddedGorget lo = new StuddedGorget();
                        lo.Resource = CraftResource.BeastLeather;
                        lo.Hue = 1899;
                        m.EquipItem(lo);

                        BearMask mask = new BearMask();
                        mask.Hue = 1899;
                        m.EquipItem(mask);

                        FurBoots boots = new FurBoots();
                        boots.Resource = CraftResource.BeastLeather;
                        boots.Hue = 2741;
                        m.EquipItem(boots);

                        TyreanThrowingAxe tta = new TyreanThrowingAxe();
                        tta.Resource = CraftResource.Bronze;
                        m.EquipItem(tta);

                        LeatherShield ls = new LeatherShield();
                        ls.Resource = CraftResource.Yew;
                        m.EquipItem(ls);

                        break;
                    }
                case Armament.Medium:
                    {
                        ChainChest cc = new ChainChest();
                        cc.Resource = CraftResource.Bronze;
                        cc.Hue = 1899;
                        m.EquipItem(cc);

                        ChainLegs cl = new ChainLegs();
                        cl.Resource = CraftResource.Bronze;
                        cl.Hue = 1899;
                        m.EquipItem(cl);

                        RingmailArms ra = new RingmailArms();
                        ra.Resource = CraftResource.Bronze;
                        ra.Hue = 1899;
                        m.EquipItem(ra);

                        RingmailGloves rg = new RingmailGloves();
                        rg.Resource = CraftResource.Bronze;
                        rg.Hue = 1899;
                        m.EquipItem(rg);

                        TyreanHornedHelm thh = new TyreanHornedHelm();
                        thh.Resource = CraftResource.Bronze;
                        thh.Hue = 1899;
                        m.EquipItem(thh);

                        FurBoots boots = new FurBoots();
                        boots.Resource = CraftResource.BeastLeather;
                        boots.Hue = 2741;
                        m.EquipItem(boots);

                        bool WeaponChance = Utility.RandomBool();

                        if (WeaponChance)
                        {
                            TyreanHarpoon weapon = new TyreanHarpoon();
                            weapon.Resource = CraftResource.Bronze;

                            m.EquipItem(weapon);
                        }

                        else
                        {
                            TyreanBattleAxe weapon = new TyreanBattleAxe();
                            weapon.Resource = CraftResource.Bronze;

                            m.EquipItem(weapon);
                        }

                        break;
                    }
                case Armament.Heavy:
                    {
                        TyreanHalfPlateChest thpc = new TyreanHalfPlateChest();
                        thpc.Resource = CraftResource.Bronze;
                        thpc.Hue = 1899;
                        m.EquipItem(thpc);

                        TyreanHalfPlateLegs thpl = new TyreanHalfPlateLegs();
                        thpl.Resource = CraftResource.Bronze;
                        thpl.Hue = 1899;
                        m.EquipItem(thpl);

                        TyreanHalfPlateSabatons thps = new TyreanHalfPlateSabatons();
                        thps.Resource = CraftResource.Bronze;
                        thps.Hue = 1899;
                        m.EquipItem(thps);

                        TyreanHalfPlateArms thpa = new TyreanHalfPlateArms();
                        thpa.Resource = CraftResource.Bronze;
                        thpa.Hue = 1899;
                        m.EquipItem(thpa);

                        TyreanHalfPlateGloves thpg = new TyreanHalfPlateGloves();
                        thpg.Resource = CraftResource.Bronze;
                        thpg.Hue = 1899;
                        m.EquipItem(thpg);

                        TyreanHalfPlateGorget thpo = new TyreanHalfPlateGorget();
                        thpo.Resource = CraftResource.Bronze;
                        thpo.Hue = 1899;
                        m.EquipItem(thpo);

                        TyreanKiteShield tks = new TyreanKiteShield();
                        tks.Resource = CraftResource.Bronze;
                        tks.Hue = 1899;
                        m.EquipItem(tks);

                        m.EquipItem(new Cloak(1445));

                        TyreanWingedHelm twh = new TyreanWingedHelm();
                        twh.Resource = CraftResource.Bronze;
                        twh.Hue = 1899;
                        m.EquipItem(twh);

                        bool WeaponChance = Utility.RandomBool();
                        if (WeaponChance)
                        {
                            TyreanWarAxe axe = new TyreanWarAxe();
                            axe.Resource = CraftResource.Bronze;

                            m.EquipItem(axe);
                        }

                        else
                        {
                            TyreanOrnateAxe axe = new TyreanOrnateAxe();
                            axe.Resource = CraftResource.Bronze;

                            m.EquipItem(axe);
                        }

                        break;
                    }
                case Armament.Ranged:
                    {
                        FancyShirt shirt = new FancyShirt();
                        shirt.Resource = CraftResource.Wool;
                        shirt.Hue = 1899;
                        m.EquipItem(shirt);

                        LeatherChest lc = new LeatherChest();
                        lc.Resource = CraftResource.BeastLeather;
                        lc.Hue = 1899;
                        m.EquipItem(lc);

                        LeatherLegs ll = new LeatherLegs();
                        ll.Resource = CraftResource.BeastLeather;
                        ll.Hue = 1899;
                        m.EquipItem(ll);

                        LeatherGloves lg = new LeatherGloves();
                        lg.Resource = CraftResource.BeastLeather;
                        lg.Hue = 1899;
                        m.EquipItem(lg);

                        FurBoots boots = new FurBoots();
                        boots.Resource = CraftResource.BeastLeather;
                        boots.Hue = 2741;
                        m.EquipItem(boots);

                        m.EquipItem(new Cloak(1445));

                        TyreanCompositeBow bow = new TyreanCompositeBow();
                        bow.Resource = CraftResource.Redwood;
                        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;
                    }
            }
        }
Ejemplo n.º 13
0
        public MongbatHideoutTreasureChest2() : base(0xE43)
        {
            Name    = "a treasure chest -50-";
            Movable = true;
            Weight  = 1000.0;

            TrapPower = 0;
            Locked    = true;

            RequiredSkill = 50;
            LockLevel     = 50;
            MaxLockLevel  = 80;

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

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

            switch (Utility.Random(18))
            {
            case 0: DropItem(new Board(70)); break;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            Item ReagentLoot = Loot.RandomReagent();

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

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

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

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

/////////////////////////////////////// LV 10-20
/////////////////////////////////////// LV 10-25 for staves
            if (Utility.RandomDouble() < 0.10)
            {
                BaseWeapon weapon = Loot.RandomWeapon(true);
                switch (Utility.Random(28))
                {
                case 0: weapon = new BattleAxe(); break;                   // Lv10

                case 1: weapon = new DoubleAxe(); break;                   // Lv20

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

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

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

                case 5: weapon = new CompositeBow(); break;                // Lv20

                case 6: weapon = new EbonyCrossbow(); break;               // Lv20

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

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

                case 9: weapon = new EbonyDualDaggers(); break;            // Lv20

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

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

                case 12: weapon = new WarMace(); break;                    // Lv20

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

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

                case 15: weapon = new Spear(); break;                      // Lv20

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

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

                case 18: weapon = new BubbleStaff(); break;                // Lv25

                case 19: weapon = new CrystalStaff(); break;               // Lv25

                case 20: weapon = new EnergyStaff(); break;                // Lv25

                case 21: weapon = new FireStaff(); break;                  // Lv25

                case 22: weapon = new VineStaff(); break;                  // Lv25

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

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

                case 25: weapon = new Longsword(); break;                  // Lv20

                case 26: weapon = new VikingSword(); break;                // Lv20

                default: weapon = new Wakizashi(); break;                  // Lv20
                }

                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;
                }

                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 12-18
            if (Utility.RandomDouble() < 0.10)
            {
                BaseArmor armor = Loot.RandomArmor(true);
                switch (Utility.Random(19))
                {
                case 0: armor = new ChitinArms(); break;                         // Lv12

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

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

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

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

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

                case 6: armor = new FemaleStuddedChest(); break;                 // Lv15

                case 7: armor = new StuddedArms(); break;                        // Lv15

                case 8: armor = new StuddedBustierArms(); break;                 // Lv15

                case 9: armor = new StuddedChest(); break;                       // Lv15

                case 10: armor = new StuddedGloves(); break;                     // Lv15

                case 11: armor = new StuddedGorget(); break;                     // Lv15

                case 12: armor = new StuddedLegs(); break;                       // Lv15

                case 13: armor = new HideFemaleChest(); break;                   // Lv18

                case 14: armor = new HideGloves(); break;                        // Lv18

                case 15: armor = new HideGorget(); break;                        // Lv18

                case 16: armor = new HidePants(); break;                         // Lv18

                case 17: armor = new HidePauldrons(); break;                     // Lv18

                default: armor = new HideChest(); break;                         // Lv18
                }

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

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

            if (Utility.RandomDouble() < 0.05)
            {
                BaseShield shield1 = new MetalShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield1, 3, 5, 50);
                }
                DropItem(shield1);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseShield shield2 = new WoodenKiteShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield2, 3, 5, 50);
                }
                DropItem(shield2);
            }
            if (Utility.RandomDouble() < 0.05)
            {
                BaseShield shield3 = new MetalKiteShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield3, 3, 5, 50);
                }
                DropItem(shield3);
            }

            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel bracelet = new SilverBracelet();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(bracelet, 3, 5, 10);
                }
                DropItem(bracelet);
            }
            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel earrings = new SilverEarrings();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(earrings, 3, 5, 10);
                }
                DropItem(earrings);
            }
            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel necklace = new SilverNecklace();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(necklace, 3, 5, 10);
                }
                DropItem(necklace);
            }
            if (Utility.RandomDouble() < 0.10)
            {
                BaseJewel ring = new SilverRing();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(ring, 3, 5, 10);
                }
                DropItem(ring);
            }
        }
Ejemplo n.º 14
0
        public override void InitOutfit()
        {
            this.AddItem(new Backpack());
            this.AddItem(new ElvenBoots(0x96D));
			
            Item item;
			
            item = new StuddedLegs();
            item.Hue = 0x96D;
            this.AddItem(item);
			
            item = new StuddedGloves();
            item.Hue = 0x96D;
            this.AddItem(item);
			
            item = new StuddedGorget();
            item.Hue = 0x96D;
            this.AddItem(item);
			
            item = new StuddedChest();
            item.Hue = 0x96D;
            this.AddItem(item);
			
            item = new StuddedArms();
            item.Hue = 0x96D;
            this.AddItem(item);
			
            item = new DiamondMace();
            item.Hue = 0x96D;
            this.AddItem(item);			
        }
Ejemplo n.º 15
0
        public override void InitOutfit()
        {
            this.AddItem(new Backpack());
            this.AddItem(new Shoes(0x455));
            this.AddItem(new WarFork());
			
            Item item;
			
            item = new StuddedLegs();
            item.Hue = 0x455;
            this.AddItem(item);
			
            item = new StuddedGloves();
            item.Hue = 0x455;
            this.AddItem(item);
			
            item = new StuddedGorget();
            item.Hue = 0x455;
            this.AddItem(item);
			
            item = new StuddedChest();
            item.Hue = 0x455;
            this.AddItem(item);
			
            item = new StuddedArms();
            item.Hue = 0x455;
            this.AddItem(item);
        }
Ejemplo n.º 16
0
Archivo: Robyn.cs Proyecto: m309/ForkUO
        public override void InitOutfit()
        {
            this.AddItem(new Backpack());
            this.AddItem(new Boots(0x592));
            this.AddItem(new Cloak(0x592));
            this.AddItem(new Bandana(0x592));
            this.AddItem(new CompositeBow());
			
            Item item;
			
            item = new StuddedLegs();
            item.Hue = 0x592;
            this.AddItem(item);
			
            item = new StuddedGloves();
            item.Hue = 0x592;
            this.AddItem(item);
			
            item = new StuddedGorget();
            item.Hue = 0x592;
            this.AddItem(item);
			
            item = new StuddedChest();
            item.Hue = 0x592;
            this.AddItem(item);
			
            item = new StuddedArms();
            item.Hue = 0x592;
            this.AddItem(item);	
        }
Ejemplo n.º 17
0
        public RatmenFortressBossChest() : base(0x2DF2)
        {
            Name    = "a boss treasure chest -25-";
            Movable = true;
            Weight  = 1000.0;

            TrapPower = 0;
            Locked    = true;

            RequiredSkill = 25;
            LockLevel     = 25;
            MaxLockLevel  = 30;

            // Gold
            if (Utility.RandomDouble() < 0.50)
            {
                DropItem(new Gold(Utility.Random(250, 400)));
            }

/////////////////////////////////////// Jewelry

            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new Agate());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new Beryl());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new ChromeDiopside());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new FireOpal());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new MoonstoneCustom());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new Onyx());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new Opal());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new Pearl());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new TurquoiseCustom());
            }

            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Bloodstone());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Citrine());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Demantoid());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Jasper());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Lolite());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Lupis());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Peridot());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Tsavorite());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Zircon());
            }

            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new Amber());
            }
            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new Amethyst());
            }
            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new Andalusite());
            }
            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new Chrysoberyl());
            }
            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new Garnet());
            }
            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new Jade());
            }
            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new Mandarin());
            }
            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new Morganite());
            }
            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new Paraiba());
            }
            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new TigerEye());
            }
            if (Utility.RandomDouble() < 0.02)
            {
                DropItem(new Tourmaline());
            }

            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new Alexandrite());
            }
            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new Ametrine());
            }
            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new Kunzite());
            }
            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new Ruby());
            }
            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new Sapphire());
            }
            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new Tanzanite());
            }
            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new Topaz());
            }
            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new Zultanite());
            }

            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new Diamond());
            }
            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new Emerald());
            }
            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new PinkQuartz());
            }
            if (Utility.RandomDouble() < 0.01)
            {
                DropItem(new StarSapphire());
            }

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

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Arrow(Utility.Random(35, 50)));
            }

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Bolt(Utility.Random(35, 50)));
            }

            Item ReagentLoot = Loot.RandomReagent();

            ReagentLoot.Amount = Utility.Random(35, 40);
            DropItem(ReagentLoot);

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Bandage(Utility.Random(25, 40)));
            }

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

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Bottle(Utility.Random(15, 25)));
            }

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Lockpick(Utility.Random(15, 25)));
            }

            Item PotionLoot1 = Loot.RandomPotion();

            DropItem(PotionLoot1);

            Item PotionLoot2 = Loot.RandomPotion();

            DropItem(PotionLoot2);

            Item PotionLoot3 = Loot.RandomPotion();

            DropItem(PotionLoot3);

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

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

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

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

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

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

            if (Utility.RandomDouble() < 0.20)
            {
                BaseWeapon weapon = Loot.RandomWeapon(true);
                switch (Utility.Random(38))
                {
                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;

                case 20: weapon = new Axe(); break;

                case 21: weapon = new ExecutionersAxe(); break;

                case 22: weapon = new Pickaxe(); break;

                case 23: weapon = new TwoHandedAxe(); break;

                case 24: weapon = new WarAxe(); break;

                case 25: weapon = new HeavyCrossbow(); break;

                case 26: weapon = new HammerPick(); break;

                case 27: weapon = new WarMace(); break;

                case 28: weapon = new Spear(); break;

                case 29: weapon = new WarFork(); break;

                case 30: weapon = new BlackStaff(); break;

                case 31: weapon = new QuarterStaff(); break;

                case 32: weapon = new Longsword(); break;

                case 33: weapon = new ElvenCompositeLongbow(); break;

                case 34: weapon = new ElvenMachete(); break;

                case 35: weapon = new ElvenSpellblade(); break;

                case 36: weapon = new RuneBlade(); break;

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

                BaseRunicTool.ApplyAttributesTo(weapon, 5, 15, 20);

                DropItem(weapon);
            }

            if (Utility.RandomDouble() < 0.20)
            {
                BaseArmor armor = Loot.RandomArmor(true);
                switch (Utility.Random(13))
                {
                case 0: armor = new FemaleStuddedChest(); break;

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

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

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

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

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

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

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

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

                case 9: armor = new RingmailChest(); break;

                case 10: armor = new RingmailGloves(); break;

                case 11: armor = new RingmailLegs(); break;

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

                BaseRunicTool.ApplyAttributesTo(armor, 5, 15, 20);

                DropItem(armor);
            }

            if (Utility.RandomDouble() < 0.20)
            {
                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, 5, 15, 20);

                DropItem(hat);
            }

            if (Utility.RandomDouble() < 0.20)
            {
                BaseClothing clothing = Loot.RandomClothing(true);
                BaseRunicTool.ApplyAttributesTo(clothing, 5, 15, 20);

                DropItem(clothing);
            }

            if (Utility.RandomDouble() < 0.20)
            {
                BaseShield shield = new HeaterShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield, 5, 15, 20);
                }

                DropItem(shield);
            }

            if (Utility.RandomDouble() < 0.20)
            {
                BaseJewel bracelet = new SilverBracelet();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(bracelet, 5, 15, 20);
                }

                DropItem(bracelet);
            }

            if (Utility.RandomDouble() < 0.20)
            {
                BaseJewel earrings = new SilverEarrings();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(earrings, 5, 15, 20);
                }

                DropItem(earrings);
            }

            if (Utility.RandomDouble() < 0.20)
            {
                BaseJewel necklace = new SilverNecklace();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(necklace, 5, 15, 20);
                }

                DropItem(necklace);
            }

            if (Utility.RandomDouble() < 0.20)
            {
                BaseJewel ring = new SilverRing();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(ring, 5, 15, 20);
                }

                DropItem(ring);
            }
        }
Ejemplo n.º 18
0
        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 );
        }
Ejemplo n.º 19
0
        public static void RandomGuardEquipment( Mobile m, Nation nation, int choice )
        {
            if( m == null )
                return;

            if( choice > 3 || choice < 1 )
                choice = Utility.RandomMinMax( 0, 2 );
            else
                choice--;

            switch (nation)
            {
                case Nation.Imperial: { if (Utility.RandomBool()) { nation = Nation.Vhalurian; } else { nation = Nation.Khemetar; } break; }
                case Nation.Sovereign: { if (Utility.RandomBool()) { nation = Nation.Alyrian; } else { nation = Nation.Mhordul; } break; }
                case Nation.Society: { if (Utility.RandomBool()) { nation = Nation.Azhuran; } else { nation = Nation.Tyrean; } break; }
                case Nation.Insularii: { if (Utility.RandomBool()) { nation = Nation.Vhalurian; } else { nation = Nation.Khemetar; } break; }
            }

            switch( nation )
            {
                case Nation.Alyrian:
                {
                    GreenBeret greenberet = new GreenBeret();
                    greenberet.Hue = 2587;
                    m.EquipItem( greenberet );

                    switch( choice )
                    {
                        case 0:
                        {
                            AlyrianChainChest chest = new AlyrianChainChest();
                            chest.Resource = CraftResource.Bronze;

                            AlyrianChainLegs legs = new AlyrianChainLegs();
                            legs.Resource = CraftResource.Bronze;

                            AlyrianChainArms arms = new AlyrianChainArms();
                            arms.Resource = CraftResource.Bronze;

                            AlyrianChainGorget gorget = new AlyrianChainGorget();
                            gorget.Resource = CraftResource.Bronze;

                            m.EquipItem( chest );
                            m.EquipItem( legs );
                            m.EquipItem( arms );
                            m.EquipItem( gorget );
                            m.EquipItem( new Cloak( 2587 ) );

                            if( m.Female )
                            {
                                AlyrianLeafShield shield = new AlyrianLeafShield();
                                shield.Resource = CraftResource.Bronze;

                                AlyrianSabre sabre = new AlyrianSabre();
                                sabre.Resource = CraftResource.Bronze;

                                m.EquipItem( shield );
                                m.EquipItem( sabre );
                                m.EquipItem( new FemaleKilt( 2587 ) );
                            }

                            else
                            {
                                AlyrianTwoHandedAxe axe = new AlyrianTwoHandedAxe();
                                axe.Resource = CraftResource.Bronze;

                                m.EquipItem( axe );
                                m.EquipItem( new ElegantKilt( 2587 ) );
                            }

                            break;
                        }

                        case 1:
                        {
                            if( m.Female )
                            {
                                AlyrianRoundShield shield = new AlyrianRoundShield();
                                shield.Resource = CraftResource.Bronze;

                                AlyrianLongsword sword = new AlyrianLongsword();
                                sword.Resource = CraftResource.Bronze;

                                m.EquipItem( shield );
                                m.EquipItem( sword );
                                m.EquipItem( new ElegantFemaleKilt( 2587 ) );
                                m.EquipItem( new MetallicBra() );
                                m.EquipItem( new ElegantShoes() );
                            }

                            else
                            {
                                AlyrianClaymore sword = new AlyrianClaymore();
                                sword.Resource = CraftResource.Bronze;

                                m.EquipItem( sword );
                                m.EquipItem( new OrnateKilt( 2587 ) );
                                m.EquipItem( new Sandals() );
                            }

                            break;
                        }

                        case 2:
                        {
                            if( m.Female )
                            {
                                AlyrianLongbow bow = new AlyrianLongbow();
                                bow.Resource = CraftResource.Redwood;

                                m.EquipItem( bow );
                                m.EquipItem( new ElegantKilt( 2587 ) );
                                m.EquipItem( new MetallicBra() );

                            }

                            else
                            {
                                AlyrianGiantBow bow = new AlyrianGiantBow();
                                bow.Resource = CraftResource.Redwood;

                                m.EquipItem( bow );
                                m.EquipItem( new PlainKilt( 2587 ) );
                            }

                            m.EquipItem( new Sandals() );

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

                            break;
                        }
                    }

                    break;
                }

                case Nation.Azhuran:
                {
                    switch( choice )
                    {
                        case 0:
                        {
                            AzhuranHelm helm = new AzhuranHelm();
                            helm.Resource = CraftResource.Bronze;

                            AzhuranSpikedChainChest chest = new AzhuranSpikedChainChest();
                            chest.Resource = CraftResource.Bronze;

                            RingmailArms arms = new RingmailArms();
                            arms.Resource = CraftResource.Bronze;

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

                            RingmailGloves gloves = new RingmailGloves();
                            gloves.Resource = CraftResource.Bronze;

                            m.EquipItem( helm );
                            m.EquipItem( chest );
                            Sandals sandals = new Sandals();
                            sandals.Resource = CraftResource.BeastLeather;
                            sandals.Hue = 2810;
                            m.EquipItem( sandals );
                            m.EquipItem( gloves );
                            m.EquipItem( arms );
                            m.EquipItem( legs );
                            m.EquipItem( new Cloak( 2810 ) );

                            if( m.Female )
                            {
                                AzhuranKiteShield shield = new AzhuranKiteShield();
                                shield.Resource = CraftResource.Bronze;

                                AzhuranShortsword sword = new AzhuranShortsword();
                                sword.Resource = CraftResource.Bronze;

                                m.EquipItem( shield );
                                m.EquipItem( sword );
                                m.EquipItem( new ElegantWaistCloth( 2810 ) );
                            }

                            else
                            {
                                AzhuranRoundShield shield = new AzhuranRoundShield();
                                shield.Resource = CraftResource.Bronze;

                                AzhuranBroadsword sword = new AzhuranBroadsword();
                                sword.Resource = CraftResource.Bronze;

                                m.EquipItem( shield );
                                m.EquipItem( sword );
                            }

                            break;
                        }

                        case 1:
                        {
                            AzhuranLeatherTunic chest = new AzhuranLeatherTunic();
                            chest.Resource = CraftResource.BeastLeather;

                            AzhuranLeatherPauldrons pauldrons = new AzhuranLeatherPauldrons();
                            pauldrons.Resource = CraftResource.BeastLeather;

                            AzhuranLeatherBoots boots = new AzhuranLeatherBoots();
                            boots.Resource = CraftResource.BeastLeather;

                            AzhuranLeatherLegs legs = new AzhuranLeatherLegs();
                            legs.Resource = CraftResource.BeastLeather;

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

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

                            AzhuranSpear spear = new AzhuranSpear();
                            spear.Resource = CraftResource.Bronze;

                            m.EquipItem( chest );
                            m.EquipItem( pauldrons );
                            m.EquipItem( new Bandana( 2810 ) );
                            m.EquipItem( spear );
                            m.EquipItem( boots );
                            m.EquipItem( legs );
                            m.EquipItem( gloves );
                            m.EquipItem( arms );
                            break;
                        }

                        case 2:
                        {
                            Sandals sandals = new Sandals();
                            sandals.Resource = CraftResource.BeastLeather;
                            sandals.Hue = 2810;
                            m.EquipItem( sandals );

                            if( m.Female )
                            {
                                AzhuranShortbow bow = new AzhuranShortbow();
                                bow.Resource = CraftResource.Redwood;

                                m.EquipItem( bow );
                                m.EquipItem( new MetallicBra() );
                                m.EquipItem( new WaistCloth( 2810 ) );
                            }

                            else
                            {
                                AzhuranBoomerang bow = new AzhuranBoomerang();
                                bow.Resource = CraftResource.Redwood;

                                m.EquipItem( bow );
                                m.EquipItem( new LoinCloth( 2810 ) );
                            }

                            if( m is BaseCreature )
                            {
                                BaseCreature bc = m as BaseCreature;
                                bc.AI = AIType.AI_Archer;

                                if( m.Female )
                                    bc.PackItem( new Arrow( Utility.RandomMinMax( 10, 20 ) ) );
                            }

                            break;
                        }
                    }

                    break;
                }

                case Nation.Khemetar:
                {
                    switch( choice )
                    {
                        case 0:
                        {
                            KhemetarScaleChest chest = new KhemetarScaleChest();
                            chest.Resource = CraftResource.Bronze;
                            chest.Hue = 2947;
                            m.EquipItem( chest );

                            PlateLegs legs = new PlateLegs();
                            legs.Resource = CraftResource.Bronze;
                            legs.Hue = 2947;
                            m.EquipItem( legs );

                            PlateArms arms = new PlateArms();
                            arms.Resource = CraftResource.Bronze;
                            arms.Hue = 2947;
                            m.EquipItem( arms );

                            PlateGorget gorget = new PlateGorget();
                            gorget.Resource = CraftResource.Bronze;
                            gorget.Hue = 2947;
                            m.EquipItem( gorget );

                            PlateGloves gloves = new PlateGloves();
                            gloves.Resource = CraftResource.Bronze;
                            gloves.Hue = 2947;
                            m.EquipItem( gloves );

                            KhemetarScaleHelmet helmet = new KhemetarScaleHelmet();
                            helmet.Resource = CraftResource.Bronze;
                            helmet.Hue = 2947;
                            m.EquipItem( helmet );

                            RunicCloak cloak = new RunicCloak();
                            cloak.Hue = 2795;
                            m.EquipItem( cloak );

                            KhemetarAxe axe = new KhemetarAxe();
                            axe.Resource = CraftResource.Bronze;
                            m.EquipItem( axe );

                            if( m.Female )
                            {
                                ElegantWaistCloth waist = new ElegantWaistCloth();
                                waist.Hue = 2795;
                                m.EquipItem( waist );
                            }

                            else
                            {
                                WaistSash sash = new WaistSash();
                                sash.Hue = 2795;
                                m.EquipItem( sash );
                            }

                            break;
                        }

                        case 1:
                        {
                            ThighBoots boots = new ThighBoots();
                            boots.Resource = CraftResource.BeastLeather;
                            boots.Hue = 2947;
                            m.EquipItem( boots );

                            KhemetarScaleChest chest = new KhemetarScaleChest();
                            chest.Resource = CraftResource.Bronze;
                            chest.Hue = 2947;
                            m.EquipItem( chest );

                            KhemetarScaleLegs legs = new KhemetarScaleLegs();
                            legs.Resource = CraftResource.Bronze;
                            legs.Hue = 2947;
                            m.EquipItem( legs );

                            KhemetarScaleArms arms = new KhemetarScaleArms();
                            arms.Resource = CraftResource.Bronze;
                            arms.Hue = 2947;
                            m.EquipItem( arms );

                            RingmailGloves gloves = new RingmailGloves();
                            gloves.Resource = CraftResource.Bronze;
                            gloves.Hue = 2947;
                            m.EquipItem( gloves );

                            KhemetarScaleHelmet helmet = new KhemetarScaleHelmet();
                            helmet.Resource = CraftResource.Bronze;
                            helmet.Hue = 2947;
                            m.EquipItem( helmet );

                            RunicCloak cloak = new RunicCloak();
                            cloak.Hue = 2795;
                            m.EquipItem( cloak );

                            KhemetarKhopesh sword = new KhemetarKhopesh();
                            sword.Resource = CraftResource.Bronze;
                            m.EquipItem( sword );

                            MetalShield shield = new MetalShield();
                            shield.Resource = CraftResource.Bronze;
                            shield.Hue = 2947;
                            m.EquipItem( shield );

                            if( m.Female )
                            {
                                ElegantWaistCloth waist = new ElegantWaistCloth();
                                waist.Hue = 2795;
                                m.EquipItem( waist );
                            }

                            else
                            {
                                WaistSash sash = new WaistSash();
                                sash.Hue = 2795;
                                m.EquipItem( sash );
                            }

                            break;
                        }

                        case 2:
                        {
                            Sandals sandals = new Sandals();
                            sandals.Resource = CraftResource.BeastLeather;
                            sandals.Hue = 2947;
                            m.EquipItem( sandals );

                            KhemetarScaleChest chest = new KhemetarScaleChest();
                            chest.Resource = CraftResource.Bronze;
                            chest.Hue = 2947;
                            m.EquipItem( chest );

                            KhemetarScaleLegs legs = new KhemetarScaleLegs();
                            legs.Resource = CraftResource.Bronze;
                            legs.Hue = 2947;
                            m.EquipItem( legs );

                            KhemetarScaleHelmet helmet = new KhemetarScaleHelmet();
                            helmet.Resource = CraftResource.Bronze;
                            helmet.Hue = 2947;
                            m.EquipItem( helmet );

                            RunicCloak cloak = new RunicCloak();
                            cloak.Hue = 2795;
                            m.EquipItem( cloak );

                            KhemetarLongbow bow = new KhemetarLongbow();
                            bow.Resource = CraftResource.Redwood;
                            m.EquipItem( bow );

                            if( m.Female )
                            {
                                ElegantWaistCloth waist = new ElegantWaistCloth();
                                waist.Hue = 2795;
                                m.EquipItem( waist );
                            }

                            else
                            {
                                WaistSash sash = new WaistSash();
                                sash.Hue = 2795;
                                m.EquipItem( sash );
                            }

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

                            break;
                        }
                    }

                    break;
                }

                case Nation.Mhordul:
                {
                    Sandals sandals = new Sandals();
                    sandals.Resource = CraftResource.BeastLeather;
                    sandals.Hue = 1194;
                    m.EquipItem( sandals );

                    MhordulBoneArms mba = new MhordulBoneArms();
                    mba.Hue = 2101;
                    m.EquipItem( mba );

                    switch( choice )
                    {
                        case 0:
                        {
                            MhordulHornedSkullHelm mhsh = new MhordulHornedSkullHelm();
                            mhsh.Hue = 2101;
                            m.EquipItem( mhsh );

                            MhordulBoneChest mbc = new MhordulBoneChest();
                            mbc.Hue = 2101;
                            m.EquipItem( mbc );

                            MhordulBoneLegs mbl = new MhordulBoneLegs();
                            mbl.Hue = 2101;
                            m.EquipItem( mbl );

                            MhordulBoneGloves mbg = new MhordulBoneGloves();
                            mbg.Hue = 2101;
                            m.EquipItem( mbg );

                            MhordulBoneShield mbs = new MhordulBoneShield();
                            mbs.Hue = 2101;
                            m.EquipItem( mbs );

                            if( m.Female )
                            {
                                m.EquipItem( new MhordulBoneSword() );
                                m.EquipItem( new SmallRaggedSkirt( 1194 ) );
                            }

                            else
                            {
                                m.EquipItem( new MhordulBoneAxe() );
                            }

                            break;
                        }

                        case 1:
                        {
                            MhordulBoneHelm mbh = new MhordulBoneHelm();
                            mbh.Hue = 2101;
                            m.EquipItem( mbh );

                            MhordulBoneLegs mbl = new MhordulBoneLegs();
                            mbl.Hue = 2101;
                            m.EquipItem( mbl );

                            MhordulBoneGloves mbg = new MhordulBoneGloves();
                            mbg.Hue = 2101;
                            m.EquipItem( mbg );

                            if( m.Female )
                            {
                                m.EquipItem( new MhordulBoneSpear() );
                                m.EquipItem( new SmallRaggedSkirt( 1194 ) );
                                m.EquipItem( new RaggedBra( 1194 ) );
                            }

                            else
                            {
                                m.EquipItem( new MhordulBoneScythe() );
                                m.EquipItem( new WaistCloth( 1194 ) );
                            }

                            break;
                        }

                        case 2:
                        {
                            MhordulBoneHelm mbh = new MhordulBoneHelm();
                            mbh.Hue = 2101;
                            m.EquipItem( mbh );

                            m.EquipItem( new MhordulBoneBow() );

                            if( m.Female )
                            {
                                m.EquipItem( new SmallRaggedSkirt( 1194 ) );
                                m.EquipItem( new RaggedBra( 1194 ) );
                            }

                            else
                                m.EquipItem( new RaggedPants( 1194 ) );

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

                            break;
                        }
                    }

                    break;
                }

                case Nation.Tyrean:
                {
                    Surcoat coat = new Surcoat();
                    coat.ItemID = 15477;
                    coat.Name = "Tyrean Military Surcoat";
                    coat.Hue = 2741;
                    m.EquipItem( coat );

                    switch( choice )
                    {
                        case 0:
                        {
                            TyreanHalfPlateChest thpc = new TyreanHalfPlateChest();
                            thpc.Resource = CraftResource.Bronze;
                            thpc.Hue = 1899;
                            m.EquipItem( thpc );

                            TyreanHalfPlateLegs thpl = new TyreanHalfPlateLegs();
                            thpl.Resource = CraftResource.Bronze;
                            thpl.Hue = 1899;
                            m.EquipItem( thpl );

                            TyreanHalfPlateSabatons thps = new TyreanHalfPlateSabatons();
                            thps.Resource = CraftResource.Bronze;
                            thps.Hue = 1899;
                            m.EquipItem( thps );

                            TyreanHalfPlateArms thpa = new TyreanHalfPlateArms();
                            thpa.Resource = CraftResource.Bronze;
                            thpa.Hue = 1899;
                            m.EquipItem( thpa );

                            TyreanHalfPlateGloves thpg = new TyreanHalfPlateGloves();
                            thpg.Resource = CraftResource.Bronze;
                            thpg.Hue = 1899;
                            m.EquipItem( thpg );

                            TyreanHalfPlateGorget thpo = new TyreanHalfPlateGorget();
                            thpo.Resource = CraftResource.Bronze;
                            thpo.Hue = 1899;
                            m.EquipItem( thpo );

                            TyreanKiteShield tks = new TyreanKiteShield();
                            tks.Resource = CraftResource.Bronze;
                            tks.Hue = 1899;
                            m.EquipItem( tks );

                            m.EquipItem( new Cloak( 1445 ) );

                            TyreanWingedHelm twh = new TyreanWingedHelm();
                            twh.Resource = CraftResource.Bronze;
                            twh.Hue = 1899;
                            m.EquipItem( twh );

                            if( m.Female )
                            {
                                TyreanWarAxe axe = new TyreanWarAxe();
                                axe.Resource = CraftResource.Bronze;

                                m.EquipItem( axe );
                            }

                            else
                            {
                                TyreanOrnateAxe axe = new TyreanOrnateAxe();
                                axe.Resource = CraftResource.Bronze;

                                m.EquipItem( axe );
                            }

                            break;
                        }

                        case 1:
                        {
                            ChainChest cc = new ChainChest();
                            cc.Resource = CraftResource.Bronze;
                            cc.Hue = 1899;
                            m.EquipItem( cc );

                            ChainLegs cl = new ChainLegs();
                            cl.Resource = CraftResource.Bronze;
                            cl.Hue = 1899;
                            m.EquipItem( cl );

                            RingmailArms ra = new RingmailArms();
                            ra.Resource = CraftResource.Bronze;
                            ra.Hue = 1899;
                            m.EquipItem( ra );

                            RingmailGloves rg = new RingmailGloves();
                            rg.Resource = CraftResource.Bronze;
                            rg.Hue = 1899;
                            m.EquipItem( rg );

                            TyreanHornedHelm thh = new TyreanHornedHelm();
                            thh.Resource = CraftResource.Bronze;
                            thh.Hue = 1899;
                            m.EquipItem( thh );

                            FurBoots boots = new FurBoots();
                            boots.Resource = CraftResource.BeastLeather;
                            boots.Hue = 2741;

                            m.EquipItem( boots );

                            if( m.Female )
                            {
                                TyreanHarpoon weapon = new TyreanHarpoon();
                                weapon.Resource = CraftResource.Bronze;

                                m.EquipItem( weapon );
                            }

                            else
                            {
                                TyreanBattleAxe weapon = new TyreanBattleAxe();
                                weapon.Resource = CraftResource.Bronze;

                                m.EquipItem( weapon );
                            }

                            break;
                        }

                        case 2:
                        {
                            LeatherChest lc = new LeatherChest();
                            lc.Resource = CraftResource.BeastLeather;
                            lc.Hue = 1899;
                            m.EquipItem( lc );

                            LeatherLegs ll = new LeatherLegs();
                            ll.Resource = CraftResource.BeastLeather;
                            ll.Hue = 1899;
                            m.EquipItem( ll );

                            LeatherArms la = new LeatherArms();
                            la.Resource = CraftResource.BeastLeather;
                            la.Hue = 1899;
                            m.EquipItem( ll );

                            LeatherGloves lg = new LeatherGloves();
                            lg.Resource = CraftResource.BeastLeather;
                            lg.Hue = 1899;
                            m.EquipItem( lg );

                            LeatherGorget lo = new LeatherGorget();
                            lo.Resource = CraftResource.BeastLeather;
                            lo.Hue = 1899;
                            m.EquipItem( lo );

                            LeatherCap lcap = new LeatherCap();
                            lcap.Resource = CraftResource.BeastLeather;
                            lcap.Hue = 1899;
                            m.EquipItem( lcap );

                            FurBoots boots = new FurBoots();
                            boots.Resource = CraftResource.BeastLeather;
                            boots.Hue = 2741;
                            m.EquipItem( boots );

                            TyreanCompositeBow bow = new TyreanCompositeBow();
                            bow.Resource = CraftResource.Redwood;
                            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;
                        }
                    }

                    break;
                }

                case Nation.Vhalurian:
                {
                    Surcoat coat = new Surcoat();
                    coat.Name = "Vhalurian Military Surcoat";
                    coat.Hue = 1327;
                    coat.ItemID = 15479;
                    m.EquipItem( coat );

                    switch( choice )
                    {
                        case 0:
                        {
                            VhalurianOrnatePlateChest vopc = new VhalurianOrnatePlateChest();
                            vopc.Resource = CraftResource.Bronze;
                            vopc.Hue = 2101;
                            m.EquipItem( vopc );

                            VhalurianOrnatePlateLegs vopl = new VhalurianOrnatePlateLegs();
                            vopl.Resource = CraftResource.Bronze;
                            vopl.Hue = 2101;
                            m.EquipItem( vopl );

                            VhalurianOrnatePlateGorget vopo = new VhalurianOrnatePlateGorget();
                            vopo.Resource = CraftResource.Bronze;
                            vopo.Hue = 2101;
                            m.EquipItem( vopo );

                            PlateSabatons ps = new PlateSabatons();
                            ps.Resource = CraftResource.Bronze;
                            ps.Hue = 2105;
                            m.EquipItem( ps );

                            VhalurianOrnatePlateArms vopa = new VhalurianOrnatePlateArms();
                            vopa.Resource = CraftResource.Bronze;
                            vopa.Hue = 2101;
                            m.EquipItem( vopa );

                            VhalurianOrnatePlateGloves vopg = new VhalurianOrnatePlateGloves();
                            vopg.Resource = CraftResource.Bronze;
                            vopg.Hue = 2101;
                            m.EquipItem( vopg );

                            VhalurianOrnateKiteShield voks = new VhalurianOrnateKiteShield();
                            voks.Resource = CraftResource.Bronze;
                            voks.Hue = 2102;
                            m.EquipItem( voks );

                            m.EquipItem( new Cloak( 1327 ) );

                            if( m.Female )
                            {
                                VhalurianMace mace = new VhalurianMace();
                                mace.Resource = CraftResource.Bronze;

                                m.EquipItem( mace );

                                VhalurianOrnateHelm voh = new VhalurianOrnateHelm();
                                voh.Resource = CraftResource.Bronze;
                                voh.Hue = 2102;
                                m.EquipItem( voh );
                            }

                            else
                            {
                                VhalurianWarHammer mace = new VhalurianWarHammer();
                                mace.Resource = CraftResource.Bronze;

                                m.EquipItem( mace );

                                VhalurianOrnatePlateHelm voph = new VhalurianOrnatePlateHelm();
                                voph.Resource = CraftResource.Bronze;
                                voph.Hue = 2102;
                                m.EquipItem( voph );
                            }

                            break;
                        }

                        case 1:
                        {
                            ChainChest cc = new ChainChest();
                            cc.Resource = CraftResource.Bronze;
                            cc.Hue = 2101;
                            m.EquipItem( cc );

                            ChainLegs cl = new ChainLegs();
                            cl.Resource = CraftResource.Bronze;
                            cl.Hue = 2101;
                            m.EquipItem( cl );

                            ChainCoif co = new ChainCoif();
                            co.Resource = CraftResource.Bronze;
                            co.Hue = 2101;
                            m.EquipItem( co );

                            RingmailArms ra = new RingmailArms();
                            ra.Resource = CraftResource.Bronze;
                            ra.Hue = 2101;
                            m.EquipItem( ra );

                            RingmailGloves rg = new RingmailGloves();
                            rg.Resource = CraftResource.Bronze;
                            rg.Hue = 2101;
                            m.EquipItem( rg );

                            VhalurianMetalKiteShield vmks = new VhalurianMetalKiteShield();
                            vmks.Resource = CraftResource.Bronze;
                            vmks.Hue = 2101;
                            m.EquipItem( vmks );

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

                            m.EquipItem( boots );

                            if( m.Female )
                            {
                                VhalurianGladius sword = new VhalurianGladius();
                                sword.Resource = CraftResource.Bronze;

                                m.EquipItem( sword );
                            }

                            else
                            {
                                VhalurianBroadsword sword = new VhalurianBroadsword();
                                sword.Resource = CraftResource.Bronze;

                                m.EquipItem( sword );
                            }

                            break;
                        }

                        case 2:
                        {
                            LeatherBoots boots = new LeatherBoots();
                            boots.Resource = CraftResource.BeastLeather;
                            boots.Hue = 2101;

                            m.EquipItem( boots );

                            Beret beret = new Beret();
                            beret.Hue = 1327;
                            m.EquipItem( beret );

                            StuddedChest sc = new StuddedChest();
                            sc.Resource = CraftResource.BeastLeather;
                            sc.Hue = 2101;
                            m.EquipItem( sc );

                            StuddedLegs sl = new StuddedLegs();
                            sl.Resource = CraftResource.BeastLeather;
                            sl.Hue = 2101;
                            m.EquipItem( sl );

                            StuddedArms sa = new StuddedArms();
                            sa.Resource = CraftResource.BeastLeather;
                            sa.Hue = 2101;
                            m.EquipItem( sa );

                            StuddedGloves sg = new StuddedGloves();
                            sg.Resource = CraftResource.BeastLeather;
                            sg.Hue = 2101;
                            m.EquipItem( sg );

                            StuddedGorget so = new StuddedGorget();
                            so.Resource = CraftResource.BeastLeather;
                            so.Hue = 2101;
                            m.EquipItem( so );

                            VhalurianLongbow bow = new VhalurianLongbow();
                            bow.Resource = CraftResource.Redwood;

                            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;
                        }
                    }

                    break;
                }
            }
        }
Ejemplo n.º 20
0
        public HireFighter()
        {
            Female = Utility.RandomBool();
            Body = Female ? 401 : 400;
            Title = "the fighter";
            Name = NameList.RandomName( Female ? "female" : "male" );
            Hue = Utility.RandomSkinHue();
            SetStr( 11, 88 );
            SetDex( 11, 88 );
            SetInt( 7, 49 );
            Karma = Utility.RandomMinMax( 13, -45 );

            SetSkill( SkillName.Tactics, 45, 67.5 );
            SetSkill( SkillName.MagicResist, 45, 67.5 );
            SetSkill( SkillName.Parry, 45, 67.5 );
            SetSkill( SkillName.Swords, 45, 67.5 );
            SetSkill( SkillName.Macing, 45, 67.5 );
            SetSkill( SkillName.Fencing, 45, 67.5 );
            SetSkill( SkillName.Wrestling, 45, 67.5 );
            SetSkill( SkillName.ArmsLore, 42.5, 65 );

            Item item = null;
            if ( !Female )
            {
                item = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item = AddRandomFacialHair( item.Hue );
                item = new StuddedChest();
                AddItem( item );
                item = new StuddedLegs();
                AddItem( item );
                item = new StuddedArms();
                AddItem( item );
                item = new StuddedGloves();
                AddItem( item );
                switch ( Utility.Random( 6 ) )
                {
                    case 0: item = new PlateHelm(); break;
                    case 1: item = new ChainCoif(); break;
                    case 2: item = new CloseHelm(); break;
                    case 3: item = new Bascinet(); break;
                    case 4: item = new NorseHelm(); break;
                    case 5: default: item = new Helmet(); break;
                }
                AddItem( item );
                item = new StuddedGorget();
                AddItem( item );
                item = Loot.RandomWeapon();
                AddItem( item );
                if ( item.Layer == Layer.OneHanded )
                {
                    item = new WoodenShield();
                    AddItem( item );
                }
            } else {
                item = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item = new StuddedChest();
                AddItem( item );
                item = new StuddedLegs();
                AddItem( item );
                item = new StuddedArms();
                AddItem( item );
                item = new StuddedGloves();
                AddItem( item );
                switch ( Utility.Random( 6 ) )
                {
                    case 0: item = new PlateHelm(); break;
                    case 1: item = new ChainCoif(); break;
                    case 2: item = new CloseHelm(); break;
                    case 3: item = new Bascinet(); break;
                    case 4: item = new NorseHelm(); break;
                    case 5: default: item = new Helmet(); break;
                }
                AddItem( item );
                item = new StuddedGorget();
                AddItem( item );
                item = Loot.RandomWeapon();
                AddItem( item );
                if ( item.Layer == Layer.OneHanded )
                {
                    item = new WoodenShield();
                    AddItem( item );
                }
            }
        }
Ejemplo n.º 21
0
        //End of criminal recognition system.
        public static void TurnIntoImperialGuard( Mobile m, int choice )
        {
            if( choice > 3 || choice < 1 )
                choice = Utility.RandomMinMax( 0, 2 );
            else
                choice--;

            m.HairItemID = 8251;

            Surcoat coat = new Surcoat();
            coat.ItemID = 15476;
            coat.Name = "Unified Northern Army Surcoat";
            coat.Hue = 2751;
            m.EquipItem( coat );
            m.EquipItem( new ElegantCloak(2751) );

            switch( choice )
            {
                case 0:
                {
                    VhalurianOrnatePlateLegs vopl = new VhalurianOrnatePlateLegs();
                    vopl.Resource = CraftResource.Bronze;
                    vopl.Hue = 1899;
                    m.EquipItem( vopl );

                    VhalurianOrnatePlateGorget vopo = new VhalurianOrnatePlateGorget();
                    vopo.Resource = CraftResource.Bronze;
                    vopo.Hue = 1899;
                    m.EquipItem( vopo );

                    PlateSabatons ps = new PlateSabatons();
                    ps.Resource = CraftResource.Bronze;
                    ps.Hue = 1899;
                    m.EquipItem( ps );

                    VhalurianOrnateKiteShield voks = new VhalurianOrnateKiteShield();
                    voks.Resource = CraftResource.Bronze;
                    voks.Hue = 1899;
                    m.EquipItem( voks );

                    VhalurianWarHammer hammer = new VhalurianWarHammer();
                    hammer.Resource = CraftResource.Iron;
                    m.EquipItem( hammer );

                    TyreanHalfPlateChest thpc = new TyreanHalfPlateChest();
                    thpc.Resource = CraftResource.Bronze;
                    thpc.Hue = 1899;
                    m.EquipItem( thpc );

                    TyreanHalfPlateArms thpa = new TyreanHalfPlateArms();
                    thpa.Resource = CraftResource.Bronze;
                    thpa.Hue = 1899;
                    m.EquipItem( thpa );

                    TyreanHalfPlateGloves thpg = new TyreanHalfPlateGloves();
                    thpg.Resource = CraftResource.Bronze;
                    thpg.Hue = 1899;
                    m.EquipItem( thpg );

                    TyreanWingedHelm twh = new TyreanWingedHelm();
                    twh.Resource = CraftResource.Bronze;
                    twh.Hue = 1899;
                    m.EquipItem( twh );

                    break;
                }

                case 1:
                {
                    ChainChest cc = new ChainChest();
                    cc.Resource = CraftResource.Bronze;
                    cc.Hue = 1899;
                    m.EquipItem( cc );

                    ChainLegs cl = new ChainLegs();
                    cl.Resource = CraftResource.Bronze;
                    cl.Hue = 1899;
                    m.EquipItem( cl );

                    ChainCoif co = new ChainCoif();
                    co.Resource = CraftResource.Bronze;
                    co.Hue = 1899;
                    m.EquipItem( co );

                    RingmailArms ra = new RingmailArms();
                    ra.Resource = CraftResource.Bronze;
                    ra.Hue = 1899;
                    m.EquipItem( ra );

                    RingmailGloves rg = new RingmailGloves();
                    rg.Resource = CraftResource.Bronze;
                    rg.Hue = 1899;
                    m.EquipItem( rg );

                    TyreanKiteShield vmks = new TyreanKiteShield();
                    vmks.Resource = CraftResource.Bronze;
                    vmks.Hue = 1899;
                    m.EquipItem( vmks );

                    LeatherBoots boots = new LeatherBoots();
                    boots.Resource = CraftResource.BeastLeather;
                    boots.Hue = 1899;
                    m.EquipItem( boots );

                    TyreanOrnateAxe axe = new TyreanOrnateAxe();
                    axe.Resource = CraftResource.Iron;
                    m.EquipItem( axe );

                    break;
                }

                case 2:
                {
                    LeatherBoots boots = new LeatherBoots();
                    boots.Resource = CraftResource.BeastLeather;
                    boots.Hue = 1899;
                    m.EquipItem( boots );

                    WolfMask mask = new WolfMask();
                    mask.Hue = 1899;
                    m.EquipItem( mask );

                    StuddedChest sc = new StuddedChest();
                    sc.Resource = CraftResource.BeastLeather;
                    sc.Hue = 1899;
                    m.EquipItem( sc );

                    StuddedLegs sl = new StuddedLegs();
                    sl.Resource = CraftResource.BeastLeather;
                    sl.Hue = 1899;
                    m.EquipItem( sl );

                    StuddedArms sa = new StuddedArms();
                    sa.Resource = CraftResource.BeastLeather;
                    sa.Hue = 1899;
                    m.EquipItem( sa );

                    StuddedGloves sg = new StuddedGloves();
                    sg.Resource = CraftResource.BeastLeather;
                    sg.Hue = 1899;
                    m.EquipItem( sg );

                    StuddedGorget so = new StuddedGorget();
                    so.Resource = CraftResource.BeastLeather;
                    so.Hue = 1899;
                    m.EquipItem( so );

                    VhalurianLongbow bow = new VhalurianLongbow();
                    bow.Resource = CraftResource.Redwood;
                    bow.Hue = 0;

                    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;
                }
            }
        }
Ejemplo n.º 22
0
        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 TownChestArmorer() : base(0xE43)
        {
            Name    = "a metal chest -20-";
            Movable = true;
            Weight  = 1000.0;

            Hue = 83;

            TrapPower = 0;
            Locked    = true;

            RequiredSkill = 20;
            LockLevel     = 20;
            MaxLockLevel  = 25;

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

            // Supplies

            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new ChainCoif());
            }
            if (Utility.RandomDouble() < 0.05)
            {
                DropItem(new ChainChest());
            }
            if (Utility.RandomDouble() < 0.06)
            {
                DropItem(new ChainLegs());
            }

            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new Bascinet());
            }
            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new CloseHelm());
            }
            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new NorseHelm());
            }
            if (Utility.RandomDouble() < 0.06)
            {
                DropItem(new PlateArms());
            }
            if (Utility.RandomDouble() < 0.05)
            {
                DropItem(new PlateChest());
            }
            if (Utility.RandomDouble() < 0.07)
            {
                DropItem(new PlateGloves());
            }
            if (Utility.RandomDouble() < 0.07)
            {
                DropItem(new PlateGorget());
            }
            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new PlateHelm());
            }
            if (Utility.RandomDouble() < 0.06)
            {
                DropItem(new PlateLegs());
            }

            if (Utility.RandomDouble() < 0.06)
            {
                DropItem(new RingmailArms());
            }
            if (Utility.RandomDouble() < 0.05)
            {
                DropItem(new RingmailChest());
            }
            if (Utility.RandomDouble() < 0.07)
            {
                DropItem(new RingmailGloves());
            }
            if (Utility.RandomDouble() < 0.06)
            {
                DropItem(new RingmailLegs());
            }

            if (Utility.RandomDouble() < 0.07)
            {
                DropItem(new BronzeShield());
            }
            if (Utility.RandomDouble() < 0.07)
            {
                DropItem(new Buckler());
            }
            if (Utility.RandomDouble() < 0.07)
            {
                DropItem(new HeaterShield());
            }
            if (Utility.RandomDouble() < 0.07)
            {
                DropItem(new MetalKiteShield());
            }
            if (Utility.RandomDouble() < 0.07)
            {
                DropItem(new MetalShield());
            }
            if (Utility.RandomDouble() < 0.07)
            {
                DropItem(new WoodenKiteShield());
            }
            if (Utility.RandomDouble() < 0.07)
            {
                DropItem(new WoodenShield());
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseArmor armor = Loot.RandomArmor(true);
                switch (Utility.Random(13))
                {
                case 0: armor = new FemaleStuddedChest(); break;

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

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

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

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

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

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

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

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

                case 9: armor = new RingmailChest(); break;

                case 10: armor = new RingmailGloves(); break;

                case 11: armor = new RingmailLegs(); break;

                default: armor = new StuddedChest(); break;
                }
                BaseRunicTool.ApplyAttributesTo(armor, 5, 15, 20);

                DropItem(armor);
            }
        }
        public NewArcherNoCriminalGuard()
            : base(AIType.AI_Archer)
        {
            SetStr(60, 120);
            SetDex(100, 150);
            SetInt(26, 50);

            SetHits(80, 110);

            SetMana(40);

            if (Utility.RandomBool())
            {
                new Horse().Rider = this;
            }

            SetResistance(ResistanceType.Physical, 20, 20);
            SetResistance(ResistanceType.Fire, 20, 25);
            SetResistance(ResistanceType.Cold, 20, 20);
            SetResistance(ResistanceType.Poison, 20, 30);

            SetSkill(SkillName.MagicResist, 50.0, 100.0);
            SetSkill(SkillName.Tactics, 80.0, 120.0);
            SetSkill(SkillName.Anatomy, 80.0, 120.0);
            SetSkill(SkillName.Healing, 50.0, 65.0);
            SetSkill(SkillName.Archery, 80.0, 120.0);
            SetSkill(SkillName.Fencing, 80.0, 120.0);

            Fame = 1000;
            Karma = 10000;

            VirtualArmor = 16;

            AddItem(new Boots(Utility.RandomGreenHue()));
            AddItem(new Cloak(Utility.RandomGreenHue()));
            PackItem(new Dagger());
            StuddedChest chest = new StuddedChest();
            chest.Hue = Utility.RandomGreenHue();
            AddItem(chest);
            StuddedLegs legs = new StuddedLegs();
            legs.Hue = Utility.RandomGreenHue();
            AddItem(legs);
            LeatherCap head = new LeatherCap();
            head.Hue = Utility.RandomGreenHue();
            AddItem(head);
            StuddedGloves gloves = new StuddedGloves();
            gloves.Hue = Utility.RandomGreenHue();
            AddItem(gloves);
            StuddedGorget gorget = new StuddedGorget();
            gorget.Hue = Utility.RandomGreenHue();
            AddItem(gorget);
            StuddedArms arms = new StuddedArms();
            arms.Hue = Utility.RandomGreenHue();
            AddItem(arms);
            AddItem(new Bandage(30));

            switch (Utility.Random(4))
            {  
                case 0: AddItem(new Bow());
                        AddItem(new Arrow(50));
                        SetDamage(5, 15);
                        currentweapon=1;
                        break;
                case 1: AddItem(new CompositeBow());
                        AddItem(new Arrow(50));
                        SetDamage(5, 20);
                        currentweapon=2;
                        break;
                case 2: AddItem(new Crossbow());
                        AddItem(new Bolt(50));
                        SetDamage(15, 25);
                        currentweapon=3;
                        break;
                case 3: AddItem(new HeavyCrossbow());
                        AddItem(new Bolt(50));
                        SetDamage(18, 30);
                        currentweapon=4;
                        break;
            }
        }
		public EvilNecroWarrior() : base( AIType.AI_Melee, FightMode.Weakest, 10, 1, 0.08, 0.2 )
		{
			InitStats( 110, 110, 110 );
			Name = "Necromatic Warrior";
			SpeechHue = Utility.RandomDyedHue();
			Kills = 5;
			RangePerception = 40;
			Body = 400;
			Hits = 850;
			Dex = 100;
			SetDamage( 25, 45 );
			VirtualArmor = 65;
			if ( Female = Utility.RandomBool() )
			{
				Body = 0x191;
			}
			else
			{
				Body = 0x190;

			}

			new SkeletalMount().Rider = this;

			Halberd halberd = new Halberd();
			halberd.Name = "Halberd of the Fallen Souls";
			halberd.Movable = false;
			halberd.Hue = 33;
			halberd.LootType = LootType.Blessed;
			AddItem( halberd );

			PackGold( 450, 550 );

			Skills[SkillName.Anatomy].Base = 130.0;
			Skills[SkillName.Tactics].Base = 100.0;
			Skills[SkillName.Swords].Base = 125.0;
			Skills[SkillName.MagicResist].Base = 120.0;
			Skills[SkillName.DetectHidden].Base = 100.0;
			Skills[SkillName.Poisoning].Base = 120;
			Skills[SkillName.Magery].Base = 120;


      			Item shroud = new HoodedShroudOfShadows();

       		        shroud.Name = "Shroud of the Fallen Souls";
         		shroud.Hue = 1157;
         		shroud.Movable = false;

         		AddItem( shroud );

			Item sandals = new Sandals();
			sandals.Name = "Sandals of the Fallen";
			sandals.Hue = 1;
			sandals.Movable = false;
			PackItem( new NecroCrystal( 1 ) );
			AddItem( sandals );

			Item llegs = new StuddedLegs();

			AddItem( llegs );

			Item larms = new StuddedArms();

			AddItem( larms );

			Item ltunic = new StuddedChest();

			AddItem( ltunic );

			Item lgloves = new StuddedGloves();

			AddItem( lgloves );

			Item lgorget = new StuddedGorget();

			AddItem( lgorget );


}
Ejemplo n.º 26
0
        public FortressCalcifinaTreasureChest1() : base(0xE43)
        {
            Name    = "a treasure chest -25-";
            Movable = true;
            Weight  = 1000.0;

            TrapPower = 0;
            Locked    = true;

            RequiredSkill = 25;
            LockLevel     = 25;
            MaxLockLevel  = 30;

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

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

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Arrow(Utility.Random(15, 20)));
            }

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Bolt(Utility.Random(15, 20)));
            }

            Item ReagentLoot = Loot.RandomReagent();

            ReagentLoot.Amount = Utility.Random(15, 20);
            DropItem(ReagentLoot);

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Bandage(Utility.Random(15, 20)));
            }

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

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Bottle(Utility.Random(15, 20)));
            }

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Lockpick(Utility.Random(15, 20)));
            }

            Item PotionLoot = Loot.RandomPotion();

            DropItem(PotionLoot);

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

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

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

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

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

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

            if (Utility.RandomDouble() < 0.15)
            {
                BaseWeapon weapon = Loot.RandomWeapon(true);
                switch (Utility.Random(38))
                {
                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;

                case 20: weapon = new Axe(); break;

                case 21: weapon = new ExecutionersAxe(); break;

                case 22: weapon = new Pickaxe(); break;

                case 23: weapon = new TwoHandedAxe(); break;

                case 24: weapon = new WarAxe(); break;

                case 25: weapon = new HeavyCrossbow(); break;

                case 26: weapon = new HammerPick(); break;

                case 27: weapon = new WarMace(); break;

                case 28: weapon = new Spear(); break;

                case 29: weapon = new WarFork(); break;

                case 30: weapon = new BlackStaff(); break;

                case 31: weapon = new QuarterStaff(); break;

                case 32: weapon = new Longsword(); break;

                case 33: weapon = new ElvenCompositeLongbow(); break;

                case 34: weapon = new ElvenMachete(); break;

                case 35: weapon = new ElvenSpellblade(); break;

                case 36: weapon = new RuneBlade(); break;

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

                BaseRunicTool.ApplyAttributesTo(weapon, 4, 18, 22);

                DropItem(weapon);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseArmor armor = Loot.RandomArmor(true);
                switch (Utility.Random(13))
                {
                case 0: armor = new FemaleStuddedChest(); break;

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

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

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

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

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

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

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

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

                case 9: armor = new RingmailChest(); break;

                case 10: armor = new RingmailGloves(); break;

                case 11: armor = new RingmailLegs(); break;

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

                BaseRunicTool.ApplyAttributesTo(armor, 4, 18, 22);

                DropItem(armor);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                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, 4, 18, 22);

                DropItem(hat);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseClothing clothing = Loot.RandomClothing(true);
                BaseRunicTool.ApplyAttributesTo(clothing, 4, 18, 22);

                DropItem(clothing);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseShield shield = new MetalKiteShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield, 4, 18, 22);
                }

                DropItem(shield);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseJewel bracelet = new GoldBracelet();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(bracelet, 4, 18, 22);
                }

                DropItem(bracelet);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseJewel earrings = new SilverEarrings();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(earrings, 4, 18, 22);
                }

                DropItem(earrings);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseJewel necklace = new GoldNecklace();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(necklace, 4, 18, 22);
                }

                DropItem(necklace);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseJewel ring = new SilverRing();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(ring, 4, 18, 22);
                }

                DropItem(ring);
            }
        }
Ejemplo n.º 27
0
		public Spartan( Mobile owner ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			m_Owner = owner;
			m_ExpireTime = DateTime.UtcNow + TimeSpan.FromMinutes( 1.0 );

			Name = "Spartan";
			Body = 400;

			SetStr( 2010, 3000 );
			SetDex( 710, 900 );
			SetInt( 2000, 2500 );

			SetHits( 1210, 1800 );

			SetDamage( 20, 30 );

			

			
			
			
			
			

			SetSkill( SkillName.Anatomy, 100, 100 );
			SetSkill( SkillName.EvalInt, 100, 100.0 );
			SetSkill( SkillName.Magery, 100, 100.0 );
			SetSkill( SkillName.Meditation, 100, 100.0 );
			SetSkill( SkillName.MagicResist, 140.1, 150.0 );
			SetSkill( SkillName.Tactics, 100, 100 );
			SetSkill( SkillName.Wrestling, 100, 100 );

			Spear weapon = new Spear();
			weapon.Hue = 0x835;
			weapon.Movable = false;
			AddItem( weapon );

			CloseHelm helm = new CloseHelm();
			helm.Hue = 0x835;
			AddItem( helm );

			StuddedArms arms = new StuddedArms();
			arms.Hue = 0x835;
			AddItem( arms );

			StuddedGloves gloves = new StuddedGloves();
			gloves.Hue = 0x835;
			AddItem( gloves );
			
			StuddedGorget gorget = new StuddedGorget();
			gorget.Hue = 0x835;
			AddItem( gorget );

			StuddedChest tunic = new StuddedChest();
			tunic.Hue = 0x835;
			AddItem( tunic );

			StuddedLegs legs = new StuddedLegs();
			legs.Hue = 0x835;
			AddItem( legs );

			AddItem( new Boots() );

			Fame = 0;
			Karma = 0;

			VirtualArmor = 50;

		}
        public TerathanIslandTreasureChest() : base(0x2DF1)
        {
            Name    = "a treasure chest -30-";
            Movable = true;
            Hue     = 285;
            Weight  = 1000.0;

            TrapPower = 0;
            Locked    = true;

            RequiredSkill = 30;
            LockLevel     = 30;
            MaxLockLevel  = 35;

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

/////////////////////////////////////// Books

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

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

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

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

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

/////////////////////////////////////// Meats

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Bacon());
            }
            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Sausage());
            }

/////////////////////////////////////// Eating Utensils

            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new KnifeLeft());
            }
            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new KnifeRight());
            }
            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new PewterMug());
            }
            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new Plate());
            }
            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new SpoonLeft());
            }
            if (Utility.RandomDouble() < 0.08)
            {
                DropItem(new SpoonRight());
            }

/////////////////////////////////////// Jewelry

            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new Agate());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new Beryl());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new ChromeDiopside());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new FireOpal());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new MoonstoneCustom());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new Onyx());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new Opal());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new Pearl());
            }
            if (Utility.RandomDouble() < 0.04)
            {
                DropItem(new TurquoiseCustom());
            }

            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Bloodstone());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Citrine());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Demantoid());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Jasper());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Lolite());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Lupis());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Peridot());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Tsavorite());
            }
            if (Utility.RandomDouble() < 0.03)
            {
                DropItem(new Zircon());
            }


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

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Arrow(Utility.Random(17, 22)));
            }

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Bolt(Utility.Random(17, 22)));
            }

            Item ReagentLoot = Loot.RandomReagent();

            ReagentLoot.Amount = Utility.Random(17, 22);
            DropItem(ReagentLoot);

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Bandage(Utility.Random(17, 22)));
            }

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

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Bottle(Utility.Random(17, 22)));
            }

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new Lockpick(Utility.Random(17, 22)));
            }

            Item PotionLoot = Loot.RandomPotion();

            DropItem(PotionLoot);

            if (Utility.RandomDouble() < 0.20)
            {
                DropItem(new LesserPoisonPotion());
            }

            if (Utility.RandomDouble() < 0.15)
            {
                DropItem(new PoisonPotion());
            }

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

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

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

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

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

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

            if (Utility.RandomDouble() < 0.15)
            {
                BaseWeapon weapon = Loot.RandomWeapon(true);
                switch (Utility.Random(38))
                {
                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;

                case 20: weapon = new Axe(); break;

                case 21: weapon = new ExecutionersAxe(); break;

                case 22: weapon = new Pickaxe(); break;

                case 23: weapon = new TwoHandedAxe(); break;

                case 24: weapon = new WarAxe(); break;

                case 25: weapon = new HeavyCrossbow(); break;

                case 26: weapon = new HammerPick(); break;

                case 27: weapon = new WarMace(); break;

                case 28: weapon = new Spear(); break;

                case 29: weapon = new WarFork(); break;

                case 30: weapon = new BlackStaff(); break;

                case 31: weapon = new QuarterStaff(); break;

                case 32: weapon = new Longsword(); break;

                case 33: weapon = new ElvenCompositeLongbow(); break;

                case 34: weapon = new ElvenMachete(); break;

                case 35: weapon = new ElvenSpellblade(); break;

                case 36: weapon = new RuneBlade(); break;

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

                BaseRunicTool.ApplyAttributesTo(weapon, 2, 22, 25);
                weapon.Hue = 285;

                weapon.WeaponAttributes.HitLeechStam = 5;
                weapon.Attributes.BonusHits          = 10;

                DropItem(weapon);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseArmor armor = Loot.RandomArmor(true);
                switch (Utility.Random(13))
                {
                case 0: armor = new FemaleStuddedChest(); break;

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

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

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

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

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

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

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

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

                case 9: armor = new RingmailChest(); break;

                case 10: armor = new RingmailGloves(); break;

                case 11: armor = new RingmailLegs(); break;

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

                BaseRunicTool.ApplyAttributesTo(armor, 3, 22, 25);
                armor.Hue = 285;

                armor.Attributes.WeaponDamage = 3;

                DropItem(armor);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                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, 22, 25);
                hat.Hue = 285;

                hat.Attributes.BonusHits   = 10;
                hat.Attributes.SpellDamage = 5;
                hat.Resistances.Energy     = 10;

                DropItem(hat);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseClothing clothing = Loot.RandomClothing(true);
                BaseRunicTool.ApplyAttributesTo(clothing, 3, 22, 25);
                clothing.Hue = 285;

                clothing.Attributes.BonusHits    = 5;
                clothing.Attributes.DefendChance = 3;
                clothing.Resistances.Physical    = 5;

                DropItem(clothing);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseShield shield = new WoodenKiteShield();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(shield, 3, 22, 25);
                }
                shield.Hue = 285;

                shield.Attributes.BonusHits = 10;

                DropItem(shield);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseJewel bracelet = new GoldBracelet();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(bracelet, 3, 22, 25);
                }
                bracelet.Hue = 285;

                bracelet.Attributes.WeaponDamage = 5;
                bracelet.Attributes.DefendChance = 2;
                bracelet.Resistances.Fire        = 5;

                DropItem(bracelet);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseJewel earrings = new SilverEarrings();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(earrings, 3, 22, 25);
                }
                earrings.Hue = 285;

                earrings.Attributes.WeaponDamage = 5;
                earrings.Attributes.DefendChance = 3;
                earrings.Resistances.Cold        = 5;

                DropItem(earrings);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseJewel necklace = new GoldNecklace();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(necklace, 3, 22, 25);
                }
                necklace.Hue = 285;

                necklace.Attributes.WeaponDamage = 5;
                necklace.Attributes.DefendChance = 5;
                necklace.Resistances.Energy      = 5;

                DropItem(necklace);
            }

            if (Utility.RandomDouble() < 0.15)
            {
                BaseJewel ring = new SilverRing();
                if (Core.AOS)
                {
                    BaseRunicTool.ApplyAttributesTo(ring, 3, 22, 25);
                }
                ring.Hue = 285;

                ring.Attributes.WeaponDamage = 5;
                ring.Attributes.DefendChance = 2;
                ring.Resistances.Poison      = 5;

                DropItem(ring);
            }
        }
Ejemplo n.º 29
0
        public InsulariiMage()
            : 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( 150 );

            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 );

            SetSkill( SkillName.Magery, 100.0 );
            SetSkill( SkillName.MagicResist, 100.0 );
            SetSkill( SkillName.Meditation, 100.0 );
            SetSkill( SkillName.Invocation, 100.0 );
            SetSkill( SkillName.Concentration, 100.0 );

            this.Fame = 16000;

            this.VirtualArmor = 10;

            FightMode = FightMode.Closest;

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

            StuddedChest chest = new StuddedChest();
            chest.Hue = 2591;

            StuddedArms arms = new StuddedArms();
            arms.Hue = 2591;

            StuddedLegs legs = new StuddedLegs();
            legs.Hue = 2591;

            StuddedGorget gorget = new StuddedGorget();
            gorget.Hue = 2591;

            StuddedGloves gloves = new StuddedGloves();
            gloves.Hue = 2591;

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

            QuarterStaff staff = new QuarterStaff();
            staff.ItemID = 15813;
            staff.Name = "Insularii Mage Staff";

            Cowl cowl = new Cowl();
            cowl.Hue = 2799;

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

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

            this.AI = AIType.AI_Mage;
        }
Ejemplo n.º 30
0
        public static void EquipAlyrian(Armament a, Mobile m)
        {
            if (a == Armament.LightCavalry)
                a = (Armament)1;
            else if (a == Armament.HeavyCavalry)
                a = (Armament)3;

            switch (a)
            {
                case Armament.Light:
                    {
                        AlyrianClaymore sword = new AlyrianClaymore();
                        sword.Resource = CraftResource.Bronze;
                        m.EquipItem(sword);

                        StuddedChest chest = new StuddedChest();
                        chest.Resource = CraftResource.RegularLeather;
                        m.EquipItem(chest);

                        StuddedLegs legs = new StuddedLegs();
                        legs.Resource = CraftResource.RegularLeather;
                        m.EquipItem(legs);

                        if (m.Female)
                        {
                            m.EquipItem(new ElegantFemaleKilt(2587));
                            m.EquipItem(new MetallicBra());
                            m.EquipItem(new ElegantShoes());
                        }
                        else
                        {
                            m.EquipItem(new OrnateKilt(2587));
                            m.EquipItem(new Sandals());
                        }

                        break;
                    }
                case Armament.Medium:
                    {
                        AlyrianRoundShield shield = new AlyrianRoundShield();
                        shield.Resource = CraftResource.Bronze;
                        m.EquipItem(shield);

                        AlyrianLongsword sword = new AlyrianLongsword();
                        sword.Resource = CraftResource.Bronze;
                        m.EquipItem(sword);

                        AlyrianChainChest chest = new AlyrianChainChest();
                        chest.Resource = CraftResource.Bronze;

                        AlyrianChainLegs legs = new AlyrianChainLegs();
                        legs.Resource = CraftResource.Bronze;

                        AlyrianChainArms arms = new AlyrianChainArms();
                        arms.Resource = CraftResource.Bronze;

                        AlyrianChainGorget gorget = new AlyrianChainGorget();
                        gorget.Resource = CraftResource.Bronze;

                        HardenedFurBoots boots = new HardenedFurBoots();

                        PlainKilt kilt = new PlainKilt(2587);
                        kilt.Resource = CraftResource.Wool;

                        Beret beret = new Beret(2587);
                        beret.Resource = CraftResource.Wool;

                        m.EquipItem(chest);
                        m.EquipItem(legs);
                        m.EquipItem(arms);
                        m.EquipItem(gorget);
                        m.EquipItem(boots);
                        m.EquipItem(kilt);
                        m.EquipItem(beret);

                        break;
                    }
                case Armament.Heavy:
                    {
                        AlyrianLeafShield shield = new AlyrianLeafShield();
                        shield.Resource = CraftResource.Bronze;
                        m.EquipItem(shield);

                        AlyrianSabre sabre = new AlyrianSabre();
                        sabre.Resource = CraftResource.Bronze;
                        m.EquipItem(sabre);

                        AlyrianChainChest chest = new AlyrianChainChest();
                        chest.Resource = CraftResource.Bronze;
                        m.EquipItem(chest);

                        PlateLegs legs = new PlateLegs();
                        legs.Resource = CraftResource.Bronze;
                        m.EquipItem(legs);

                        PlateArms arms = new PlateArms();
                        arms.Resource = CraftResource.Bronze;
                        m.EquipItem(arms);

                        PlateGorget gorget = new PlateGorget();
                        gorget.Resource = CraftResource.Bronze;
                        m.EquipItem(gorget);

                        PlateGloves gloves = new PlateGloves();
                        gloves.Resource = CraftResource.Bronze;
                        m.EquipItem(gloves);

                        m.EquipItem(new RunicCloak(2587));

                        if (m.Female)
                            m.EquipItem(new FemaleKilt(2587));
                        else
                            m.EquipItem(new ElegantKilt(2587));

                        break;

                    }
                case Armament.Ranged:
                    {
                        bool WeaponChance = Utility.RandomBool();
                        if (WeaponChance)
                        {
                            AlyrianLongbow bow = new AlyrianLongbow();
                            bow.Resource = CraftResource.Redwood;
                            m.EquipItem(bow);
                        }
                        else
                        {
                            AlyrianGiantBow bow = new AlyrianGiantBow();
                            bow.Resource = CraftResource.Redwood;
                            m.EquipItem(bow);
                        }

                        if (m.Female)
                        {
                            m.EquipItem(new ElegantKilt(2587));
                            m.EquipItem(new MetallicBra());
                        }
                        else
                            m.EquipItem(new PlainKilt(2587));

                        m.EquipItem(new Sandals());

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

                        break;
                    }
            }
        }
Ejemplo n.º 31
0
		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 );
		}
Ejemplo n.º 32
0
        public static void EquipMhordul(Armament a, Mobile m)
        {
            if (a == Armament.LightCavalry)
                a = (Armament)1;
            else if (a == Armament.HeavyCavalry)
                a = (Armament)3;

            Sandals sandals = new Sandals();
            sandals.Resource = CraftResource.BeastLeather;
            sandals.Hue = 1194;
            m.EquipItem(sandals);

            MhordulBoneArms mba = new MhordulBoneArms();
            mba.Hue = 2101;
            m.EquipItem(mba);

            switch (a)
            {
                case Armament.Light:
                    {
                        MhordulBoneHelm mbh = new MhordulBoneHelm();
                        mbh.Hue = 2101;
                        m.EquipItem(mbh);

                        StuddedLegs sl = new StuddedLegs();
                        sl.Resource = CraftResource.BeastLeather;
                        m.EquipItem(sl);

                        if (m.Female)
                        {
                            m.EquipItem(new SmallRaggedSkirt(1194));
                            m.EquipItem(new RaggedBra(1194));
                        }
                        else
                        {
                            MhordulMedicineManBoneChest bc = new MhordulMedicineManBoneChest();
                            bc.Hue = 2101;
                            m.EquipItem(bc);
                        }

                        MhordulBoneSword mbs = new MhordulBoneSword();
                        m.EquipItem(mbs);

                        MhordulBoneShield shield = new MhordulBoneShield();
                        m.EquipItem(shield);

                        break;
                    }
                case Armament.Medium:
                    {
                        MhordulBoneHelm mbh = new MhordulBoneHelm();
                        mbh.Hue = 2101;
                        m.EquipItem(mbh);

                        MhordulBoneLegs mbl = new MhordulBoneLegs();
                        mbl.Hue = 2101;
                        m.EquipItem(mbl);

                        MhordulBoneGloves mbg = new MhordulBoneGloves();
                        mbg.Hue = 2101;
                        m.EquipItem(mbg);

                        StuddedChest chest = new StuddedChest();
                        chest.Hue = 2101;
                        m.EquipItem(chest);

                        if (m.Female)
                        {
                            m.EquipItem(new RaggedSkirt(1194));
                        }
                        else
                            m.EquipItem(new WaistCloth(1194));

                        if (Utility.RandomBool())
                            m.EquipItem(new MhordulBoneSpear());
                        else
                            m.EquipItem(new MhordulBoneScythe());

                        break;
                    }
                case Armament.Heavy:
                    {
                        MhordulHornedSkullHelm mhsh = new MhordulHornedSkullHelm();
                        mhsh.Hue = 2101;
                        m.EquipItem(mhsh);

                        MhordulBoneChest mbc = new MhordulBoneChest();
                        mbc.Hue = 2101;
                        m.EquipItem(mbc);

                        MhordulBoneLegs mbl = new MhordulBoneLegs();
                        mbl.Hue = 2101;
                        m.EquipItem(mbl);

                        MhordulBoneGloves mbg = new MhordulBoneGloves();
                        mbg.Hue = 2101;
                        m.EquipItem(mbg);

                        MhordulBoneShield mbs = new MhordulBoneShield();
                        mbs.Hue = 2101;
                        m.EquipItem(mbs);

                        if(m.Female)
                            m.EquipItem(new SmallRaggedSkirt(1194));

                        if (Utility.RandomBool())
                        {
                            MhordulWarFork mwf = new MhordulWarFork();
                            mwf.Resource = CraftResource.Iron;
                            m.EquipItem(mwf);
                        }

                        else
                            m.EquipItem(new MhordulBoneAxe());

                        break;
                    }
                case Armament.Ranged:
                    {
                        MhordulBoneHelm mbh = new MhordulBoneHelm();
                        mbh.Hue = 2101;
                        m.EquipItem(mbh);

                        m.EquipItem(new MhordulBoneBow());

                        if (m.Female)
                        {
                            m.EquipItem(new SmallRaggedSkirt(1194));
                            m.EquipItem(new RaggedBra(1194));
                        }

                        else
                            m.EquipItem(new RaggedPants(1194));

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

                        break;
                    }
            }
        }
Ejemplo n.º 33
0
		public Samurai() : base( AIType.AI_Melee, FightMode.Weakest, 10, 1, 0.175, 0.3)
		{

			Name = "Samurai Assassin";
			Title= ", Defiance Cult Clan";
			Hue= 1;
			Body = 400;
			SpeechHue= 2305;
			BaseSoundID = 0;
			Team = 0;
                        //new EtherealHorse().Rider = this;

			SetStr( 185, 215);
			SetDex( 130, 140);
			SetInt( 0, 0);

			SetHits(185, 300);

			SetSkill( SkillName.Tactics, 100.7, 100.4);
			SetSkill( SkillName.MagicResist, 191.4, 191.7);
			SetSkill( SkillName.Swords, 110.4, 110.7);
			SetSkill( SkillName.Anatomy, 110.4, 110.7);
			SetSkill( SkillName.Parry, 75.1, 100.1);

                        Fame=15000;
			Karma=-15000;

			VirtualArmor= 75;

			Item Bokuto = new Bokuto();
			Bokuto.Movable=false;
			Bokuto.Hue=1150;
		        Bokuto.Name="Samurai Bokuto";
                        EquipItem( Bokuto );

			Item Buckler = new Buckler();
			Buckler.Movable=false;
			Buckler.Hue=1253;
		        EquipItem( Buckler );

                        Item AncientSamuraiHelm = new AncientSamuraiHelm();
			AncientSamuraiHelm.Movable=false;
			AncientSamuraiHelm.Hue=0;
			EquipItem( AncientSamuraiHelm );

			Item StuddedChest = new StuddedChest();
			StuddedChest.Movable=false;
			StuddedChest.Hue=1109;
			StuddedChest.Name="Samurai Clan";
			EquipItem( StuddedChest );

                        Item BoneArms = new BoneArms();
			BoneArms.Movable=false;
			BoneArms.Hue=1109;
                        EquipItem( BoneArms );

                        Item Kamishimo = new Kamishimo();
			Kamishimo.Movable=false;
			Kamishimo.Hue=2407;
		        EquipItem( Kamishimo );

			Item Sandals = new Sandals();
			Sandals.Movable=false;
			Sandals.Hue=1;
			EquipItem( Sandals );

			Item BodySash = new BodySash();
			BodySash.Movable=false;
			BodySash.Hue=4;
			BodySash.Name="Samurai Clan Member.";
                        EquipItem( BodySash );

			Item hair = new Item( 0x203D);
			hair.Hue = 1;
			hair.Layer = Layer.Hair;
			hair.Movable = false;
			AddItem( hair );

			PackGold( 550, 2000);
			PackMagicItems( 3, 7);
			PackMagicItems( 3, 7);
			PackMagicItems( 3, 7);
			PackMagicItems( 3, 7);

                                switch ( Utility.Random( 50 ))
        		 {
           			case 0: PackItem( new Bokuto() ); break;
        		 }
		}
Ejemplo n.º 34
0
        public static void EquipVhalurian(Armament a, Mobile m)
        {
            if (a == Armament.LightCavalry)
                a = (Armament)1;
            else if (a == Armament.HeavyCavalry)
                a = (Armament)3;

            Surcoat coat = new Surcoat();
            coat.Name = "A Surcoat of the Rivergate Militia";
            coat.Hue = 2932;
            coat.ItemID = 15479;
            m.EquipItem(coat);

            switch (a)
            {
                case Armament.Light:
                    {
                        LeatherBoots boots = new LeatherBoots();
                        boots.Resource = CraftResource.BeastLeather;
                        boots.Hue = 2101;

                        m.EquipItem(boots);

                        Beret beret = new Beret();
                        beret.Hue = 2932;
                        m.EquipItem(beret);

                        StuddedChest sc = new StuddedChest();
                        sc.Resource = CraftResource.BeastLeather;
                        sc.Hue = 2101;
                        m.EquipItem(sc);

                        StuddedLegs sl = new StuddedLegs();
                        sl.Resource = CraftResource.BeastLeather;
                        sl.Hue = 2101;
                        m.EquipItem(sl);

                        StuddedArms sa = new StuddedArms();
                        sa.Resource = CraftResource.BeastLeather;
                        sa.Hue = 2101;
                        m.EquipItem(sa);

                        StuddedGloves sg = new StuddedGloves();
                        sg.Resource = CraftResource.BeastLeather;
                        sg.Hue = 2101;
                        m.EquipItem(sg);

                        StuddedGorget so = new StuddedGorget();
                        so.Resource = CraftResource.BeastLeather;
                        so.Hue = 2101;
                        m.EquipItem(so);

                        VhalurianMace vm = new VhalurianMace();
                        vm.Resource = CraftResource.Iron;
                        vm.Hue = 0;
                        m.EquipItem(vm);

                        WoodenShield ws = new WoodenShield();
                        ws.Resource = CraftResource.Oak;
                        ws.Hue = 0;
                        m.EquipItem(ws);

                        break;
                    }
                case Armament.Medium:
                    {
                        ChainChest cc = new ChainChest();
                        cc.Resource = CraftResource.Bronze;
                        cc.Hue = 2101;
                        m.EquipItem(cc);

                        ChainLegs cl = new ChainLegs();
                        cl.Resource = CraftResource.Bronze;
                        cl.Hue = 2101;
                        m.EquipItem(cl);

                        ChainCoif co = new ChainCoif();
                        co.Resource = CraftResource.Bronze;
                        co.Hue = 2101;
                        m.EquipItem(co);

                        RingmailArms ra = new RingmailArms();
                        ra.Resource = CraftResource.Bronze;
                        ra.Hue = 2101;
                        m.EquipItem(ra);

                        RingmailGloves rg = new RingmailGloves();
                        rg.Resource = CraftResource.Bronze;
                        rg.Hue = 2101;
                        m.EquipItem(rg);

                        VhalurianMetalKiteShield vmks = new VhalurianMetalKiteShield();
                        vmks.Resource = CraftResource.Bronze;
                        vmks.Hue = 2101;
                        m.EquipItem(vmks);

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

                        m.EquipItem(boots);

                        if (m.Female)
                        {
                            VhalurianGladius sword = new VhalurianGladius();
                            sword.Resource = CraftResource.Bronze;

                            m.EquipItem(sword);
                        }

                        else
                        {
                            VhalurianBroadsword sword = new VhalurianBroadsword();
                            sword.Resource = CraftResource.Bronze;

                            m.EquipItem(sword);
                        }

                        break;
                    }
                case Armament.Heavy:
                    {
                        VhalurianOrnatePlateChest vopc = new VhalurianOrnatePlateChest();
                        vopc.Resource = CraftResource.Bronze;
                        vopc.Hue = 2101;
                        m.EquipItem(vopc);

                        VhalurianOrnatePlateLegs vopl = new VhalurianOrnatePlateLegs();
                        vopl.Resource = CraftResource.Bronze;
                        vopl.Hue = 2101;
                        m.EquipItem(vopl);

                        VhalurianOrnatePlateGorget vopo = new VhalurianOrnatePlateGorget();
                        vopo.Resource = CraftResource.Bronze;
                        vopo.Hue = 2101;
                        m.EquipItem(vopo);

                        PlateSabatons ps = new PlateSabatons();
                        ps.Resource = CraftResource.Bronze;
                        ps.Hue = 2105;
                        m.EquipItem(ps);

                        VhalurianOrnatePlateArms vopa = new VhalurianOrnatePlateArms();
                        vopa.Resource = CraftResource.Bronze;
                        vopa.Hue = 2101;
                        m.EquipItem(vopa);

                        VhalurianOrnatePlateGloves vopg = new VhalurianOrnatePlateGloves();
                        vopg.Resource = CraftResource.Bronze;
                        vopg.Hue = 2101;
                        m.EquipItem(vopg);

                        VhalurianOrnateKiteShield voks = new VhalurianOrnateKiteShield();
                        voks.Resource = CraftResource.Bronze;
                        voks.Hue = 2102;
                        m.EquipItem(voks);

                        m.EquipItem(new Cloak(1133));

                        if (m.Female)
                        {
                            VhalurianWarHammer hammer = new VhalurianWarHammer();
                            hammer.Resource = CraftResource.Bronze;
                            m.EquipItem(hammer);

                            VhalurianOrnateHelm voh = new VhalurianOrnateHelm();
                            voh.Resource = CraftResource.Bronze;
                            voh.Hue = 2102;
                            m.EquipItem(voh);
                        }

                        else
                        {
                            VhalurianBastardSword sword = new VhalurianBastardSword();
                            sword.Resource = CraftResource.Bronze;
                            m.EquipItem(sword);

                            VhalurianOrnatePlateHelm voph = new VhalurianOrnatePlateHelm();
                            voph.Resource = CraftResource.Bronze;
                            voph.Hue = 2102;
                            m.EquipItem(voph);
                        }

                        break;
                    }
                case Armament.Ranged:
                    {
                        LeatherBoots boots = new LeatherBoots();
                        boots.Resource = CraftResource.BeastLeather;
                        boots.Hue = 2101;
                        m.EquipItem(boots);

                        LeatherCap cap = new LeatherCap();
                        cap.Resource = CraftResource.RegularLeather;
                        cap.Hue = 2101;
                        m.EquipItem(cap);

                        LeatherChest lc = new LeatherChest();
                        lc.Resource = CraftResource.RegularLeather;
                        lc.Hue = 2101;
                        m.EquipItem(lc);

                        Quiver qv = new Quiver();
                        qv.Layer = Layer.Earrings;
                        m.EquipItem(qv);

                        LongPants lp = new LongPants();
                        lp.Resource = CraftResource.Cotton;
                        lp.Hue = 2101;
                        m.EquipItem(lp);

                        LeatherArms la = new LeatherArms();
                        la.Resource = CraftResource.RegularLeather;
                        la.Hue = 2101;
                        m.EquipItem(la);

                        LeatherGloves lg = new LeatherGloves();
                        lg.Resource = CraftResource.RegularLeather;
                        lg.Hue = 2101;
                        m.EquipItem(lg);

                        VhalurianLongbow bow = new VhalurianLongbow();
                        bow.Resource = CraftResource.Yew;
                        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;
                    }
            }
        }
Ejemplo n.º 35
0
        public Mercenary()
            : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.45, 0.8)
        {
            Female = Utility.RandomBool();
            Body = Female ? 401 : 400;
            Title = "the mercenary";
            Name = NameList.RandomName( Female ? "female" : "male" );
            Hue = Utility.RandomSkinHue();
            SetStr( 25, 88 );
            SetDex( 25, 88 );
            SetInt( 37, 49 );
            Karma = Utility.RandomMinMax( 13, -45 );

            SetSkill( SkillName.Tactics, 45, 67.5 );
            SetSkill( SkillName.MagicResist, 45, 67.5 );
            SetSkill( SkillName.Parry, 45, 67.5 );
            SetSkill( SkillName.Swords, 45, 67.5 );
            SetSkill( SkillName.Macing, 45, 67.5 );
            SetSkill( SkillName.Fencing, 45, 67.5 );
            SetSkill( SkillName.Wrestling, 45, 67.5 );
            SetSkill( SkillName.ArmsLore, 42.5, 65 );

            Item item = null;
            if ( !Female )
            {
                item = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item = AddRandomFacialHair( item.Hue );
                switch ( Utility.Random( 5 ) )
                {
                    case 0: item = new PlateChest(); break;
                    case 1: item = new ChainChest(); break;
                    case 2: item = new StuddedChest(); break;
                    case 3: item = new RingmailChest(); break;
                    case 4: default: item = new LeatherChest(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 5 ) )
                {
                    case 0: item = new PlateLegs(); break;
                    case 1: item = new ChainLegs(); break;
                    case 2: item = new StuddedLegs(); break;
                    case 3: item = new RingmailLegs(); break;
                    case 4: default: item = new LeatherLegs(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 4 ) )
                {
                    case 0: item = new PlateArms(); break;
                    case 1: item = new RingmailArms(); break;
                    case 2: item = new StuddedArms(); break;
                    case 3: default: item = new LeatherArms(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 3 ) )
                {
                    case 0: item = new PlateGloves(); break;
                    case 1: item = new StuddedGloves(); break;
                    case 2: default: item = new LeatherGloves(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 6 ) )
                {
                    case 0: item = new PlateHelm(); break;
                    case 1: item = new ChainCoif(); break;
                    case 2: item = new CloseHelm(); break;
                    case 3: item = new Bascinet(); break;
                    case 4: item = new NorseHelm(); break;
                    case 5: default: item = new Helmet(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 7 ) )
                {
                    case 0: item = new BronzeShield(); break;
                    case 1: item = new Buckler(); break;
                    case 2: item = new HeaterShield(); break;
                    case 3: item = new MetalKiteShield(); break;
                    case 4: item = new MetalShield(); break;
                    case 5: item = new WoodenKiteShield(); break;
                    case 6: default: item = new WoodenShield(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 4 ) )
                {
                    case 0: item = new PlateGorget(); break;
                    case 1: item = new StuddedGorget(); break;
                    default: case 2: item = new LeatherGorget(); break;
                }
                AddItem( item );
                item = Loot.RandomWeapon();
                AddItem( item );
                PackGold( 15, 100 );
            } else {
                item = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                switch ( Utility.Random( 5 ) )
                {
                    case 0: item = new PlateChest(); break;
                    case 1: item = new ChainChest(); break;
                    case 2: item = new StuddedChest(); break;
                    case 3: item = new RingmailChest(); break;
                    case 4: default: item = new LeatherChest(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 5 ) )
                {
                    case 0: item = new PlateLegs(); break;
                    case 1: item = new ChainLegs(); break;
                    case 2: item = new StuddedLegs(); break;
                    case 3: item = new RingmailLegs(); break;
                    case 4: default: item = new LeatherLegs(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 3 ) )
                {
                    case 0: item = new PlateGloves(); break;
                    case 1: item = new StuddedGloves(); break;
                    case 2: default: item = new LeatherGloves(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 6 ) )
                {
                    case 0: item = new PlateHelm(); break;
                    case 1: item = new ChainCoif(); break;
                    case 2: item = new CloseHelm(); break;
                    case 3: item = new Bascinet(); break;
                    case 4: item = new NorseHelm(); break;
                    case 5: default: item = new Helmet(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 7 ) )
                {
                    case 0: item = new BronzeShield(); break;
                    case 1: item = new Buckler(); break;
                    case 2: item = new HeaterShield(); break;
                    case 3: item = new MetalKiteShield(); break;
                    case 4: item = new MetalShield(); break;
                    case 5: item = new WoodenKiteShield(); break;
                    case 6: default: item = new WoodenShield(); break;
                }
                AddItem( item );
                switch ( Utility.Random( 4 ) )
                {
                    case 0: item = new PlateGorget(); break;
                    case 1: item = new StuddedGorget(); break;
                    default: case 2: item = new LeatherGorget(); break;
                }
                AddItem( item );
                item = Loot.RandomWeapon();
                AddItem( item );
                PackGold( 15, 100 );
            }
        }