상속: BaseArmor
예제 #1
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);					
        }
예제 #2
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 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 );
 }
예제 #4
0
		public override void GenerateLoot()
		{
			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 );
		}
		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 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));
        }
예제 #7
0
        public BoneKnight()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.45, 0.8)
        {
            Body = 57;
            Name = "a bone knight";

            SetStr( 96, 150 );
            SetHits( 96, 150 );
            SetDex( 76, 95 );
            SetStam( 76, 95 );
            SetInt( 36, 60 );
            SetMana( 0 );
            Karma = -125;

            BaseSoundID = 451;
            SetSkill( SkillName.Tactics, 85.1, 100 );
            SetSkill( SkillName.MagicResist, 65.1, 80 );
            SetSkill( SkillName.Parry, 85.1, 95 );
            SetSkill( SkillName.Wrestling, 85.1, 95 );

            VirtualArmor = 18;
            SetDamage( 2, 20 );

            Item item = null;
            item = new PlateChest();
            PackItem( item );
            LootPack.Rich.Generate( this );
        }
예제 #8
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; 

		} 
예제 #9
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();
            }
        }
예제 #10
0
        public override void GenerateLoot()
        {
            Item item = null;

            item = new PlateChest();
            PackItem(item);

            AddLoot(LootPack.Average);
        }
예제 #11
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);

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

        }
예제 #12
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;

		}
예제 #13
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;
			
		}
예제 #14
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;
			
			}
        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;
        }
예제 #16
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;
			
		}
예제 #17
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);
        }
예제 #18
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;
			
			}
예제 #19
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;
			
			}
예제 #20
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;
			
			}
        /************************************************************
        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 ) );
        }
예제 #22
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;
		}
예제 #23
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);
		}
예제 #24
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 );
        }
예제 #25
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);
        }
예제 #26
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 );

		}
예제 #27
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 );
		}
예제 #28
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);
        }
예제 #29
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;
        }
예제 #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 );
        }
예제 #31
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
		}
예제 #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
            }
예제 #33
0
        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);
        }
		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
		}