상속: BaseMount
예제 #1
0
        public LordVeteranArcher()
            : base(AIType.AI_Archer, FightMode.Closest, 12, 1, 0.2, 0.4)
        {
            Name = "Lord Veteran Archer";
            Body = 0x190;
            BaseSoundID = 0x0;

            SetStr(300, 350);
            SetDex(170, 200);
            SetInt(80, 95);

            SetHits(450, 500);

            SetDamage(35, 40);

            SetDamageType(ResistanceType.Physical, 100);
            //SetDamageType( ResistanceType.Fire, 25 );
            //SetDamageType( ResistanceType.Cold, 25 );
            //SetDamageType( ResistanceType.Energy, 25 );

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

            SetSkill(SkillName.MagicResist, 60.0, 100.0);
            SetSkill(SkillName.Tactics, 90.0, 100.0);
            SetSkill(SkillName.Archery, 80.0, 100.0);
            SetSkill(SkillName.Wrestling, 80.0, 100.0);

            Fame = 4500;
            Karma = -4500;

            VirtualArmor = 40;

            AddItem(new PlateArmsCopper());
            AddItem(new PlateChestCopper());
            AddItem(new PlateCloseHelmCopper());
            AddItem(new PlateGlovesCopper());
            AddItem(new PlateGorgetCopper());
            AddItem(new PlateLegsCopper());

            EquipItem(new BowCopper() { LootType = LootType.Blessed });

            EquipItem(new HalfApron(37));
            EquipItem(new BodySash(37));
            EquipItem(new Cloak(37));

            Mobile mount = new Horse();
            mount.Hue = Utility.RandomRedHue();

            ((IMount)mount).Rider = this;
        }
예제 #2
0
		public override void OnDoubleClick( Mobile from )
		{
			if ( IsChildOf( from.Backpack ) )
			{
				BaseCreature pet = new Horse();

				pet.SetControlMaster( from );
				pet.Direction = Direction.Down;

				pet.MoveToWorld( from.Location, from.Map );

				pet.ControlTarget = from;
				pet.ControlOrder = OrderType.Follow;

				pet.Animate( 5, 7, 1, true, false, 0 );
				//pet.PlaySound( pet.GetAttackSound() );

				Consume();
			}
			else
				from.SendLocalizedMessage( 1042010 );
		}
예제 #3
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;
        }
예제 #4
0
        public SpawnHelperMage() : base(AIType.AI_Mage, FightMode.Closest, 25, 1, 0.4, 0.3)
        {
            Title = "[BEC-Mage]";
            if (Female = Utility.RandomBool())
            {
                Body = 401;
                Name = NameList.RandomName("female");
            }
            else
            {
                Body = 400;
                Name = NameList.RandomName("male");
            }
//			Name.Hue = 2002;
//			Title.Hue = 2002;


            SetStr(100, 150);
            SetDex(100, 150);
            SetInt(250, 500);
            ActiveSpeed  = 0.2;
            PassiveSpeed = 0;

            SetHits(200, 300);

//            SetDamage(12, 19);

            SetDamageType(ResistanceType.Physical, 120);

            SetResistance(ResistanceType.Physical, 65, 80);
            SetResistance(ResistanceType.Fire, 65, 80);
            SetResistance(ResistanceType.Cold, 65, 80);
            SetResistance(ResistanceType.Poison, 65, 80);
            SetResistance(ResistanceType.Energy, 65, 80);

            SetSkill(SkillName.Swords, 89.0, 120.0);
            SetSkill(SkillName.Tactics, 89.0, 120.0);
            SetSkill(SkillName.MagicResist, 89.0, 120.0);
            SetSkill(SkillName.Tactics, 89.0, 120.0);
            SetSkill(SkillName.Parry, 89.0, 120.0);
            SetSkill(SkillName.Anatomy, 85.0, 120.0);
            SetSkill(SkillName.Healing, 85.0, 120.0);
            SetSkill(SkillName.Magery, 99.0, 120.0);
            SetSkill(SkillName.EvalInt, 99.0, 120.0);
            SetSkill(SkillName.Poisoning, 85.0, 100.0);

            Fame  = 18000;
            Karma = 10000;

            VirtualArmor = 50;

            switch (Utility.Random(4))
            {
            case 0: BattleAxe weapona = new BattleAxe();
                weapona.Hue      = 2063;
                weapona.LootType = LootType.Newbied;
                weapona.Attributes.SpellChanneling    = 1;
                weapona.WeaponAttributes.HitLeechMana = 60;
                weapona.Movable = false;
                AddItem(weapona);
                break;

            case 1: Axe weaponb = new Axe();
                weaponb.Hue      = 2063;
                weaponb.LootType = LootType.Newbied;
                weaponb.Attributes.SpellChanneling    = 1;
                weaponb.WeaponAttributes.HitLeechMana = 60;
                weaponb.Movable = false;
                AddItem(weaponb);
                break;

            case 2: Bardiche weaponc = new Bardiche();
                weaponc.Hue      = 2063;
                weaponc.LootType = LootType.Newbied;
                weaponc.Attributes.SpellChanneling    = 1;
                weaponc.WeaponAttributes.HitLeechMana = 60;
                weaponc.Movable = false;
                AddItem(weaponc);
                break;

            case 3: Hatchet weapond = new Hatchet();
                weapond.Hue      = 2063;
                weapond.LootType = LootType.Newbied;
                weapond.Attributes.SpellChanneling    = 1;
                weapond.WeaponAttributes.HitLeechMana = 60;
                weapond.Movable = false;
                AddItem(weapond);
                break;
            }



            Item Robe = new Robe( );

            Robe.Name    = "Britania Electric Co.";
            Robe.Movable = false;
            Robe.Hue     = 1109;
            AddItem(Robe);



            switch (Utility.Random(3))
            {
            case 0: AddItem(new LongPants(1050)); break;

            case 1: Item LegsOfBane = new LeggingsOfBane();
                LegsOfBane.Hue      = 1269;
                LegsOfBane.LootType = LootType.Newbied;
                LegsOfBane.Movable  = false;
                AddItem(LegsOfBane);
                break;

            case 2: break;
            }

            switch (Utility.Random(3))
            {
            case 0: AddItem(new Boots()); break;

            case 1: Item Sandals = new Sandals();
                Sandals.Hue      = 1195;
                Sandals.LootType = LootType.Blessed;
                Sandals.Movable  = false;
                AddItem(Sandals);
                break;

            case 2: break;
            }


            Item PlateHelm = new PlateHelm();

            PlateHelm.Hue      = 2063;
            PlateHelm.LootType = LootType.Newbied;
            PlateHelm.Movable  = false;
            AddItem(PlateHelm);


            switch (Utility.Random(3))
            {
            case 0: AddItem(new LeatherGloves()); break;

            case 1: break;

            case 2: break;
            }


            AddItem(new Shirt(743));



            Utility.AssignRandomHair(this);

            for (int i = 0; i < 10; i++)
            {
                PackItem(new GreaterCurePotion());
                PackItem(new GreaterHealPotion());
                PackItem(new TotalRefreshPotion());
            }

            PackItem(new Bandage(Utility.RandomMinMax(80, 200)));

            Horse ns = new Horse();

            ns.Controlled    = true;
            ns.Hue           = 2063;
            ns.ControlMaster = this;
            ns.ControlOrder  = OrderType.Stay;
            ns.Rider         = this;
        }
예제 #5
0
        public override void OnDoubleClick(Mobile from)
        {
            if (IsChildOf(from.BankBox))
            {
                if (from.AccessLevel == AccessLevel.Player && Owner != from)
                {
                    from.SendAsciiMessage("This is not your item, only the owner can claim this.");
                    return;
                }

                Backpack bp = new Backpack { Hue = 1170, Name = "Gift bag" };

                Bag pvmBag = new Bag {Hue = 1, Name = "Gift bag"};
                pvmBag.DropItem(new BladeSpiritsScroll{Amount = 200, Name = "Blade spirit (gift)"});
                pvmBag.DropItem(new EnergyVortexScroll{Amount = 100, Name = "Energy vortex (gift)"});
                pvmBag.DropItem(new ManaPotion{Amount = 100, Name = "Mana Potion (gift)"});
                pvmBag.DropItem(new Arrow{Amount = 10000, Name = "arrow (gift)"});
                pvmBag.DropItem(new Bloodmoss{Amount = 400, Name = "Blood Mooss (gift)"});
                pvmBag.DropItem(new MandrakeRoot { Amount = 400, Name = "Mandrake Root (gift)" });
                pvmBag.DropItem(new Ginseng{Amount = 400, Name = "Ginseng (gift)"});
                pvmBag.DropItem(new BlackPearl { Amount = 400, Name = "Black Pearl (gift)" });
                pvmBag.DropItem(new SpidersSilk { Amount = 400, Name = "Spiders' Silk (gift)" });
                pvmBag.DropItem(new SulfurousAsh { Amount = 400, Name = "Sulfurous Ash (gift)" });
                pvmBag.DropItem(new Nightshade { Amount = 400, Name = "Nightshade (gift)" });
                pvmBag.DropItem(new Garlic { Amount = 400, Name = "Garlic (gift)" });
                
                //Armor
                Bag armorBag = new Bag { Hue = 1218 };
                armorBag.DropItem(new HeaterShield { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "heater shield (gift)" });
                armorBag.DropItem(new PlateChest { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail chest (gift)" });
                armorBag.DropItem(new PlateLegs { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail legs (gift)" });
                armorBag.DropItem(new PlateArms { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail arms (gift)" });
                armorBag.DropItem(new PlateGloves { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gloves (gift)" });
                armorBag.DropItem(new PlateGorget { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "platemail gorget (gift)" });
                armorBag.DropItem(new PlateHelm { Resource = CraftResource.BloodRock, Quality = ArmorQuality.Exceptional, Name = "plate helm (gift)" });

                //Mount
                Horse horse = new Horse
                                  {
                                      ItemID = 16034,
                                      BodyValue = 120,
                                      Name = "Mustang",
                                      ControlMaster = from,
                                      Controlled = true,
                                      MinTameSkill = 100.0,
                                      Hue = Utility.Random(4, 900)
                                  };

                //Add to backpack
                bp.DropItem(new ShrinkItem(horse));
                bp.DropItem(new Robe { Hue = 1963, Name = "robe (gift)"});
                bp.DropItem(new BankCheck(125000) {Name = "(gift)"});
                bp.DropItem(pvmBag);
                bp.DropItem(armorBag);
                bp.DropItem(new ExceptionalWeaponCrystal());

                //Add to bank
                from.BankBox.DropItem(bp);

                Delete();
            }
            else
            {
                from.SendAsciiMessage("That must be in your bank box for you to use it.");
            }
        }
예제 #6
0
        public override void OnDoubleClick(Mobile from)
        {
            if (IsChildOf(from.Backpack))
            {
                //Mount
                Horse horse = new Horse
                {
                    ItemID = 16034,
                    BodyValue = 120,
                    Name = "Mustang",
                    ControlMaster = from,
                    Controlled = true,
                    MinTameSkill = 90.0,
                    Hue = 1
                };

                //Add to backpack
                from.Backpack.DropItem(new ShrinkItem(horse));

                Delete();
            }
            else
            {
                from.SendAsciiMessage("That must be in your backpack for you to use it.");
            }
        }
예제 #7
0
        private static void GenerateCSV(string filePath, string fileName)
        {
            string fullFilePath = filePath + fileName;

            if (!Directory.Exists(filePath))
                Directory.CreateDirectory(filePath);

            if (File.Exists(fullFilePath))
                File.Delete(fullFilePath);

            Path.Combine(filePath, fileName);

            Horse horse = new Horse();
            StreamWriter writer = new StreamWriter(fullFilePath);
            writer.Write("Type,");
            writer.Write("AIType,");
            writer.Write("Weapon,");
            writer.Write("VirtualArmor,");
            writer.Write("DamageMin,");
            writer.Write("DamageMax,");
            writer.Write("Fame,");
            writer.Write("Karma,");
            writer.Write("FightMode,");
            writer.Write("RangePerception,");
            writer.Write("RangeFight,");
            writer.Write("ActiveSpeed,");
            writer.Write("PassiveSpeed,");
            writer.Write("Str,");
            writer.Write("Dex,");
            writer.Write("Int,");
            writer.Write("HitsMax,");
            writer.Write("StamMax,");
            writer.Write("ManaMax,");
            for (int i=0; i<horse.Skills.Length; i++)
            {
                writer.Write("{0},", horse.Skills[i].Name);
            }
            horse.Delete();

            foreach (Type t in m_BaseCreatures)
            {
                try
                {
                    object creatureObj = Activator.CreateInstance(t);
                    BaseCreature bc = creatureObj as BaseCreature;

                    writer.WriteLine();
                    writer.Write("{0},", t.Name);
                    writer.Write("{0},", bc.AI);
                    writer.Write("{0},", bc.Weapon.GetType().BaseType == null ? bc.Weapon.GetType().Name : bc.Weapon.GetType().BaseType.Name);
                    writer.Write("{0},", bc.VirtualArmor);
                    writer.Write("{0},", bc.DamageMin);
                    writer.Write("{0},", bc.DamageMax);
                    writer.Write("{0},", bc.Fame);
                    writer.Write("{0},", bc.Karma);
                    writer.Write("{0},", bc.FightMode);
                    writer.Write("{0},", bc.RangePerception);
                    writer.Write("{0},", bc.RangeFight);
                    writer.Write("{0},", bc.ActiveSpeed);
                    writer.Write("{0},", bc.PassiveSpeed);
                    writer.Write("{0},", bc.Str);
                    writer.Write("{0},", bc.Dex);
                    writer.Write("{0},", bc.Int);
                    writer.Write("{0},", bc.HitsMax);
                    writer.Write("{0},", bc.StamMax);
                    writer.Write("{0},", bc.ManaMax);
                    for (int i = 0; i < bc.Skills.Length; i++)
                    {
                        writer.Write(bc.Skills[i].Value + ",");
                    }
                    bc.Delete();
                }
                catch {
                    //Console.WriteLine(e);
                }
            }
            writer.Close();
        }
예제 #8
0
        public UOACZFortCommander() : base()
        {
            Title = "the fort commander";

            SetStr(100);
            SetDex(50);
            SetInt(25);

            SetHits(15000);
            SetStam(5000);

            AttackSpeed = 30;

            SetDamage(30, 40);

            SetSkill(SkillName.Fencing, 100);
            SetSkill(SkillName.Swords, 100);
            SetSkill(SkillName.Macing, 100);

            SetSkill(SkillName.Tactics, 100);

            SetSkill(SkillName.Parry, 30);

            SetSkill(SkillName.MagicResist, 50);

            VirtualArmor = 200;

            Fame  = 2000;
            Karma = 3000;

            Utility.AssignRandomHair(this, Utility.RandomHairHue());

            AddItem(new PlateChest()
            {
                Movable = false, Hue = PrimaryHue
            });
            AddItem(new PlateLegs()
            {
                Movable = false, Hue = PrimaryHue
            });
            AddItem(new PlateArms()
            {
                Movable = false, Hue = PrimaryHue
            });
            AddItem(new PlateGorget()
            {
                Movable = false, Hue = PrimaryHue
            });
            AddItem(new PlateGloves()
            {
                Movable = false, Hue = PrimaryHue
            });

            AddItem(new Cloak()
            {
                Movable = false, Hue = 2117
            });
            AddItem(new BodySash()
            {
                Movable = false, Hue = 2117
            });

            AddItem(new Lance()
            {
                Movable = false, Hue = PrimaryHue, Speed = 40, Name = "Fort Commander's Lance"
            });
            AddItem(new DupresShield()
            {
                Movable = false, Hue = PrimaryHue, Name = "Fort Commander's Shield"
            });

            Horse mount = new Horse();

            mount.Hue   = 2405;
            mount.Rider = this;

            HairItemID = 8252;
            HairHue    = 2118;
        }
예제 #9
0
public FriendlyPlayer() : base( AIType.AI_Melee, FightMode.Closest, 25, 1, 0.4, 0.3 ) 
		{ 
	
			SpeechHue = Utility.RandomDyedHue();

                 switch (Utility.Random(6))
                 {
                         case 0: Title = "[BEC]"; break;
                         case 1: Title = "[COOL]"; break;
                         case 2: Title = "[FUN]"; break;
                         case 3: Title = "[PYR]"; break;
                         case 4: Title = "[FRN]"; break;
                         case 5: Title = "[CRA]"; break;

                 } 
 
       	    SetStr(100, 200);
            SetDex(100, 200);
            SetInt(125, 200);
			ActiveSpeed = 0.2;
			PassiveSpeed = 0;

            SetHits(100, 400);

            SetDamage(10, 19);

            SetDamageType(ResistanceType.Physical, 120);

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

            SetSkill(SkillName.Swords, 79.0, 110.0);
            SetSkill(SkillName.Tactics, 79.0, 110.0);
            SetSkill(SkillName.MagicResist, 79.0, 110.0);
            SetSkill(SkillName.Tactics, 79.0, 110.0);
            SetSkill(SkillName.Parry, 79.0, 110.0);
            SetSkill(SkillName.Anatomy, 70.0, 110.0);
            SetSkill(SkillName.Healing, 70.0, 110.0);

            Fame = 1000;
            Karma = 10000;

            VirtualArmor = 50;

                           	 switch (Utility.Random(4))
                           	 {
                           	 	case 0: AddItem( new Longsword() ); break;
                           	 	case 1: AddItem( new Axe() ); break;
                           	 	case 2: AddItem( new Bardiche() ); break;
                           	 	case 3: AddItem( new Hatchet() ); break;
                            	} 


                           	 switch (Utility.Random(5))
                           	 {
                           	 	case 0: Item cloak = new Cloak();
						cloak.Movable = false;
						cloak.Hue = GetRandomHue();
						AddItem( cloak );
						break;
                           	 	case 1: Item shroud = new HoodedShroudOfShadows();
						shroud.Movable = false;
						shroud.Hue = GetRandomHue();
						AddItem( shroud );
						break;
                           	 	case 2: break;
                           	 	case 3: Item monkrobe = new MonkRobe();
						monkrobe.Movable = false;
						monkrobe.Hue = GetRandomHue();
						AddItem( monkrobe );
						break;
                           	 	case 4: break;
                            	} 


                           	 switch (Utility.Random(4))
                           	 {
                           	 	case 0: AddItem( new LongPants() ); break;
                           	 	case 1: Item LegsOfBane = new LeggingsOfBane();
						LegsOfBane.Hue = GetRandomHue();
                      				LegsOfBane.LootType = LootType.Newbied;
                      				LegsOfBane.Movable = false;
						AddItem( LegsOfBane );
						break;
					case 2: Item ShortPantss = new ShortPants();
						ShortPantss.Hue = GetRandomHue();
                      				ShortPantss.LootType = LootType.Newbied;
                      				ShortPantss.Movable = false;
						AddItem( ShortPantss );
						break;
					case 3: Item PlateLegsv = new PlateLegs();
						PlateLegsv.Hue = GetRandomHue();
                      				PlateLegsv.LootType = LootType.Newbied;
                      				PlateLegsv.Movable = false;
						AddItem( PlateLegsv );
						break;
                            	} 

                           	 switch (Utility.Random(5))
                           	 {
                           	 	case 0:	AddItem( new Boots() ); break;
                           	 	case 1: Item Sandals = new Sandals();
						Sandals.Hue = GetRandomHue();
                        			Sandals.LootType = LootType.Blessed;
                        			Sandals.Movable = false;
						AddItem( Sandals );
						break;
					case 2: Item Bootsv = new Boots();
						Bootsv.Hue = GetRandomHue();
                        			Bootsv.LootType = LootType.Blessed;
                        			Bootsv.Movable = false;
						AddItem( Bootsv );
						break;
					case 3: Item Shoesv = new Shoes();
						Shoesv.Hue = GetRandomHue();
                        			Shoesv.LootType = LootType.Blessed;
                        			Shoesv.Movable = false;
						AddItem( Shoesv );
						break;
					case 4: break;
                            	} 

                           	 switch (Utility.Random(6))
                           	 {
                           	 	case 0:	AddItem( new ClothNinjaHood(  ) ); break;
                           	 	case 1: Item SpiritOfTheTotem = new SpiritOfTheTotem();
						SpiritOfTheTotem.Hue = GetRandomHue();
						SpiritOfTheTotem.Movable = false;
                        			SpiritOfTheTotem.LootType = LootType.Blessed;
						AddItem( SpiritOfTheTotem );
						break;
                           	 	case 2:	Item BoneHelmv = new BoneHelm();
						BoneHelmv.Hue = GetRandomHue();
						BoneHelmv.Movable = false;
                        			BoneHelmv.LootType = LootType.Blessed;
						AddItem( BoneHelmv );
						break;
                           	 	case 3:	Item CloseHelmv = new CloseHelm();
						CloseHelmv.Hue = GetRandomHue();
						CloseHelmv.Movable = false;
                        			CloseHelmv.LootType = LootType.Blessed;
						AddItem( CloseHelmv );
						break;
					case 4: AddItem( new SkullCap( ) );break;
					case 5: Item TricorneHatv = new TricorneHat();
						TricorneHatv.Hue = GetRandomHue();
						TricorneHatv.Movable = false;
                        			TricorneHatv.LootType = LootType.Blessed;
						AddItem( TricorneHatv );
						break;
                            	} 

                           	 switch (Utility.Random(3))
                           	 {
                           	 	case 0:	Item LeatherGlovesv = new LeatherGloves();
						LeatherGlovesv.Hue = GetRandomHue();
						LeatherGlovesv.Movable = false;
                        			LeatherGlovesv.LootType = LootType.Blessed;
						AddItem( LeatherGlovesv );
						break;
                           	 	case 1: Item PlateGlovesv = new PlateGloves();
						PlateGlovesv.Hue = GetRandomHue();
						PlateGlovesv.Movable = false;
                        			PlateGlovesv.LootType = LootType.Blessed;
						AddItem( PlateGlovesv );
						break;
                           	 	case 2: AddItem( new RingmailGloves() ); break;
                            	} 


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


			}
			
			Utility.AssignRandomHair( this );

			for (int i = 0; i < 10; i++)
			{
				PackItem( new GreaterCurePotion() );
				PackItem( new GreaterHealPotion() );
				PackItem( new TotalRefreshPotion() );
			}

          		  PackItem(new Bandage(Utility.RandomMinMax(10, 100)));

			Horse ns = new Horse();
			ns.Controlled = true;
			ns.ControlMaster = this;
			ns.ControlOrder = OrderType.Stay;
			ns.Rider = this; 
}
        public static void CreateItem(ItemInfo info, Mobile m)
        {
            if (m == null)
                return;

            Item item = null;
            BaseCreature bc = null;
            switch (info.IncrID)
            {
                case 0: item = new BlackPearl(999); break;
                case 1: item = new Bloodmoss(999); break;
                case 2: item = new MandrakeRoot(999); break;
                case 3: item = new Garlic(999); break;
                case 4: item = new Ginseng(999); break;
                case 5: item = new Nightshade(999); break;
                case 6: item = new SpidersSilk(999); break;
                case 7: item = new SulfurousAsh(999); break;
                case 8: item = new Bag();
                        ((Bag)item).DropItem( new BlackPearl(100) );
                        ((Bag)item).DropItem( new Bloodmoss(100) );
                        ((Bag)item).DropItem( new MandrakeRoot(100) );
                        ((Bag)item).DropItem( new Garlic(100) );
                        ((Bag)item).DropItem( new Ginseng(100) );
                        ((Bag)item).DropItem( new Nightshade(100) );
                        ((Bag)item).DropItem( new SpidersSilk(100) );
                        ((Bag)item).DropItem( new SulfurousAsh(100) );
                        break;
                case 9: item = new BatWing(999); break;
                case 10: item = new GraveDust(999); break;
                case 11: item = new DaemonBlood(999); break;
                case 12: item = new NoxCrystal(999); break;
                case 13: item = new PigIron(999); break;
                case 14: item = new Bag();
                        ((Bag)item).DropItem( new BatWing(100) );
                        ((Bag)item).DropItem( new GraveDust(100) );
                        ((Bag)item).DropItem( new DaemonBlood(100) );
                        ((Bag)item).DropItem( new NoxCrystal(100) );
                        ((Bag)item).DropItem( new PigIron(100) );
                        break;
                case 15: for (int i=0; i < 2; i++) //The last potion is dropped later
                        {
                            item = new RefreshPotion();
                            m.AddToBackpack(item);
                        }
                        item = new RefreshPotion();
                        break;
                case 16: for (int i=0; i < 2; i++) //The last potion is dropped later
                        {
                            item = new RefreshPotion();
                            m.AddToBackpack(item);
                        }
                        item = new LesserCurePotion();
                        break;
                case 17: for (int i=0; i < 2; i++) //The last potion is dropped later
                        {
                            item = new RefreshPotion();
                            m.AddToBackpack(item);
                        }
                        item = new LesserHealPotion();
                        break;
                case 18: for (int i=0; i < 2; i++) //The last potion is dropped later
                        {
                            item = new RefreshPotion();
                            m.AddToBackpack(item);
                        }
                        item = new NightSightPotion();
                        break;
                case 19: item = new Bandage(50); break;
                case 20: item = new Bandage(200); break;
                case 21: item = new Bandage(1000); break;
                case 22: item = new Arrow(100); break;
                case 23: item = new Arrow(1000); break;
                case 24: item = new Bolt(100); break;
                case 25: item = new Bolt(1000); break;
                case 26: bc = new Horse(); break;
                case 27: bc = new PackLlama(); break;
                case 28: item = new Club();
                        BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 29: item = new WarFork();
                        BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 30: item = new Katana();
                        BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 31: item = new Bow();
                        BaseRunicTool.ApplyAttributesTo((BaseWeapon)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 32: item = new MetalKiteShield();
                        BaseRunicTool.ApplyAttributesTo((BaseShield)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 33: item = new WoodenShield();
                        BaseRunicTool.ApplyAttributesTo((BaseShield)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 34: item = new LeatherChest();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 35: item = new LeatherGloves();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 36: item = new LeatherGorget();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 37: item = new LeatherLegs();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 38: item = new LeatherCap();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 39: item = new LeatherArms();
                        BaseRunicTool.ApplyAttributesTo((BaseArmor)item, Utility.RandomMinMax(1, 4), 40, 80);
                        break;
                case 40: item = new Gold(300); break;
                case 41: item = new Gold(3000); break;
                case 42: item = new Server.Engines.BulkOrders.BulkOrderBook(); break;
                case 43: item = new Drums();
                        ((BaseInstrument)item).Quality = InstrumentQuality.Exceptional;
                        break;
                case 44: item = new TambourineTassel();
                        ((BaseInstrument)item).Quality = InstrumentQuality.Exceptional;
                        break;
                case 45: item = new Server.Multis.SmallDragonBoatDeed(); break;
                case 46: item = new Server.Multis.LargeDragonBoatDeed(); break;
            }

            if (item != null)
            {
                m.AddToBackpack(item);
                m.SendMessage("Here are the goods you requested.");
            }
            else if (bc != null)
            {
                bc.Controlled = true;
                bc.ControlMaster = m;
                bc.MoveToWorld( m.Location, m.Map );
                m.SendMessage("Here is the pet you requested.");
            }
            else
            {
                m.SendMessage("That item is not available. Please report the bug at the site that will open in your browser.");
                m.LaunchBrowser( "http://bug.casiopia.net/" );
                m.AddToBackpack( new VeriteGem(info.Price) );
            }
        }
예제 #11
0
        public Guard(GuardType type, AIType ai)
            : base(ai, FightMode.Closest, 20, 1, 0.2, 0.4)
        {
            m_Type = type;

                        if (m_Type == GuardType.Wizard)
                ChangeAIType(AIType.AI_Mage);

            if (m_Type == GuardType.Archer)
                ChangeAIType(AIType.AI_Archer);

            if (m_Type == GuardType.Medic)
                ChangeAIType(AIType.AI_Healer);

            Title = GetTitle(type);
            Hue = Utility.RandomSkinHue();
            Karma = 12000;

            if (0.50 >= Utility.RandomDouble())
            {
                Name = NameList.RandomName("female") + ",";
                Female = true;
                Body = 0x191;
            }
            else
            {
                Name = NameList.RandomName("male") + ",";
                Body = 0x190;
                FacialHairItemID = Utility.RandomList(0x203E, 0x203F, 0x2040, 0x2041, 0x204B, 0x204C, 0x204D);
            }

            SetStatsAndSkills(type);

            SetDamage(7, 13);
            SetDamageType(ResistanceType.Physical, 100);

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

            HairItemID = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2048);
            HairHue = FacialHairHue = Utility.RandomHairHue();

            Backpack pack = new Backpack();
            pack.AddItem(new Bandage(Utility.RandomMinMax(100, 200)));

            this.AddItem(pack);

            AddEquipment(type);

            if (type == GuardType.Cavalry)
            {
                Horse horse = new Horse();
                horse.Body = 0xE4;
                horse.Controlled = true;
                horse.ControlMaster = this;
                horse.ControlOrder = OrderType.Come;
                horse.RawName = "an Imperial War Horse";
                horse.Hue = 1410;
                horse.ItemID = 16033;
                horse.Rider = this;

                horse.RawStr += Utility.RandomMinMax(45, 60);
                horse.RawDex += Utility.RandomMinMax(25, 30);
                horse.RawInt += Utility.RandomMinMax(15, 20);

                horse.SetSkill(SkillName.Wrestling, horse.Skills.Wrestling.Value + Utility.RandomMinMax(15, 20));
                horse.SetSkill(SkillName.Tactics, horse.Skills.Tactics.Value + Utility.RandomMinMax(20, 25));
                horse.SetSkill(SkillName.MagicResist, horse.Skills.MagicResist.Value + Utility.RandomMinMax(30, 40));

            }
        }
예제 #12
0
        public undying()
            : base(AIType.AI_Necro, FightMode.Closest, 10, 1, 0.1, 0.2)
        {
            Name = "a dark knight";
            Body = 401;
            Female = true;
            Hue = 16800;

            SetStr( 201, 205 );
            SetDex( 91, 100 );
            SetInt( 1500, 1800 );

            SetHits( 9000, 10000 );

            SetDamage( 24, 25 );

            SetDamageType( ResistanceType.Physical, 100 );

            SetResistance( ResistanceType.Physical, 45, 50 );
            SetResistance( ResistanceType.Fire, 45, 50 );
            SetResistance( ResistanceType.Cold, 45, 50 );
            SetResistance( ResistanceType.Poison, 45, 50 );
            SetResistance( ResistanceType.Energy, 45, 50 );

            SetSkill( SkillName.SpiritSpeak, 110.1, 125.0 );
            SetSkill( SkillName.Necromancy, 115.1, 120.0 );
            SetSkill( SkillName.EvalInt, 110.1, 120.0 );
            SetSkill( SkillName.Meditation, 90.1, 100.0 );
            SetSkill( SkillName.MagicResist, 95.0, 107.5 );
            SetSkill( SkillName.Anatomy, 110.2, 120.0 );
            SetSkill( SkillName.Tactics, 100.0, 110.5 );
            SetSkill( SkillName.Parry, 100.0, 110.5 );
            SetSkill( SkillName.Wrestling, 100.0, 110.5 );
            SetSkill( SkillName.Fencing, 110.2, 120.0 );

            Fame = 22000;
            Karma = -15000;

            VirtualArmor = 16;

            PackNecroReg( 8, 15 );
            AddItem( new HoodedShroudOfShadows( Utility.RandomNeutralHue() ) );
            AddItem( new Sandals() );
            AddItem( new Shirt( Utility.RandomNeutralHue() ) );
            AddItem( new Skirt( Utility.RandomNeutralHue() ) );

            WarFork weapon = new WarFork();

            weapon.Movable = false;
            weapon.Attributes.WeaponDamage = 45;
            weapon.Attributes.WeaponSpeed = 15;
            weapon.Attributes.AttackChance = 10;
            weapon.WeaponAttributes.HitHarm = 50;
            weapon.WeaponAttributes.HitFireball = 50;
            weapon.Hue = 163;

            AddItem( weapon );

            ChaosShield shield = new ChaosShield();

            shield.Movable = false;
            shield.Attributes.SpellChanneling = 1;
            shield.Attributes.DefendChance = 10;
            shield.Hue = 163;

            AddItem( shield );

            BaseMount horse = new Horse();
            horse.Rider = this;
            horse.Hue = 16800;
            horse.Tamable = false;
        }
예제 #13
0
public SpawnHelperMage() : base( AIType.AI_Mage, FightMode.Closest, 25, 1, 0.4, 0.3 ) 
{ 
	



            		Title = "[BEC-Mage]";
			if ( Female = Utility.RandomBool() ) 
			{ 
				Body = 401; 
				Name = NameList.RandomName( "female" );
			
				
			}
			else 
			{ 
				Body = 400; 			
				Name = NameList.RandomName( "male" ); 


			}
//			Name.Hue = 2002;
//			Title.Hue = 2002;

 
       	    SetStr(100, 150);
            SetDex(100, 150);
            SetInt(250, 500);
		ActiveSpeed = 0.2;
		PassiveSpeed = 0;

            SetHits(200, 300);

//            SetDamage(12, 19);

            SetDamageType(ResistanceType.Physical, 120);

            SetResistance(ResistanceType.Physical, 65, 80);
            SetResistance(ResistanceType.Fire, 65, 80);
            SetResistance(ResistanceType.Cold, 65, 80);
            SetResistance(ResistanceType.Poison, 65, 80);
            SetResistance(ResistanceType.Energy, 65, 80);

            SetSkill(SkillName.Swords, 89.0, 120.0);
            SetSkill(SkillName.Tactics, 89.0, 120.0);
            SetSkill(SkillName.MagicResist, 89.0, 120.0);
            SetSkill(SkillName.Tactics, 89.0, 120.0);
            SetSkill(SkillName.Parry, 89.0, 120.0);
            SetSkill(SkillName.Anatomy, 85.0, 120.0);
            SetSkill(SkillName.Healing, 85.0, 120.0);
            SetSkill(SkillName.Magery, 99.0, 120.0);
            SetSkill(SkillName.EvalInt, 99.0, 120.0);
            SetSkill(SkillName.Poisoning, 85.0, 100.0);

            Fame = 18000;
            Karma = 10000;

            VirtualArmor = 50;

                           	 switch (Utility.Random(4))
                           	 {
                           	 	case 0: BattleAxe weapona = new BattleAxe();
						weapona.Hue = 2063;
                      				weapona.LootType = LootType.Newbied;
						weapona.Attributes.SpellChanneling = 1;
						weapona.WeaponAttributes.HitLeechMana = 60;
                      				weapona.Movable = false;
						AddItem( weapona );
						break;
                           	 	case 1: Axe weaponb = new Axe();
						weaponb.Hue = 2063;
                      				weaponb.LootType = LootType.Newbied;
						weaponb.Attributes.SpellChanneling = 1;
						weaponb.WeaponAttributes.HitLeechMana = 60;
                      				weaponb.Movable = false;
						AddItem( weaponb );
						break;
                           	 	case 2: Bardiche weaponc = new Bardiche();
						weaponc.Hue = 2063;
                      				weaponc.LootType = LootType.Newbied;
						weaponc.Attributes.SpellChanneling = 1;
						weaponc.WeaponAttributes.HitLeechMana = 60;
                      				weaponc.Movable = false;
						AddItem( weaponc );
						break;
                           	 	case 3: Hatchet weapond = new Hatchet();
						weapond.Hue = 2063;
                      				weapond.LootType = LootType.Newbied;
						weapond.Attributes.SpellChanneling = 1;
						weapond.WeaponAttributes.HitLeechMana = 60;
                      				weapond.Movable = false;
						AddItem( weapond );
						break;
                            	} 



                           	 Item Robe =  new Robe( );			
                        	Robe.Name = "Britania Electric Co.";
                        	Robe.Movable = false; 
				Robe.Hue = 1109;
				AddItem( Robe );



                           	 switch (Utility.Random(3))
                           	 {
                           	 	case 0: AddItem( new LongPants(1050)); break;
                           	 	case 1: Item LegsOfBane = new LeggingsOfBane();
						LegsOfBane.Hue = 1269;
                      				LegsOfBane.LootType = LootType.Newbied;
                      				LegsOfBane.Movable = false;
						AddItem( LegsOfBane );
						break;
                           	 	case 2: break;
                            	} 

                           	 switch (Utility.Random(3))
                           	 {
                           	 	case 0:	AddItem( new Boots() ); break;
                           	 	case 1: Item Sandals = new Sandals();
						Sandals.Hue = 1195;
                        			Sandals.LootType = LootType.Blessed;
                        			Sandals.Movable = false;
						AddItem( Sandals );
						break;
                           	 	case 2: break;
                            	} 


						Item PlateHelm = new PlateHelm();
						PlateHelm.Hue = 2063;
                      				PlateHelm.LootType = LootType.Newbied;
                      				PlateHelm.Movable = false;
						AddItem( PlateHelm );


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


			AddItem( new Shirt(743) );

			

			
			Utility.AssignRandomHair( this );

			for (int i = 0; i < 10; i++)
			{
				PackItem( new GreaterCurePotion() );
				PackItem( new GreaterHealPotion() );
				PackItem( new TotalRefreshPotion() );
			}

          		  PackItem(new Bandage(Utility.RandomMinMax(80, 200)));

			Horse ns = new Horse();
			ns.Controlled = true;
			ns.Hue = 2063;
			ns.ControlMaster = this;
			ns.ControlOrder = OrderType.Stay;
			ns.Rider = this; 
}
예제 #14
0
파일: XmlMagicWord.cs 프로젝트: m309/ForkUO
        public override void OnTrigger(object activator, Mobile m)
        {
            if (m == null || this.Word == null || (this.RequireIdentification && !this.m_Identified))
                return;

            if (DateTime.Now < this.m_EndTime)
                return;

            string msgstr = "Activating the power of " + this.Word;

            // assign powers to certain words
            switch ( this.Word )
            {
                case "Shoda":
                    m.AddStatMod(new StatMod(StatType.Int, "Shoda", 20, this.Duration));
                    m.SendMessage("Your mind expands!");
                    break;
                case "Malik":
                    m.AddStatMod(new StatMod(StatType.Str, "Malik", 20, this.Duration));
                    m.SendMessage("Your strength surges!");
                    break;
                case "Lepto":
                    m.AddStatMod(new StatMod(StatType.Dex, "Lepto", 20, this.Duration));
                    m.SendMessage("You are more nimble!");
                    break;
                case "Velas":
                    Timer.DelayCall(TimeSpan.Zero, new TimerStateCallback(Hide_Callback), new object[] { m });
                    m.SendMessage("You disappear!");
                    break;
                case "Tarda":
                    m.AddSkillMod(new TimedSkillMod(SkillName.Tactics, true, 20, this.Duration));
                    m.SendMessage("You are more skillful warrior!");
                    break;
                case "Marda":
                    m.AddSkillMod(new TimedSkillMod(SkillName.Magery, true, 20, this.Duration));
                    m.SendMessage("You are more skillful mage!");
                    break;
                case "Vas Malik":
                    m.AddStatMod(new StatMod(StatType.Str, "Vas Malik", 40, this.Duration));
                    m.SendMessage("You are exceptionally strong!");
                    break;
                case "Nartor":
                    BaseCreature b = new Drake();
                    b.MoveToWorld(m.Location, m.Map);
                    b.Owners.Add(m);
                    b.SetControlMaster(m);
                    if (b.Controlled)
                        m.SendMessage("You master the beast!");
                    break;
                case "Santor":
                    b = new Horse();
                    b.MoveToWorld(m.Location, m.Map);
                    b.Owners.Add(m);
                    b.SetControlMaster(m);
                    if (b.Controlled)
                        m.SendMessage("You master the beast!");
                    break;
                default:
                    m.SendMessage("There is no effect.");
                    break;
            }
            
            // display activation effects
            Effects.SendLocationParticles(EffectItem.Create(m.Location, m.Map, EffectItem.DefaultDuration), 0x3728, 8, 20, 5042);
            Effects.PlaySound(m, m.Map, 0x201);

            // display a message over the item it was attached to
            if (this.AttachedTo is Item)
            {
                ((Item)this.AttachedTo).PublicOverheadMessage(MessageType.Regular, 0x3B2, true, msgstr);
            }
            
            this.Charges--;

            // remove the attachment after the charges run out
            if (this.Charges == 0)
            {
                this.Delete();
            }
            else
            {
                this.m_EndTime = DateTime.Now + this.Refractory;
            }
        }
예제 #15
0
        public Guard(GuardType type, AIType ai)
            : base(ai, FightMode.Closest, 20, 1, 0.2, 0.4)
        {
            m_Type = type;

            if (m_Type == GuardType.Wizard)
            {
                ChangeAIType(AIType.AI_Mage);
            }

            if (m_Type == GuardType.Archer)
            {
                ChangeAIType(AIType.AI_Archer);
            }

            if (m_Type == GuardType.Medic)
            {
                ChangeAIType(AIType.AI_Healer);
            }

            Title = GetTitle(type);
            Hue   = Utility.RandomSkinHue();
            Karma = 12000;

            if (0.50 >= Utility.RandomDouble())
            {
                Name   = NameList.RandomName("female") + ",";
                Female = true;
                Body   = 0x191;
            }
            else
            {
                Name             = NameList.RandomName("male") + ",";
                Body             = 0x190;
                FacialHairItemID = Utility.RandomList(0x203E, 0x203F, 0x2040, 0x2041, 0x204B, 0x204C, 0x204D);
            }

            SetStatsAndSkills(type);

            SetDamage(7, 13);
            SetDamageType(ResistanceType.Physical, 100);

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

            HairItemID = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2048);
            HairHue    = FacialHairHue = Utility.RandomHairHue();

            Backpack pack = new Backpack();

            pack.AddItem(new Bandage(Utility.RandomMinMax(100, 200)));

            this.AddItem(pack);

            AddEquipment(type);

            if (type == GuardType.Cavalry)
            {
                Horse horse = new Horse();
                horse.Body          = 0xE4;
                horse.Controlled    = true;
                horse.ControlMaster = this;
                horse.ControlOrder  = OrderType.Come;
                horse.RawName       = "Caballo del Guardia";
                horse.Hue           = 1410;
                horse.ItemID        = 16033;
                horse.Rider         = this;

                horse.RawStr += Utility.RandomMinMax(45, 60);
                horse.RawDex += Utility.RandomMinMax(25, 30);
                horse.RawInt += Utility.RandomMinMax(15, 20);

                horse.SetSkill(SkillName.Wrestling, horse.Skills.Wrestling.Value + Utility.RandomMinMax(15, 20));
                horse.SetSkill(SkillName.Tactics, horse.Skills.Tactics.Value + Utility.RandomMinMax(20, 25));
                horse.SetSkill(SkillName.MagicResist, horse.Skills.MagicResist.Value + Utility.RandomMinMax(30, 40));
            }
        }
예제 #16
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;
        }
예제 #17
0
        public LordVeteranWarrior()
            : base(AIType.AI_Melee, FightMode.Closest, 12, 1, 0.2, 0.4)
        {
            Name        = "Lord Veteran Warrior";
            Body        = 0x190;
            BaseSoundID = 0x0;

            SetStr(300, 350);
            SetDex(170, 200);
            SetInt(80, 95);

            SetHits(450, 500);

            SetDamage(35, 40);

            SetDamageType(ResistanceType.Physical, 100);
            //SetDamageType( ResistanceType.Fire, 25 );
            //SetDamageType( ResistanceType.Cold, 25 );
            //SetDamageType( ResistanceType.Energy, 25 );

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

            SetSkill(SkillName.MagicResist, 80.0, 90.0);
            SetSkill(SkillName.Tactics, 80.0, 90.0);
            SetSkill(SkillName.Swords, 80.0, 90.0);
            SetSkill(SkillName.Fencing, 80.0, 90.0);
            SetSkill(SkillName.Macing, 80.0, 90.0);
            SetSkill(SkillName.Wrestling, 80.0, 90.0);

            Fame  = 4500;
            Karma = -4500;

            VirtualArmor = 40;

            AddItem(new PlateArmsCopper());
            AddItem(new PlateChestCopper());
            AddItem(new PlateCloseHelmCopper());
            AddItem(new PlateGlovesCopper());
            AddItem(new PlateGorgetCopper());
            AddItem(new PlateLegsCopper());
            EquipItem(new ChaosShield()
            {
                LootType = LootType.Blessed
            });

            switch (Utility.Random(3))
            {
            case 0: EquipItem(new KryssCopper()
                {
                    LootType = LootType.Blessed
                }); break;

            case 1: EquipItem(new SwordCopper()
                {
                    LootType = LootType.Blessed
                }); break;

            case 2: EquipItem(new WarMaceCopper()
                {
                    LootType = LootType.Blessed
                }); break;
            }

            EquipItem(new HalfApron(37));
            EquipItem(new BodySash(37));
            EquipItem(new Cloak(37));

            Mobile mount = new Horse();

            mount.Hue = Utility.RandomRedHue();

            ((IMount)mount).Rider = this;
        }