Inheritance: BaseArmor
コード例 #1
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 );
        }
コード例 #2
0
ファイル: Khal'nga.cs プロジェクト: greeduomacro/UO-Forever
        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));
        }
コード例 #3
0
ファイル: Corey.cs プロジェクト: Crome696/ServUO
        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);					
        }
コード例 #4
0
ファイル: Guardian.cs プロジェクト: FreeReign/imaginenation
		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; 

		} 
コード例 #5
0
		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() );
		}
コード例 #6
0
 public override void InitOutfit()
 {
     Item item = null;
     item = AddRandomHair();
     item.Hue = Utility.RandomHairHue();
     item = AddRandomFacialHair( item.Hue );
     item = new PlateChest();
     AddItem( item );
     item = new PlateLegs();
     AddItem( item );
     item = new PlateArms();
     AddItem( item );
     item = new PlateGloves();
     AddItem( item );
     switch ( Utility.Random( 6 ) )
     {
         case 0: item = new PlateHelm(); break;
         case 1: item = new ChainCoif(); break;
         case 2: item = new CloseHelm(); break;
         case 3: item = new Bascinet(); break;
         case 4: item = new NorseHelm(); break;
         case 5: default: item = new Helmet(); break;
     }
     AddItem( item );
     item = new Tunic();
     item.Hue = Utility.RandomNondyedHue();
     AddItem( item );
     item = new PlateGorget();
     AddItem( item );
     item = new DoubleAxe();
     AddItem( item );
     PackGold( 15, 100 );
 }
コード例 #7
0
        public BaseShieldGuard( Mobile target )
            : base(target)
        {
            Item item = null;

            Female = Utility.RandomBool();
            Body = Female ? 401 : 400;
            SpeechHue = Utility.RandomDyedHue();
            Name = NameList.RandomName(Female ? "female" : "male");
            Hue = Utility.RandomSkinHue();
            Title = "the guard";

            BaseSoundID = 332;

            int hairHue = Utility.RandomHairHue();
            Utility.AssignRandomHair(this, hairHue);

            item = new Shirt();
            AddItem(item);
            item.Hue = Utility.RandomNondyedHue();

            item = new PlateChest();
            AddItem(item);

            item = new PlateLegs();
            AddItem(item);

            item = new PlateArms();
            AddItem(item);

            item = new Tunic();
            AddItem(item);
            if ( Type == GuildType.Order )
                item.Hue = Utility.RandomBlueHue();
            else
                item.Hue = Utility.RandomRedHue();

            item = new VikingSword();
            AddItem(item);

            item = Shield;
            item.Movable = false;
            AddItem(item);

            if (!Female)
            {
                Utility.AssignRandomFacialHair(this, hairHue);

                item = new ShortPants();
                AddItem(item);
                item.Hue = Utility.RandomNondyedHue();
            }
            else
            {
                item = new Skirt();
                AddItem(item);
                item.Hue = Utility.RandomNondyedHue();
            }
        }
コード例 #8
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;

		}
コード例 #9
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);

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

        }
コード例 #10
0
		public Rexxar () : base( AIType.AI_Melee, FightMode.Closest )
		{
			Name = "Rexxar";
			Title = "The murderer";
			Body = 400;
			BaseSoundID = 427;
			Hue = 1175;

			SetStr( 200, 400 );
			SetDex( 100, 150 );
			SetInt( 46, 70 );

			SetHits( 9000 );

			SetDamage( 20, 25 );

			SetSkill( SkillName.MagicResist, 125.1, 140.0 );
			SetSkill( SkillName.Tactics, 90.1, 100.0 );
			SetSkill( SkillName.Wrestling, 90.1, 100.0 );

			Fame = 150000;
			Karma = -150000;

			VirtualArmor = 50;

			Bandana bandana = new Bandana();
			bandana.Hue = 1175;
			bandana.Movable = false;
			AddItem( bandana );

			ChainChest chest = new ChainChest();
			chest.Hue = 1645;
			chest.Movable = false;
			AddItem( chest );

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

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

			BodySash sash = new BodySash();
			sash.Hue = 1175;
			sash.Movable = false;
			AddItem( sash );

			DoubleAxe axe = new DoubleAxe();
			axe.Hue = 1175;
			axe.Movable = false;
			AddItem( axe );

		}
コード例 #11
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;
			
		}
コード例 #12
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;
			
			}
コード例 #13
0
        public TheCursedBlacksmith()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Title = "the Cursed Blacksmith";
            Body = 0x190;
            Name = "Jonah";
            Hue = 2130;

            InitStats(700, 151, 100);
            SetHits(500);

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

            SetSkill(SkillName.Wrestling, 120.0);
            SetSkill(SkillName.Fencing, 120.0);
            SetSkill(SkillName.Anatomy, 120.0);
            SetSkill(SkillName.MagicResist, 120.0);
            SetSkill(SkillName.Tactics, 120.0);
            SetSkill(SkillName.Healing, 90.0);

            Fame = NotorietyHandlers.GetNotorietyByLevel( 3 );
            Karma = NotorietyHandlers.GetNotorietyByLevel( -3 );

            VirtualArmor = 70;

            Item wep = CursedCaveUtility.MutateItem(new Kryss(), 30);
            AddItem(wep);

            AddItem(new Shoes());

            CraftResource ArmorCraftResource = GetRandomCraftResource();

            PlateArms arms = new PlateArms();
            arms.Resource = ArmorCraftResource;
            AddItem(CursedCaveUtility.MutateItem(arms, 10));

            PlateChest tunic = new PlateChest();
            tunic.Resource = ArmorCraftResource;
            AddItem(CursedCaveUtility.MutateItem(tunic, 10));

            PlateLegs legs = new PlateLegs();
            legs.Resource = ArmorCraftResource;
            AddItem(CursedCaveUtility.MutateItem(legs, 10));

            HairItemID = 0x203B;
            HairHue = 0x3C0;
        }
コード例 #14
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;
			
		}
コード例 #15
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;
			
			}
コード例 #16
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;
			
			}
コード例 #17
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;
			
			}
コード例 #18
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
		}
コード例 #19
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
            }
コード例 #20
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;
        }
コード例 #21
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 );

		}
コード例 #22
0
        /************************************************************
        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 ) );
        }
コード例 #23
0
ファイル: Knight.cs プロジェクト: greeduomacro/UO-Forever
		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;
		}
コード例 #24
0
ファイル: Soldier.cs プロジェクト: justdanofficial/khaeros
        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);
        }
コード例 #25
0
ファイル: Soldier.cs プロジェクト: justdanofficial/khaeros
        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;
            }
        }
コード例 #26
0
ファイル: Soldier.cs プロジェクト: justdanofficial/khaeros
        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;
                    }
            }
        }
コード例 #27
0
        public BaseShieldGuard()
            : base(AIType.AI_Melee, FightMode.Agressor, 14, 1, 0.8, 1.6)
        {
            Job = JobFragment.guard;

            Female = Utility.RandomBool();
            Body = Female ? 401 : 400;
            Name = NameList.RandomName( Female ? "female" : "male" );
            Hue = Utility.RandomSkinHue();
            SetStr( 9000 );
            SetDex( 9000 );
            SetInt( 9000 );
            Karma = 100;

            SetSkill( SkillName.Tactics, 90.1, 100 );
            SetSkill( SkillName.MagicResist, 90.1, 100 );
            SetSkill( SkillName.Parry, 90.1, 100 );
            SetSkill( SkillName.Swords, 90.1, 100 );
            SetSkill( SkillName.Macing, 90.1, 100 );
            SetSkill( SkillName.Fencing, 90.1, 100 );
            SetSkill( SkillName.Wrestling, 90.1, 100 );
            SetSkill( SkillName.DetectHidden, 90.1, 100 );
            SetSkill( SkillName.Forensics, 90.1, 100 );

            Item item = null;
            if ( !Female )
            {
                item = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item = AddRandomFacialHair( item.Hue );
                item = new Shirt();
                item.Hue = Utility.RandomNondyedHue();
                AddItem( item );
                item = new ShortPants();
                item.Hue = Utility.RandomNondyedHue();
                AddItem( item );
                item = new PlateChest();
                AddItem( item );
                item = new PlateLegs();
                AddItem( item );
                item = new PlateArms();
                AddItem( item );
                item = new Tunic();
                item.Hue = Utility.RandomRedHue();
                AddItem( item );
            }
            else
            {
                item = AddRandomHair();
                item.Hue = Utility.RandomHairHue();
                item = new Shirt();
                item.Hue = Utility.RandomNondyedHue();
                AddItem( item );
                item = new Skirt();
                item.Hue = Utility.RandomNondyedHue();
                AddItem( item );
                item = new PlateChest();
                AddItem( item );
                item = new PlateLegs();
                AddItem( item );
                item = new PlateArms();
                AddItem( item );
                item = new Tunic();
                item.Hue = Utility.RandomRedHue();
                AddItem( item );
            }

            VikingSword weapon = new VikingSword();
            weapon.Movable = false;
            AddItem( weapon );

            BaseShield shield = Shield;
            shield.Movable = false;
            AddItem( shield );
            PackGold( 15, 100 );
        }
コード例 #28
0
ファイル: Soldier.cs プロジェクト: justdanofficial/khaeros
        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;
                    }
            }
        }
コード例 #29
0
ファイル: DreadLords.cs プロジェクト: FreeReign/imaginenation
		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 );
		}
コード例 #30
0
ファイル: WarriorGuard.cs プロジェクト: greeduomacro/divinity
        public WarriorGuard(Mobile target)
            : base(target)
        {
            SpeechHue = Utility.RandomDyedHue();
            Hue = Utility.RandomSkinHue();
            Title = "the guard";

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

                switch (Utility.Random(2))
                {
                    case 0: AddItem(new LeatherSkirt()); break;
                    case 1: AddItem(new LeatherShorts()); break;
                }

                AddItem(new FemalePlateChest());
            }
            else
            {
                Body = 0x190;
                Name = NameList.RandomName("male");

                Item item = new Shirt();
                AddItem(item);
                item.Hue = Utility.RandomNondyedHue();

                item = new ShortPants();
                AddItem(item);
                item.Hue = Utility.RandomNondyedHue();

                item = new PlateChest();
                AddItem(item);

                item = new PlateLegs();
                AddItem(item);

                item = new PlateArms();
                AddItem(item);

                item = new Tunic();
                AddItem(item);
                item.Hue = Utility.RandomNondyedHue();
            }
            Utility.AssignRandomHair(this);

            if (Female)
                Utility.AssignRandomFacialHair(this, HairHue);

            Halberd weapon = new Halberd();

            weapon.Movable = false;
            weapon.Quality = WeaponQuality.Exceptional;

            AddItem(weapon);

            Container pack = new Backpack();

            pack.Movable = false;

            pack.DropItem(new Gold(10, 25));

            AddItem(pack);
        }
コード例 #31
0
ファイル: DreadLords.cs プロジェクト: FreeReign/imaginenation
		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);
		}