public UnknownLiquid() : base(0x0EFC) { ItemID = Utility.RandomList(0x0EFC, 0x0E2B, 0x0E2C, 0x0E2A, 0x0E26, 0x0E27, 0x0E25, 0x0E24, 0x09C7, 0x099F, 0x099B); string sLiquid = "a strange"; switch (Utility.RandomMinMax(0, 6)) { case 0: sLiquid = "an odd"; break; case 1: sLiquid = "an unusual"; break; case 2: sLiquid = "a bizarre"; break; case 3: sLiquid = "a curious"; break; case 4: sLiquid = "a peculiar"; break; case 5: sLiquid = "a strange"; break; case 6: sLiquid = "a weird"; break; } Name = sLiquid + " bottle of liquid"; Hue = RandomThings.GetRandomColor(0); Amount = 1; Stackable = false; Weight = 1.0; }
public MagicBoots() { Resource = CraftResource.None; ItemID = Utility.RandomList(0x1711, 0x170B, 0x2307, 0x26AF, 0x2FC4, 0x2B67, 0x315E); Weight = 3.0; Name = "boots"; switch (Utility.RandomMinMax(1, 28)) { case 4: ItemID = Utility.RandomList(0x170d, 0x170e); Weight = 1.0; Name = "sandals"; break; case 5: ItemID = Utility.RandomList(0x170d, 0x170e); Weight = 1.0; Name = "sandals"; break; case 6: ItemID = Utility.RandomList(0x170d, 0x170e); Weight = 1.0; Name = "sandals"; break; case 7: ItemID = Utility.RandomList(0x170f, 0x1710); Weight = 2.0; Name = "shoes"; break; case 8: ItemID = Utility.RandomList(0x170f, 0x1710); Weight = 2.0; Name = "shoes"; break; case 9: ItemID = Utility.RandomList(0x170f, 0x1710); Weight = 2.0; Name = "shoes"; break; case 10: ItemID = Utility.RandomList(0x170f, 0x1710); Weight = 2.0; Name = "shoes"; break; } //Name = LootPackEntry.MagicItemAdj( "start", false, false, ItemID ) + " " + Name; Hue = RandomThings.GetRandomColor(0); Layer = Layer.Shoes; }
public MagicQuiver() { Name = "quiver"; Name = LootPackEntry.MagicItemAdj("start", false, false, ItemID) + " " + Name; Hue = RandomThings.GetRandomColor(0); ItemID = Utility.RandomList(0x2B02, 0x2B03); }
public Courier() : base( ) { SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); NameHue = -1; if (this.Female = Utility.RandomBool()) { Body = 0x191; Name = NameList.RandomName("female"); AddItem(new Skirt(RandomThings.GetRandomColor(0))); Utility.AssignRandomHair(this); HairHue = Utility.RandomHairHue(); } else { Body = 0x190; Name = NameList.RandomName("male"); AddItem(new ShortPants(RandomThings.GetRandomColor(0))); Utility.AssignRandomHair(this); int HairColor = Utility.RandomHairHue(); FacialHairItemID = Utility.RandomList(0, 8254, 8255, 8256, 8257, 8267, 8268, 8269); HairHue = HairColor; FacialHairHue = HairColor; } AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new FancyShirt(RandomThings.GetRandomColor(0))); switch (Utility.Random(5)) { case 0: AddItem(new FeatheredHat(RandomThings.GetRandomColor(0))); break; case 1: AddItem(new FloppyHat(RandomThings.GetRandomColor(0))); break; case 2: AddItem(new StrawHat(RandomThings.GetRandomColor(0))); break; case 3: AddItem(new WideBrimHat(RandomThings.GetRandomColor(0))); break; case 4: AddItem(new TallStrawHat(RandomThings.GetRandomColor(0))); break; } Title = "the courier"; SetStr(100); SetDex(100); SetInt(100); SetDamage(15, 20); 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); VirtualArmor = 30; }
public DDRelicBook() : base(0xFBD) { Weight = 5; RelicGoldValue = Server.Misc.RelicItems.RelicValue(); ItemID = RandomThings.GetRandomBookItemID(); Hue = RandomThings.GetRandomColor(0); Name = Server.Misc.RandomThings.GetBookTitle(); }
public Bandit() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); Title = "the bandit"; Hue = Utility.RandomSkinHue(); if (this.Female = Utility.RandomBool()) { Body = 0x191; Name = NameList.RandomName("female"); AddItem(new Skirt(Utility.RandomNeutralHue())); } else { Body = 0x190; Name = NameList.RandomName("male"); AddItem(new ShortPants(Utility.RandomNeutralHue())); } SetStr(35, 40); SetDex(30, 35); SetInt(20, 25); SetDamage(2, 6); SetSkill(SkillName.Fencing, 66.0, 97.5); SetSkill(SkillName.Macing, 65.0, 87.5); SetSkill(SkillName.MagicResist, 25.0, 47.5); SetSkill(SkillName.Swords, 65.0, 87.5); SetSkill(SkillName.Tactics, 65.0, 87.5); SetSkill(SkillName.Wrestling, 15.0, 37.5); Fame = 400; Karma = -400; AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new Shirt(RandomThings.GetRandomColor(0))); AddItem(new FloppyHat(RandomThings.GetRandomColor(0))); switch (Utility.Random(7)) { case 0: AddItem(new Longsword()); break; case 1: AddItem(new Cutlass()); break; case 2: AddItem(new Broadsword()); break; case 3: AddItem(new Axe()); break; case 4: AddItem(new Club()); break; case 5: AddItem(new Dagger()); break; case 6: AddItem(new Spear()); break; } Utility.AssignRandomHair(this); }
public GiftTalismanHoly() { ItemID = 0x2F5B; Resource = CraftResource.None; Name = "talisman"; Layer = Layer.Talisman; Weight = 1.0; Hue = RandomThings.GetRandomColor(0); }
public GiftLoinCloth() { Resource = CraftResource.None; Name = "loin cloth"; ItemID = 0x2B68; Hue = RandomThings.GetRandomColor(0); Layer = Layer.Waist; Weight = 2.0; }
public LevelTalismanLeather() { ItemID = 0x2F58; Resource = CraftResource.None; Name = "talisman"; Layer = Layer.Talisman; Weight = 1.0; Hue = RandomThings.GetRandomColor(0); }
public LevelSash() { Resource = CraftResource.None; Name = "sash"; ItemID = 0x1541; Hue = RandomThings.GetRandomColor(0); Layer = Layer.MiddleTorso; Weight = 2.0; }
public GiftBelt() { Resource = CraftResource.None; Name = "belt"; ItemID = 0x2790; Hue = RandomThings.GetRandomColor(0); Layer = Layer.Waist; Weight = 2.0; }
public override void OnGotMeleeAttack(Mobile attacker) { base.OnGotMeleeAttack(attacker); if (0.1 >= Utility.RandomDouble()) { DrainStamina(); this.Hue = RandomThings.GetRandomColor(0); } }
public LevelCandle() { Resource = CraftResource.None; Name = "candle"; Hue = RandomThings.GetRandomColor(0); Light = LightType.Circle150; Weight = 1.0; ItemID = 0xA28; Layer = Layer.TwoHanded; Attributes.NightSight = 1; }
public GiftTorch() { Resource = CraftResource.None; Name = "torch"; Hue = RandomThings.GetRandomColor(0); Light = LightType.Circle300; Weight = 1.0; ItemID = 0xF6B; Layer = Layer.TwoHanded; Attributes.NightSight = 1; }
public LevelLantern() { Resource = CraftResource.None; Name = "lantern"; Hue = RandomThings.GetRandomColor(0); Light = LightType.Circle300; Weight = 2.0; ItemID = 0xA18; Layer = Layer.TwoHanded; Attributes.NightSight = 1; }
public MagicLantern() { Resource = CraftResource.None; Name = "lantern"; //Name = LootPackEntry.MagicItemAdj( "start", false, false, ItemID ) + " " + Name; Hue = RandomThings.GetRandomColor(0); Light = LightType.Circle300; Weight = 2.0; ItemID = 0xA18; Layer = Layer.TwoHanded; Attributes.NightSight = 1; }
public MagicCloak() { Resource = CraftResource.None; ItemID = Utility.RandomList(m_ItemIDs); Name = "cloak"; Hue = RandomThings.GetRandomColor(0); if (Utility.RandomBool()) { Hue = RandomThings.GetRandomSpecialColor(); } Layer = Layer.Cloak; Weight = 5.0; //Name = LootPackEntry.MagicItemAdj( "start", false, false, ItemID ) + " " + Name; }
public MagicSash() { Resource = CraftResource.None; Name = "sash"; ItemID = 0x1541; Hue = RandomThings.GetRandomColor(0); if (Utility.RandomBool()) { Hue = RandomThings.GetRandomSpecialColor(); } Layer = Layer.MiddleTorso; Weight = 2.0; //Name = LootPackEntry.MagicItemAdj( "start", false, false, ItemID ) + " " + Name; }
public UnknownReagent() : base(0x0EFC) { RegAmount = Utility.RandomMinMax(1, 10); string sContainer = "jar of reagents"; switch (Utility.RandomMinMax(0, 4)) { case 0: ItemID = 0x1005; sContainer = "jar of reagents"; break; case 1: ItemID = 0x1006; sContainer = "jar of reagents"; break; case 2: ItemID = 0x1007; sContainer = "jar of reagents"; break; case 3: ItemID = 0x9C8; sContainer = "jug of reagents"; break; case 4: ItemID = 0x5748; sContainer = "bottle of reagents"; break; } string sLiquid = "a strange"; switch (Utility.RandomMinMax(0, 6)) { case 0: sLiquid = "an odd"; break; case 1: sLiquid = "an unusual"; break; case 2: sLiquid = "a bizarre"; break; case 3: sLiquid = "a curious"; break; case 4: sLiquid = "a peculiar"; break; case 5: sLiquid = "a strange"; break; case 6: sLiquid = "a weird"; break; } Name = sLiquid + " " + sContainer; Hue = RandomThings.GetRandomColor(0); Weight = 1.0; Amount = 1; Stackable = false; }
public MagicBelt() { Resource = CraftResource.None; switch (Utility.Random(3)) { case 0: Name = "belt"; ItemID = 0x2790; break; case 1: Name = "loin cloth"; ItemID = 0x2B68; break; case 2: Name = "apron"; ItemID = 0x153b; break; } Hue = RandomThings.GetRandomColor(0); if (Utility.RandomBool()) { Hue = RandomThings.GetRandomSpecialColor(); } Layer = Layer.Waist; Weight = 2.0; //Name = LootPackEntry.MagicItemAdj( "start", false, false, ItemID ) + " " + Name; }
public override void OnDoubleClick(Mobile from) { if (from.Blessed) { from.SendMessage("You cannot look through that while in this state."); } else if (!from.InRange(GetWorldLocation(), 3)) { from.SendMessage("You will have to get closer to it!"); } else if (m_Uses < 5) { m_Uses++; if (Server.Misc.GetPlayerInfo.LuckyPlayer(from.Luck) && Utility.RandomBool()) { m_Uses--; } from.PlaySound(0x2E5); from.SendMessage("You pull something from the treasure hoard!"); Item item = null; switch (Utility.Random(17)) { case 0: item = Loot.RandomArty(); break; case 1: item = DungeonLoot.RandomSlayer(); break; case 2: item = Loot.RandomSArty(); break; case 3: if (Server.Misc.GetPlayerInfo.EvilPlay(from) == true && Utility.RandomMinMax(0, 10) == 10) { item = DungeonLoot.RandomEvil(); } else { item = Loot.RandomRelic(); if (item is DDRelicWeapon && Server.Misc.GetPlayerInfo.OrientalPlay(from) == true) { Server.Items.DDRelicWeapon.MakeOriental(item); } else if (item is DDRelicStatue && Server.Misc.GetPlayerInfo.OrientalPlay(from) == true) { Server.Items.DDRelicStatue.MakeOriental(item); } else if (item is DDRelicBanner && item.ItemID != 0x2886 && item.ItemID != 0x2887 && Server.Misc.GetPlayerInfo.OrientalPlay(from) == true) { Server.Items.DDRelicBanner.MakeOriental(item); } } break; case 4: item = DungeonLoot.RandomRare(); if (item.Stackable == true) { item.Amount = Utility.RandomMinMax(5, 20); } break; case 5: item = DungeonLoot.RandomLoreBooks(); break; case 6: if (Utility.Random(4) != 1) { item = Loot.RandomScroll(0, 7, SpellbookType.Regular); } else { item = Loot.RandomScroll(0, 17, SpellbookType.Necromancer); } break; case 7: int luckMod = from.Luck; if (luckMod > 2000) { luckMod = 2000; } if ((Region.Find(from.Location, from.Map)).IsPartOf("the Ancient Crash Site") || (Region.Find(from.Location, from.Map)).IsPartOf("the Ancient Sky Ship")) { item = new DDXormite((luckMod + Utility.RandomMinMax(333, 666))); } else if (Worlds.GetMyWorld(from.Map, from.Location, from.X, from.Y) == "the Mines of Morinia") { item = new Crystals((luckMod + Utility.RandomMinMax(200, 400))); } else if (Worlds.GetMyWorld(from.Map, from.Location, from.X, from.Y) == "the Underworld") { item = new DDJewels((luckMod + Utility.RandomMinMax(500, 1000))); } else { item = new Gold((luckMod + Utility.RandomMinMax(1000, 2000))); } break; case 8: case 9: case 10: case 11: item = Loot.RandomArmorOrShieldOrWeaponOrJewelry(Server.LootPackEntry.IsInTokuno(from)); ContainerFunctions.LootMutate(from, Server.LootPack.GetRegularLuckChance(from), item, null, Utility.RandomMinMax(5, 10)); break; case 12: item = Loot.RandomInstrument(); int attributeCount; int min, max; Server.Misc.ContainerFunctions.GetRandomAOSStats(out attributeCount, out min, out max, 6); BaseInstrument instr = (BaseInstrument)item; int cHue = 0; int cUse = 0; switch (instr.Resource) { case CraftResource.AshTree: cHue = MaterialInfo.GetMaterialColor("ash", "", 0); cUse = 20; break; case CraftResource.CherryTree: cHue = MaterialInfo.GetMaterialColor("cherry", "", 0); cUse = 40; break; case CraftResource.EbonyTree: cHue = MaterialInfo.GetMaterialColor("ebony", "", 0); cUse = 60; break; case CraftResource.GoldenOakTree: cHue = MaterialInfo.GetMaterialColor("gold", "", 0); cUse = 80; break; case CraftResource.HickoryTree: cHue = MaterialInfo.GetMaterialColor("hickory", "", 0); cUse = 100; break; case CraftResource.MahoganyTree: cHue = MaterialInfo.GetMaterialColor("mahogany", "", 0); cUse = 120; break; case CraftResource.DriftwoodTree: cHue = MaterialInfo.GetMaterialColor("driftwood", "", 0); cUse = 120; break; case CraftResource.OakTree: cHue = MaterialInfo.GetMaterialColor("oak", "", 0); cUse = 140; break; case CraftResource.PineTree: cHue = MaterialInfo.GetMaterialColor("pine", "", 0); cUse = 160; break; case CraftResource.RosewoodTree: cHue = MaterialInfo.GetMaterialColor("rosewood", "", 0); cUse = 180; break; case CraftResource.WalnutTree: cHue = MaterialInfo.GetMaterialColor("walnute", "", 0); cUse = 200; break; } if (!(Server.Misc.Worlds.IsOnSpaceship(from.Location, from.Map))) { if (cHue > 0) { item.Hue = cHue; } else if (Utility.RandomMinMax(1, 4) == 1) { item.Hue = RandomThings.GetRandomColor(0); } Server.Misc.MorphingTime.MakeOrientalItem(item, from); item.Name = LootPackEntry.MagicItemName(item, from, Region.Find(from.Location, from.Map)); } else { string newName = "odd alien"; switch (Utility.RandomMinMax(0, 6)) { case 0: newName = "odd"; break; case 1: newName = "unusual"; break; case 2: newName = "bizarre"; break; case 3: newName = "curious"; break; case 4: newName = "peculiar"; break; case 5: newName = "strange"; break; case 6: newName = "weird"; break; } switch (Utility.RandomMinMax(1, 4)) { case 1: item = new Pipes(); item.Name = newName + " " + Server.Misc.RandomThings.GetRandomAlienRace() + " pipes"; break; case 2: item = new Pipes(); item.Name = newName + " " + Server.Misc.RandomThings.GetRandomAlienRace() + " pan flute"; break; case 3: item = new Fiddle(); item.Name = newName + " " + Server.Misc.RandomThings.GetRandomAlienRace() + " violin"; break; case 4: item = new Fiddle(); item.Name = newName + " " + Server.Misc.RandomThings.GetRandomAlienRace() + " fiddle"; break; } BaseInstrument lute = (BaseInstrument)item; lute.Resource = CraftResource.None; item.Hue = Server.Misc.RandomThings.GetRandomColor(0); } instr.UsesRemaining = instr.UsesRemaining + cUse; BaseRunicTool.ApplyAttributesTo((BaseInstrument)item, attributeCount, min, max); SlayerName slayer = BaseRunicTool.GetRandomSlayer(); instr.Quality = InstrumentQuality.Regular; if (Utility.RandomMinMax(1, 4) == 1) { instr.Quality = InstrumentQuality.Exceptional; } if (Utility.RandomMinMax(1, 4) == 1) { instr.Slayer = slayer; } break; case 13: item = Loot.RandomGem(); break; case 14: item = Loot.RandomPotion(); break; case 15: item = Loot.RandomWand(); Server.Misc.MaterialInfo.ColorMetal(item, 0); string wandOwner = ""; if (Utility.RandomMinMax(1, 3) == 1) { wandOwner = Server.LootPackEntry.MagicWandOwner() + " "; } item.Name = wandOwner + item.Name; break; case 16: m_Uses = 6; // STOP GIVING LOOT WHEN THEY GET A CONTAINER int chestLuck = Server.Misc.GetPlayerInfo.LuckyPlayerArtifacts(from.Luck); if (chestLuck < 3) { chestLuck = 3; } if (chestLuck > 8) { chestLuck = 8; } item = new LootChest(Utility.RandomMinMax(3, chestLuck)); item.ItemID = Utility.RandomList(0x9AB, 0xE40, 0xE41, 0xE7C); item.Hue = Utility.RandomList(0x961, 0x962, 0x963, 0x964, 0x965, 0x966, 0x967, 0x968, 0x969, 0x96A, 0x96B, 0x96C, 0x96D, 0x96E, 0x96F, 0x970, 0x971, 0x972, 0x973, 0x974, 0x975, 0x976, 0x977, 0x978, 0x979, 0x97A, 0x97B, 0x97C, 0x97D, 0x97E, 0x4AA); Region reg = Region.Find(from.Location, from.Map); string box = "hoard chest"; switch (Utility.RandomMinMax(0, 7)) { case 0: box = "hoard chest"; break; case 1: box = "treasure chest"; break; case 2: box = "secret chest"; break; case 3: box = "fabled chest"; break; case 4: box = "legendary chest"; break; case 5: box = "mythical chest"; break; case 6: box = "lost chest"; break; case 7: box = "stolen chest"; break; } if (Server.Misc.Worlds.IsOnSpaceship(from.Location, from.Map)) { Server.Misc.ContainerFunctions.MakeSpaceCrate(((LockableContainer)item)); box = item.Name; } switch (Utility.RandomMinMax(0, 1)) { case 0: item.Name = box + " from " + Server.Misc.Worlds.GetRegionName(from.Map, from.Location); break; case 1: item.Name = box + " of " + HoardName; break; } int xTraCash = Utility.RandomMinMax(5000, 8000); int zone = 0; if (Worlds.IsOnSpaceship(from.Location, from.Map)) { zone = 1; } else if (Worlds.GetMyWorld(from.Map, from.Location, from.X, from.Y) == "the Underworld") { zone = 2; } ContainerFunctions.AddGoldToContainer(xTraCash, (LootChest)item, zone); int artychance = GetPlayerInfo.LuckyPlayerArtifacts(from.Luck) + 10; if (Utility.RandomMinMax(0, 100) < artychance) { ((LootChest)item).DropItem(Loot.RandomArty()); } break; } if (item != null) { if (Worlds.IsOnSpaceship(from.Location, from.Map)) { Server.Misc.MorphingTime.MakeSpaceAceItem(item, from); } if (item is Container) { item.MoveToWorld(from.Location, from.Map); } else { from.AddToBackpack(item); } } else { if (Worlds.IsOnSpaceship(from.Location, from.Map)) { item = new DDXormite((from.Luck + Utility.RandomMinMax(333, 666))); } else if (Worlds.GetMyWorld(from.Map, from.Location, from.X, from.Y) == "the Underworld") { item = new DDJewels((from.Luck + Utility.RandomMinMax(500, 1000))); } else { item = new Gold((from.Luck + Utility.RandomMinMax(1000, 2000))); } if (item != null) { from.AddToBackpack(item); } } } else { from.SendMessage("There is nothing else worth taking from this pile!"); this.Delete(); } }
public BarFlyWizardWest() : base( ) { if (Utility.RandomMinMax(1, 2) == 1) { Body = 401; Name = NameList.RandomName("female"); } else { Body = 400; Name = NameList.RandomName("male"); FacialHairItemID = Utility.RandomList(0, 0, 8254, 8255, 8256, 8257, 8267, 8268, 8269); } Blessed = true; CantWalk = true; Direction = Direction.West; Title = TavernPatrons.GetTitle(); Hue = Utility.RandomSkinHue(); Utility.AssignRandomHair(this); SpeechHue = Utility.RandomDyedHue(); NameHue = Utility.RandomOrangeHue(); SetStr(161, 175); SetDex(151, 165); SetInt(386, 400); SetHits(160, 175); 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, 80.0); SetSkill(SkillName.EvalInt, 125.0); SetSkill(SkillName.Poisoning, 60.0, 82.5); SetSkill(SkillName.MagicResist, 83.5, 92.5); SetSkill(SkillName.Magery, 125.0); SetSkill(SkillName.Tactics, 125.0); SetSkill(SkillName.Wrestling, 100); Fame = 0; Karma = 0; VirtualArmor = 30; PackItem(new BlackStaff()); int aHue = RandomThings.GetRandomColor(0); AddItem(new Boots(Utility.RandomNeutralHue())); if (1 == Utility.RandomMinMax(1, 2)) { AddItem(new Cloak(aHue)); } int iArmor = Utility.RandomMinMax(1, 3); if (iArmor == 1) { Item cloth1 = new Robe(); cloth1.Hue = aHue; AddItem(cloth1); Item cloth2 = new WizardsHat(); cloth2.Hue = aHue; AddItem(cloth2); } else if (iArmor == 2) { Item cloth1 = new Robe(); cloth1.Hue = aHue; AddItem(cloth1); } else { Item cloth1 = new FancyShirt(); cloth1.Hue = aHue; AddItem(cloth1); Item cloth2 = new LongPants(); cloth2.Hue = Utility.RandomNeutralHue(); AddItem(cloth2); } int HairColor = Utility.RandomHairHue(); HairHue = HairColor; FacialHairHue = HairColor; }
public MagicRobe() { Resource = CraftResource.None; Name = "robe"; Hue = RandomThings.GetRandomColor(0); if (Utility.RandomBool()) { Hue = RandomThings.GetRandomSpecialColor(); } Layer = Layer.OuterTorso; Weight = 3.0; switch (Utility.RandomMinMax(1, 20)) { case 1: ItemID = Utility.RandomList(0x230E, 0x230D); Name = "gilded dress"; break; case 2: ItemID = Utility.RandomList(0x1F00, 0x1EFF); Name = "fancy dress"; break; case 3: ItemID = Utility.RandomList(0x1F01, 0x1F02); Name = "dress"; break; case 4: ItemID = Utility.RandomList(0x1F03, 0x1F04, 0x26AE); Name = "robe"; break; case 5: ItemID = Utility.RandomList(0x204E); Name = "shroud"; break; case 6: ItemID = Utility.RandomList(0x2B69, 0x3160); Name = "assassin robe"; break; case 7: ItemID = Utility.RandomList(0x2B70, 0x3167); Name = "magistrate robe"; break; case 8: ItemID = Utility.RandomList(0x2B6C, 0x3163); Name = "gilded robe"; break; case 9: ItemID = Utility.RandomList(0x2FB9, 0x3173); Name = "assassin shroud"; break; case 10: ItemID = Utility.RandomList(0x2FBA, 0x3174); Name = "necromancer robe"; break; case 11: ItemID = Utility.RandomList(0x3175, 0x3178); Name = "sorcerer robe"; break; case 12: ItemID = Utility.RandomList(0x2B6A, 0x3161); Name = "fancy robe"; break; case 13: ItemID = Utility.RandomList(0x2B6E, 0x3165); Name = "ornate robe"; break; case 14: ItemID = Utility.RandomList(0x2B73, 0x316A); Name = "royal robe"; break; case 15: ItemID = Utility.RandomList(0x2FC6, 0x2FC7); Name = "spider robe"; break; case 16: ItemID = Utility.RandomList(0x2B6B, 0x3162); Name = "jester coat"; break; case 17: ItemID = Utility.RandomList(0x201B, 0x201C); Name = "dragon robe"; break; case 18: ItemID = Utility.RandomList(0x201F, 0x2020); Name = "chaos robe"; break; case 19: ItemID = Utility.RandomList(0x201D, 0x201E); Name = "vampire robe"; break; case 20: ItemID = Utility.RandomList(0x2799, 0x27E4); switch (Utility.RandomMinMax(1, 5)) { case 1: Name = "sorcerer robe"; break; case 2: Name = "magician robe"; break; case 3: Name = "conjurer robe"; break; case 4: Name = "mage robe"; break; case 5: Name = "warlock robe"; break; } break; } //Name = LootPackEntry.MagicItemAdj( "start", false, false, ItemID ) + " " + Name; }
public ElfEvilSailorMinstrel() : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); switch (Utility.RandomMinMax(0, 8)) { case 0: Title = "the drow bard"; break; case 1: Title = "the drow minstrel"; break; case 2: Title = "the drow troubadour"; break; case 3: Title = "the drow musician"; break; case 4: Title = "the drow balladeer"; break; case 5: Title = "the drow buccaneer"; break; case 6: Title = "the drow pirate"; break; case 7: Title = "the drow buccaneer"; break; case 8: Title = "the drow pirate"; break; } Race = Race.Elf; Hue = 1316; HairHue = 1150; if (this.Female = Utility.RandomBool()) { Body = 606; Name = NameList.RandomName("elf_female"); AddItem(new Skirt(RandomThings.GetRandomColor(0))); Utility.AssignRandomHair(this); } else { Body = 605; Name = NameList.RandomName("elf_male"); AddItem(new ShortPants(RandomThings.GetRandomColor(0))); Utility.AssignRandomHair(this); } SetStr(86, 100); SetDex(81, 95); SetInt(61, 75); SetDamage(10, 23); SetSkill(SkillName.Archery, 80.1, 90.0); SetSkill(SkillName.Wrestling, 66.0, 97.5); SetSkill(SkillName.MagicResist, 25.0, 47.5); SetSkill(SkillName.Tactics, 65.0, 87.5); Fame = 2000; Karma = -2000; AddItem(new ElvenBoots(0x6F8)); Item armor = new LeatherChest(); armor.Hue = 0x6F8; AddItem(armor); AddItem(new FancyShirt(0)); switch (Utility.Random(2)) { case 0: AddItem(new LongPants(0xBB4)); break; case 1: AddItem(new ShortPants(0xBB4)); break; } switch (Utility.Random(2)) { case 0: AddItem(new Bandana(0x846)); break; case 1: AddItem(new SkullCap(0x846)); break; } switch (Utility.Random(2)) { case 0: AddItem(new Crossbow()); PackItem(new Bolt(Utility.RandomMinMax(5, 15))); break; case 1: AddItem(new Bow()); PackItem(new Arrow(Utility.RandomMinMax(5, 15))); break; } switch (Utility.Random(5)) { case 0: PackItem(new BambooFlute()); SpeechHue = 0x504; break; case 1: PackItem(new Drums()); SpeechHue = 0x38; break; case 2: PackItem(new Tambourine()); SpeechHue = 0x52; break; case 3: PackItem(new LapHarp()); SpeechHue = 0x45; break; case 4: PackItem(new Lute()); SpeechHue = 0x4C; break; } }
public SailorArcher() : base(AIType.AI_Archer, FightMode.Aggressor, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); switch (Utility.RandomMinMax(0, 4)) { case 0: Title = "the sailor"; break; case 1: Title = "the fisherman"; break; case 2: Title = "the mariner"; break; case 3: Title = "the archer"; break; case 4: Title = "the seafarer"; break; } Hue = Utility.RandomSkinHue(); if (this.Female = Utility.RandomBool()) { Body = 0x191; Name = NameList.RandomName("female"); AddItem(new Skirt(RandomThings.GetRandomColor(0))); Utility.AssignRandomHair(this); HairHue = Utility.RandomHairHue(); } else { Body = 0x190; Name = NameList.RandomName("male"); AddItem(new ShortPants(RandomThings.GetRandomColor(0))); Utility.AssignRandomHair(this); int HairColor = Utility.RandomHairHue(); FacialHairItemID = Utility.RandomList(0, 8254, 8255, 8256, 8257, 8267, 8268, 8269); HairHue = HairColor; FacialHairHue = HairColor; } SetStr(86, 100); SetDex(81, 95); SetInt(61, 75); SetDamage(10, 23); SetSkill(SkillName.Archery, 80.1, 90.0); SetSkill(SkillName.Wrestling, 66.0, 97.5); SetSkill(SkillName.MagicResist, 25.0, 47.5); SetSkill(SkillName.Tactics, 65.0, 87.5); Fame = 2000; Karma = 2000; AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new FancyShirt(RandomThings.GetRandomColor(0))); AddItem(new SkullCap(RandomThings.GetRandomColor(0))); int lHue = Utility.RandomMetalHue(); if (Utility.RandomMinMax(1, 3) == 3) { Item cloth1 = new StuddedChest(); cloth1.Hue = lHue; AddItem(cloth1); Item cloth2 = new StuddedArms(); cloth2.Hue = lHue; AddItem(cloth2); Item cloth3 = new StuddedLegs(); cloth3.Hue = lHue; AddItem(cloth3); Item cloth4 = new StuddedGorget(); cloth4.Hue = lHue; AddItem(cloth4); } else { Item cloth1 = new LeatherArms(); cloth1.Hue = lHue; AddItem(cloth1); Item cloth2 = new LeatherChest(); cloth2.Hue = lHue; AddItem(cloth2); Item cloth3 = new LeatherGorget(); cloth3.Hue = lHue; AddItem(cloth3); Item cloth4 = new LeatherLegs(); cloth4.Hue = lHue; AddItem(cloth4); } switch (Utility.Random(2)) { case 0: AddItem(new Crossbow()); PackItem(new Bolt(Utility.RandomMinMax(15, 55))); break; case 1: AddItem(new Bow()); PackItem(new Arrow(Utility.RandomMinMax(15, 55))); break; } }
public HighSeasRelic() : base(0x41FD) { Hue = Utility.RandomList(0xB97, 0xB98, 0xB99, 0xB9A, 0xB88); switch (Utility.RandomMinMax(0, 20)) { case 0: Name = "anchor"; ItemID = 0x897; Weight = 100.0; RelicGoldValue = Utility.RandomMinMax(80, 200); RelicFlipID1 = 0x897; RelicFlipID2 = 0x898; Server.Misc.MaterialInfo.ColorPlainMetal(this); break; case 1: Name = "ruined barrel"; ItemID = 0x1EB5; Weight = 20.0; RelicGoldValue = Utility.RandomMinMax(20, 80); RelicFlipID1 = 0x1EB5; RelicFlipID2 = 0x1EB5; break; case 2: Name = "old cannon ball"; ItemID = 0x0E73; Weight = 10.0; RelicGoldValue = Utility.RandomMinMax(10, 20); RelicFlipID1 = 0x0E73; RelicFlipID2 = 0x0E73; break; case 3: Name = "old cannon balls"; ItemID = 0x0E74; Weight = 50.0; RelicGoldValue = Utility.RandomMinMax(20, 40); RelicFlipID1 = 0x0E74; RelicFlipID2 = 0x0E74; break; case 4: Name = "broken clock"; ItemID = 0x0C1F; Weight = 2.0; RelicGoldValue = Utility.RandomMinMax(20, 40); RelicFlipID1 = 0x0C1F; RelicFlipID2 = 0x0C1F; break; case 5: Name = "model ship"; ItemID = 0x14F3; Weight = 5.0; RelicGoldValue = Utility.RandomMinMax(60, 130); RelicFlipID1 = 0x14F3; RelicFlipID2 = 0x14F4; break; case 6: Name = "mounted lobster"; ItemID = 0x46BC; Weight = 2.0; RelicGoldValue = Utility.RandomMinMax(40, 80); RelicFlipID1 = 0x46BC; RelicFlipID2 = 0x46BD; break; case 7: Name = "mounted crab"; ItemID = 0x46BA; Weight = 2.0; RelicGoldValue = Utility.RandomMinMax(40, 80); RelicFlipID1 = 0x46BA; RelicFlipID2 = 0x46BB; break; case 8: Name = "ruined spyglass"; ItemID = 0x14F5; Weight = 1.0; RelicGoldValue = Utility.RandomMinMax(20, 40); RelicFlipID1 = 0x14F5; RelicFlipID2 = 0x14F6; break; case 9: Name = "soggy rope"; ItemID = 0x14F8; Weight = 10.0; RelicGoldValue = Utility.RandomMinMax(10, 30); RelicFlipID1 = 0x14F8; RelicFlipID2 = 0x14FA; break; case 10: Name = "worn flogging whip"; ItemID = 0x166E; Weight = 2.0; RelicGoldValue = Utility.RandomMinMax(10, 30); RelicFlipID1 = 0x166E; RelicFlipID2 = 0x166E; break; case 11: Name = "cracked hourglass"; ItemID = 0x1810; Weight = 2.0; RelicGoldValue = Utility.RandomMinMax(20, 40); RelicFlipID1 = 0x1810; RelicFlipID2 = 0x1813; break; case 12: Name = "keg of rum"; ItemID = 0x1AD6; Weight = 20.0; RelicGoldValue = Utility.RandomMinMax(50, 120); RelicFlipID1 = 0x1AD6; RelicFlipID2 = 0x1AD7; Hue = 0x96D; break; case 13: Name = "warped oars"; ItemID = 0x1E2A; Weight = 10.0; RelicGoldValue = Utility.RandomMinMax(40, 100); RelicFlipID1 = 0x1E2A; RelicFlipID2 = 0x1E2B; break; case 14: Name = "ruined fishing net"; ItemID = 0x1EA3; Weight = 10.0; RelicGoldValue = Utility.RandomMinMax(30, 90); RelicFlipID1 = 0x1EA3; RelicFlipID2 = 0x1EA4; break; case 15: Name = "rotten fishing net"; ItemID = 0x1EA5; Weight = 10.0; RelicGoldValue = Utility.RandomMinMax(30, 90); RelicFlipID1 = 0x1EA5; RelicFlipID2 = 0x1EA6; break; case 16: Name = "bottle of rum"; ItemID = 0xE26; Weight = 1.0; RelicGoldValue = Utility.RandomMinMax(10, 30); RelicFlipID1 = 0xE26; RelicFlipID2 = 0xEFE; break; case 17: Name = "broken globe"; ItemID = 0x1047; Weight = 1.0; RelicGoldValue = Utility.RandomMinMax(20, 40); RelicFlipID1 = 0x1047; RelicFlipID2 = 0x1048; break; case 18: Name = "busted sextant"; ItemID = 0x1057; Weight = 1.0; RelicGoldValue = Utility.RandomMinMax(10, 30); RelicFlipID1 = 0x1057; RelicFlipID2 = 0x1058; break; case 19: Name = "ruined pirate hat"; ItemID = 0x171B; Weight = 1.0; RelicGoldValue = Utility.RandomMinMax(10, 30); RelicFlipID1 = 0x171B; RelicFlipID2 = 0x171B; break; case 20: Name = "the captain's log"; Hue = RandomThings.GetRandomColor(0); ItemID = Utility.RandomList(0xFBD, 0xFBE, 0xFEF, 0xFF0, 0xFF1, 0xFF2, 0x42BF, 0xE3B, 0xEFA, 0x2253, 0x2254, 0x42BF); Weight = 1.0; RelicGoldValue = Utility.RandomMinMax(50, 130); RelicFlipID1 = ItemID; RelicFlipID2 = ItemID; break; } string boat = RandomThings.GetRandomShipName(""); RelicOrigin = "Recovered From " + boat; }
public BarFlyWarriorWest() : base( ) { if (Utility.RandomMinMax(1, 2) == 1) { Body = 401; Name = NameList.RandomName("female"); } else { Body = 400; Name = NameList.RandomName("male"); FacialHairItemID = Utility.RandomList(0, 0, 8254, 8255, 8256, 8257, 8267, 8268, 8269); } Direction = Direction.West; Blessed = true; CantWalk = true; Title = TavernPatrons.GetTitle(); Hue = Utility.RandomSkinHue(); Utility.AssignRandomHair(this); SpeechHue = Utility.RandomDyedHue(); NameHue = Utility.RandomOrangeHue(); SetStr(386, 400); SetDex(151, 165); SetInt(161, 175); SetHits(300, 400); 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, 80.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); SetSkill(SkillName.Wrestling, 100); Fame = 0; Karma = 0; VirtualArmor = 30; PackItem(new Longsword()); AddItem(new Boots(Utility.RandomNeutralHue())); if (1 == Utility.RandomMinMax(1, 2)) { AddItem(new Cloak(RandomThings.GetRandomColor(0))); } int aHue = Utility.RandomList(0x973, 0x966, 0x96D, 0x972, 0x8A5, 0x979, 0x89F, 0x8AB, 0, Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue()); int lHue = Utility.RandomList(0x8AC, 0x845, 0x851, 0x47E, 0x4AA, 0xB85, 0x497, 0x89F, 0x483, 0, Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue(), Utility.RandomMetalHue()); int iArmor = Utility.RandomMinMax(1, 4); if (iArmor == 1) { Item cloth1 = new PlateArms(); cloth1.Hue = aHue; AddItem(cloth1); Item cloth2 = new PlateGorget(); cloth2.Hue = aHue; AddItem(cloth2); Item cloth3 = new PlateLegs(); cloth3.Hue = aHue; AddItem(cloth3); Item cloth4 = new PlateChest(); cloth4.Hue = aHue; AddItem(cloth4); } else if (iArmor == 2) { Item cloth1 = new ChainChest(); cloth1.Hue = aHue; AddItem(cloth1); Item cloth2 = new ChainLegs(); cloth2.Hue = aHue; AddItem(cloth2); Item cloth3 = new RingmailArms(); cloth3.Hue = aHue; AddItem(cloth3); Item cloth4 = new PlateGorget(); cloth4.Hue = aHue; AddItem(cloth4); } else if (iArmor == 3) { Item cloth1 = new StuddedChest(); cloth1.Hue = lHue; AddItem(cloth1); Item cloth2 = new StuddedArms(); cloth2.Hue = lHue; AddItem(cloth2); Item cloth3 = new StuddedLegs(); cloth3.Hue = lHue; AddItem(cloth3); Item cloth4 = new StuddedGorget(); cloth4.Hue = lHue; AddItem(cloth4); } else { Item cloth1 = new LeatherArms(); cloth1.Hue = lHue; AddItem(cloth1); Item cloth2 = new LeatherChest(); cloth2.Hue = lHue; AddItem(cloth2); Item cloth3 = new LeatherGorget(); cloth3.Hue = lHue; AddItem(cloth3); Item cloth4 = new LeatherLegs(); cloth4.Hue = lHue; AddItem(cloth4); } int HairColor = Utility.RandomHairHue(); HairHue = HairColor; FacialHairHue = HairColor; }
public WereWolf() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); if (this.Female = Utility.RandomBool()) { this.Body = 0x191; this.Name = NameList.RandomName("female"); Utility.AssignRandomHair(this); HairHue = Utility.RandomHairHue(); } else { this.Body = 0x190; this.Name = NameList.RandomName("male"); Utility.AssignRandomHair(this); int HairColor = Utility.RandomHairHue(); FacialHairItemID = Utility.RandomList(0, 8254, 8255, 8256, 8257, 8267, 8268, 8269); HairHue = HairColor; FacialHairHue = HairColor; } SetStr(80, 120); SetDex(80, 120); SetInt(30, 50); 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, 80.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.Wrestling, 125.0); SetSkill(SkillName.Tactics, 125.0); Fame = 8000; Karma = -8000; VirtualArmor = 5; if (Utility.RandomMinMax(0, 1) == 1) { switch (Utility.Random(5)) { case 0: AddItem(new StuddedChest( )); AddItem(new StuddedArms( )); AddItem(new StuddedLegs( )); AddItem(new StuddedGorget( )); AddItem(new StuddedGloves( )); break; case 1: AddItem(new PlateChest( )); AddItem(new PlateArms( )); AddItem(new PlateLegs( )); AddItem(new PlateGorget( )); AddItem(new PlateGloves( )); break; case 2: AddItem(new ChainChest( )); AddItem(new RingmailArms( )); AddItem(new ChainLegs( )); AddItem(new RingmailGloves( )); break; case 3: AddItem(new RingmailChest( )); AddItem(new RingmailArms( )); AddItem(new RingmailLegs( )); AddItem(new RingmailGloves( )); break; case 4: AddItem(new BoneChest( )); AddItem(new BoneArms( )); AddItem(new BoneLegs( )); AddItem(new BoneGloves( )); break; } switch (Utility.Random(9)) { case 0: AddItem(new PlateHelm( )); break; case 1: AddItem(new Bascinet( )); break; case 2: AddItem(new ChainCoif( )); break; case 3: AddItem(new CloseHelm( )); break; case 4: AddItem(new OrcHelm( )); break; case 5: AddItem(new NorseHelm( )); break; case 6: AddItem(new BoneHelm( )); break; } AddItem(new Boots( )); switch (Utility.Random(7)) { case 0: AddItem(new BattleAxe()); break; case 1: AddItem(new VikingSword()); break; case 2: AddItem(new Halberd()); break; case 3: AddItem(new DoubleAxe()); break; case 4: AddItem(new ExecutionersAxe()); break; case 5: AddItem(new WarAxe()); break; case 6: AddItem(new TwoHandedAxe()); break; } switch (Utility.RandomMinMax(0, 5)) { case 0: Title = "the warrior"; break; case 1: Title = "the berserker"; break; case 2: Title = "the barbarian"; break; case 3: Title = "the fighter"; break; case 4: Title = "the knight"; break; case 5: Title = "the champion"; break; } } else { switch (Utility.RandomMinMax(0, 4)) { case 0: Title = "the thief"; break; case 1: Title = "the rogue"; break; case 2: Title = "the robber"; break; case 3: Title = "the brigand"; break; case 4: Title = "the bandit"; break; } AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new FancyShirt(RandomThings.GetRandomColor(0))); AddItem(new LongPants(Utility.RandomNeutralHue())); AddItem(new SkullCap(RandomThings.GetRandomColor(0))); switch (Utility.Random(7)) { case 0: AddItem(new Longsword()); break; case 1: AddItem(new Cutlass()); break; case 2: AddItem(new Broadsword()); break; case 3: AddItem(new Axe()); break; case 4: AddItem(new Club()); break; case 5: AddItem(new Dagger()); break; case 6: AddItem(new Spear()); break; } } if (Utility.RandomBool()) { Morph(); } }
public ElfMinstrel() : base(AIType.AI_Archer, FightMode.Closest, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); switch (Utility.RandomMinMax(0, 4)) { case 0: Title = "the drow bard"; break; case 1: Title = "the drow minstrel"; break; case 2: Title = "the drow troubadour"; break; case 3: Title = "the drow musician"; break; case 4: Title = "the drow balladeer"; break; } Hue = 1316; Race = Race.Elf; HairHue = 1150; if (this.Female = Utility.RandomBool()) { Body = 606; Name = NameList.RandomName("dark_elf_prefix_female") + NameList.RandomName("dark_elf_suffix_female"); AddItem(new Skirt(RandomThings.GetRandomColor(0))); Utility.AssignRandomHair(this); } else { Body = 605; Name = NameList.RandomName("dark_elf_prefix_male") + NameList.RandomName("dark_elf_suffix_male"); AddItem(new ShortPants(RandomThings.GetRandomColor(0))); Utility.AssignRandomHair(this); int HairColor = Utility.RandomHairHue(); } SetStr(86, 100); SetDex(81, 95); SetInt(61, 75); SetDamage(10, 23); SetSkill(SkillName.Archery, 80.1, 90.0); SetSkill(SkillName.Wrestling, 66.0, 97.5); SetSkill(SkillName.MagicResist, 25.0, 47.5); SetSkill(SkillName.Tactics, 65.0, 87.5); Fame = 2000; Karma = -2000; AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new FancyShirt(RandomThings.GetRandomColor(0))); switch (Utility.Random(4)) { case 0: AddItem(new FeatheredHat(RandomThings.GetRandomColor(0))); break; case 1: AddItem(new FloppyHat(RandomThings.GetRandomColor(0))); break; case 2: AddItem(new StrawHat(RandomThings.GetRandomColor(0))); break; case 3: AddItem(new SkullCap(RandomThings.GetRandomColor(0))); break; } switch (Utility.Random(2)) { case 0: AddItem(new Crossbow()); PackItem(new Bolt(Utility.RandomMinMax(5, 15))); break; case 1: AddItem(new Bow()); PackItem(new Arrow(Utility.RandomMinMax(5, 15))); break; } switch (Utility.Random(5)) { case 0: PackItem(new BambooFlute()); SpeechHue = 0x504; break; case 1: PackItem(new Drums()); SpeechHue = 0x38; break; case 2: PackItem(new Tambourine()); SpeechHue = 0x52; break; case 3: PackItem(new LapHarp()); SpeechHue = 0x45; break; case 4: PackItem(new Lute()); SpeechHue = 0x4C; break; } Server.Misc.IntelligentAction.GiveAdventureGear(this); }
public ElfSailorMinstrel() : base(AIType.AI_Archer, FightMode.Aggressor, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); switch (Utility.RandomMinMax(0, 8)) { case 0: Title = "the elf bard"; break; case 1: Title = "the elf minstrel"; break; case 2: Title = "the elf troubadour"; break; case 3: Title = "the elf musician"; break; case 4: Title = "the elf balladeer"; break; case 5: Title = "the elf sailor"; break; case 6: Title = "the elf fisherman"; break; case 7: Title = "the elf sailor"; break; case 8: Title = "the elf fisherman"; break; } Race = Race.Elf; Hue = Utility.RandomSkinHue(); HairHue = Utility.RandomHairHue(); if (this.Female = Utility.RandomBool()) { Body = 606; Name = NameList.RandomName("elf_female"); AddItem(new Skirt(RandomThings.GetRandomColor(0))); Utility.AssignRandomHair(this); } else { Body = 605; Name = NameList.RandomName("elf_male"); AddItem(new ShortPants(RandomThings.GetRandomColor(0))); Utility.AssignRandomHair(this); } SetStr(86, 100); SetDex(81, 95); SetInt(61, 75); SetDamage(10, 23); SetSkill(SkillName.Archery, 80.1, 90.0); SetSkill(SkillName.Wrestling, 66.0, 97.5); SetSkill(SkillName.MagicResist, 25.0, 47.5); SetSkill(SkillName.Tactics, 65.0, 87.5); Fame = 2000; Karma = 2000; AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new FancyShirt(RandomThings.GetRandomColor(0))); switch (Utility.Random(4)) { case 0: AddItem(new FeatheredHat(RandomThings.GetRandomColor(0))); break; case 1: AddItem(new FloppyHat(RandomThings.GetRandomColor(0))); break; case 2: AddItem(new StrawHat(RandomThings.GetRandomColor(0))); break; case 3: AddItem(new SkullCap(RandomThings.GetRandomColor(0))); break; } switch (Utility.Random(2)) { case 0: AddItem(new Crossbow()); PackItem(new Bolt(Utility.RandomMinMax(5, 15))); break; case 1: AddItem(new Bow()); PackItem(new Arrow(Utility.RandomMinMax(5, 15))); break; } switch (Utility.Random(5)) { case 0: PackItem(new BambooFlute()); SpeechHue = 0x504; break; case 1: PackItem(new Drums()); SpeechHue = 0x38; break; case 2: PackItem(new Tambourine()); SpeechHue = 0x52; break; case 3: PackItem(new LapHarp()); SpeechHue = 0x45; break; case 4: PackItem(new Lute()); SpeechHue = 0x4C; break; } }