public Vladamir() { Name = "Vladamir"; Title = "Collector of Uniques"; Body = 400; CantWalk = true; Hue = 0; AddItem( new Server.Items.Cloak( 1250 ) ); Item weapon = new Kryss(); weapon.Movable = false; weapon.Hue = 2410; AddItem( weapon ); Item shield = new ChaosShield(); shield.Movable = false; shield.Hue = 2410; AddItem( shield ); Item arms = new PlateArms(); arms.Movable = false; arms.Hue = 2410; AddItem( arms ); Item gloves = new PlateGloves(); gloves.Movable = false; gloves.Hue = 2410; AddItem( gloves ); Item chest = new PlateChest(); chest.Movable = false; chest.Hue = 2410; AddItem( chest ); Item legs = new PlateLegs(); legs.Movable = false; legs.Hue = 2410; AddItem( legs ); Item helm = new NorseHelm(); helm.Movable = false; helm.Hue = 2410; AddItem( helm ); Item gorget = new PlateGorget(); gorget.Movable = false; gorget.Hue = 2410; AddItem( gorget ); int hairHue = 1055; switch ( Utility.Random( 1 ) ) { case 0: AddItem( new LongHair( hairHue ) ); break; } Blessed = true; }
public VivreGuard(String townName) : base(AIType.AI_VivreGuard, FightMode.Closest, 18, 1, 0.12, 1) // 0.15 echapable à pied, 0.05 = très rapide { m_TownName = townName; InitStats(200, 200, 200); SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); Body = 0x190; Name = NameList.RandomName("male"); Title = ", Garde de " + m_TownName; Karma = 12000; PlateChest chest = new PlateChest(); chest.Hue = 0; chest.Resource = CraftResource.MBronze; chest.Movable = false; AddItem(chest); PlateArms arms = new PlateArms(); arms.Hue = 0; arms.Movable = false; arms.Resource = CraftResource.MBronze; AddItem(arms); PlateGloves gloves = new PlateGloves(); gloves.Hue = 0; gloves.Movable = false; gloves.Resource = CraftResource.MBronze; AddItem(gloves); PlateGorget gorget = new PlateGorget(); gorget.Hue = 0; gorget.Movable = false; gorget.Resource = CraftResource.MBronze; AddItem(gorget); PlateLegs legs = new PlateLegs(); legs.Hue = 0; legs.Movable = false; legs.Resource = CraftResource.MBronze; AddItem(legs); NorseHelm helm = new NorseHelm(); helm.Hue = 0; helm.Movable = false; helm.Resource = CraftResource.MBronze; AddItem(helm); Surcoat surcoat = new Surcoat(); surcoat.Hue = 0; surcoat.Movable = false; AddItem(surcoat); Cloak cloak = new Cloak(); cloak.Hue = TownHue; cloak.Movable = false; AddItem(cloak); HairItemID = Utility.RandomList(0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2049, 0x204A); HairHue = Utility.RandomHairHue(); if (Utility.RandomBool()) { FacialHairItemID = Utility.RandomList(0x203E, 0x203F, 0x2040, 0x2041, 0x204B, 0x204C, 0x204D); FacialHairHue = HairHue; } Halberd weapon = new Halberd(); weapon.Movable = false; weapon.Crafter = this; weapon.Quality = WeaponQuality.Exceptional; VirtualArmor = 100; AddItem(weapon); Skills[SkillName.Anatomy].Base = 100.0; Skills[SkillName.Tactics].Base = 110.0; Skills[SkillName.Swords].Base = 160.0; Skills[SkillName.MagicResist].Base = 110.0; Skills[SkillName.DetectHidden].Base = 100.0; }
public static string MakeThisTask() { string task = null; switch (Utility.RandomMinMax(1, 10)) { case 1: task = "Repair"; break; case 2: task = "Fix"; break; case 3: task = "Buff"; break; case 4: task = "Modify"; break; case 5: task = "Polish"; break; case 6: task = "Engrave"; break; case 7: task = "Adjust"; break; case 8: task = "Improve"; break; case 9: task = "Smooth the dents from"; break; case 10: task = "Remove the dents from"; break; } Item item = null; switch (Utility.RandomMinMax(1, 79)) { case 1: item = new AssassinSpike(); break; case 2: item = new Axe(); break; case 3: item = new Bardiche(); break; case 4: item = new Bascinet(); break; case 5: item = new BattleAxe(); break; case 6: item = new BoneHarvester(); break; case 7: item = new Broadsword(); break; case 8: item = new BronzeShield(); break; case 9: item = new Buckler(); break; case 10: item = new ButcherKnife(); break; case 11: item = new ChainChest(); break; case 12: item = new ChainCoif(); break; case 13: item = new ChainLegs(); break; case 14: item = new ChampionShield(); break; case 15: item = new Cleaver(); break; case 16: item = new CloseHelm(); break; case 17: item = new CloseHelm(); break; case 18: item = new CrescentBlade(); break; case 19: item = new CrestedShield(); break; case 20: item = new Cutlass(); break; case 21: item = new Dagger(); break; case 22: item = new DarkShield(); break; case 23: item = new DiamondMace(); break; case 24: item = new DoubleAxe(); break; case 25: item = new DoubleBladedStaff(); break; case 26: item = new DreadHelm(); break; case 27: item = new ElvenMachete(); break; case 28: item = new ElvenShield(); break; case 29: item = new ElvenSpellblade(); break; case 30: item = new ExecutionersAxe(); break; case 31: item = new FemalePlateChest(); break; case 32: item = new GuardsmanShield(); break; case 33: item = new Halberd(); break; case 34: item = new HammerPick(); break; case 35: item = new HeaterShield(); break; case 36: item = new Helmet(); break; case 37: item = new Helmet(); break; case 38: item = new JeweledShield(); break; case 39: item = new Katana(); break; case 40: item = new Kryss(); break; case 41: item = new Lance(); break; case 42: item = new LargeBattleAxe(); break; case 43: item = new Leafblade(); break; case 44: item = new Longsword(); break; case 45: item = new Mace(); break; case 46: item = new Maul(); break; case 47: item = new MetalKiteShield(); break; case 48: item = new MetalShield(); break; case 49: item = new NorseHelm(); break; case 50: item = new NorseHelm(); break; case 51: item = new OrnateAxe(); break; case 52: item = new Pickaxe(); break; case 53: item = new Pike(); break; case 54: item = new Pitchfork(); break; case 55: item = new PlateArms(); break; case 56: item = new PlateChest(); break; case 57: item = new PlateGloves(); break; case 58: item = new PlateGorget(); break; case 59: item = new PlateHelm(); break; case 60: item = new PlateHelm(); break; case 61: item = new PlateLegs(); break; case 62: item = new RadiantScimitar(); break; case 63: item = new RingmailArms(); break; case 64: item = new RingmailChest(); break; case 65: item = new RingmailGloves(); break; case 66: item = new RingmailLegs(); break; case 67: item = new RuneBlade(); break; case 68: item = new Scimitar(); break; case 69: item = new Scythe(); break; case 70: item = new ShortSpear(); break; case 71: item = new SkinningKnife(); break; case 72: item = new Spear(); break; case 73: item = new ThinLongsword(); break; case 74: item = new TwoHandedAxe(); break; case 75: item = new VikingSword(); break; case 76: item = new WarAxe(); break; case 77: item = new WarCleaver(); break; case 78: item = new WarHammer(); break; case 79: item = new WarMace(); break; } if (Utility.RandomMinMax(1, 5) == 1) { bool evil = false; bool orient = false; switch (Utility.RandomMinMax(1, 8)) { case 1: evil = true; break; case 2: orient = true; break; } string sAdjective = "unusual"; string eAdjective = "might"; sAdjective = Server.LootPackEntry.MagicItemAdj("start", orient, evil, item.ItemID); eAdjective = Server.LootPackEntry.MagicItemAdj("end", orient, evil, item.ItemID); string name = "item"; string xName = ContainerFunctions.GetOwner("property"); if (item.Name != null && item.Name != "") { name = item.Name.ToLower(); } if (name == "item") { name = MorphingItem.AddSpacesToSentence((item.GetType()).Name).ToLower(); } switch (Utility.RandomMinMax(0, 5)) { case 0: name = sAdjective + " " + name + " of " + xName; break; case 1: name = name + " of " + xName; break; case 2: name = sAdjective + " " + name; break; case 3: name = sAdjective + " " + name + " of " + xName; break; case 4: name = name + " of " + xName; break; case 5: name = sAdjective + " " + name; break; } task = task + " their " + name; } else { string[] sMetals = new string[] { "iron ", "dull copper ", "shadow iron ", "copper ", "bronze ", "gold ", "agapite ", "verite ", "valorite ", "nepturite ", "obsidian ", "steel ", "brass ", "mithril ", "xormite ", "dwarven " }; string sMetal = sMetals[Utility.RandomMinMax(0, (sMetals.Length - 1))]; string name = "item"; if (item.Name != null && item.Name != "") { name = item.Name.ToLower(); } if (name == "item") { name = MorphingItem.AddSpacesToSentence((item.GetType()).Name).ToLower(); } task = task + " their " + sMetal + name; } item.Delete(); return(task); }
public Paladin() : base(AIType.AI_Melee, FightMode.Aggressor, 10, 1, 0.36, 0.56) { Female = Utility.RandomBool(); Body = Female ? 401 : 400; Title = "the paladin"; Name = NameList.RandomName( Female ? "female" : "male" ); Hue = Utility.RandomSkinHue(); SetStr( 64, 92 ); SetDex( 46, 88 ); SetInt( 37, 49 ); Karma = Utility.RandomMinMax( 33, -25 ); SetSkill( SkillName.Tactics, 55, 77.5 ); SetSkill( SkillName.MagicResist, 55, 77.5 ); SetSkill( SkillName.Parry, 55, 77.5 ); SetSkill( SkillName.Swords, 55, 77.5 ); SetSkill( SkillName.Macing, 55, 77.5 ); SetSkill( SkillName.Fencing, 55, 77.5 ); SetSkill( SkillName.Wrestling, 55, 77.5 ); SetSkill( SkillName.ArmsLore, 52.5, 75 ); Item item = null; if ( !Female ) { int hairHue = Utility.RandomHairHue(); Utility.AssignRandomHair(this, hairHue); Utility.AssignRandomFacialHair( this, hairHue ); item = new PlateChest(); AddItem( item ); item = new PlateLegs(); AddItem( item ); item = new PlateArms(); AddItem( item ); item = new PlateGloves(); AddItem( item ); item = new PlateGorget(); AddItem( item ); switch ( Utility.Random( 5 ) ) { case 0: item = new PlateHelm(); break; case 1: item = new Helmet(); break; case 2: item = new CloseHelm(); break; case 3: item = new Bascinet(); break; case 4: default: item = new NorseHelm(); break; } AddItem( item ); item = new Tunic(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new HeaterShield(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new VikingSword(); AddItem( item ); item = Utility.RandomBool() ? (Item)new Boots() : (Item)new ThighBoots(); AddItem( item ); PackGold( 15, 100 ); } else { int hairHue = Utility.RandomHairHue(); Utility.AssignRandomHair(this, hairHue); item = new PlateChest(); AddItem( item ); item = new PlateLegs(); AddItem( item ); item = new PlateArms(); AddItem( item ); item = new PlateGloves(); AddItem( item ); item = new PlateGorget(); AddItem( item ); switch ( Utility.Random( 5 ) ) { case 0: item = new PlateHelm(); break; case 1: item = new Helmet(); break; case 2: item = new CloseHelm(); break; case 3: item = new Bascinet(); break; case 4: default: item = new NorseHelm(); break; } AddItem( item ); item = new Tunic(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new HeaterShield(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new VikingSword(); AddItem( item ); item = Utility.RandomBool() ? (Item)new Boots() : (Item)new ThighBoots(); AddItem( item ); PackGold( 15, 100 ); } }
public HireFighter() { Female = Utility.RandomBool(); Body = Female ? 401 : 400; Title = "the fighter"; Name = NameList.RandomName( Female ? "female" : "male" ); Hue = Utility.RandomSkinHue(); SetStr( 11, 88 ); SetDex( 11, 88 ); SetInt( 7, 49 ); Karma = Utility.RandomMinMax( 13, -45 ); SetSkill( SkillName.Tactics, 45, 67.5 ); SetSkill( SkillName.MagicResist, 45, 67.5 ); SetSkill( SkillName.Parry, 45, 67.5 ); SetSkill( SkillName.Swords, 45, 67.5 ); SetSkill( SkillName.Macing, 45, 67.5 ); SetSkill( SkillName.Fencing, 45, 67.5 ); SetSkill( SkillName.Wrestling, 45, 67.5 ); SetSkill( SkillName.ArmsLore, 42.5, 65 ); Item item = null; if ( !Female ) { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = AddRandomFacialHair( item.Hue ); item = new StuddedChest(); AddItem( item ); item = new StuddedLegs(); AddItem( item ); item = new StuddedArms(); AddItem( item ); item = new StuddedGloves(); AddItem( item ); switch ( Utility.Random( 6 ) ) { case 0: item = new PlateHelm(); break; case 1: item = new ChainCoif(); break; case 2: item = new CloseHelm(); break; case 3: item = new Bascinet(); break; case 4: item = new NorseHelm(); break; case 5: default: item = new Helmet(); break; } AddItem( item ); item = new StuddedGorget(); AddItem( item ); item = Loot.RandomWeapon(); AddItem( item ); if ( item.Layer == Layer.OneHanded ) { item = new WoodenShield(); AddItem( item ); } } else { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = new StuddedChest(); AddItem( item ); item = new StuddedLegs(); AddItem( item ); item = new StuddedArms(); AddItem( item ); item = new StuddedGloves(); AddItem( item ); switch ( Utility.Random( 6 ) ) { case 0: item = new PlateHelm(); break; case 1: item = new ChainCoif(); break; case 2: item = new CloseHelm(); break; case 3: item = new Bascinet(); break; case 4: item = new NorseHelm(); break; case 5: default: item = new Helmet(); break; } AddItem( item ); item = new StuddedGorget(); AddItem( item ); item = Loot.RandomWeapon(); AddItem( item ); if ( item.Layer == Layer.OneHanded ) { item = new WoodenShield(); AddItem( item ); } } }
public DemonExec () : base( AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Name = "a demonic executioner"; Body = 400; BaseSoundID = 427; Hue = 1175; SetStr( 767, 945 ); SetDex( 66, 75 ); SetInt( 46, 70 ); SetHits( 476, 552 ); SetDamage( 20, 25 ); SetSkill( SkillName.MagicResist, 125.1, 140.0 ); SetSkill( SkillName.Tactics, 90.1, 100.0 ); SetSkill( SkillName.Wrestling, 90.1, 100.0 ); Fame = 15000; Karma = -15000; VirtualArmor = 50; NorseHelm helm = new NorseHelm(); helm.Hue = 1175; helm.Movable = false; AddItem( helm ); PlateChest chest = new PlateChest(); chest.Hue = 1175; chest.Movable = false; AddItem( chest ); PlateArms arms = new PlateArms(); arms.Hue = 1175; arms.Movable = false; AddItem( arms ); PlateLegs legs = new PlateLegs(); legs.Hue = 1175; legs.Movable = false; AddItem( legs ); Kilt kilt = new Kilt(); kilt.Hue = 1158; kilt.Movable = false; AddItem( kilt ); LongHair hair = new LongHair(); hair.Hue = 1154; hair.Movable = false; hair.Layer = Layer.Hair; AddItem( hair ); Halberd hands = new Halberd(); hands.Hue = 1258; hands.Movable = false; AddItem( hands ); if ( Utility.Random( 750 ) == 0 ) PackItem( new DemonSandals() ); if ( Utility.Random( 750 ) == 0 ) PackItem( new DemonDoublet() ); if ( Utility.Random( 750 ) == 0 ) PackItem( new DemonWizardsHat() ); if ( Utility.Random( 750 ) == 0 ) PackItem( new DemonHalfApron() ); if ( Utility.Random( 750 ) == 0 ) PackItem( new DemonSkirt() ); }
public Mercenary() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.45, 0.8) { Female = Utility.RandomBool(); Body = Female ? 401 : 400; Title = "the mercenary"; Name = NameList.RandomName( Female ? "female" : "male" ); Hue = Utility.RandomSkinHue(); SetStr( 25, 88 ); SetDex( 25, 88 ); SetInt( 37, 49 ); Karma = Utility.RandomMinMax( 13, -45 ); SetSkill( SkillName.Tactics, 45, 67.5 ); SetSkill( SkillName.MagicResist, 45, 67.5 ); SetSkill( SkillName.Parry, 45, 67.5 ); SetSkill( SkillName.Swords, 45, 67.5 ); SetSkill( SkillName.Macing, 45, 67.5 ); SetSkill( SkillName.Fencing, 45, 67.5 ); SetSkill( SkillName.Wrestling, 45, 67.5 ); SetSkill( SkillName.ArmsLore, 42.5, 65 ); Item item = null; if ( !Female ) { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = AddRandomFacialHair( item.Hue ); switch ( Utility.Random( 5 ) ) { case 0: item = new PlateChest(); break; case 1: item = new ChainChest(); break; case 2: item = new StuddedChest(); break; case 3: item = new RingmailChest(); break; case 4: default: item = new LeatherChest(); break; } AddItem( item ); switch ( Utility.Random( 5 ) ) { case 0: item = new PlateLegs(); break; case 1: item = new ChainLegs(); break; case 2: item = new StuddedLegs(); break; case 3: item = new RingmailLegs(); break; case 4: default: item = new LeatherLegs(); break; } AddItem( item ); switch ( Utility.Random( 4 ) ) { case 0: item = new PlateArms(); break; case 1: item = new RingmailArms(); break; case 2: item = new StuddedArms(); break; case 3: default: item = new LeatherArms(); break; } AddItem( item ); switch ( Utility.Random( 3 ) ) { case 0: item = new PlateGloves(); break; case 1: item = new StuddedGloves(); break; case 2: default: item = new LeatherGloves(); break; } AddItem( item ); switch ( Utility.Random( 6 ) ) { case 0: item = new PlateHelm(); break; case 1: item = new ChainCoif(); break; case 2: item = new CloseHelm(); break; case 3: item = new Bascinet(); break; case 4: item = new NorseHelm(); break; case 5: default: item = new Helmet(); break; } AddItem( item ); switch ( Utility.Random( 7 ) ) { case 0: item = new BronzeShield(); break; case 1: item = new Buckler(); break; case 2: item = new HeaterShield(); break; case 3: item = new MetalKiteShield(); break; case 4: item = new MetalShield(); break; case 5: item = new WoodenKiteShield(); break; case 6: default: item = new WoodenShield(); break; } AddItem( item ); switch ( Utility.Random( 4 ) ) { case 0: item = new PlateGorget(); break; case 1: item = new StuddedGorget(); break; default: case 2: item = new LeatherGorget(); break; } AddItem( item ); item = Loot.RandomWeapon(); AddItem( item ); PackGold( 15, 100 ); } else { item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); switch ( Utility.Random( 5 ) ) { case 0: item = new PlateChest(); break; case 1: item = new ChainChest(); break; case 2: item = new StuddedChest(); break; case 3: item = new RingmailChest(); break; case 4: default: item = new LeatherChest(); break; } AddItem( item ); switch ( Utility.Random( 5 ) ) { case 0: item = new PlateLegs(); break; case 1: item = new ChainLegs(); break; case 2: item = new StuddedLegs(); break; case 3: item = new RingmailLegs(); break; case 4: default: item = new LeatherLegs(); break; } AddItem( item ); switch ( Utility.Random( 3 ) ) { case 0: item = new PlateGloves(); break; case 1: item = new StuddedGloves(); break; case 2: default: item = new LeatherGloves(); break; } AddItem( item ); switch ( Utility.Random( 6 ) ) { case 0: item = new PlateHelm(); break; case 1: item = new ChainCoif(); break; case 2: item = new CloseHelm(); break; case 3: item = new Bascinet(); break; case 4: item = new NorseHelm(); break; case 5: default: item = new Helmet(); break; } AddItem( item ); switch ( Utility.Random( 7 ) ) { case 0: item = new BronzeShield(); break; case 1: item = new Buckler(); break; case 2: item = new HeaterShield(); break; case 3: item = new MetalKiteShield(); break; case 4: item = new MetalShield(); break; case 5: item = new WoodenKiteShield(); break; case 6: default: item = new WoodenShield(); break; } AddItem( item ); switch ( Utility.Random( 4 ) ) { case 0: item = new PlateGorget(); break; case 1: item = new StuddedGorget(); break; default: case 2: item = new LeatherGorget(); break; } AddItem( item ); item = Loot.RandomWeapon(); AddItem( item ); PackGold( 15, 100 ); } }
public override void InitOutfit() { Item item = null; item = AddRandomHair(); item.Hue = Utility.RandomHairHue(); item = AddRandomFacialHair( item.Hue ); item = new PlateChest(); AddItem( item ); item = new PlateLegs(); AddItem( item ); item = new PlateArms(); AddItem( item ); item = new PlateGloves(); AddItem( item ); switch ( Utility.Random( 6 ) ) { case 0: item = new PlateHelm(); break; case 1: item = new ChainCoif(); break; case 2: item = new CloseHelm(); break; case 3: item = new Bascinet(); break; case 4: item = new NorseHelm(); break; case 5: default: item = new Helmet(); break; } AddItem( item ); item = new Tunic(); item.Hue = Utility.RandomNondyedHue(); AddItem( item ); item = new PlateGorget(); AddItem( item ); item = new DoubleAxe(); AddItem( item ); PackGold( 15, 100 ); }