///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static Item CreateMetalShield() { Item item = null; switch (Utility.RandomMinMax(0, 7)) { case 0: item = new BronzeShield(); item.Name = "shield"; break; case 1: item = new Buckler(); item.Name = "buckler"; break; case 2: item = new MetalKiteShield(); item.Name = "kite shield"; break; case 3: item = new HeaterShield(); item.Name = "large shield"; break; case 4: item = new MetalShield(); item.Name = "small shield"; break; case 5: item = new ChaosShield(); item.Name = "chaos shield"; break; case 6: item = new OrderShield(); item.Name = "order shield"; break; case 7: item = new RoyalShield(); item.Name = "royal shield"; break; } return(item); }
private void CreateClassic() { m_MoveSound = 821; m_CaptureSound = 1094; m_DeathSound = 1059; 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 ShortHair(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 ChainChest(); item.Hue = Hue; m_Piece.AddItem(item); item = new ChainLegs(); item.Hue = MinorHue; m_Piece.AddItem(item); item = new Boots(); item.Hue = Hue; m_Piece.AddItem(item); item = new Scimitar(); m_Piece.AddItem(item); }
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; m_Piece.AccessLevel = AccessLevel.GameMaster; m_Piece.NameHue = 0x3B2; if (m_BChessboard.OverrideMinorHue) { m_Piece.Hue = Hue; } else { m_Piece.Hue = m_BChessboard.SkinHue; } Item item = null; if (m_Color == ChessColor.White) { item = new LordBritishSuit(); m_Piece.AddItem(item); item = new OrderShield(); m_Piece.AddItem(item); item = new Longsword(); m_Piece.AddItem(item); } else { item = new LordBlackthorneSuit(); m_Piece.AddItem(item); item = new ChaosShield(); m_Piece.AddItem(item); item = new Longsword(); m_Piece.AddItem(item); } }
public override void OnDeath(Container c) { base.OnDeath(c); Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 4) == 1) { switch (Utility.RandomMinMax(0, 8)) { case 0: Item loot1 = new PlateChest(); loot1.Name = "tunic"; MorphingItem.MorphMyItem(loot1, "IGNORED", "Wyrm Guard", "IGNORED", MorphingTemplates.TemplateKull("armors")); c.DropItem(loot1); break; case 1: Item loot2 = new PlateArms(); loot2.Name = "arms"; MorphingItem.MorphMyItem(loot2, "IGNORED", "Wyrm Guard", "IGNORED", MorphingTemplates.TemplateKull("armors")); c.DropItem(loot2); break; case 2: Item loot3 = new PlateLegs(); loot3.Name = "leggings"; MorphingItem.MorphMyItem(loot3, "IGNORED", "Wyrm Guard", "IGNORED", MorphingTemplates.TemplateKull("armors")); c.DropItem(loot3); break; case 3: Item loot4 = new PlateGorget(); loot4.Name = "gorget"; MorphingItem.MorphMyItem(loot4, "IGNORED", "Wyrm Guard", "IGNORED", MorphingTemplates.TemplateKull("armors")); c.DropItem(loot4); break; case 4: Item loot5 = new PlateGloves(); loot5.Name = "guantlets"; MorphingItem.MorphMyItem(loot5, "IGNORED", "Wyrm Guard", "IGNORED", MorphingTemplates.TemplateKull("armors")); c.DropItem(loot5); break; case 5: Item loot6 = new OrcHelm(); loot6.Name = "helm"; MorphingItem.MorphMyItem(loot6, "IGNORED", "Wyrm Guard", "IGNORED", MorphingTemplates.TemplateKull("armors")); c.DropItem(loot6); break; case 6: Item loot7 = new Longsword(); loot7.Name = "sword"; MorphingItem.MorphMyItem(loot7, "IGNORED", "Wyrm Guard", "IGNORED", MorphingTemplates.TemplateKull("weapons")); c.DropItem(loot7); break; case 7: Item loot8 = new OrderShield(); loot8.Name = "shield"; MorphingItem.MorphMyItem(loot8, "IGNORED", "Wyrm Guard", "IGNORED", MorphingTemplates.TemplateKull("armors")); c.DropItem(loot8); break; case 8: Item loot9 = Loot.RandomJewelry(); MorphingItem.MorphMyItem(loot9, "IGNORED", "Wyrm Guard", "IGNORED", MorphingTemplates.TemplateKull("misc")); c.DropItem(loot9); break; } } } } }
public LostKnight() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("barb_male"); Title = "the lost knight"; BaseSoundID = 412; Hue = 1; Body = 0x190; SetStr(386, 400); SetDex(151, 165); SetInt(161, 175); SetHits(200, 300); SetDamage(8, 10); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 35, 45); SetResistance(ResistanceType.Fire, 25, 30); SetResistance(ResistanceType.Cold, 25, 30); SetResistance(ResistanceType.Poison, 10, 20); SetResistance(ResistanceType.Energy, 10, 20); SetSkill(SkillName.DetectHidden, 100.0); SetSkill(SkillName.Anatomy, 125.0); SetSkill(SkillName.Poisoning, 60.0, 82.5); SetSkill(SkillName.MagicResist, 83.5, 92.5); SetSkill(SkillName.Swords, 125.0); SetSkill(SkillName.Tactics, 125.0); Fame = 10000; Karma = -10000; VirtualArmor = 20; Item armor1 = new PlateChest(); AddItem(armor1); Item armor2 = new PlateArms(); AddItem(armor2); Item armor3 = new PlateLegs(); AddItem(armor3); Item armor4 = new PlateGorget(); AddItem(armor4); Item armor5 = new PlateGloves(); AddItem(armor5); Item armor6 = new PlateHelm(); AddItem(armor6); Item armor7 = new Longsword(); AddItem(armor7); Item armor8 = new OrderShield(); AddItem(armor8); MorphingTime.BlessMyClothes(this); MorphingTime.ColorMyClothes(this, 0x47E); if (1 == Utility.RandomMinMax(0, 2)) { switch (Utility.RandomMinMax(0, 7)) { case 0: armor1.LootType = LootType.Regular; MorphingItem.MorphMyItem(armor1, "IGNORED", "Spectral", "IGNORED", MorphingTemplates.TemplateLostKnight("armors")); break; case 1: armor2.LootType = LootType.Regular; MorphingItem.MorphMyItem(armor2, "IGNORED", "Spectral", "IGNORED", MorphingTemplates.TemplateLostKnight("armors")); break; case 2: armor3.LootType = LootType.Regular; MorphingItem.MorphMyItem(armor3, "IGNORED", "Spectral", "IGNORED", MorphingTemplates.TemplateLostKnight("armors")); break; case 3: armor4.LootType = LootType.Regular; MorphingItem.MorphMyItem(armor4, "IGNORED", "Spectral", "IGNORED", MorphingTemplates.TemplateLostKnight("armors")); break; case 4: armor5.LootType = LootType.Regular; MorphingItem.MorphMyItem(armor5, "IGNORED", "Spectral", "IGNORED", MorphingTemplates.TemplateLostKnight("armors")); break; case 5: armor6.LootType = LootType.Regular; MorphingItem.MorphMyItem(armor6, "IGNORED", "Spectral", "IGNORED", MorphingTemplates.TemplateLostKnight("armors")); break; case 6: armor7.LootType = LootType.Regular; MorphingItem.MorphMyItem(armor7, "IGNORED", "Spectral", "IGNORED", MorphingTemplates.TemplateLostKnight("weapons")); break; case 7: armor8.LootType = LootType.Regular; MorphingItem.MorphMyItem(armor8, "IGNORED", "Spectral", "IGNORED", MorphingTemplates.TemplateLostKnight("armors")); break; } } AddItem(new LightSource()); }
public DragonKnightSwordAndShield() : base(AIType.AI_Melee, FightMode.Evil, 10, 1, 0.2, 0.4) { Title = "a DragonKnight Swordsman"; Name = NameList.RandomName("male"); Body = 0x191; Hue = 33805; Female = false; SetStr(1025, 1425); SetDex(81, 148); SetInt(475, 675); Fame = 1000; Karma = 1000; SetHits(1000, 2000); SetDamage(24, 33); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 60, 85); SetResistance(ResistanceType.Fire, 65, 90); SetResistance(ResistanceType.Cold, 40, 55); SetResistance(ResistanceType.Poison, 40, 60); SetResistance(ResistanceType.Energy, 50, 75); SetSkill(SkillName.Archery, 100, 140); SetSkill(SkillName.Tactics, 100, 140); SetSkill(SkillName.MagicResist, 100, 140); SetSkill(SkillName.Tactics, 100, 140); SetSkill(SkillName.Wrestling, 100, 140); SetSkill(SkillName.Swords, 100, 140); SetSkill(SkillName.Magery, 100, 140); SetSkill(SkillName.Focus, 100, 140); VirtualArmor = 80; VikingSword vikingsword = new VikingSword(); vikingsword.Movable = false; AddItem(vikingsword); OrderShield ordershield = new OrderShield(); ordershield.Movable = false; AddItem(ordershield); //AddItem(new Bolt(100)); HumilityCloak cloak = new HumilityCloak(); cloak.Movable = false; AddItem(cloak); SpiritualityHelm spiritualityhelm = new SpiritualityHelm(); spiritualityhelm.Movable = false; AddItem(spiritualityhelm); HonestyGorget honestygorget = new HonestyGorget(); honestygorget.Movable = false; AddItem(honestygorget); JusticeBreastplate justicebreastplate = new JusticeBreastplate(); justicebreastplate.Movable = false; AddItem(justicebreastplate); BodySash bodysash = new BodySash(); bodysash.Movable = false; bodysash.Name = "Royal DragonKnight"; AddItem(bodysash); CompassionArms compassionarms = new CompassionArms(); compassionarms.Movable = false; AddItem(compassionarms); ValorGauntlets valorgauntlets = new ValorGauntlets(); valorgauntlets.Movable = false; AddItem(valorgauntlets); HonorLegs honorlegs = new HonorLegs(); honorlegs.Movable = false; AddItem(honorlegs); SacrificeSollerets sacrificesollerets = new SacrificeSollerets(); sacrificesollerets.Movable = false; AddItem(sacrificesollerets); // PlateChest chest = new PlateChest(); // chest.Movable = false; // chest.Hue = 137; // AddItem(chest); VampiriacSteed vampiriacsteed = new VampiriacSteed(); vampiriacsteed.Hue = 2219; //horse.Hits = 200; //horse.Karma = 500; vampiriacsteed.Rider = this; //new VampiriacSteed().Rider = this; vikingsword.Hue = 253; ordershield.Hue = 253; cloak.Hue = 253; spiritualityhelm.Hue = 2406; honestygorget.Hue = 2406; justicebreastplate.Hue = 2406; bodysash.Hue = 253; compassionarms.Hue = 2406; valorgauntlets.Hue = 2406; honorlegs.Hue = 2406; sacrificesollerets.Hue = 2406; }
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; }
public ElvenBladeMaster() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("elfmale"); Title = "the Blade Master"; SpeechHue = Utility.RandomDyedHue(); Hue = 349; Body = 0x190; Level = 10; NameHue = 2454; new Horse().Rider = this; LongHair hair = new LongHair(Utility.RandomNeutralHue()); hair.Movable = false; AddItem(hair); ChainChest chest = new ChainChest(); chest.Hue = 0x9C4; chest.Movable = false; AddItem(chest); RingmailArms arms = new RingmailArms(); arms.Hue = 0x9C4; arms.Movable = false; AddItem(arms); RingmailGloves gloves = new RingmailGloves(); gloves.Hue = 0x9C4; gloves.Movable = false; AddItem(gloves); ChainLegs legs = new ChainLegs(); legs.Hue = 0x9C4; legs.Movable = false; AddItem(legs); Cloak cloak = new Cloak(); cloak.Hue = 0xA17; cloak.Movable = false; AddItem(cloak); OrderShield shield = new OrderShield(); shield.Hue = 0x9C4; shield.Movable = false; AddItem(shield); Boots boots = new Boots(); boots.Hue = 0xA17; boots.Movable = false; AddItem(boots); PackGold(10, 17); SetSkill(SkillName.MagicResist, 80.0, 99.5); SetSkill(SkillName.Swords, 90.0, 102.5); SetSkill(SkillName.Tactics, 85.0, 97.5); SetSkill(SkillName.Wrestling, 65.0, 77.5); SetResistance(ResistanceType.Physical, 10, 25); SetResistance(ResistanceType.Fire, 10, 25); SetResistance(ResistanceType.Energy, 10, 25); SetResistance(ResistanceType.Cold, 10, 25); SetResistance(ResistanceType.Poison, 20, 30); SetStr(316, 370); SetDex(351, 415); SetInt(141, 165); SetHits(420, 483); SetDamage(11, 17); Karma = 5000; Fame = 5000; switch (Utility.Random(4)) { case 0: Scimitar scim = new Scimitar(); scim.Movable = false; AddItem(scim); break; case 1: Longsword lsword = new Longsword(); lsword.Movable = false; AddItem(lsword); break; case 2: Broadsword bsword = new Broadsword(); bsword.Movable = false; AddItem(bsword); break; case 3: Cutlass cl = new Cutlass(); cl.Movable = false; AddItem(cl); break; } }
public HumanPaladin() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.2, 0.4) { Title = "the Righteous"; SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); Body = 0x190; Level = 10; if (this.Female = Utility.RandomBool()) { Body = 0x191; Name = NameList.RandomName("female"); FemalePlateChest fchest = new FemalePlateChest(); fchest.Hue = 2122; fchest.Movable = false; AddItem(fchest); Kilt kilt = new Kilt(); kilt.Movable = false; kilt.Hue = 2971; AddItem(kilt); } else { Body = 0x190; Name = NameList.RandomName("male"); PlateChest chest = new PlateChest(); chest.Hue = 2122; chest.Movable = false; AddItem(chest); Surcoat coat = new Surcoat(); coat.Hue = 2971; coat.Movable = false; AddItem(coat); CloseHelm helm = new CloseHelm(); helm.Hue = 2122; helm.Movable = false; AddItem(helm); } Fame = 2000; Karma = 8000; new Nightmare().Rider = this; PlateArms arms = new PlateArms(); arms.Hue = 2122; arms.Movable = false; AddItem(arms); PlateLegs legs = new PlateLegs(); legs.Hue = 2122; legs.Movable = false; AddItem(legs); PlateGorget gorget = new PlateGorget(); gorget.Hue = 2122; gorget.Movable = false; AddItem(gorget); PlateGloves gloves = new PlateGloves(); gloves.Hue = 2122; gloves.Movable = false; AddItem(gloves); Cloak cloak = new Cloak(); cloak.Hue = 2971; cloak.Movable = false; AddItem(cloak); PackGold(10, 17); SetSkill(SkillName.MagicResist, 80.0, 90.5); SetSkill(SkillName.Swords, 85.0, 101.5); SetSkill(SkillName.Tactics, 85.0, 93.5); SetSkill(SkillName.Wrestling, 65.0, 72.5); SetSkill(SkillName.Fencing, 85.0, 100.5); SetSkill(SkillName.Macing, 70.3, 95.5); SetStr(316, 440); SetDex(161, 223); SetInt(141, 165); SetHits(380, 433); SetDamage(12, 20); switch (Utility.Random(8)) { case 0: WarMace wmace = new WarMace(); wmace.Movable = false; wmace.Hue = 2122; AddItem(wmace); OrderShield ashield = new OrderShield(); ashield.Movable = false; ashield.Hue = 2122; AddItem(ashield); break; case 1: Bardiche bd = new Bardiche(); bd.Movable = false; bd.Hue = 2122; AddItem(bd); break; case 2: Broadsword bsword = new Broadsword(); bsword.Movable = false; bsword.Hue = 2122; AddItem(bsword); OrderShield bshield = new OrderShield(); bshield.Movable = false; bshield.Hue = 2122; AddItem(bshield); break; case 3: Pike pike = new Pike(); pike.Movable = false; pike.Hue = 2122; AddItem(pike); break; case 4: Halberd hbrd = new Halberd(); hbrd.Movable = false; hbrd.Hue = 2122; AddItem(hbrd); break; case 5: Maul maul = new Maul(); maul.Movable = false; maul.Hue = 2122; AddItem(maul); OrderShield cshield = new OrderShield(); cshield.Movable = false; cshield.Hue = 2122; AddItem(cshield); break; case 6: VikingSword vsword = new VikingSword(); vsword.Movable = false; vsword.Hue = 2122; AddItem(vsword); OrderShield dshield = new OrderShield(); dshield.Movable = false; dshield.Hue = 2122; AddItem(dshield); break; case 7: Lance lance = new Lance(); lance.Movable = false; lance.Hue = 2122; AddItem(lance); break; } AddItem(Server.Items.Hair.GetRandomHair(Female)); }
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; }