Inheritance: BaseArmor
Ejemplo n.º 1
0
        public override void InitOutfit()
        {
            AddItem(new Backpack());
            AddItem(new Halberd());
            AddItem(new Cloak(0x4E6));

            Item item;

            item     = new PlateLegs();
            item.Hue = 0x8A6;
            AddItem(item);

            item     = new PlateArms();
            item.Hue = 0x8A6;
            AddItem(item);

            item     = new PlateChest();
            item.Hue = 0x8A6;
            AddItem(item);

            item     = new PlateGloves();
            item.Hue = 0x8A6;
            AddItem(item);

            item     = new PlateHelm();
            item.Hue = 0x8A6;
            AddItem(item);

            item     = new PlateGorget();
            item.Hue = 0x8A6;
            AddItem(item);
        }
		public PaladinSectionRepresentative()
		{
			Name = NameList.RandomName( "male" );
			Title = "the Paladin";
			Body = 0x190;
			Hue = Utility.RandomSkinHue();

			Item item = new PlateArms();
			item.Hue = 2214;
			AddItem( item );

			item = new PlateChest();
			item.Hue = 2214;
			AddItem( item );

			item = new PlateGloves();
			item.Hue = 2214;
			AddItem( item );

			item = new PlateLegs();
			item.Hue = 2214;
			AddItem( item );

			item = new PlateGorget();
			item.Hue = 2214;
			AddItem( item );

			item = new PlateHelm();
			item.Hue = 2214;
			AddItem( item );

			AddItem( new Cloak( 1254 ) );
			AddItem( new Halberd() );
		}
Ejemplo n.º 3
0
        public override void InitOutfit()
        { 
            this.AddItem(new Backpack());						
            this.AddItem(new Halberd());	
            this.AddItem(new Cloak(0x4E6));				
			
            Item item;
			
            item = new PlateLegs();
            item.Hue = 0x8A6;
            this.AddItem(item);	
			
            item = new PlateArms();
            item.Hue = 0x8A6;
            this.AddItem(item);	
			
            item = new PlateChest();
            item.Hue = 0x8A6;
            this.AddItem(item);	
			
            item = new PlateGloves();
            item.Hue = 0x8A6;
            this.AddItem(item);	
			
            item = new PlateHelm();
            item.Hue = 0x8A6;
            this.AddItem(item);	
			
            item = new PlateGorget();
            item.Hue = 0x8A6;
            this.AddItem(item);					
        }
Ejemplo n.º 4
0
        public override void InitOutfit()
        {
            AddItem( new Backpack() );
            AddItem( new OrderShield() );
            AddItem( new WarMace() );

            Item item;

            item = new PlateLegs();
            item.Hue = 0x966;
            AddItem( item );

            item = new PlateGloves();
            item.Hue = 0x966;
            AddItem( item );

            item = new PlateGorget();
            item.Hue = 0x966;
            AddItem( item );

            item = new PlateChest();
            item.Hue = 0x966;
            AddItem( item );

            item = new PlateArms();
            item.Hue = 0x966;
            AddItem( item );
        }
Ejemplo n.º 5
0
        public Khalnga()
            : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Body = 0x190;
            Title = "the Bone Lord";

            SetStr(1254, 1381);
            SetDex(93, 135);
            SetInt(745, 810);

            SetHits(3000, 4500);

            SetDamage(30, 45);

            SetSkill(SkillName.Wrestling, 90.1, 100.0);
            SetSkill(SkillName.Tactics, 90.1, 100.0);
            SetSkill(SkillName.MagicResist, 90.1, 100.0);
            SetSkill(SkillName.Magery, 90.1, 100.0);
            SetSkill(SkillName.EvalInt, 100.0);
            SetSkill(SkillName.Meditation, 120.1, 130.0);

            VirtualArmor = 50;
            Fame = 10000;
            Karma = -10000;

            PlateHelm helm = new PlateHelm();
            helm.Hue = 1157;
            helm.Identified = true;
            AddItem(Immovable(helm));

            PlateArms arms = new PlateArms();
            arms.Hue = 1157;
            arms.Identified = true;
            AddItem(Immovable(arms));

            PlateLegs legs = new PlateLegs();
            legs.Hue = 1157;
            legs.Identified = true;
            AddItem(Immovable(legs));

            PlateGloves gloves = new PlateGloves();
            gloves.Hue = 1157;
            gloves.Identified = true;
            AddItem(Immovable(gloves));

            PlateChest chest = new PlateChest();
            chest.Hue = 1157;
            chest.Identified = true;
            AddItem(Immovable(chest));

            PlateGorget gorget = new PlateGorget();
            gorget.Hue = 1157;
            gorget.Identified = true;
            AddItem(Immovable(gorget));

            Spellbook spellbook = new Spellbook();
            spellbook.Hue = 1157;
            spellbook.Name = "red book of spells";
            AddItem(Immovable(spellbook));
        }
Ejemplo n.º 6
0
		public Guardian() : base( AIType.AI_Archer, FightMode.Aggressor, 10, 1, 0.2, 0.4 ) 
		{ 
			InitStats( 100, 125, 25 ); 
			Title = "the guardian"; 

			SpeechHue = 0; 

			Hue = Utility.RandomSkinHue(); 

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

			new Orn().Rider = this; 

			PlateChest chest = new PlateChest(); 
			chest.Hue = 0x966; 
			AddItem( chest ); 
			PlateArms arms = new PlateArms(); 
			arms.Hue = 0x966; 
			AddItem( arms ); 
			PlateGloves gloves = new PlateGloves(); 
			gloves.Hue = 0x966; 
			AddItem( gloves ); 
			PlateGorget gorget = new PlateGorget(); 
			gorget.Hue = 0x966; 
			AddItem( gorget ); 
			PlateLegs legs = new PlateLegs(); 
			legs.Hue = 0x966; 
			AddItem( legs ); 
			PlateHelm helm = new PlateHelm(); 
			helm.Hue = 0x966; 
			AddItem( helm ); 


			Bow bow = new Bow(); 

			bow.Movable = false; 
			bow.Crafter = this; 
			bow.Quality = WeaponQuality.Exceptional; 

			AddItem( bow ); 

			PackItem( new Arrow( 250 ) );
			PackGold( 250, 500 );

			Skills[SkillName.Anatomy].Base = 120.0; 
			Skills[SkillName.Tactics].Base = 120.0; 
			Skills[SkillName.Archery].Base = 120.0; 
			Skills[SkillName.MagicResist].Base = 120.0; 
			Skills[SkillName.DetectHidden].Base = 100.0; 

		} 
Ejemplo n.º 7
0
		public Sephiroth() : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) 
		{  
			Name = "Sephiroth";
			Body = Utility.RandomList( 400 );
			HairItemID = 12237;
			HairHue = 1150; 
			Hue = 33770; 

			PlateChest chest = new PlateChest(); 
			chest.Hue = 1150; 
			AddItem( chest ); 
			PlateArms arms = new PlateArms(); 
			arms.Hue = 1150; 
			AddItem( arms ); 
			PlateGloves gloves = new PlateGloves(); 
			gloves.Hue = 1150; 
			AddItem( gloves ); 
			PlateGorget gorget = new PlateGorget(); 
			gorget.Hue = 1150; 
			AddItem( gorget ); 
			PlateLegs legs = new PlateLegs(); 
			legs.Hue = 1150; 
			AddItem( legs ); 
          		Robe robe = new Robe();
            		robe.Hue = 1175;
            		robe.Name = "Sephiroth's Useless Robe";
            		robe.LootType = LootType.Blessed;
            		robe.Movable = true;
            		AddItem(robe);  
			AddItem( new NoDachi() );

			SetStr( 521, 847 );
			SetDex( 758 );
			SetInt( 362 );

			SetHits( 5000 );

			SetDamage( 20, 30 );

			SetDamageType( ResistanceType.Physical, 100 );

			SetResistance( ResistanceType.Physical, 59 );
			SetResistance( ResistanceType.Fire, 55 );
			SetResistance( ResistanceType.Cold, 65 );
			SetResistance( ResistanceType.Poison, 85 );
			SetResistance( ResistanceType.Energy, 74 );

			SetSkill( SkillName.Anatomy, 85.0 );
			SetSkill( SkillName.MagicResist, 83.5, 92.5 );
			SetSkill( SkillName.Swords, 85.0 );
			SetSkill( SkillName.Tactics, 85.0 );

			Fame = 50000;
			Karma = -50000;

		}
Ejemplo n.º 8
0
        public WeaponsCollector()
            : base()


//----------------------------------------------------------------------------------------------------//
        {
            Body = 400;
            Hue = Utility.RandomSkinHue();
            if (Female = Utility.RandomBool())
            {
                Body = 401;
                Name = NameList.RandomName("female");
            }
            else
            {
                Name = NameList.RandomName("male");
            }


            //----------------------------------------------------------------------------------------------------//

            //Title = "[A Weapons Collector]";
            //CantWalk = true;
            Direction = Direction.South;
            Hue = Utility.RandomSkinHue();
            Utility.AssignRandomHair(this);
            Blessed = true;


            BodySash bs = new BodySash();
            bs.Hue = 33;
            AddItem(bs);

            PlateArms pa = new PlateArms();
            pa.Hue = 0;
            AddItem(pa);

            PlateChest pc = new PlateChest();
            pc.Hue = 0;
            AddItem(pc);

            PlateGloves pg = new PlateGloves();
            pg.Hue = 0;
            AddItem(pg);

            PlateLegs pl = new PlateLegs();
            pl.Hue = 0;
            AddItem(pl);

            PlateGorget pt = new PlateGorget();
            pt.Hue = 0;
            AddItem(pt);

            //----------------------------------------------------------------------------------------------------//

        }
Ejemplo n.º 9
0
		public Meiko()
		{
			Name = "Meiko";
            Title = "the Vampire Slayer";
			Body = 0x190;
			CantWalk = true;
			Hue = 0x83F8;
		
			Item weapon = new RepeatingCrossbow();
				weapon.Movable = false;
				weapon.Hue = 37;
			AddItem( weapon );
			Item arms = new PlateArms();
				arms.Movable = false;
				arms.Hue = 1150;
			AddItem( arms );
			Item gloves = new PlateGloves();
				gloves.Movable = false;
				gloves.Hue = 1150;
			AddItem( gloves );
			Item chest = new PlateChest();
				chest.Movable = false;
				chest.Hue = 1150;
			AddItem( chest );
			Item legs = new PlateLegs();
				legs.Movable = false;
				legs.Hue = 1150;
			AddItem( legs );
			Item gorget = new PlateGorget();
				gorget.Movable = false;
				gorget.Hue = 1150;
			AddItem( gorget );
			Item VampireRobe = new VampireRobe();
				VampireRobe.Movable = false;
				VampireRobe.Hue = 37;
			AddItem( VampireRobe );

            int hairHue = 1150;

			switch ( Utility.Random( 1 ) )
			{
				case 0: AddItem( new ShortHair( hairHue ) ); break;
			} 
			
			int VandykeHue = 1150;

			switch ( Utility.Random( 1 ) )
			{
				case 0: AddItem( new Vandyke( VandykeHue ) ); break;
			} 
			
			Blessed = true;
			
		}
Ejemplo n.º 10
0
		public Vladamir()
		{
			Name = "Vladamir";
                        Title = "Collector of Uniques";
			Body = 400;
			CantWalk = true;
			Hue = 0;
			AddItem( new Server.Items.Cloak( 1250 ) );
			Item weapon = new Kryss();
				weapon.Movable = false;
				weapon.Hue = 2410;
			AddItem( weapon );
			Item shield = new ChaosShield();
				shield.Movable = false;
				shield.Hue = 2410;
			AddItem( shield );
			Item arms = new PlateArms();
				arms.Movable = false;
				arms.Hue = 2410;
			AddItem( arms );
			Item gloves = new PlateGloves();
				gloves.Movable = false;
				gloves.Hue = 2410;
			AddItem( gloves );
			Item chest = new PlateChest();
				chest.Movable = false;
				chest.Hue = 2410;
			AddItem( chest );
			Item legs = new PlateLegs();
				legs.Movable = false;
				legs.Hue = 2410;
			AddItem( legs );
			Item helm = new NorseHelm();
				helm.Movable = false;
				helm.Hue = 2410;
			AddItem( helm );
			Item gorget = new PlateGorget();
				gorget.Movable = false;
				gorget.Hue = 2410;
			AddItem( gorget );

                        int hairHue = 1055;

			switch ( Utility.Random( 1 ) )
			{
				case 0: AddItem( new LongHair( hairHue ) ); break;
			} 
			
			Blessed = true;
			
			}
Ejemplo n.º 11
0
		public DragonSmith()
		{
			Name = NameList.RandomName( "male" );
            Title = "the Dragon Smith";
			Body = 0x190;
			CantWalk = true;
			Hue = 0x83F8;
            int hairHue = 1741;
                        
            PlateArms arms = new PlateArms();
			arms.LootType = LootType.Newbied;
			arms.Hue = 1157;
			AddItem( arms );

			PlateGloves gloves = new PlateGloves();
			gloves.LootType = LootType.Newbied;
			gloves.Hue = 1157;
			AddItem( gloves );

			PlateLegs legs = new PlateLegs();
			legs.LootType = LootType.Newbied;
			legs.Hue = 1157;
			AddItem( legs );

			PlateGorget neck = new PlateGorget();
			neck.LootType = LootType.Newbied;
			neck.Hue = 1157;
			AddItem( neck );

			PlateChest chest = new PlateChest();
			chest.LootType = LootType.Newbied;
			chest.Hue = 1157;
			AddItem( chest );
                        
            SmithHammer weapon = new SmithHammer();

			weapon.Name = "Dragon Smithing Hammer";
			weapon.Hue = 1157;
			weapon.Movable = false;
			
			EquipItem( weapon );

			switch ( Utility.Random( 1 ) )
			{
				case 0: AddItem( new ShortHair( hairHue ) ); break;
			} 
			
			Blessed = true;
			
		}
Ejemplo n.º 12
0
        public override void InitOutfit()
        {
            AddItem( new Sandals( 0x1 ) );
            AddItem( new Robe( 0x66D ) );
            AddItem( new BlackStaff() );
            AddItem( new WizardsHat( 0x1 ) );

            AddItem( new Mustache( 0x482 ) );
            AddItem( new LongHair( 0x482 ) );

            Item gloves = new BoneGloves();
            gloves.Hue = 0x66D;
            AddItem( gloves );

            Item gorget = new PlateGorget();
            gorget.Hue = 0x1;
            AddItem( gorget );
        }
Ejemplo n.º 13
0
        public BagofPlateArmor()
        {
            Movable = true;
            Hue     = 0x25;
            Name    = "a bag of Plate Armor";

            PlateChest chest = new PlateChest();

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

            PlateArms arms = new PlateArms();

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

            PlateGloves gloves = new PlateGloves();

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

            PlateGorget gorget = new PlateGorget();

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

            PlateLegs legs = new PlateLegs();

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

            PlateHelm helm = new PlateHelm();

            helm.Quality  = Quality.Exceptional;
            helm.LootType = LootType.Blessed;
            DropItem(helm);
        }
Ejemplo n.º 14
0
        public override void InitOutfit()
        {
            this.AddItem(new Sandals(0x1));
            this.AddItem(new Robe(0x66D));
            this.AddItem(new BlackStaff());
            this.AddItem(new WizardsHat(0x1));

            this.FacialHairItemID = 0x2041;
            this.FacialHairHue = 0x482;

            this.HairItemID = 0x203C;
            this.HairHue = 0x482;

            Item gloves = new BoneGloves();
            gloves.Hue = 0x66D;
            this.AddItem(gloves);

            Item gorget = new PlateGorget();
            gorget.Hue = 0x1;
            this.AddItem(gorget);
        }
Ejemplo n.º 15
0
		public OldSmith()
		{
			Name = "Eirin THe Retired Blacksmith";
                        Title = "Quest";
			Body = 400;
			CantWalk = true;
			Hue = Utility.RandomSkinHue();

			PlateArms PlateArms = new PlateArms();
			PlateArms.Hue = 2418;
			AddItem( PlateArms );
						
			PlateGloves PlateGloves = new PlateGloves();
			PlateGloves.Hue = 2418;
			AddItem( PlateGloves );

			PlateLegs PlateLegs = new PlateLegs();
			PlateLegs.Hue = 2418;
			AddItem( PlateLegs );
			
			PlateChest PlateChest = new PlateChest();
			PlateChest.Hue = 2418;
			AddItem( PlateChest );

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

                        int hairHue = 2406;

			switch ( Utility.Random( 1 ) )
			{
				case 0: AddItem( new PonyTail( hairHue ) ); break;
				case 1: AddItem( new Goatee( hairHue ) ); break;
			} 
			
			Blessed = true;
			
			}
Ejemplo n.º 16
0
		public Barbosa()
		{
			Name = "Captian Barbosa";
                        Title = "The Undead Pirate";
			Body = 56;
			CantWalk = true;
			Hue = Utility.RandomSkinHue();

			PlateArms PlateArms = new PlateArms();
			PlateArms.Hue = 1157;
			AddItem( PlateArms );
						
			PlateGloves PlateGloves = new PlateGloves();
			PlateGloves.Hue = 1157;
			AddItem( PlateGloves );

			PlateLegs PlateLegs = new PlateLegs();
			PlateLegs.Hue = 1157;
			AddItem( PlateLegs );
			
			PlateChest PlateChest = new PlateChest();
			PlateChest.Hue = 1157;
			AddItem( PlateChest );

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

                        int hairHue = 1157;

			switch ( Utility.Random( 1 ) )
			{
				case 0: AddItem( new PonyTail( hairHue ) ); break;
				case 1: AddItem( new Goatee( hairHue ) ); break;
			} 
			
			Blessed = true;
			
			}
Ejemplo n.º 17
0
		public Zelda()
		{
			Name = "Zelda";
            Title = "Quest Giver";
            Body = 0x191;
			CantWalk = true;
			Hue = 0;
			AddItem( new Server.Items.Cloak( 0x4F7 ) );
			Item arms = new PlateArms();
				arms.Movable = false;
				arms.Hue = 0x4F7;
			AddItem( arms );
			Item gloves = new PlateGloves();
				gloves.Movable = false;
				gloves.Hue = 0x4F7;
			AddItem( gloves );
			Item chest = new PlateChest();
				chest.Movable = false;
				chest.Hue = 0x4F7;
			AddItem( chest );
			Item legs = new PlateLegs();
				legs.Movable = false;
				legs.Hue = 0x4F7;
			AddItem( legs );
			Item gorget = new PlateGorget();
				gorget.Movable = false;
				gorget.Hue = 0x4F7;
			AddItem( gorget );

                        int hairHue = 1055;

			switch ( Utility.Random( 1 ) )
			{
				case 0: AddItem( new LongHair( hairHue ) ); break;
			} 
			
			Blessed = true;
			
			}
        /************************************************************
        private SummoningAltarErmo m_Altar;

        private const int AltarRange = 24;

        public SummoningAltarErmo Altar
        {
            get
            {
                if ( m_Altar == null || m_Altar.Deleted || m_Altar.Map != this.Map || !Utility.InRange( m_Altar.Location, this.Location, AltarRange ) )
                {
                    foreach ( Item item in GetItemsInRange( AltarRange ) )
                    {
                        if ( item is SummoningAltarErmo )
                        {
                            m_Altar = (SummoningAltarErmo)item;
                            break;
                        }
                    }
                }

                return m_Altar;
            }
        }
        *****************************************************/
        public override void InitOutfit()
        {
            PlateArms arms = new PlateArms();
            arms.LootType = LootType.Newbied;
            arms.Hue = 1153;
            AddItem( arms );

            PlateGloves gloves = new PlateGloves();
            gloves.LootType = LootType.Newbied;
            gloves.Hue = 1153;
            AddItem( gloves );

            PlateLegs legs = new PlateLegs();
            legs.LootType = LootType.Newbied;
            legs.Hue = 1153;
            AddItem( legs );

            PlateGorget neck = new PlateGorget();
            neck.LootType = LootType.Newbied;
            neck.Hue = 1153;
            AddItem( neck );

            PlateChest chest = new PlateChest();
            chest.LootType = LootType.Newbied;
            chest.Hue = 1153;
            AddItem( chest );

            OrderShield shield = new OrderShield();
            shield.LootType = LootType.Newbied;
            shield.Hue = 1153;
            AddItem( shield );

            AddItem( new PonyTail( 1000 ) );
            AddItem( new Goatee( 1000 ) );
        }
Ejemplo n.º 19
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.º 20
0
        public static string MakeThisTask()
        {
            string task = null;

            switch (Utility.RandomMinMax(1, 10))
            {
            case 1: task = "Repair"; break;

            case 2: task = "Fix"; break;

            case 3: task = "Buff"; break;

            case 4: task = "Modify"; break;

            case 5: task = "Polish"; break;

            case 6: task = "Engrave"; break;

            case 7: task = "Adjust"; break;

            case 8: task = "Improve"; break;

            case 9: task = "Smooth the dents from"; break;

            case 10: task = "Remove the dents from"; break;
            }

            Item item = null;

            switch (Utility.RandomMinMax(1, 79))
            {
            case 1: item = new AssassinSpike(); break;

            case 2: item = new Axe(); break;

            case 3: item = new Bardiche(); break;

            case 4: item = new Bascinet(); break;

            case 5: item = new BattleAxe(); break;

            case 6: item = new BoneHarvester(); break;

            case 7: item = new Broadsword(); break;

            case 8: item = new BronzeShield(); break;

            case 9: item = new Buckler(); break;

            case 10: item = new ButcherKnife(); break;

            case 11: item = new ChainChest(); break;

            case 12: item = new ChainCoif(); break;

            case 13: item = new ChainLegs(); break;

            case 14: item = new ChampionShield(); break;

            case 15: item = new Cleaver(); break;

            case 16: item = new CloseHelm(); break;

            case 17: item = new CloseHelm(); break;

            case 18: item = new CrescentBlade(); break;

            case 19: item = new CrestedShield(); break;

            case 20: item = new Cutlass(); break;

            case 21: item = new Dagger(); break;

            case 22: item = new DarkShield(); break;

            case 23: item = new DiamondMace(); break;

            case 24: item = new DoubleAxe(); break;

            case 25: item = new DoubleBladedStaff(); break;

            case 26: item = new DreadHelm(); break;

            case 27: item = new ElvenMachete(); break;

            case 28: item = new ElvenShield(); break;

            case 29: item = new ElvenSpellblade(); break;

            case 30: item = new ExecutionersAxe(); break;

            case 31: item = new FemalePlateChest(); break;

            case 32: item = new GuardsmanShield(); break;

            case 33: item = new Halberd(); break;

            case 34: item = new HammerPick(); break;

            case 35: item = new HeaterShield(); break;

            case 36: item = new Helmet(); break;

            case 37: item = new Helmet(); break;

            case 38: item = new JeweledShield(); break;

            case 39: item = new Katana(); break;

            case 40: item = new Kryss(); break;

            case 41: item = new Lance(); break;

            case 42: item = new LargeBattleAxe(); break;

            case 43: item = new Leafblade(); break;

            case 44: item = new Longsword(); break;

            case 45: item = new Mace(); break;

            case 46: item = new Maul(); break;

            case 47: item = new MetalKiteShield(); break;

            case 48: item = new MetalShield(); break;

            case 49: item = new NorseHelm(); break;

            case 50: item = new NorseHelm(); break;

            case 51: item = new OrnateAxe(); break;

            case 52: item = new Pickaxe(); break;

            case 53: item = new Pike(); break;

            case 54: item = new Pitchfork(); break;

            case 55: item = new PlateArms(); break;

            case 56: item = new PlateChest(); break;

            case 57: item = new PlateGloves(); break;

            case 58: item = new PlateGorget(); break;

            case 59: item = new PlateHelm(); break;

            case 60: item = new PlateHelm(); break;

            case 61: item = new PlateLegs(); break;

            case 62: item = new RadiantScimitar(); break;

            case 63: item = new RingmailArms(); break;

            case 64: item = new RingmailChest(); break;

            case 65: item = new RingmailGloves(); break;

            case 66: item = new RingmailLegs(); break;

            case 67: item = new RuneBlade(); break;

            case 68: item = new Scimitar(); break;

            case 69: item = new Scythe(); break;

            case 70: item = new ShortSpear(); break;

            case 71: item = new SkinningKnife(); break;

            case 72: item = new Spear(); break;

            case 73: item = new ThinLongsword(); break;

            case 74: item = new TwoHandedAxe(); break;

            case 75: item = new VikingSword(); break;

            case 76: item = new WarAxe(); break;

            case 77: item = new WarCleaver(); break;

            case 78: item = new WarHammer(); break;

            case 79: item = new WarMace(); break;
            }

            if (Utility.RandomMinMax(1, 5) == 1)
            {
                bool evil   = false;
                bool orient = false;

                switch (Utility.RandomMinMax(1, 8))
                {
                case 1: evil = true; break;

                case 2: orient = true; break;
                }

                string sAdjective = "unusual";
                string eAdjective = "might";

                sAdjective = Server.LootPackEntry.MagicItemAdj("start", orient, evil, item.ItemID);
                eAdjective = Server.LootPackEntry.MagicItemAdj("end", orient, evil, item.ItemID);

                string name  = "item";
                string xName = ContainerFunctions.GetOwner("property");

                if (item.Name != null && item.Name != "")
                {
                    name = item.Name.ToLower();
                }
                if (name == "item")
                {
                    name = MorphingItem.AddSpacesToSentence((item.GetType()).Name).ToLower();
                }

                switch (Utility.RandomMinMax(0, 5))
                {
                case 0: name = sAdjective + " " + name + " of " + xName;        break;

                case 1: name = name + " of " + xName;                                           break;

                case 2: name = sAdjective + " " + name;                                         break;

                case 3: name = sAdjective + " " + name + " of " + xName;        break;

                case 4: name = name + " of " + xName;                                           break;

                case 5: name = sAdjective + " " + name;                                         break;
                }

                task = task + " their " + name;
            }
            else
            {
                string[] sMetals = new string[] { "iron ", "dull copper ", "shadow iron ", "copper ", "bronze ", "gold ", "agapite ", "verite ", "valorite ", "nepturite ", "obsidian ", "steel ", "brass ", "mithril ", "xormite ", "dwarven " };
                string   sMetal  = sMetals[Utility.RandomMinMax(0, (sMetals.Length - 1))];

                string name = "item";
                if (item.Name != null && item.Name != "")
                {
                    name = item.Name.ToLower();
                }
                if (name == "item")
                {
                    name = MorphingItem.AddSpacesToSentence((item.GetType()).Name).ToLower();
                }

                task = task + " their " + sMetal + name;
            }

            item.Delete();

            return(task);
        }
Ejemplo n.º 21
0
		private void CreateClassic()
		{
			m_MoveSound = 588;
			m_CaptureSound = 168;
			m_DeathSound = 170;

			m_Piece.Female = false;
			m_Piece.BodyValue = 0x190;

			if ( m_BChessboard.OverrideMinorHue )
				m_Piece.Hue = Hue;
			else
				m_Piece.Hue = m_BChessboard.SkinHue;

			m_Piece.HairItemID = 0x203D; //Pony Tail
			m_Piece.HairHue = m_BChessboard.OverrideMinorHue ? Hue : m_BChessboard.HairHue;

			Item item = null;

			item = new PlateLegs();
			item.Hue = Hue;
			m_Piece.AddItem( item );

			item = new PlateChest();
			item.Hue = Hue;
			m_Piece.AddItem( item );

			item = new PlateArms();
			item.Hue = Hue;
			m_Piece.AddItem( item );

			item = new PlateGorget();
			item.Hue = Hue;
			m_Piece.AddItem( item );

			item = new PlateGloves();
			item.Hue = Hue;
			m_Piece.AddItem( item );

			item = new Doublet( MinorHue );
			m_Piece.AddItem( item );

			item = new Lance();
			item.Hue = MinorHue;
			m_Piece.AddItem( item );

			Server.Mobiles.Horse horse = new Server.Mobiles.Horse();
			horse.BodyValue = 200;
			horse.Hue = MinorHue;

			horse.Rider = m_Piece;

			m_Piece.Direction = Facing;
		}
Ejemplo n.º 22
0
		public DreadLord() : base( AIType.AI_SphereMelee, FightMode.Closest, 10, 1, 0.1, 0.1 )
		{
			SpeechHue = 0;

			Hue = Utility.RandomSkinHue();
			Body = 0x190;
			Name = "Dread Lord";

			SetStr( 200, 250 );
			SetDex( 100, 150 );
			SetInt( 71, 85 );
			SetHits( 200, 250 );
			SetDex( 100, 150 );
			SetInt( 71, 85 );
			SetDamage( 10, 20 );

			SetSkill( SkillName.Parry, 75.0, 98.0 );
			SetSkill( SkillName.Poisoning, 90.0, 100.0 );
			SetSkill( SkillName.MagicResist, 65.0, 88.0 );
			SetSkill( SkillName.Swords, 80.0, 95.0 );
			SetSkill( SkillName.Tactics, 80.0, 98.0 );
			SetSkill( SkillName.Wrestling, 67.0, 90.0 );
			SetSkill( SkillName.DetectHidden, 90.0, 100.0 );

			Fame = 6000;
			Karma = -10000;
			VirtualArmor = 30;

			Item temp;
			temp = new PlateGloves();
			temp.Movable = false;
			AddItem( temp );
			temp = new PlateHelm();
			temp.Movable = false;
			AddItem( temp );
			temp = new PlateArms();
			temp.Movable = false;
			AddItem( temp );
			temp = new PlateGorget();
			temp.Movable = false;
			AddItem( temp );
			temp = new PlateLegs();
			temp.Movable = false;
			AddItem( temp );
			temp = new PlateChest();
			temp.Movable = false;
			AddItem( temp );
			temp = new VikingSword();
			temp.Movable = false;
			AddItem( temp );
			temp = new Cloak();
			temp.Hue = 0x0020;
			temp.Movable = true;
			AddItem( temp );
			temp = new BodySash();
			temp.Hue = 0x0020;
			temp.Movable = true;
			AddItem( temp );
			temp = new HalfApron();
			temp.Hue = 0x0020;
			temp.Movable = false;
			AddItem( temp );

			AddItem( new KrisnaHair( Utility.RandomHairHue() ) );

            Spellbook book = new Spellbook();
            book.Content = ulong.MaxValue;
            book.LootType = LootType.Regular;
            AddItem(book);
		}
Ejemplo n.º 23
0
		public DreadLordCaptain() : base( AIType.AI_SphereMage, FightMode.Closest, 10, 1, 0.1, 0.1 )
		{
			SpeechHue = Utility.RandomDyedHue();

			Hue = Utility.RandomSkinHue();

			Body = 0x190;
			Name = "Dread Lord Captain";

			SetStr( 400 );
			SetDex( 200, 250 );
			SetInt( 200, 250 );
			SetHits( 350, 400 );
			SetStam( 200, 250 );
			SetMana( 200, 250 );
			SetDamage( 10, 20 );

			SetSkill( SkillName.Parry, 85.0, 98.0 );
			SetSkill( SkillName.Wrestling, 67.0, 90.0 );
			SetSkill( SkillName.Magery, 90.0, 100.0 );
			SetSkill( SkillName.Poisoning, 90.0, 100.0 );
			SetSkill( SkillName.MagicResist, 65.0, 88.0 );
			SetSkill( SkillName.Swords, 90.0, 95.0 );
			SetSkill( SkillName.Tactics, 90.0, 98.0 );

			Fame = 7500;
			Karma = -10000;

			VirtualArmor = 40;

			Item temp;
			temp = new PlateGloves();
			temp.Movable = false;
			AddItem( temp );
			temp = new PlateHelm();
			temp.Movable = false;
			AddItem( temp );
			temp = new PlateArms();
			temp.Movable = false;
			AddItem( temp );
			temp = new PlateGorget();
			temp.Movable = false;
			AddItem( temp );
			temp = new PlateLegs();
			temp.Movable = false;
			AddItem( temp );
			temp = new PlateChest();
			temp.Movable = false;
			AddItem( temp );
			temp = new VikingSword();
			temp.Movable = false;
			AddItem( temp );
			temp = new Cloak();
			temp.Hue = 0x0493;
			temp.Movable = true;
			AddItem( temp );
			temp = new BodySash();
			temp.Hue = 0x0493;
			temp.Movable = true;
			AddItem( temp );
			temp = new HalfApron();
			temp.Hue = 0x1;
			temp.Movable = false;
			AddItem( temp );

			Item hair = new Item( Utility.RandomList( 0x203B, 0x2049, 0x2048, 0x204A ) );
			hair.Hue = Utility.RandomNondyedHue();
			hair.Layer = Layer.Hair;
			hair.Movable = false;
			AddItem( hair );
			//PackGold(800, 1200);
			PackGem( 4 );
		}
Ejemplo n.º 24
0
		[Constructable]			// Make it Spawnable in game
		public DerangedBlacksmith() : base( AIType.AI_Melee, FightMode.Closest, 8, 1, 0.2, 0.4 ) // Set AI
		{
			if ( Female = Utility.RandomBool() )   // Make it 50/50 male/female
			{
				Body = 0x191;					// Give it a female body
				Name = NameList.RandomName( "female" );		// Choose a female name
			}
			else							// Or
			{
				Body = 0x190;					// Give it a male body
				Name = NameList.RandomName( "male" );		// Choose a Male name
			}
			Hue = Utility.RandomSkinHue();

			SetStr( 145, 165 );
			SetDex( 116, 125 );       // Set Stats
			SetInt( 60, 65 );

			SetDamage( 25, 32 );	// Set Damage

			SetDamageType( ResistanceType.Physical, 100 ); 

			SetSkill( SkillName.MagicResist, 85.1, 100.0 );
			SetSkill( SkillName.Tactics, 80.1, 90.0 );
			SetSkill( SkillName.Wrestling, 40.1, 60.0 );
			SetSkill( SkillName.Fencing, 80.1, 90.0 );		// Set Skills
			SetSkill( SkillName.Macing, 80.1, 90.0 );
			SetSkill( SkillName.Swords, 80.1, 90.0 );
			SetSkill( SkillName.Anatomy, 80.1, 90.0 );

			SetResistance( ResistanceType.Physical, 40, 45 ); 	//Set Resistances
			SetResistance( ResistanceType.Fire, 40, 45 );
			SetResistance( ResistanceType.Cold, 40, 45 );
			SetResistance( ResistanceType.Poison, 40, 45 );
			SetResistance( ResistanceType.Energy, 40, 45 );


			Fame = 2500;						// Set Fame/Karma
			Karma = -2500;

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

			if ( 0.05 > Utility.RandomDouble() )
				PackItem( new SturdyPickaxe() );		// Roll for a pickaxe
			else if ( 0.05 > Utility.RandomDouble() )		// If it fails	
				PackItem( new SturdyShovel() );			// Roll for a Shovel	

			if ( 0.02 > Utility.RandomDouble() )
				PackItem( new RunicHammer( CraftResource.Bronze, 10 ) );  // Roll for runic hammer
			//if ( 0.05 > Utility.RandomDouble() )
			//	PackItem( new PowderOfTemperament() );

			switch ( Utility.Random( 5 ))  		// Equip 1 of 5 weapons
			{ 
				case 0: Mace weapon = new Mace();
					weapon.Movable = false;
					weapon.Crafter = this;
					weapon.Quality = WeaponQuality.Exceptional;
					AddItem( weapon ); break;

				case 1: Maul weapona = new Maul();
					weapona.Movable = false;
					weapona.Crafter = this;
					weapona.Quality = WeaponQuality.Exceptional;
					AddItem( weapona ); break;

				case 2: WarHammer weaponb = new WarHammer();
					weaponb.Movable = false;
					weaponb.Crafter = this;
					weaponb.Quality = WeaponQuality.Exceptional;
					AddItem( weaponb ); break;

				case 3: HammerPick weaponc = new HammerPick();
					weaponc.Movable = false;
					weaponc.Crafter = this;
					weaponc.Quality = WeaponQuality.Exceptional;
					AddItem( weaponc ); break;

				case 4: WarMace weapond = new WarMace();
					weapond.Movable = false;
					weapond.Crafter = this;
					weapond.Quality = WeaponQuality.Exceptional;
					AddItem( weapond ); break;
			}

			PlateChest chest = new PlateChest();		// Create a plate Chest
			chest.Quality = ArmorQuality.Exceptional;
			chest.Crafter = this;				
			chest.Hue = 2406;
			chest.Movable = false;				// Make it dissapear on death
			AddItem( chest );				// Add it as equip
			
			PlateArms arms = new PlateArms();
			arms.Quality = ArmorQuality.Exceptional;
			arms.Crafter = this;				
			arms.Hue = 2406;
			arms.Movable = false;
			AddItem( arms );
			
			PlateGloves gloves = new PlateGloves();
			gloves.Quality = ArmorQuality.Exceptional;
			gloves.Crafter = this;				
			gloves.Hue = 2406;
			gloves.Movable = false;
			AddItem( gloves );
			
			PlateGorget gorget = new PlateGorget();
			gorget.Quality = ArmorQuality.Exceptional;
			gorget.Crafter = this;				
			gorget.Hue = 2406;
			gorget.Movable = false;
			AddItem( gorget );
			
			PlateLegs legs = new PlateLegs();
			legs.Quality = ArmorQuality.Exceptional;
			legs.Crafter = this;				
			legs.Hue = 2406;
			legs.Movable = false;
			AddItem( legs );

		}
Ejemplo n.º 25
0
		[Constructable]			// Make it Spawnable in game
		public MinerGuard() : base( AIType.AI_Melee, FightMode.Closest, 8, 1, 0.2, 0.4 ) // Set AI
		{
			if ( Female = Utility.RandomBool() )   // Make it 50/50 male/female
			{
				Body = 0x191;					// Give it a female body
				Name = NameList.RandomName( "female" );		// Choose a female name
			}
			else							// Or
			{
				Body = 0x190;					// Give it a male body
				Name = NameList.RandomName( "male" );		// Choose a Male name
			}

			SetStr( 106, 125 );
			SetDex( 106, 115 );       // Set Stats
			SetInt( 51, 65 );
			Hue = Utility.RandomSkinHue();

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

			SetDamage( 23, 27 );	// Set Damage

			SetDamageType( ResistanceType.Physical, 100 ); 

			SetSkill( SkillName.MagicResist, 85.1, 100.0 );
			SetSkill( SkillName.Tactics, 80.1, 90.0 );
			SetSkill( SkillName.Wrestling, 40.1, 60.0 );
			SetSkill( SkillName.Fencing, 80.1, 90.0 );		// Set Skills
			SetSkill( SkillName.Macing, 80.1, 90.0 );
			SetSkill( SkillName.Swords, 80.1, 90.0 );
			SetSkill( SkillName.Anatomy, 80.1, 90.0 );

			SetResistance( ResistanceType.Physical, 30, 35 ); 	//Set Resistances
			SetResistance( ResistanceType.Fire, 25, 30 );
			SetResistance( ResistanceType.Cold, 25, 30 );
			SetResistance( ResistanceType.Poison, 25, 30 );
			SetResistance( ResistanceType.Energy, 25, 30 );


			Fame = 1500;						// Set Fame/Karma
			Karma = -1500;

			if ( 0.05 > Utility.RandomDouble() )
				PackItem( new SturdyPickaxe() );		// Roll for a pickaxe
			else if ( 0.05 > Utility.RandomDouble() )		// If it fails	
				PackItem( new SturdyShovel() );			// Roll for a Shovel	

			if ( 0.02 > Utility.RandomDouble() )
				PackItem( new RunicHammer( CraftResource.Copper, 10 ) );  // Roll for runic hammer

			switch ( Utility.Random( 5 ))  		// Equip 1 of 5 weapons
			{ 
				case 0: AddItem( new Spear() ); break;
				case 1: AddItem( new Halberd() ); break;
				case 2: AddItem( new WarHammer() ); break;
				case 3: AddItem( new Bardiche() ); break;
				case 4: AddItem( new DoubleAxe() ); break;
			}

			PlateChest chest = new PlateChest(); 		// Create a plate Chest
			chest.Movable = false;				// Make it dissapear on death
			AddItem( chest );				// Add it as equip
			
			PlateArms arms = new PlateArms();
			arms.Movable = false;
			AddItem( arms );
			
			PlateGloves gloves = new PlateGloves();
			gloves.Movable = false;
			AddItem( gloves );
			
			PlateGorget gorget = new PlateGorget();
			gorget.Movable = false;
			AddItem( gorget );
			
			PlateLegs legs = new PlateLegs();
			legs.Movable = false;
			AddItem( legs );

		}
Ejemplo n.º 26
0
        public static void EquipKhemetar(Armament a, Mobile m)
        {
            if (a == Armament.LightCavalry)
                a = (Armament)1;
            else if (a == Armament.HeavyCavalry)
                a = (Armament)3;

            switch (a)
            {
                case Armament.Light:
                    {
                        Sandals sand = new Sandals();
                        sand.Resource = CraftResource.BeastLeather;
                        sand.Hue = 2947;
                        m.EquipItem(sand);

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

                        KhemetarKukri k = new KhemetarKukri();
                        k.Resource = CraftResource.Iron;
                        m.EquipItem(k);

                        WoodenShield shield = new WoodenShield();
                        shield.Resource = CraftResource.Redwood;
                        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 Armament.Medium:
                    {
                        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);

                        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 Armament.Heavy:
                    {
                        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 Armament.Ranged:
                    {
                        KhemetarRogueTurban turban = new KhemetarRogueTurban();
                        turban.Resource = CraftResource.Cotton;
                        turban.Hue = 2795;
                        m.EquipItem(turban);

                        BaggyPants pants = new BaggyPants();
                        pants.Resource = CraftResource.Cotton;
                        pants.Hue = 2795;
                        m.EquipItem(pants);

                        ElegantCloak cloak = new ElegantCloak();
                        cloak.Resource = CraftResource.Cotton;
                        cloak.Hue = 2795;
                        m.EquipItem(cloak);

                        m.EquipItem(new Sandals());

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

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

                        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;
                    }
            }
        }
Ejemplo n.º 27
0
        public HorseTownGuard()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.175, 0.2)
        {
            Title = "the guard";
            Body = 400;
                    Hue = Utility.RandomSkinHue();
            SpeechHue=1153;
            this.Body = 0x190;
            this.Name = NameList.RandomName( "male" );
                    SetStr( 150 );
            SetDex( 100 );
            SetInt( 25 );

            SetSkill( SkillName.MagicResist, 200.0 );
            SetSkill( SkillName.Swords, 100.0 );
            SetSkill( SkillName.Tactics, 100.0 );
            SetSkill( SkillName.Healing, 100.0 );
            SetSkill( SkillName.Anatomy, 100.0 );
            SetSkill( SkillName.Parry, 100.0 );
            SetSkill( SkillName.DetectHidden, 100.0 );

            Fame = 2500;
            Karma = 5000;

            VirtualArmor = 30;

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

            switch ( Utility.Random( 50 ) )
            {
                case 0:
                {
                    Item beard = new Item( Utility.RandomList( 0x2040, 0x204B, 0x203F, 0x2041 ) );
                    beard.Hue = hair.Hue;
                    beard.Layer = Layer.FacialHair;
                    beard.Movable = false;
                    AddItem( beard );
                    break;
                }
            }

            Item platechest = new PlateChest();
            EquipItem( platechest );
            Item platearms = new PlateArms();
            EquipItem( platearms );
            Item platelegs = new PlateLegs();
            EquipItem( platelegs );
            Item plategorget = new PlateGorget();
            EquipItem( plategorget );
            Longsword longsword = new Longsword();
            longsword.Movable = false;
            longsword.MinDamage = 35;
            longsword.MaxDamage = 40;
            EquipItem( longsword );
            Item shield = new MetalKiteShield();
            EquipItem( shield );
            PackItem( new Longsword() );
            PackItem( new Bandage( 100 ) );
            Horse horse = new Horse();
            horse.Rider = this;
            horse.Controled = true;
            horse.ControlMaster = this;
        }
Ejemplo n.º 28
0
        public VivreGuard(String townName)
            : base(AIType.AI_VivreGuard, FightMode.Closest, 18, 1, 0.12, 1) // 0.15 echapable à pied, 0.05 = très rapide
        {
            m_TownName = townName;
            InitStats(200, 200, 200);
            SpeechHue = Utility.RandomDyedHue();
            Hue = Utility.RandomSkinHue();
            Body = 0x190;
            Name = NameList.RandomName("male");
            Title = ", Garde de " + m_TownName;
            Karma = 12000;

            PlateChest chest = new PlateChest();
            chest.Hue = 0;
            chest.Resource = CraftResource.MBronze;
            chest.Movable = false;
            AddItem(chest);
            PlateArms arms = new PlateArms();
            arms.Hue = 0;
            arms.Movable = false;
            arms.Resource = CraftResource.MBronze;
            AddItem(arms);
            PlateGloves gloves = new PlateGloves();
            gloves.Hue = 0;
            gloves.Movable = false;
            gloves.Resource = CraftResource.MBronze;
            AddItem(gloves);
            PlateGorget gorget = new PlateGorget();
            gorget.Hue = 0;
            gorget.Movable = false;
            gorget.Resource = CraftResource.MBronze;
            AddItem(gorget);
            PlateLegs legs = new PlateLegs();
            legs.Hue = 0;
            legs.Movable = false;
            legs.Resource = CraftResource.MBronze;
            AddItem(legs);
            NorseHelm helm = new NorseHelm();
            helm.Hue = 0;
            helm.Movable = false;
            helm.Resource = CraftResource.MBronze;
            AddItem(helm);
            Surcoat surcoat = new Surcoat();
            surcoat.Hue = 0;
            surcoat.Movable = false;
            AddItem(surcoat);
            Cloak cloak = new Cloak();
            cloak.Hue = TownHue;
            cloak.Movable = false;
            AddItem(cloak);


            HairItemID = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2049, 0x204A);
            HairHue = Utility.RandomHairHue();

            if (Utility.RandomBool())
            {
                FacialHairItemID = Utility.RandomList(0x203E, 0x203F, 0x2040, 0x2041, 0x204B, 0x204C, 0x204D);
                FacialHairHue = HairHue;
            }

            Halberd weapon = new Halberd();
            weapon.Movable = false;
            weapon.Crafter = this;
            weapon.Quality = WeaponQuality.Exceptional;
            VirtualArmor = 100;

            AddItem(weapon);

            Skills[SkillName.Anatomy].Base = 100.0;
            Skills[SkillName.Tactics].Base = 110.0;
            Skills[SkillName.Swords].Base = 160.0;
            Skills[SkillName.MagicResist].Base = 110.0;
            Skills[SkillName.DetectHidden].Base = 100.0;
        }
Ejemplo n.º 29
0
		public override void OnResponse( NetState sender, RelayInfo info )
		{

		Mobile from = sender.Mobile;
		Container pack = from.Backpack;
		int temp;

			switch ( info.ButtonID )
			{
				case 101:
				{ // gold
				  temp = Utility.Random( 25000,50000 );
				  from.AddToBackpack( new BankCheck( temp ) );
				  from.SendMessage( 0x22, String.Format("You won {0} gold!",temp) );
				  from.SendGump( new SlotMachineGump(from,m_From,0) );
				  break;
				}
				case 102:
				{ // reagents,armor
				temp = Utility.Random( 6 );
				if (temp==0)
				{
		                  BaseArmor chest;
		                  chest = new PlateChest();
		                  chest.Resource = CraftResource.Iron;
		                  chest.Hue = 0x483;
		                  pack.AddItem( chest );
		                  from.SendMessage( 0x22,"You won Platemail Chest!");
				}
				else if (temp==1)
				{
		                  BaseArmor gloves;
		                  gloves = new PlateGloves();
		                  gloves.Resource = CraftResource.Iron;
		                  gloves.Hue = 0x483;
		                  pack.AddItem( gloves );
		                  from.SendMessage( 0x22,"You won Platemail Gloves!");
				}
				else if (temp==2)
				{
		                  BaseArmor arms;
		                  arms = new PlateArms();
		                  arms.Resource = CraftResource.Iron;
		                  arms.Hue = 0x483;
		                  pack.AddItem( arms );
		                  from.SendMessage( 0x22,"You won Platemail Arms!");
				}
				else if (temp==3)
				{
		                  BaseArmor helm;
        		          helm = new PlateHelm();
	        	          helm.Resource = CraftResource.Iron;
	        	          helm.Hue = 0x483;
	        	          pack.AddItem( helm );
		                  from.SendMessage( 0x22,"You won Platemail Helmet!");
				}
				else if (temp==4)
				{
		                  BaseArmor gorget;
		                  gorget = new PlateGorget();
		                  gorget.Resource = CraftResource.Iron;
		                  gorget.Hue = 0x483;
		                  pack.AddItem( gorget );
		                  from.SendMessage( 0x22,"You won Platemail Gorget!");
				}
				else if (temp==5)
				{
		                  BaseArmor legs;
		                  legs = new PlateLegs();
		                  legs.Resource = CraftResource.Iron;
		                  legs.Hue = 0x483;
		                  pack.AddItem( legs );
		                  from.SendMessage( 0x22,"You won Platemail Legs!");
				}
				else
				{
		                  from.AddToBackpack( new BagOfReagents( 300 ) );
		                  from.SendMessage( 0x22, String.Format("You won a Bag of Reagents!") );
				}
				from.SendGump( new SlotMachineGump(from,m_From,0) );
				  break;
				}
				case 103:
				{ //
				  temp = Utility.Random( 500,5000 );
				  from.AddToBackpack( new Gold( temp ) );
	  			  from.SendMessage( 0x22, String.Format("You won {0} gold!",temp) );
	  			  from.SendGump( new SlotMachineGump(from,m_From,0) );
				  break;
				}
			} //switch
		}
Ejemplo n.º 30
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 );
        }
Ejemplo n.º 31
0
        public static void EquipFreeSoldier(Armament a, Mobile m)
        {
            if (a == Armament.LightCavalry)
                a = (Armament)1;
            else if (a == Armament.HeavyCavalry)
                a = (Armament)3;

            int chance = Utility.RandomMinMax(1, 6);
            Nation nation = Nation.Vhalurian;

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

            m.Language = "Common";
            m.Female = Utility.RandomBool();

            if (m.Female)
            {
                m.Body = 0x191;
                (m as Soldier).BaseName = RandomName(nation, true) + RandomSurname(nation, true);
            }

            else
            {
                m.Body = 0x190;
                (m as Soldier).BaseName = BaseKhaerosMobile.RandomName(nation, false) + RandomSurname(nation, false);
            }

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

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

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

            m.Name = ((m as Soldier).BaseName + " the Free Soldier");

            ChainChest cc = new ChainChest();
            m.EquipItem(cc);
            PlateArms pa = new PlateArms();
            m.EquipItem(pa);
            TyreanHalfPlateGloves thpg = new TyreanHalfPlateGloves();
            m.EquipItem(thpg);
            PlateGorget pg = new PlateGorget();
            m.EquipItem(pg);
            PlateLegs pl = new PlateLegs();
            m.EquipItem(pl);
            m.EquipItem(new Cloak(Utility.RandomMinMax(1873, 1908)));
            m.EquipItem(new Tunic(Utility.RandomMinMax(1873, 1908)));

            int RandomWeapons = Utility.Random(3);

            switch (RandomWeapons)
            {
                case 0: Broadsword sword = new Broadsword(); m.EquipItem(sword); MetalShield shield = new MetalShield(); m.EquipItem(shield); break;
                case 1: WarHammer wh = new WarHammer(); m.EquipItem(wh); break;
                case 2: Bow b = new Bow(); m.EquipItem(b); m.AddToBackpack(new Arrow(Utility.Random(20))); (m as BaseCreature).AI = AIType.AI_Archer; break;
            }
        }
Ejemplo n.º 32
0
            public override void OnResponse(NetState sender, RelayInfo info)
            {
                Mobile    from = sender.Mobile;
                Container pack = from.Backpack;
                int       temp;

                switch (info.ButtonID)
                {
                case 101:
                {                 // gold
                    temp = Utility.Random(25000, 50000);
                    from.AddToBackpack(new BankCheck(temp));
                    from.SendMessage(0x22, String.Format("You won {0} gold!", temp));
                    from.SendGump(new SlotMachineGump(from, m_From, 0));
                    break;
                }

                case 102:
                {                 // reagents,armor
                    temp = Utility.Random(6);
                    if (temp == 0)
                    {
                        BaseArmor chest;
                        chest          = new PlateChest();
                        chest.Resource = CraftResource.Iron;
                        chest.Hue      = 0x845;
                        pack.AddItem(chest);
                        from.SendMessage(0x22, "You won Platemail Chest!");
                    }
                    else if (temp == 1)
                    {
                        BaseArmor gloves;
                        gloves          = new PlateGloves();
                        gloves.Resource = CraftResource.Iron;
                        gloves.Hue      = 0x845;
                        pack.AddItem(gloves);
                        from.SendMessage(0x22, "You won Platemail Gloves!");
                    }
                    else if (temp == 2)
                    {
                        BaseArmor arms;
                        arms          = new PlateArms();
                        arms.Resource = CraftResource.Iron;
                        arms.Hue      = 0x845;
                        pack.AddItem(arms);
                        from.SendMessage(0x22, "You won Platemail Arms!");
                    }
                    else if (temp == 3)
                    {
                        BaseArmor helm;
                        helm          = new PlateHelm();
                        helm.Resource = CraftResource.Iron;
                        helm.Hue      = 0x845;
                        pack.AddItem(helm);
                        from.SendMessage(0x22, "You won Platemail Helmet!");
                    }
                    else if (temp == 4)
                    {
                        BaseArmor gorget;
                        gorget          = new PlateGorget();
                        gorget.Resource = CraftResource.Iron;
                        gorget.Hue      = 0x845;
                        pack.AddItem(gorget);
                        from.SendMessage(0x22, "You won Platemail Gorget!");
                    }
                    else if (temp == 5)
                    {
                        BaseArmor legs;
                        legs          = new PlateLegs();
                        legs.Resource = CraftResource.Iron;
                        legs.Hue      = 0x845;
                        pack.AddItem(legs);
                        from.SendMessage(0x22, "You won Platemail Legs!");
                    }
                    else
                    {
                        from.AddToBackpack(new BagOfReagents(100));
                        from.SendMessage(0x22, String.Format("You won a Bag of Reagents!"));
                    }
                    from.SendGump(new SlotMachineGump(from, m_From, 0));
                    break;
                }

                case 103:
                {                 //
                    temp = Utility.Random(500, 5000);
                    from.AddToBackpack(new Gold(temp));
                    from.SendMessage(0x22, String.Format("You won {0} gold!", temp));
                    from.SendGump(new SlotMachineGump(from, m_From, 0));
                    break;
                }
                }         //switch
            }
Ejemplo n.º 33
0
        public static void EquipSociety(Armament a, Mobile m)
        {
            if (a == Armament.LightCavalry)
                a = (Armament)1;
            else if (a == Armament.HeavyCavalry)
                a = (Armament)3;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                        m.EquipItem(new ElegantCloak(2751));

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

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

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

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

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

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

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

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

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

                        break;
                    }
            }

            Surcoat coat = new Surcoat();
            coat.ItemID = 15483;
            coat.Name = "A Surcoat of the Society of Rymaliel";
            m.EquipItem(coat);
        }
		public MasterOfTheArts( bool i_ChampionSpawn ) : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "a master of the arts"; //the name players will see
			Body = 185; //how it look like in game
			BaseSoundID = 42; //what sound he makes (I still have problems with sound :(

			ChampionSpawn = i_ChampionSpawn; //set if it spawn with champ spawn or normal spawn

			SetStr( 401, 420 ); //set stats
			SetDex( 81, 90 );
			SetInt( 201, 220 );

			SetHits( 1500, 1700 ); //set hp

			SetDamage( 30, 40 ); //set how much damage ~

			SetDamageType( ResistanceType.Physical, 50 ); //which damage type it does
			SetDamageType( ResistanceType.Poison, 50 );

			SetResistance( ResistanceType.Physical, 60, 80 ); //what resists it have
			SetResistance( ResistanceType.Fire, 55, 70 );
			SetResistance( ResistanceType.Cold, 55, 70 );
			SetResistance( ResistanceType.Poison, 55, 70 );
			SetResistance( ResistanceType.Energy, 55, 70 );

			SetSkill( SkillName.Anatomy, 120.0 );
			SetSkill( SkillName.Tactics, 120.0 );
			SetSkill( SkillName.Macing, 120.0 );

			Fame = 30000; //its fame/karma
			Karma = -30000;
            
			VirtualArmor = 50;

			PlateChest chest = new PlateChest(); //add its armor and set its hue and not movable so it won't be on loot
			chest.Hue = 503;
			chest.Movable = false;
			AddItem( chest );
			
			PlateArms arms = new PlateArms();
			arms.Hue = 503;
			arms.Movable = false;
			AddItem( arms );
			
			PlateGloves gloves = new PlateGloves();
			gloves.Hue = 503;
			gloves.Movable = false;
			AddItem( gloves );
			
			PlateGorget gorget = new PlateGorget();
			gorget.Hue = 503;
			gorget.Movable = false;
			AddItem( gorget );
			
			PlateLegs legs = new PlateLegs();
			legs.Hue = 503;
			legs.Movable = false;
			AddItem( legs );
			
			WarHammer weapon = new WarHammer(); //add its weapon and set its hue and not movable so it won't be on loot
			weapon.Name = "Crafting Union Leader's Hammer";
			weapon.Hue = 503;
			weapon.Movable = false;
			AddItem( weapon );
			
			FurBoots boots = new FurBoots(); //add its boots and set its hue and not movable so it won't be on loot
			boots.Hue = 503;
			boots.Movable = false;
			AddItem( boots );

			Item hair = new Item( 8251 );  //add its hair and set its hue and not movable so it won't be on loot
			hair.Hue = 503; 
			hair.Layer = Layer.Hair; 
			hair.Movable = false; 
			AddItem( hair );

			AddItem( new Gold( 500, 1000 ));
			//if ( Utility.Random(25) == 1 )
				//AddItem( new PersonalStatueDeed() );

			//new Mule(99.1, true).Rider = this; //make it ride on mule
		}