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;
                }
            }
        }
Beispiel #2
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;
                    }
            }
        }
        protected override void OnTarget(Mobile from, object targeted)
        {
            if (!(targeted is BaseAttackPiece))
                return;

            m_Blade = targeted as BaseAttackPiece;

            if (m_Blade is LongBlade && ((PlayerMobile)from).Nation == Nation.Azhuran)// )
            {
                AzhuranBroadsword weapon = new AzhuranBroadsword();
                weapon.NewCrafting = true;
                weapon.QualityDamage = m_Hilt.Damage + m_Blade.Damage;
                weapon.QualitySpeed = m_Hilt.Speed + m_Blade.Speed;
                weapon.QualityAccuracy = m_Hilt.Attack + m_Blade.Attack;
                weapon.QualityDefense = m_Hilt.Defense + m_Blade.Defense;
                weapon.Resource = m_Blade.Resource;
                int quality = (int)(m_Blade.Durability * 0.8 + m_Hilt.Durability * 0.2);
                weapon.MaxHitPoints = quality; weapon.HitPoints = quality;
                weapon.Crafter = from;
                weapon.CraftersOriginalName = from.Name;
                quality = (int)(m_Blade.Quality * 0.8 + m_Hilt.Quality * 0.2);
                if (quality == 500)
                    weapon.Quality = WeaponQuality.Legendary;
                if (quality < 500)
                    weapon.Quality = WeaponQuality.Masterwork;
                if (quality < 450)
                    weapon.Quality = WeaponQuality.Illustrious;
                if (quality < 400)
                    weapon.Quality = WeaponQuality.Extraordinary;
                if (quality < 350)
                    weapon.Quality = WeaponQuality.Remarkable;
                if (quality < 300)
                    weapon.Quality = WeaponQuality.Exceptional;
                if (quality < 250)
                    weapon.Quality = WeaponQuality.Superior;
                if (quality < 200)
                    weapon.Quality = WeaponQuality.Regular;
                if (quality < 150)
                    weapon.Quality = WeaponQuality.Inferior;
                if (quality < 100)
                    weapon.Quality = WeaponQuality.Low;
                if (quality < 50)
                    weapon.Quality = WeaponQuality.Poor;
                weapon.BetaNerf = true;
                weapon.InvalidateProperties();
                from.AddToBackpack(weapon);
                weapon.AddItem(m_Blade);
                weapon.AddItem(m_Hilt);
            }
            if (m_Blade is MediumBlade && ((PlayerMobile)from).Nation == Nation.Vhalurian)
            {
                VhalurianBroadsword weapon = new VhalurianBroadsword();
                weapon.NewCrafting = true;
                weapon.QualityDamage = m_Hilt.Damage + m_Blade.Damage;
                weapon.QualitySpeed = m_Hilt.Speed + m_Blade.Speed;
                weapon.QualityAccuracy = m_Hilt.Attack + m_Blade.Attack;
                weapon.QualityDefense = m_Hilt.Defense + m_Blade.Defense;
                weapon.Resource = m_Blade.Resource;
                int quality = (int)(m_Blade.Durability * 0.75 + m_Hilt.Durability * 0.25);
                weapon.MaxHitPoints = quality; weapon.HitPoints = quality;
                weapon.Crafter = from;
                weapon.CraftersOriginalName = from.Name;
                quality = (int)(m_Blade.Quality * 0.75 + m_Hilt.Quality * 0.25);
                if (quality == 500)
                    weapon.Quality = WeaponQuality.Legendary;
                if (quality < 500)
                    weapon.Quality = WeaponQuality.Masterwork;
                if (quality < 450)
                    weapon.Quality = WeaponQuality.Illustrious;
                if (quality < 400)
                    weapon.Quality = WeaponQuality.Extraordinary;
                if (quality < 350)
                    weapon.Quality = WeaponQuality.Remarkable;
                if (quality < 300)
                    weapon.Quality = WeaponQuality.Exceptional;
                if (quality < 250)
                    weapon.Quality = WeaponQuality.Superior;
                if (quality < 200)
                    weapon.Quality = WeaponQuality.Regular;
                if (quality < 150)
                    weapon.Quality = WeaponQuality.Inferior;
                if (quality < 100)
                    weapon.Quality = WeaponQuality.Low;
                if (quality < 50)
                    weapon.Quality = WeaponQuality.Poor;
                weapon.BetaNerf = true;
                weapon.InvalidateProperties();
                from.AddToBackpack(weapon);
                weapon.AddItem(m_Blade);
                weapon.AddItem(m_Hilt);
            }
            if (m_Blade is LongBlade && ((PlayerMobile)from).Nation == Nation.Vhalurian)
            {
                VhalurianBastardSword weapon = new VhalurianBastardSword();
                weapon.NewCrafting = true;
                weapon.QualityDamage = m_Hilt.Damage + m_Blade.Damage;
                weapon.QualitySpeed = m_Hilt.Speed + m_Blade.Speed;
                weapon.QualityAccuracy = m_Hilt.Attack + m_Blade.Attack;
                weapon.QualityDefense = m_Hilt.Defense + m_Blade.Defense;
                weapon.Resource = m_Blade.Resource;
                int quality = (int)(m_Blade.Durability * 0.75 + m_Hilt.Durability * 0.25);
                weapon.MaxHitPoints = quality; weapon.HitPoints = quality;
                weapon.Crafter = from;
                weapon.CraftersOriginalName = from.Name;
                quality = (int)(m_Blade.Quality * 0.75 + m_Hilt.Quality * 0.25);
                if (quality == 500)
                    weapon.Quality = WeaponQuality.Legendary;
                if (quality < 500)
                    weapon.Quality = WeaponQuality.Masterwork;
                if (quality < 450)
                    weapon.Quality = WeaponQuality.Illustrious;
                if (quality < 400)
                    weapon.Quality = WeaponQuality.Extraordinary;
                if (quality < 350)
                    weapon.Quality = WeaponQuality.Remarkable;
                if (quality < 300)
                    weapon.Quality = WeaponQuality.Exceptional;
                if (quality < 250)
                    weapon.Quality = WeaponQuality.Superior;
                if (quality < 200)
                    weapon.Quality = WeaponQuality.Regular;
                if (quality < 150)
                    weapon.Quality = WeaponQuality.Inferior;
                if (quality < 100)
                    weapon.Quality = WeaponQuality.Low;
                if (quality < 50)
                    weapon.Quality = WeaponQuality.Poor;
                weapon.BetaNerf = true;
                weapon.InvalidateProperties();
                from.AddToBackpack(weapon);
                weapon.AddItem(m_Blade);
                weapon.AddItem(m_Hilt);
            }
            if (m_Blade is LongBlade && ((PlayerMobile)from).Nation == Nation.Tyrean)
            {
                TyreanBastardSword weapon = new TyreanBastardSword();
                weapon.NewCrafting = true;
                weapon.QualityDamage = m_Hilt.Damage + m_Blade.Damage;
                weapon.QualitySpeed = m_Hilt.Speed + m_Blade.Speed;
                weapon.QualityAccuracy = m_Hilt.Attack + m_Blade.Attack;
                weapon.QualityDefense = m_Hilt.Defense + m_Blade.Defense;
                weapon.Resource = m_Blade.Resource;
                int quality = (int)(m_Blade.Durability * 0.75 + m_Hilt.Durability * 0.25);
                weapon.MaxHitPoints = quality; weapon.HitPoints = quality;
                weapon.Crafter = from;
                weapon.CraftersOriginalName = from.Name;
                quality = (int)(m_Blade.Quality * 0.75 + m_Hilt.Quality * 0.25);
                if (quality == 500)
                    weapon.Quality = WeaponQuality.Legendary;
                if (quality < 500)
                    weapon.Quality = WeaponQuality.Masterwork;
                if (quality < 450)
                    weapon.Quality = WeaponQuality.Illustrious;
                if (quality < 400)
                    weapon.Quality = WeaponQuality.Extraordinary;
                if (quality < 350)
                    weapon.Quality = WeaponQuality.Remarkable;
                if (quality < 300)
                    weapon.Quality = WeaponQuality.Exceptional;
                if (quality < 250)
                    weapon.Quality = WeaponQuality.Superior;
                if (quality < 200)
                    weapon.Quality = WeaponQuality.Regular;
                if (quality < 150)
                    weapon.Quality = WeaponQuality.Inferior;
                if (quality < 100)
                    weapon.Quality = WeaponQuality.Low;
                if (quality < 50)
                    weapon.Quality = WeaponQuality.Poor;
                weapon.BetaNerf = true;
                weapon.InvalidateProperties();
                from.AddToBackpack(weapon);
                weapon.AddItem(m_Blade);
                weapon.AddItem(m_Hilt);
            }
            if (m_Blade is CurvedBlade && ((IKhaerosMobile)from).Feats.GetFeatLevel(FeatList.Bone) >= 3 && from.Backpack.ConsumeTotal(typeof(Bone), 10))
            {
                MhordulBoneSword weapon = new MhordulBoneSword();
                weapon.NewCrafting = true;
                weapon.QualityDamage = m_Hilt.Damage + m_Blade.Damage + 2;
                weapon.QualitySpeed = m_Hilt.Speed + m_Blade.Speed + 4;
                weapon.QualityAccuracy = m_Hilt.Attack + m_Blade.Attack;
                weapon.QualityDefense = m_Hilt.Defense + m_Blade.Defense;
                weapon.Resource = m_Blade.Resource;
                int quality = (int)(m_Blade.Durability * 0.75 + m_Hilt.Durability * 0.25);
                weapon.MaxHitPoints = quality; weapon.HitPoints = quality;
                weapon.Crafter = from;
                weapon.CraftersOriginalName = from.Name;
                quality = (int)(m_Blade.Quality * 0.75 + m_Hilt.Quality * 0.25);
                if (quality == 500)
                    weapon.Quality = WeaponQuality.Legendary;
                if (quality < 500)
                    weapon.Quality = WeaponQuality.Masterwork;
                if (quality < 450)
                    weapon.Quality = WeaponQuality.Illustrious;
                if (quality < 400)
                    weapon.Quality = WeaponQuality.Extraordinary;
                if (quality < 350)
                    weapon.Quality = WeaponQuality.Remarkable;
                if (quality < 300)
                    weapon.Quality = WeaponQuality.Exceptional;
                if (quality < 250)
                    weapon.Quality = WeaponQuality.Superior;
                if (quality < 200)
                    weapon.Quality = WeaponQuality.Regular;
                if (quality < 150)
                    weapon.Quality = WeaponQuality.Inferior;
                if (quality < 100)
                    weapon.Quality = WeaponQuality.Low;
                if (quality < 50)
                    weapon.Quality = WeaponQuality.Poor;
                weapon.BetaNerf = true;
                weapon.InvalidateProperties();
                from.AddToBackpack(weapon);
                weapon.AddItem(m_Blade);
                weapon.AddItem(m_Hilt);
            }
            if (m_Blade is ShortBlade && ((PlayerMobile)from).Nation == Nation.Azhuran)
            {
                AzhuranShortsword weapon = new AzhuranShortsword();
                weapon.NewCrafting = true;
                weapon.QualityDamage = m_Hilt.Damage + m_Blade.Damage;
                weapon.QualitySpeed = m_Hilt.Speed + m_Blade.Speed;
                weapon.QualityAccuracy = m_Hilt.Attack + m_Blade.Attack;
                weapon.QualityDefense = m_Hilt.Defense + m_Blade.Defense;
                weapon.Resource = m_Blade.Resource;
                int quality = (int)(m_Blade.Durability * 0.6 + m_Hilt.Durability * 0.4);
                weapon.MaxHitPoints = quality; weapon.HitPoints = quality;
                weapon.Crafter = from;
                weapon.CraftersOriginalName = from.Name;
                quality = (int)(m_Blade.Quality * 0.6 + m_Hilt.Quality * 0.4);
                if (quality == 500)
                    weapon.Quality = WeaponQuality.Legendary;
                if (quality < 500)
                    weapon.Quality = WeaponQuality.Masterwork;
                if (quality < 450)
                    weapon.Quality = WeaponQuality.Illustrious;
                if (quality < 400)
                    weapon.Quality = WeaponQuality.Extraordinary;
                if (quality < 350)
                    weapon.Quality = WeaponQuality.Remarkable;
                if (quality < 300)
                    weapon.Quality = WeaponQuality.Exceptional;
                if (quality < 250)
                    weapon.Quality = WeaponQuality.Superior;
                if (quality < 200)
                    weapon.Quality = WeaponQuality.Regular;
                if (quality < 150)
                    weapon.Quality = WeaponQuality.Inferior;
                if (quality < 100)
                    weapon.Quality = WeaponQuality.Low;
                if (quality < 50)
                    weapon.Quality = WeaponQuality.Poor;
                weapon.BetaNerf = true;
                weapon.InvalidateProperties();
                from.AddToBackpack(weapon);
                weapon.AddItem(m_Blade);
                weapon.AddItem(m_Hilt);
            }
        }