상속: BaseMiddleTorso
예제 #1
0
		public RaresVendor() : base( "the custom provisioner" )
		{
            Item temp;
            temp = new Shoes();
            temp.Hue = 1953;
            temp.Movable = false;
            AddItem(temp);
            temp = new LongPants();
            temp.Hue = 01;
            temp.Movable = false;
            AddItem(temp);
            temp = new Doublet();
            temp.Hue = 1953;
            temp.Movable = false;
            AddItem(temp);
            temp = new FancyShirt();
            temp.Hue = 01;
            temp.Movable = false;
            AddItem(temp);
            temp = new FloppyHat();
            temp.Hue = 1953;
            temp.Movable = false;
            AddItem(temp);
            temp = new Cloak();
            temp.Hue = 1953;
            temp.Movable = false;
            AddItem(temp);
		}
		public EvilVampire () : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = NameList.RandomName( "male" );
			Body = 400;
			Title = "the Vampire Lord";

			BaseSoundID = 0x482;;
			Hue = 0;

			SetStr( 350, 500 );
			SetDex( 100, 105 );
			SetInt( 3000, 4000 );
			SetHits( 2500, 3750 );

			SetDamage( 40, 50 );
			SetDamageType( ResistanceType.Physical, 20 );
			SetDamageType( ResistanceType.Cold, 60 );
			SetDamageType( ResistanceType.Energy, 40 );

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

			SetSkill( SkillName.EvalInt, 150.1, 200.0 );
			SetSkill( SkillName.Magery, 150.1, 200.0 );
			SetSkill( SkillName.MagicResist, 200, 250.0 );
			SetSkill( SkillName.Tactics, 150.0, 200.0 );
			SetSkill( SkillName.Wrestling, 150.0, 200.0 );

			Fame = 20000;
			Karma = -10000;

			VirtualArmor = 90;

			PackGem();
			PackGem();
			PackGold( 5000, 10000 );
			PackScroll( 3, 8 );
			PackScroll( 3, 8 );
			PackMagicItems( 1, 5, 0.80, 0.75 );
			PackMagicItems( 3, 5, 0.60, 0.45 );
			PackSlayer( 1 );

			AddItem( new BlackStaff() );
			Item m_ShortPants = new ShortPants( Utility.RandomRedHue() );
			m_ShortPants.LootType = LootType.Blessed;
			AddItem( m_ShortPants );
			Item m_Doublet = new Doublet( Utility.RandomRedHue() );
			m_Doublet.LootType = LootType.Blessed;
			AddItem( m_Doublet );
			Item m_sandals = new Sandals( Utility.RandomRedHue() );
			m_sandals.LootType = LootType.Blessed;
			AddItem( m_sandals );

			AddItem( new PonyTail( Utility.RandomRedHue() ) );
		}
예제 #3
0
		public VampireCount() : base( AIType.AI_SphereMelee, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "Vampire Count";
			Body = 0x0190;
			Hue = 0x497;

			SetStr( 50 );
			SetDex( 50 );
			SetInt( 50 );

			SetHits( 50 );
			SetStam( 50 );

			SetDamage( 10, 20 );

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

			Fame = 0;

			VirtualArmor = 10;

			//Here we add his loot. 
			//PackGold(1000, 1500);
			//PackItem(new VampireHeart());
			//PackItem(new VampireBone(10));

            HairItemID = 8252;
            HairHue = Utility.RandomHairHue();

			PlateGloves glo = new PlateGloves();
			glo.Hue = 0x1;
			PackItem( glo );
			Item temp = new Doublet( 0x1 );
			temp.Movable = false;
			AddItem( temp );
			temp = new ThighBoots( 0x1 );
			temp.Movable = false;
			AddItem( temp );
			temp = new FancyShirt( 0x0496 );
			temp.Movable = false;
			AddItem( temp );
			temp = new ShortPants( 0x1 );
			temp.Movable = false;
			AddItem( temp );
			temp = null;

            Spellbook book = new Spellbook();
            book.Content = ulong.MaxValue;
            book.LootType = LootType.Regular;
            AddItem(book);
		}
예제 #4
0
        public LordSanta()
        {
            Name = "Lord Santa";
                        Title = "the Ruler of the green dudes";
            Body = 0x190;
            CantWalk = true;
            Hue = Utility.RandomSkinHue();

            Item Boots = new Boots();
            Boots.Hue = 33;
              	    Boots.Name = "Santa Boots";
            Boots.Movable = false;
            AddItem( Boots );

            Item Doublet = new Doublet();
            Doublet.Hue = 33;
              	    Doublet.Name = "Santa's Doublet";
            Doublet.Movable = false;
            AddItem( Doublet );

            Item FancyShirt = new FancyShirt();
            FancyShirt.Hue = 33;
              	    FancyShirt.Name = "Santa's Shirt";
            FancyShirt.Movable = false;
            AddItem( FancyShirt );

            Item LongPants = new LongPants();
            LongPants.Hue = 33;
              	    LongPants.Name = "Santa's Pants";
            LongPants.Movable = false;
            AddItem( LongPants );

            Item WizardsHat = new WizardsHat();
            WizardsHat.Hue = 33;
              	    WizardsHat.Name = "Santa's Hat";
            WizardsHat.Movable = false;
            AddItem( WizardsHat );

                        int hairHue = 1153;

            switch ( Utility.Random( 1 ) )
            {
                case 0: AddItem( new LongHair( hairHue ) ); break;
                case 1: AddItem( new LongBeard( hairHue ) ); break;
            }

            Blessed = true;
        }
예제 #5
0
        public Peraniese()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4)
        {
            Name = "Peraniese";
            Title = "a Scholar extrodinair";
            Body = 400;
            CantWalk = true;
            Hue = 33770;
            CantWalk = true;

            int hairHue = 0;
            Blessed = true;

            switch (Utility.Random(1))
            {
                case 0: AddItem(new LongHair(hairHue)); break;
            }
            switch (Utility.Random(1))
            {
                case 0: AddItem(new Vandyke(hairHue)); break;
            }

            AddItem(new Server.Items.FurCape(1150));
            AddItem(new Server.Items.Sandals(1530));
            AddItem(new Server.Items.FurSarong(1530));

            Doublet doublet = new Doublet();
            doublet.Hue = 1530;
            doublet.Movable = false;
            AddItem(doublet);

            GoldNecklace goldnecklace = new GoldNecklace();
            goldnecklace.Hue = 0;
            goldnecklace.Movable = false;
            AddItem(goldnecklace);

            GoldRing goldring = new GoldRing();
            goldring.Hue = 0;
            goldring.Movable = false;
            AddItem(goldring);

            Backpack backpack = new Backpack();
            backpack.Hue = 1530;
            backpack.Movable = false;
            AddItem(backpack);

        }
예제 #6
0
		public override void InitOutfit()
		{
			base.InitOutfit();

			Item doublet = new Doublet();
			doublet.Hue = 24;
			AddItem( doublet );

			Item leatherskirt = new LeatherSkirt();
			leatherskirt.Hue = 24;
			AddItem( leatherskirt );

			Item booty = new FurBoots();
			booty.Hue = 24;
			AddItem( booty );

			AddItem( Utility.RandomBool() ? (Item)new Lantern() : (Item)new Candle() );
		}
예제 #7
0
		public AEvilElf() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 )
		{
			Name = "An Evil Elf";
			Body = 400;
			BaseSoundID = 357;

			SetStr( 80, 110 );
			SetDex( 80, 90 );
			SetInt( 80, 90 );

			SetHits( 200 );

			SetDamage( 5, 20 );

			SetDamageType( ResistanceType.Physical, 50 );
			SetDamageType( ResistanceType.Fire, 25 );
			SetDamageType( ResistanceType.Energy, 25 );

			SetResistance( ResistanceType.Physical, 40, 40 );
			SetResistance( ResistanceType.Fire, 40 );
			SetResistance( ResistanceType.Cold, 40, 40 );
			SetResistance( ResistanceType.Poison, 34 );
			SetResistance( ResistanceType.Energy, 40, 40 );

			SetSkill( SkillName.Anatomy, 90 );
			SetSkill( SkillName.EvalInt, 50.1, 70.0 );
			SetSkill( SkillName.Magery, 50.5, 70.0 );
			SetSkill( SkillName.Meditation, 60 );
			SetSkill( SkillName.MagicResist, 40.5, 50.0 );
			SetSkill( SkillName.Tactics, 60.1, 60.0 );
			SetSkill( SkillName.Wrestling, 60.1, 60.0 );

			Fame = 24000;
			Karma = -24000;

			Kills = 10;

			Hue = 0;

			VirtualArmor = 12;

			Item Boots = new Boots();
			Boots.Hue = 1369;
      	    Boots.Name = "Elf Boots";
			Boots.Movable = false;
			AddItem( Boots ); 

			Item Doublet = new Doublet();
			Doublet.Hue = 1369;
      	    Doublet.Name = "Elf's Doublet";
			Doublet.Movable = false;
			AddItem( Doublet ); 

			Item FancyShirt = new FancyShirt();
			FancyShirt.Hue = 1369;
      	    FancyShirt.Name = "Elf's Shirt";
			FancyShirt.Movable = false;
			AddItem( FancyShirt ); 

			Item LongPants = new LongPants();
			LongPants.Hue = 1369;
      	    LongPants.Name = "Elf's Pants";
			LongPants.Movable = false;
			AddItem( LongPants ); 


 			PackItem( new YellowSnow() );


		}
예제 #8
0
        public UndeadArcherPirate()
            : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.175, 0.2)
        {
            Title = "the unrested pirate";
            Body = Utility.RandomList(400, 50, 3);
            Team = 1;
            Kills = 10;
            Hue = 0;
            SpeechHue=1153;
            this.Body = 0x190;
            this.Name = NameList.RandomName( "male" );
            SetStr( 60, 85 );
            SetDex( 50, 70 );
            SetInt( 10, 20 );
            SetDamage( 5, 7 );

            SetSkill( SkillName.Archery, 35.0, 50.0 );
            SetSkill( SkillName.MagicResist, 23.0, 27.5 );
            SetSkill( SkillName.Tactics, 40.0, 45.5 );
            SetSkill( SkillName.Healing, 30.2, 35.9 );
            SetSkill( SkillName.Anatomy, 45.2, 50.9 );
            SetSkill( SkillName.Swords, 50.0, 60.0);
            SetSkill(SkillName.Stealth, 120.0, 180.0);
            SetSkill(SkillName.Hiding, 120.0, 180.0);

            Fame = 2500;
            Karma = -2500;

            VirtualArmor = 0;

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

            Item beard = new Item( Utility.RandomList( 0x2040, 0x203E , 0x204C, 0x204B, 0x203F ) );
            beard.Hue = hair.Hue;
            beard.Layer = Layer.FacialHair;
            beard.Movable = false;
            AddItem( beard );

            PackGold( 70, 95 );
            PackItem( new Bandage( 10 ) );

                Item crossbow = new Crossbow();
                EquipItem( crossbow );

            switch ( Utility.Random( 3 ) )
            {
                case 0:
                {
                Item fancyshirt = new FancyShirt();
                fancyshirt.Hue = Utility.RandomNeutralHue();
                EquipItem( fancyshirt );
                break;
                }
                case 1:
                {
                Item doublet = new Doublet();
                doublet.Hue = Utility.RandomNeutralHue();
                EquipItem( doublet );
                break;
                }
                case 2:
                {
                break;
                }
            }

            switch ( Utility.Random( 2 ) )
            {
                case 0:
                {
                Item longpants = new LongPants();
                longpants.Hue = Utility.RandomNeutralHue();
                EquipItem( longpants );
                break;
                }
                case 1:
                {
                Item shortpants = new ShortPants();
                shortpants.Hue = Utility.RandomNeutralHue();
                EquipItem( shortpants );
                break;
                }
            }

                    switch ( Utility.Random( 4 ) )
            {
               			case 0:
                {
                Item boots = new Boots();
                boots.Hue = 0;
                EquipItem( boots );
                break;
                }
                case 1:
                {
                Item shoes = new Shoes();
                shoes.Hue = 1713;
                EquipItem( shoes );
                break;
                }
                case 3:
                {
                Item thighboots = new ThighBoots();
                thighboots.Hue = 0;
                EquipItem( thighboots );
                break;
                }
                case 4:
                {
                break;
                }
                 }

                    switch ( Utility.Random( 3 ) )
                 {
               			case 0:
                {
                Item Bandana = new Bandana();
                Bandana.Hue = Utility.RandomBirdHue();
                EquipItem( Bandana );
                break;
                }
                case 1:
                {
                Item skullcap = new SkullCap();
                skullcap.Hue = Utility.RandomBirdHue();
                EquipItem( skullcap );
                break;
                }
                case 3:
                {
                break;
                }
                 }
        }
예제 #9
0
		public DummySuper() : base(AIType.AI_Mage, FightMode.Closest, 15, 1, 0.2, 0.6)
		{
			// A Dummy Super Mage
			int iHue = 20 + Team * 40;
			int jHue = 25 + Team * 40;

			// Skills and Stats
			this.InitStats( 125, 125, 125 );
			this.Skills[SkillName.Magery].Base = 120;
			this.Skills[SkillName.EvalInt].Base = 120;
			this.Skills[SkillName.Anatomy].Base = 120;
			this.Skills[SkillName.Wrestling].Base = 120;
			this.Skills[SkillName.Meditation].Base = 120;
			this.Skills[SkillName.Poisoning].Base = 100;
			this.Skills[SkillName.Inscribe].Base = 100;

			// Name
			this.Name = "Super Mage";

			// Equip
			Spellbook book = new Spellbook();
			book.Movable = false;
			book.LootType = LootType.Newbied;
			book.Content =0xFFFFFFFFFFFFFFFF;
			AddItem( book );

			LeatherArms lea = new LeatherArms();
			lea.Movable = false;
			lea.LootType = LootType.Newbied;
			lea.Crafter = this;
			lea.Quality = ArmorQuality.Regular;
			AddItem( lea );

			LeatherChest lec = new LeatherChest();
			lec.Movable = false;
			lec.LootType = LootType.Newbied;
			lec.Crafter = this;
			lec.Quality = ArmorQuality.Regular;
			AddItem( lec );

			LeatherGorget leg = new LeatherGorget();
			leg.Movable = false;
			leg.LootType = LootType.Newbied;
			leg.Crafter = this;
			leg.Quality = ArmorQuality.Regular;
			AddItem( leg );

			LeatherLegs lel = new LeatherLegs();
			lel.Movable = false;
			lel.LootType = LootType.Newbied;
			lel.Crafter = this;
			lel.Quality = ArmorQuality.Regular;
			AddItem( lel );

			Sandals snd = new Sandals();
			snd.Hue = iHue;
			snd.LootType = LootType.Newbied;
			AddItem( snd );

			JesterHat jhat = new JesterHat();
			jhat.Hue = iHue;
			AddItem( jhat );

			Doublet dblt = new Doublet();
			dblt.Hue = iHue;
			AddItem( dblt );

			// Spells
			AddSpellAttack( typeof(Spells.First.MagicArrowSpell) );
			AddSpellAttack( typeof(Spells.First.WeakenSpell) );
			AddSpellAttack( typeof(Spells.Third.FireballSpell) );
			AddSpellDefense( typeof(Spells.Third.WallOfStoneSpell) );
			AddSpellDefense( typeof(Spells.First.HealSpell) );
		}
예제 #10
0
		public AmazonHealer() : base( AIType.AI_Healer, FightMode.Weakest, 10, 1, 0.175, 0.3)
		{

			Name = "a Amazon Healer";
			Title= ", Defiance Amazon Clan";
			Hue= 33788;
			Body = 401;
			SpeechHue= 2305;
			BaseSoundID = 0;
			Team = 0;
                        new Horse().Rider = this;

			SetStr( 185, 215);
			SetDex( 130, 140);
			SetInt( 300, 320);

			SetHits(185, 300);

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

                        Fame=15000;
			Karma=-15000;

			VirtualArmor= 75;

			Item Spellbook = new Spellbook();
			Spellbook.Movable=false;
			Spellbook.Hue=1157;
		        Spellbook.Name="Amazon Healing Guide";
                        EquipItem( Spellbook );

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

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

			Item Doublet = new Doublet();
			Doublet.Movable=false;
			Doublet.Hue=1150;
			Doublet.Name="Amazon Clothing";
			EquipItem( Doublet );

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

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

			Item Boots = new Boots();
			Boots.Movable=false;
			Boots.Hue=1175;
			EquipItem( Boots );

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

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

			PackGold( 250, 800);
			PackMagicItems( 0, 7);
			PackMagicItems( 0, 7);
			PackMagicItems( 0, 7);
			PackMagicItems( 0, 7);

                                switch ( Utility.Random( 15 ))
        		 {
           			case 0: PackItem( new HoodedShroudOfShadows() ); break;
        		 }
		}
예제 #11
0
        public UndeadSwordPirateSTR()
            : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.175, 0.2)
        {
            Title = "the unrested pirate";
            Body = 400;
            Team = 1;
            Kills = 10;
            Hue = Utility.RandomSkinHue();
            SpeechHue=1153;
            this.Body = 0x190;
            this.Name = NameList.RandomName( "male" );
                    SetStr( 90, 100 );
            SetDex( 85, 100 );
            SetInt( 10, 20 );

            SetSkill( SkillName.Archery, 95.0, 100.0 );
            SetSkill( SkillName.MagicResist, 75.0, 100.0 );
            SetSkill( SkillName.Tactics, 90.0, 100.0 );
            SetSkill( SkillName.Healing, 75.0, 100.0 );
            SetSkill( SkillName.Anatomy, 90.0, 100.0 );
            SetSkill(SkillName.Swords, 95.0, 100.0);
            SetSkill(SkillName.Stealth, 120.0, 180.0);
            SetSkill(SkillName.Hiding, 120.0, 180.0);

            Fame = 4500;
            Karma = -4500;

            VirtualArmor = 0;

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

            Item beard = new Item( Utility.RandomList( 0x2040, 0x203E , 0x204C, 0x204B, 0x203F ) );
            beard.Hue = hair.Hue;
            beard.Layer = Layer.FacialHair;
            beard.Movable = false;
            AddItem( beard );

            AddItem( hair );
            PackGold( 70, 95 );
            PackItem( new Bandage( 20 ) );

            switch ( Utility.Random( 2 ) )
            {
                case 0:
                {
                Item scimitar = new Scimitar();
                EquipItem( scimitar );
                break;
                }
                case 1:
                {
                Item cutlass = new Cutlass();
                EquipItem( cutlass );
                break;
                }
            }

            switch ( Utility.Random( 3 ) )
            {
                case 0:
                {
                Item fancyshirt = new FancyShirt();
                fancyshirt.Hue = Utility.RandomNeutralHue();
                EquipItem( fancyshirt );
                break;
                }
                case 1:
                {
                Item doublet = new Doublet();
                doublet.Hue = Utility.RandomNeutralHue();
                EquipItem( doublet );
                break;
                }
                case 2:
                {
                break;
                }
            }

            switch ( Utility.Random( 2 ) )
            {
                case 0:
                {
                Item longpants = new LongPants();
                longpants.Hue = Utility.RandomNeutralHue();
                EquipItem( longpants );
                break;
                }
                case 1:
                {
                Item shortpants = new ShortPants();
                shortpants.Hue = Utility.RandomNeutralHue();
                EquipItem( shortpants );
                break;
                }
            }

                    switch ( Utility.Random( 4 ) )
            {
               			case 0:
                {
                Item boots = new Boots();
                boots.Hue = 0;
                EquipItem( boots );
                break;
                }
                case 1:
                {
                Item shoes = new Shoes();
                shoes.Hue = 1713;
                EquipItem( shoes );
                break;
                }
                case 3:
                {
                Item thighboots = new ThighBoots();
                thighboots.Hue = 0;
                EquipItem( thighboots );
                break;
                }
                case 4:
                {
                break;
                }
                 }

                    switch ( Utility.Random( 3 ) )
                 {
               			case 0:
                {
                Item Bandana = new Bandana();
                Bandana.Hue = Utility.RandomBirdHue();
                EquipItem( Bandana );
                break;
                }
                case 1:
                {
                Item skullcap = new SkullCap();
                skullcap.Hue = Utility.RandomBirdHue();
                EquipItem( skullcap );
                break;
                }
                case 3:
                {
                break;
                }
                 }
        }
예제 #12
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;
		}
예제 #13
0
파일: Commoner5.cs 프로젝트: Telm/RunUO_EME
        public Commoner5()
            : base(AIType.AI_Melee, FightMode.None, 10, 1, 0.8, 3.0)
        {
            SetStr( 10, 30 );
            SetDex( 10, 30 );
            SetInt( 10, 30 );

            Fame = 50;
            Karma = 50;

            SetSkill( SkillName.Fishing, 60.0, 70.0 );
            SetSkill( SkillName.Cooking, 60.0, 70.0 );

            SpeechHue = Utility.RandomDyedHue();
            Title = string.Empty;//Commoner5.Titles[Utility.Random( 0, Titles.Length )];
            Hue = Utility.RandomSkinHue();
            if ( this.Female = Utility.RandomBool() )
            {
                this.Body = 0x191;
                this.Name = NameList.RandomName( "female" );
                Item hair = new Item( Utility.RandomList( 0x203B, 0x203C, 0x203D, 0x2045, 0x204A, 0x2046 , 0x2049 ) );
                hair.Hue = Utility.RandomHairHue();
                hair.Layer = Layer.Hair;
                hair.Movable = false;
                AddItem( hair );
                Item hat = null;
                switch ( Utility.Random( 5 ) )//4 hats, one empty, for no hat
                {
                    case 0: hat = new FloppyHat( Utility.RandomNeutralHue() );		break;
                    case 1: hat = new FeatheredHat( Utility.RandomNeutralHue() );	break;
                    case 2: hat = new Bonnet();			break;
                    case 3: hat = new Cap( Utility.RandomNeutralHue() );			break;
                }
                AddItem( hat );
                Item pants = null;
                switch ( Utility.Random( 3 ) )
                {
                    case 0: pants = new ShortPants( GetRandomHue() );	break;
                    case 1: pants = new LongPants( GetRandomHue() );	break;
                    case 2: pants = new Skirt( GetRandomHue() );		break;
                }
                AddItem( pants );
                Item shirt = null;
                switch ( Utility.Random( 7 ) )
                {
                    case 0: shirt = new Doublet( GetRandomHue() );		break;
                    case 1: shirt = new Surcoat( GetRandomHue() );		break;
                    case 2: shirt = new Tunic( GetRandomHue() );		break;
                    case 3: shirt = new FancyDress( GetRandomHue() );	break;
                    case 4: shirt = new PlainDress( GetRandomHue() );	break;
                    case 5: shirt = new FancyShirt( GetRandomHue() );	break;
                    case 6: shirt = new Shirt( GetRandomHue() );		break;
                }
                AddItem( shirt );
            }
            else
            {
                this.Body = 0x190;
                this.Name = NameList.RandomName( "male" );
                Item hair = new Item( Utility.RandomList( 0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2048 ) );
                hair.Hue = Utility.RandomHairHue();
                hair.Layer = Layer.Hair;
                hair.Movable = false;
                AddItem( hair );
                Item beard = new Item( Utility.RandomList( 0x0000, 0x203E, 0x203F, 0x2040, 0x2041, 0x2067, 0x2068, 0x2069 ) );
                beard.Hue = hair.Hue;
                beard.Layer = Layer.FacialHair;
                beard.Movable = false;
                AddItem( beard );
                Item hat = null;
                switch ( Utility.Random( 7 ) ) //6 hats, one empty, for no hat
                {
                    case 0: hat = new SkullCap( GetRandomHue() );					break;
                    case 1: hat = new Bandana( GetRandomHue() );					break;
                    case 2: hat = new WideBrimHat();								break;
                    case 3: hat = new TallStrawHat( Utility.RandomNeutralHue() );	break;
                    case 4: hat = new StrawHat( Utility.RandomNeutralHue() );		break;
                    case 5: hat = new TricorneHat( Utility.RandomNeutralHue() );	break;
                }
                AddItem( hat );
                Item pants = null;
                switch ( Utility.Random( 2 ) )
                {
                    case 0: pants = new ShortPants( GetRandomHue() );	break;
                    case 1: pants = new LongPants( GetRandomHue() );	break;
                }
                AddItem( pants );
                Item shirt = null;
                switch ( Utility.Random( 5 ) )
                {
                    case 0: shirt = new Doublet( GetRandomHue() );		break;
                    case 1: shirt = new Surcoat( GetRandomHue() );		break;
                    case 2: shirt = new Tunic( GetRandomHue() );		break;
                    case 3: shirt = new FancyShirt( GetRandomHue() );	break;
                    case 4: shirt = new Shirt( GetRandomHue() );		break;
                }
                AddItem( shirt );
            }

            Item feet = null;
            switch ( Utility.Random( 3 ) )
            {
                case 0: feet = new Boots( Utility.RandomNeutralHue() );	break;
                case 1: feet = new Shoes( Utility.RandomNeutralHue() );	break;
                case 2: feet = new Sandals( Utility.RandomNeutralHue() );		break;
            }
            AddItem( feet );
            Container pack = new Backpack();

            pack.DropItem( new Gold( 0, 50 ) );

            pack.Movable = false;

            AddItem( pack );
        }
예제 #14
0
        public static Item GetRandomShirt()
        {
            Item shirt = null;

            switch ( Utility.Random( 5 ) )
            {
                case 0:
                    shirt = new Doublet( GetRandomHue() );
                    break;
                case 1:
                    shirt = new Surcoat( GetRandomHue() );
                    break;
                case 2:
                    shirt = new Tunic( GetRandomHue() );
                    break;
                case 3:
                    shirt = new FancyShirt( GetRandomHue() );
                    break;
                case 4:
                    shirt = new Shirt( GetRandomHue() );
                    break;
            }

            return shirt;
        }
        public FamousPiratesSuper()
            : base(AIType.AI_Mage, FightMode.Closest, 15, 1, 0.2, 0.6)
        {
            // A FamousPirates Super Mage
            int Hue = 2075;

            // Skills and Stats
            this.InitStats(250, 250, 250);
            this.Skills[SkillName.Magery].Base = 150;
            this.Skills[SkillName.EvalInt].Base = 150;
            this.Skills[SkillName.Anatomy].Base = 150;
            this.Skills[SkillName.Wrestling].Base = 150;
            this.Skills[SkillName.Meditation].Base = 150;
            this.Skills[SkillName.Poisoning].Base = 100;
            this.Skills[SkillName.Inscribe].Base = 100;

            // Name
            this.Name = "Captain Jack Sparrow";

            // Equip
            Spellbook book = FullSpellbook();
            AddItem(book);

            LeatherArms lea = new LeatherArms();
            lea.Movable = false;
            lea.LootType = LootType.Regular;
            lea.Crafter = this;
            lea.Quality = ArmorQuality.Exceptional;
            AddItem(lea);

            LeatherChest lec = new LeatherChest();
            lec.Movable = false;
            lec.LootType = LootType.Regular;
            lec.Crafter = this;
            lec.Quality = ArmorQuality.Exceptional;
            AddItem(lec);

            LeatherGorget leg = new LeatherGorget();
            leg.Movable = false;
            leg.LootType = LootType.Regular;
            leg.Crafter = this;
            leg.Quality = ArmorQuality.Exceptional;
            AddItem(leg);

            LeatherLegs lel = new LeatherLegs();
            lel.Movable = false;
            lel.LootType = LootType.Regular;
            lel.Crafter = this;
            lel.Quality = ArmorQuality.Exceptional;
            AddItem(lel);

            Boots snd = new Boots();
			snd.Movable = false;
            snd.Hue = Hue;
            snd.LootType = LootType.Regular;
            AddItem(snd);

            JesterHat jhat = new JesterHat();
			jhat.Movable = false;
            jhat.Hue = Hue;
            AddItem(jhat);

            Doublet dblt = new Doublet();
			dblt.Movable = false;
            dblt.Hue = Hue;
            AddItem(dblt);

            // Spells
            AddSpellAttack(typeof(Spells.First.MagicArrowSpell));
            AddSpellAttack(typeof(Spells.First.WeakenSpell));
            AddSpellAttack(typeof(Spells.Sixth.ExplosionSpell));
            AddSpellDefense(typeof(Spells.Third.WallOfStoneSpell));
            AddSpellDefense(typeof(Spells.Fourth.GreaterHealSpell));
        }
예제 #16
0
        public WarriorGuard(Mobile target) : base(target)
        {
            InitStats(1000, 1000, 1000);

            SpeechHue = 0;

            Hue = Utility.RandomSkinHue();

            #region Armor
            for (int i = 0; i < m_GuardArmor.Length; ++i)
            {
                m_GuardArmor[i].Resource = GuardTheme;
                AddItem(m_GuardArmor[i]);
                m_GuardArmor[i].Movable = false;
            }
            #endregion

            #region Cloth
            BaseClothing bC = null;

            switch (Utility.Random(3))
            {
                case 0:
                    bC = new Doublet();
                    break;
                case 1:
                    bC = new Tunic();
                    break;
                case 2:
                    bC = new BodySash();
                    bC.Layer = Layer.Earrings;
                    break;
            }

            if (bC != null)
            {
                bC.Resource = GuardTheme;
                AddItem(bC);
                bC.Movable = false;
            }
            #endregion

            #region Male/Female
            if (Female = Utility.RandomBool())
            {
                Body = 0x191;
                if (string.IsNullOrEmpty(Name))
                {
                    Name = NameList.RandomName("female");
                    Title = "the guard";
                }

                FemalePlateChest ar = new FemalePlateChest();
                ar.Resource = GuardTheme;
                AddItem(ar);
                ar.Movable = false;
            }
            else
            {
                Body = 0x190;
                if (string.IsNullOrEmpty(Name))
                {
                    Name = NameList.RandomName("male");
                    Title = "the guard";
                }

                PlateChest ar = new PlateChest();
                ar.Resource = GuardTheme;
                AddItem(ar);
                ar.Movable = false;
            }
            #endregion

            Utility.AssignRandomHair(this);

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

            #region Weapon
            BaseWeapon weapon;

            switch(Utility.Random(2))
            {
                case 1: weapon = new Halberd(); break;
                case 2:
                    weapon = new Longsword();
                    BaseShield shield = new OrderShield();
                    shield.Resource = GuardTheme;
                    AddItem(shield);
                    shield.Movable = false;
                    break;
                default:
                    weapon = new Halberd(); break;
            }

            weapon.Crafter = this;
            weapon.Resource = GuardTheme;
            weapon.Quality = WeaponQuality.Exceptional;
            weapon.Speed = 300;
            weapon.MinDamage = 10000;
            weapon.MaxDamage = 10000;
            AddItem(weapon);
            weapon.Movable = false;
            #endregion

            Container pack = new Backpack();
            pack.Movable = false;
            pack.DropItem(new Gold(10, 25));
            AddItem(pack);

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

            //if (Utility.RandomDouble() <= 0.1)
            //    new Horse().Rider = this;

            NextCombatTime = DateTime.Now + TimeSpan.FromSeconds(1.10);
            Focus = target;
        }
예제 #17
0
		private void CreateClassic()
		{
			m_MoveSound = 1055;
			m_CaptureSound = 1068;
			m_DeathSound = 0;
			m_CheckSound = 1086;
			m_CheckMateSound = 1088;

			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 = 0x203B; //Short Hair
			m_Piece.HairHue = m_BChessboard.OverrideMinorHue ? Hue : m_BChessboard.HairHue;

			Item item = null;

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

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

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

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

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

			item = new Scepter();
			item.Hue = MinorHue;
			m_Piece.AddItem( item );
		}
예제 #18
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.AddItem( new PonyTail( m_BChessboard.OverrideMinorHue ? Hue : m_BChessboard.HairHue ) );

            Item item = null;

            if ( m_Color == ChessColor.White )
            {
                item = new OrderShield();
                m_Piece.AddItem( item );
            }
            else
            {
                item = new ChaosShield();
                m_Piece.AddItem( item );
            }

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

            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 Lance();
            m_Piece.AddItem( item );

            Server.Mobiles.Horse horse = new Server.Mobiles.Horse();
            if ( m_Color == ChessColor.White )
            {
                horse.BodyValue = 226;
                horse.Hue = 1150;
            }
            else
            {
                horse.BodyValue = 179;
                horse.ItemID = 16055;
                horse.Hue = 1109;
            }

            horse.Rider = m_Piece;

            m_Piece.Direction = Facing;
        }