public override void GenerateLoot() { AddLoot(LootPack.Average); if (Utility.RandomDouble() < 0.05) { BaseShield shield = new MetalKiteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 5, 25, 30); } PackItem(shield); } if (Utility.RandomDouble() < 0.05) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 15, 20); PackItem(clothing); } if (Utility.RandomDouble() < 0.05) { BaseJewel jewel1 = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel1, 3, 15, 20); } PackItem(jewel1); } if (Utility.RandomDouble() < 0.05) { BaseJewel jewel2 = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel2, 3, 15, 20); } PackItem(jewel2); } if (Utility.RandomDouble() < 0.05) { BaseJewel jewel3 = new GoldRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel3, 3, 15, 20); } PackItem(jewel3); } }
public Orthal() { Name = "Orthal"; Title = "the Shipmate"; Body = 0x190; Hue = Utility.RandomSkinHue(); Blessed = true; CantWalk = true; Direction = Direction.South; Boots bt = new Boots(); bt.Hue = 0; AddItem(bt); LongPants lp = new LongPants(); lp.Hue = 0; AddItem(lp); FancyShirt fs = new FancyShirt(); fs.Hue = 0; AddItem(fs); TricorneHat th = new TricorneHat(); th.Hue = 0; AddItem(th); Scimitar sc = new Scimitar(); AddItem(sc); GoldBeadNecklace gn = new GoldBeadNecklace(); AddItem(gn); GoldBracelet gb = new GoldBracelet(); AddItem(gb); GoldEarrings ge = new GoldEarrings(); AddItem(ge); GoldRing gr = new GoldRing(); AddItem(gr); AddItem(new PonyTail(1149)); AddItem(new Vandyke(1149)); }
public override void GenerateLoot() { AddLoot(LootPack.Gems, 6); if (Utility.RandomDouble() < 0.05) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 25, 30); PackItem(clothing); } if (Utility.RandomDouble() < 0.05) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 5, 25, 30); } PackItem(bracelet); } if (Utility.RandomDouble() < 0.05) { BaseJewel earrings = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 5, 25, 30); } PackItem(earrings); } if (Utility.RandomDouble() < 0.05) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 5, 25, 30); } PackItem(necklace); } if (Utility.RandomDouble() < 0.05) { BaseJewel ring = new GoldRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 5, 25, 30); } PackItem(ring); } }
public override void GenerateLoot() { AddLoot(LootPack.Rich, 2); AddLoot(LootPack.Gems); if (Utility.RandomDouble() < 0.05) { BaseJewel jewel1 = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel1, 3, 15, 20); } jewel1.Hue = 1152; jewel1.Attributes.WeaponDamage = 6; jewel1.Resistances.Cold = 9; PackItem(jewel1); } if (Utility.RandomDouble() < 0.05) { BaseJewel jewel2 = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel2, 3, 15, 20); } jewel2.Hue = 1152; jewel2.Attributes.WeaponDamage = 9; jewel2.Resistances.Cold = 8; PackItem(jewel2); } if (Utility.RandomDouble() < 0.04) //4% chance to drop. { BaseWeapon weapon = new Lance(); weapon.Hue = 1152; weapon.Attributes.WeaponDamage = 15; weapon.WeaponAttributes.HitHarm = 5; weapon.WeaponAttributes.HitLowerDefend = 10; PackItem(weapon); } }
public override void GenerateLoot() { AddLoot(LootPack.Gems); if (Utility.RandomDouble() < 0.05) { BaseJewel jewel1 = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel1, 3, 15, 20); } jewel1.Resistances.Energy = 8; PackItem(jewel1); } if (Utility.RandomDouble() < 0.05) { BaseJewel jewel2 = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel2, 3, 15, 20); } jewel2.Resistances.Energy = 12; PackItem(jewel2); } if (Utility.RandomDouble() < 0.04) //4% chance to drop. { BaseWeapon weapon = new QuarterStaff(); weapon.Hue = 2106; weapon.Attributes.SpellDamage = 15; weapon.WeaponAttributes.HitLightning = 5; PackItem(weapon); } }
public override void GenerateLoot() { if (Utility.RandomDouble() < 0.05) { BaseJewel jewel1 = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel1, 3, 15, 20); } jewel1.Resistances.Fire = 8; PackItem(jewel1); } if (Utility.RandomDouble() < 0.05) { BaseJewel jewel2 = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel2, 3, 15, 20); } jewel2.Resistances.Fire = 12; PackItem(jewel2); } if (Utility.RandomDouble() < 0.05) //5% chance to drop. { BaseWeapon weapon = new BlackStaff(); weapon.Hue = 1908; weapon.Attributes.SpellDamage = 15; weapon.WeaponAttributes.HitFireball = 5; PackItem(weapon); } }
public Finlor() { Name = "Finlor"; Title = "the Sea Captain"; Body = 0x190; Hue = Utility.RandomSkinHue(); Blessed = true; CantWalk = true; Direction = Direction.South; ThighBoots tb = new ThighBoots(); tb.Hue = 0; AddItem(tb); LongPants lp = new LongPants(); lp.Hue = 6; AddItem(lp); FancyShirt fs = new FancyShirt(); fs.Hue = 0; AddItem(fs); TricorneHat th = new TricorneHat(); th.Hue = 52; AddItem(th); BodySash bs = new BodySash(); bs.Hue = 6; AddItem(bs); Cloak cl = new Cloak(); cl.Hue = 38; AddItem(cl); Scimitar sc = new Scimitar(); AddItem(sc); GoldBeadNecklace gn = new GoldBeadNecklace(); AddItem(gn); GoldBracelet gb = new GoldBracelet(); AddItem(gb); GoldEarrings ge = new GoldEarrings(); AddItem(ge); GoldRing gr = new GoldRing(); AddItem(gr); AddItem(new PonyTail(1149)); AddItem(new Vandyke(1149)); }
public override void GenerateLoot() { AddLoot(LootPack.FilthyRich, 5); AddLoot(LootPack.HighScrolls, 3); AddLoot(LootPack.MedScrolls, 4); AddLoot(LootPack.LowScrolls, 6); AddLoot(LootPack.Gems, 5); if (Utility.RandomDouble() < 0.20) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(33)) { case 0: weapon = new BattleAxe(); break; case 1: weapon = new ExecutionersAxe(); break; case 2: weapon = new LargeBattleAxe(); break; case 3: weapon = new WarAxe(); break; case 4: weapon = new Bow(); break; case 5: weapon = new Crossbow(); break; case 6: weapon = new HeavyCrossbow(); break; case 7: weapon = new WarHammer(); break; case 8: weapon = new WarMace(); break; case 9: weapon = new Bardiche(); break; case 10: weapon = new Halberd(); break; case 11: weapon = new Spear(); break; case 12: weapon = new QuarterStaff(); break; case 13: weapon = new Katana(); break; case 14: weapon = new Longsword(); break; case 15: weapon = new VikingSword(); break; case 16: weapon = new CompositeBow(); break; case 17: weapon = new CrescentBlade(); break; case 18: weapon = new DoubleBladedStaff(); break; case 19: weapon = new Lance(); break; case 20: weapon = new PaladinSword(); break; case 21: weapon = new Scythe(); break; case 22: weapon = new Daisho(); break; case 23: weapon = new Lajatang(); break; case 24: weapon = new NoDachi(); break; case 25: weapon = new Tetsubo(); break; case 26: weapon = new Yumi(); break; case 27: weapon = new ElvenCompositeLongbow(); break; case 28: weapon = new OrnateAxe(); break; case 29: weapon = new RadiantScimitar(); break; case 30: weapon = new WarCleaver(); break; case 31: weapon = new WildStaff(); break; default: weapon = new DiamondMace(); break; } BaseRunicTool.ApplyAttributesTo(weapon, 5, 35, 50); weapon.Hue = 1461; PackItem(weapon); } if (Utility.RandomDouble() < 0.20) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(5)) { case 0: armor = new CrusaderGauntlets(); break; case 1: armor = new CrusaderGorget(); break; case 2: armor = new CrusaderLeggings(); break; case 3: armor = new CrusaderSleeves(); break; default: armor = new CrusaderBreastplate(); break; } BaseRunicTool.ApplyAttributesTo(armor, 5, 35, 50); armor.Hue = 1461; PackItem(armor); } if (Utility.RandomDouble() < 0.20) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 5, 35, 50); clothing.Hue = 1461; PackItem(clothing); } if (Utility.RandomDouble() < 0.10) { BaseShield shield = new MetalKiteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 5, 35, 50); } shield.Hue = 1461; PackItem(shield); } if (Utility.RandomDouble() < 0.10) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 5, 35, 50); } bracelet.Hue = 1461; PackItem(bracelet); } if (Utility.RandomDouble() < 0.10) { BaseJewel earrings = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 5, 35, 50); } earrings.Hue = 1461; PackItem(earrings); } if (Utility.RandomDouble() < 0.10) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 5, 35, 50); } necklace.Hue = 1461; PackItem(necklace); } if (Utility.RandomDouble() < 0.10) { BaseJewel ring = new GoldRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 5, 35, 50); } ring.Hue = 1461; PackItem(ring); } }
public DragonianOverlord() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("dragon"); Title = "the dragonian overlord"; Body = 399; BaseSoundID = 362; SetStr(1103, 1131); SetDex(99, 120); SetInt(734, 752); SetHits(956, 990); SetMana(3670, 3760); SetDamage(15, 25); SetDamageType(ResistanceType.Physical, 75); SetDamageType(ResistanceType.Fire, 25); SetResistance(ResistanceType.Physical, 70); SetResistance(ResistanceType.Fire, 80); SetResistance(ResistanceType.Cold, 10); SetResistance(ResistanceType.Poison, 60); SetResistance(ResistanceType.Energy, 60); SetSkill(SkillName.EvalInt, 72.8, 78.2); SetSkill(SkillName.Magery, 85.8, 99.3); SetSkill(SkillName.Meditation, 61.7, 64.4); SetSkill(SkillName.MagicResist, 120.1, 133.0); SetSkill(SkillName.Tactics, 99.6, 100.0); SetSkill(SkillName.Wrestling, 98.6, 99.0); Fame = 222500; Karma = -222500; ////////////////////////////////Main Pack//////////////////////////////// PackGold(350, 500); PackReg(45, 55); PackItem(new MeteorSwarmScroll()); ////////////////////////////////1st Backpack//////////////////////////////// Container pack1 = new Backpack(); pack1.DropItem(new Cloak(762)); pack1.DropItem(new RoyalCirclet()); if (Utility.RandomDouble() < 0.25) { BaseArmor armor1 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor1, 5, 15, 30); pack1.DropItem(armor1); } if (Utility.RandomDouble() < 0.25) { BaseArmor armor2 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor2, 5, 15, 30); pack1.DropItem(armor2); } if (Utility.RandomDouble() < 0.25) { BaseArmor armor3 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor3, 5, 15, 30); pack1.DropItem(armor3); } if (Utility.RandomDouble() < 0.25) { BaseArmor armor4 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor4, 5, 15, 30); pack1.DropItem(armor4); } if (Utility.RandomDouble() < 0.20) { BaseArmor armor5 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor5, 5, 15, 30); pack1.DropItem(armor5); } if (Utility.RandomDouble() < 0.50) { BaseWeapon weapon = Loot.RandomWeapon(true); BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 30); pack1.DropItem(weapon); } Container bag1 = new Bag(); bag1.DropItem(new Gold(Utility.RandomMinMax(50, 100))); bag1.DropItem(new Bandage(Utility.RandomMinMax(9, 18))); bag1.DropItem(Loot.RandomGem()); bag1.DropItem(Loot.RandomGem()); pack1.DropItem(bag1); PackItem(pack1); ////////////////////////////////2nd Backpack//////////////////////////////// Container pack2 = new Backpack(); if (Utility.RandomDouble() < 0.25) { BaseWeapon weapon = Loot.RandomWeapon(true); BaseRunicTool.ApplyAttributesTo(weapon, 5, 15, 30); pack2.DropItem(weapon); } if (Utility.RandomDouble() < 0.25) { BaseArmor armor1 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor1, 5, 15, 30); pack2.DropItem(armor1); } if (Utility.RandomDouble() < 0.25) { BaseArmor armor2 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor2, 5, 15, 30); pack2.DropItem(armor2); } if (Utility.RandomDouble() < 0.15) { BaseJewel earrings = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 5, 15, 30); } pack2.DropItem(earrings); } Container bag2 = new Bag(); bag2.DropItem(new Gold(Utility.RandomMinMax(250, 300))); bag2.DropItem(new DragonScale(Utility.RandomMinMax(25, 35))); bag2.DropItem(Loot.RandomPotion()); bag2.DropItem(new GreaterCurePotion()); bag2.DropItem(new GreaterStrengthPotion()); bag2.DropItem(new GreaterHealPotion()); bag2.DropItem(Loot.RandomGem()); bag2.DropItem(Loot.RandomGem()); bag2.DropItem(Loot.RandomGem()); pack2.DropItem(bag2); PackItem(pack2); ////////////////////////////////3rd Backpack//////////////////////////////// Container pack3 = new Backpack(); pack3.DropItem(new Spellbook()); pack3.DropItem(Loot.RandomWand()); pack3.DropItem(Loot.RandomWand()); pack3.DropItem(Loot.RandomClothing()); pack3.DropItem(Loot.RandomClothing()); if (Utility.RandomDouble() < 0.25) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 15, 30); pack3.DropItem(clothing); } if (Utility.RandomDouble() < 0.15) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 3, 15, 30); } pack3.DropItem(necklace); } Container bag3 = new Bag(); bag3.DropItem(new Gold(Utility.RandomMinMax(25, 50))); bag3.DropItem(new Bandage(Utility.RandomMinMax(9, 18))); bag3.DropItem(Loot.RandomGem()); bag3.DropItem(Loot.RandomGem()); Item ScrollLoot1 = Loot.RandomScroll(0, 50, SpellbookType.Regular); ScrollLoot1.Amount = Utility.Random(5, 10); bag3.DropItem(ScrollLoot1); Item ScrollLoot2 = Loot.RandomScroll(0, 50, SpellbookType.Regular); ScrollLoot2.Amount = Utility.Random(5, 10); bag3.DropItem(ScrollLoot2); Item ScrollLoot3 = Loot.RandomScroll(0, 50, SpellbookType.Regular); ScrollLoot3.Amount = Utility.Random(5, 10); bag3.DropItem(ScrollLoot3); pack3.DropItem(bag3); PackItem(pack3); }
public MadSorceress() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.2) { Hue = 33770; Body = 401; SetStr(175, 275); SetDex(80, 95); SetInt(250, 300); SetHits(250, 325); SetMana(350, 450); SetDamage(7, 12); SetSkill(SkillName.Tactics, 95.7, 98.4); SetSkill(SkillName.MagicResist, 77.4, 87.7); SetSkill(SkillName.Magery, 98.4, 99.7); SetSkill(SkillName.Parry, 97.4, 98.7); SetSkill(SkillName.Wrestling, 89.4, 95.7); SetSkill(SkillName.EvalInt, 75.4, 80.7); Fame = 8000; Karma = -8000; VirtualArmor = 10; Female = true; Item BronzeShield = new BronzeShield(); BronzeShield.Movable = false; BronzeShield.Hue = 1156; EquipItem(BronzeShield); Item WizardsHat = new WizardsHat(); WizardsHat.Movable = false; WizardsHat.Hue = 1153; EquipItem(WizardsHat); Item LeatherGloves = new LeatherGloves(); LeatherGloves.Movable = false; LeatherGloves.Hue = 1153; EquipItem(LeatherGloves); Item Robe = new Robe(); Robe.Movable = false; Robe.Hue = 1156; EquipItem(Robe); Item Sandals = new Sandals(); Sandals.Movable = false; Sandals.Hue = 1153; EquipItem(Sandals); Item GoldEarrings = new GoldEarrings(); GoldEarrings.Movable = false; GoldEarrings.Hue = 1153; EquipItem(GoldEarrings); Item GoldNecklace = new GoldNecklace(); GoldNecklace.Movable = false; GoldNecklace.Hue = 1153; EquipItem(GoldNecklace); HairItemID = 0x203C; HairHue = 1156; int gems = Utility.RandomMinMax(1, 5); for (int i = 0; i < gems; ++i) { PackGem(); } switch (Utility.Random(6)) { case 0: PackItem(new BlackPearl(Utility.RandomMinMax(10, 15))); break; case 1: PackItem(new MandrakeRoot(Utility.RandomMinMax(10, 15))); break; case 2: PackItem(new SulfurousAsh(Utility.RandomMinMax(10, 15))); break; } PackGold(200, 250); PackScroll(1, 8); PackSlayer(); switch (Utility.Random(10)) { case 0: PackItem(new MortarPestle()); break; case 1: PackItem(new GreaterExplosionPotion()); break; } switch (Utility.Random(2)) { case 0: PackWeapon(0, 5); break; case 1: PackArmor(0, 5); break; } switch (Utility.Random(3)) { case 0: PackWeapon(0, 5); break; case 1: PackArmor(0, 5); break; } switch (Utility.Random(4)) { case 0: PackWeapon(1, 5); break; case 1: PackArmor(1, 5); break; } }
public CursedPirateKing() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Bart Roberts"; Title = "The Cursed Pirate King"; Body = 0x190; Hue = Utility.RandomMinMax(0x8596, 0x8599); BaseSoundID = 0x165; Cutlass cutlass = new Cutlass(); cutlass.Movable = false; cutlass.Hue = 0x497; cutlass.Skill = SkillName.Swords; AddItem(cutlass); FancyShirt shirt = new FancyShirt(); shirt.Movable = false; shirt.Hue = 1153; AddItem(shirt); LongPants pants = new LongPants(); pants.Movable = false; pants.Hue = 0x497; AddItem(pants); ThighBoots boots = new ThighBoots(); boots.Movable = false; boots.Hue = 0x497; AddItem(boots); GoldEarrings earrings = new GoldEarrings(); earrings.Movable = false; earrings.Hue = 0x35; AddItem(earrings); TricorneHat hat = new TricorneHat(); hat.Movable = false; hat.Hue = 0x497; AddItem(hat); SetStr(400, 560); SetDex(90, 120); SetInt(300, 460); SetHits(6000, 12000); SetMana(5000); SetDamage(16, 34); SetDamageType(ResistanceType.Physical, 75); SetDamageType(ResistanceType.Poison, 25); SetResistance(ResistanceType.Physical, 40, 60); SetResistance(ResistanceType.Fire, 60, 80); SetResistance(ResistanceType.Cold, 40, 60); SetResistance(ResistanceType.Poison, 40, 60); SetResistance(ResistanceType.Energy, 40, 65); SetSkill(SkillName.Anatomy, 120.0); SetSkill(SkillName.EvalInt, 100.0); SetSkill(SkillName.Magery, 100.0); SetSkill(SkillName.Meditation, 120.0); SetSkill(SkillName.MagicResist, 100.0); SetSkill(SkillName.Tactics, 100.0); SetSkill(SkillName.Wrestling, 120.0); SetSkill(SkillName.Swords, 160.0); Fame = 20000; Karma = -20000; VirtualArmor = 60; }
public override void OnDoubleClick( Mobile m ) { Item RewardItem = null; if( IsChildOf( m.Backpack ) ) { switch (Utility.Random(11)) { case 0: { RewardItem = new GoldNecklace(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 1: { RewardItem = new GoldBeadNecklace(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 2: { RewardItem = new SilverNecklace(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 3: { RewardItem = new SilverBeadNecklace(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 4: { RewardItem = new GoldBracelet(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 5: { RewardItem = new SilverBracelet(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 6: { RewardItem = new GoldRing(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 7: { RewardItem = new SilverRing(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 8: { RewardItem = new SilverEarrings(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 9: { RewardItem = new GoldEarrings(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 10: { RewardItem = new Necklace(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } } m.AddToBackpack(RewardItem); Delete(); } else m.SendAsciiMessage( "That must be in your pack for you to use it." ); }
public override void OnDoubleClick(Mobile m) { Item RewardItem = null; if (IsChildOf(m.Backpack)) { switch (Utility.Random(11)) { case 0: { RewardItem = new GoldNecklace(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 1: { RewardItem = new GoldBeadNecklace(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 2: { RewardItem = new SilverNecklace(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 3: { RewardItem = new SilverBeadNecklace(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 4: { RewardItem = new GoldBracelet(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 5: { RewardItem = new SilverBracelet(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 6: { RewardItem = new GoldRing(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 7: { RewardItem = new SilverRing(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 8: { RewardItem = new SilverEarrings(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 9: { RewardItem = new GoldEarrings(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } case 10: { RewardItem = new Necklace(); RewardItem.Hue = Utility.RandomList(Sphere.RareHues); break; } } m.AddToBackpack(RewardItem); Delete(); } else { m.SendAsciiMessage("That must be in your pack for you to use it."); } }
public Rackham() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Rackham"; Title = "the Bloody Pirate"; Body = 0x190; Hue = Utility.RandomSkinHue(); ThighBoots tb = new ThighBoots(); tb.Hue = 0; AddItem(tb); LongPants lp = new LongPants(); lp.Hue = 633; AddItem(lp); FancyShirt fs = new FancyShirt(); fs.Hue = 907; AddItem(fs); SkullCap sk = new SkullCap(); sk.Hue = 413; AddItem(sk); BodySash bs = new BodySash(); bs.Hue = 633; AddItem(bs); Cloak cl = new Cloak(); cl.Hue = 688; AddItem(cl); Scimitar sc = new Scimitar(); sc.Hue = 533; AddItem(sc); GoldBeadNecklace gn = new GoldBeadNecklace(); AddItem(gn); GoldBracelet gb = new GoldBracelet(); AddItem(gb); GoldEarrings ge = new GoldEarrings(); AddItem(ge); GoldRing gr = new GoldRing(); AddItem(gr); AddItem(new PonyTail(1149)); AddItem(new Vandyke(1149)); SetStr(120, 140); SetDex(90, 105); SetInt(25, 40); SetHits(450, 500); SetMana(0); SetDamage(20, 28); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 56, 67); SetResistance(ResistanceType.Fire, 40, 50); SetResistance(ResistanceType.Poison, 40, 50); SetResistance(ResistanceType.Cold, 40, 45); SetResistance(ResistanceType.Energy, 40, 55); SetSkill(SkillName.MagicResist, 55.1, 65.0); SetSkill(SkillName.Tactics, 85.3, 105.0); SetSkill(SkillName.Wrestling, 90.3, 105.0); SetSkill(SkillName.Swords, 90.3, 105.0); Fame = 9900; Karma = -9900; VirtualArmor = 25; PackItem(new SeafaringBracelet()); PackItem(new TreasureMap(1, Map.Trammel)); }
public DragonianZealot() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("dragon"); Title = "the dragonian zealot"; Body = 454; BaseSoundID = 362; SetStr(792, 825); SetDex(88, 110); SetInt(437, 475); SetHits(956, 990); SetMana(2185, 2375); SetDamage(16, 22); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 60); SetResistance(ResistanceType.Fire, 60); SetResistance(ResistanceType.Cold, 30); SetResistance(ResistanceType.Poison, 25); SetResistance(ResistanceType.Energy, 35); SetSkill(SkillName.EvalInt, 58.0, 80.4); SetSkill(SkillName.Magery, 87.5, 99.4); SetSkill(SkillName.MagicResist, 99.2, 100.0); SetSkill(SkillName.Tactics, 97.6, 100.0); SetSkill(SkillName.Wrestling, 91.0, 93.2); Fame = 88000; Karma = -88000; ////////////////////////////////Main Pack//////////////////////////////// PackGold(75, 92); PackReg(25, 35); ////////////////////////////////1st Backpack//////////////////////////////// Container pack1 = new Backpack(); pack1.DropItem(new Cloak(532)); pack1.DropItem(new Circlet()); if (Utility.RandomDouble() < 0.25) { BaseArmor armor1 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor1, 5, 15, 30); pack1.DropItem(armor1); } if (Utility.RandomDouble() < 0.25) { BaseArmor armor2 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor2, 5, 15, 30); pack1.DropItem(armor2); } if (Utility.RandomDouble() < 0.25) { BaseArmor armor3 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor3, 5, 15, 30); pack1.DropItem(armor3); } if (Utility.RandomDouble() < 0.25) { BaseArmor armor4 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor4, 5, 15, 30); pack1.DropItem(armor4); } if (Utility.RandomDouble() < 0.20) { BaseArmor armor5 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor5, 5, 15, 30); pack1.DropItem(armor5); } if (Utility.RandomDouble() < 0.50) { BaseWeapon weapon = Loot.RandomWeapon(true); BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 30); pack1.DropItem(weapon); } Container bag1 = new Bag(); bag1.DropItem(new Gold(Utility.RandomMinMax(50, 100))); bag1.DropItem(new Bandage(Utility.RandomMinMax(9, 18))); bag1.DropItem(Loot.RandomGem()); bag1.DropItem(Loot.RandomGem()); pack1.DropItem(bag1); PackItem(pack1); ////////////////////////////////2nd Backpack//////////////////////////////// Container pack2 = new Backpack(); if (Utility.RandomDouble() < 0.10) { BaseWeapon weapon = Loot.RandomWeapon(true); BaseRunicTool.ApplyAttributesTo(weapon, 5, 15, 30); pack2.DropItem(weapon); } if (Utility.RandomDouble() < 0.10) { BaseArmor armor1 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor1, 5, 15, 30); pack2.DropItem(armor1); } if (Utility.RandomDouble() < 0.10) { BaseArmor armor2 = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor2, 5, 15, 30); pack2.DropItem(armor2); } if (Utility.RandomDouble() < 0.05) { BaseJewel earrings = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 5, 15, 30); } pack2.DropItem(earrings); } Container bag2 = new Bag(); bag2.DropItem(new Gold(Utility.RandomMinMax(100, 250))); bag2.DropItem(new DragonScale(Utility.RandomMinMax(15, 25))); bag2.DropItem(Loot.RandomPotion()); bag2.DropItem(new GreaterCurePotion()); bag2.DropItem(new GreaterStrengthPotion()); bag2.DropItem(new HealPotion()); bag2.DropItem(Loot.RandomGem()); bag2.DropItem(Loot.RandomGem()); pack2.DropItem(bag2); PackItem(pack2); ////////////////////////////////3rd Backpack//////////////////////////////// Container pack3 = new Backpack(); pack3.DropItem(new Spellbook()); pack3.DropItem(Loot.RandomWand()); pack3.DropItem(Loot.RandomClothing()); pack3.DropItem(Loot.RandomClothing()); if (Utility.RandomDouble() < 0.10) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 15, 30); pack3.DropItem(clothing); } if (Utility.RandomDouble() < 0.05) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 3, 15, 30); } pack3.DropItem(necklace); } Container bag3 = new Bag(); bag3.DropItem(new Gold(Utility.RandomMinMax(25, 50))); bag3.DropItem(new Bandage(Utility.RandomMinMax(5, 15))); bag3.DropItem(Loot.RandomGem()); Item ScrollLoot1 = Loot.RandomScroll(0, 50, SpellbookType.Regular); ScrollLoot1.Amount = Utility.Random(2, 5); bag3.DropItem(ScrollLoot1); Item ScrollLoot2 = Loot.RandomScroll(0, 50, SpellbookType.Regular); ScrollLoot2.Amount = Utility.Random(2, 5); bag3.DropItem(ScrollLoot2); Item ScrollLoot3 = Loot.RandomScroll(0, 50, SpellbookType.Regular); ScrollLoot3.Amount = Utility.Random(2, 5); bag3.DropItem(ScrollLoot3); pack3.DropItem(bag3); PackItem(pack3); }
public override void GenerateLoot() { AddLoot(LootPack.FilthyRich, 2); AddLoot(LootPack.Average, 3); if (Utility.RandomDouble() < 0.10) { BaseWeapon weapon = Loot.RandomWeapon(true); BaseRunicTool.ApplyAttributesTo(weapon, 3, 25, 30); PackItem(weapon); } if (Utility.RandomDouble() < 0.05) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 25, 30); PackItem(clothing); } if (Utility.RandomDouble() < 0.05) { BaseShield shield = new ScarabShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 5, 25, 30); } PackItem(shield); } if (Utility.RandomDouble() < 0.05) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 5, 25, 30); } PackItem(bracelet); } if (Utility.RandomDouble() < 0.05) { BaseJewel earrings = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 5, 25, 30); } PackItem(earrings); } if (Utility.RandomDouble() < 0.05) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 5, 25, 30); } PackItem(necklace); } if (Utility.RandomDouble() < 0.05) { BaseJewel ring = new GoldRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 5, 25, 30); } PackItem(ring); } if (0.08 > Utility.RandomDouble()) { switch (Utility.Random(4)) { case 0: PackItem(new FrostAbyssalRingmailGloves()); break; case 1: PackItem(new FrostAbyssalRingmailLeggings()); break; case 2: PackItem(new FrostAbyssalRingmailSleeves()); break; case 3: PackItem(new FrostAbyssalRingmailTunic()); break; } } }
public override void GenerateLoot() { AddLoot(LootPack.FilthyRich, 2); AddLoot(LootPack.MedScrolls, 1); if (Utility.RandomDouble() < 0.10) { BaseWeapon weapon = Loot.RandomWeapon(true); BaseRunicTool.ApplyAttributesTo(weapon, 3, 25, 30); PackItem(weapon); } if (Utility.RandomDouble() < 0.05) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 25, 30); PackItem(clothing); } if (Utility.RandomDouble() < 0.05) { BaseShield shield = new ScarabShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 5, 25, 30); } PackItem(shield); } if (Utility.RandomDouble() < 0.05) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 5, 25, 30); } PackItem(bracelet); } if (Utility.RandomDouble() < 0.05) { BaseJewel earrings = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 5, 25, 30); } PackItem(earrings); } if (Utility.RandomDouble() < 0.05) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 5, 25, 30); } PackItem(necklace); } if (Utility.RandomDouble() < 0.05) { BaseJewel ring = new GoldRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 5, 25, 30); } PackItem(ring); } }
public DesertRose() : base(AIType.AI_Melee, FightMode.Closest, 5, 1, 0.3, 0.6) { Name = "a desert rose"; Body = 789; Hue = 251; BaseSoundID = 352; SetStr(102, 131); SetDex(67, 86); SetInt(32, 56); SetHits(155, 170); SetDamage(3, 6); SetDamageType(ResistanceType.Physical, 70); SetDamageType(ResistanceType.Fire, 30); SetResistance(ResistanceType.Physical, 15); SetResistance(ResistanceType.Fire, 70); SetResistance(ResistanceType.Cold, 0); SetResistance(ResistanceType.Poison, 100); SetResistance(ResistanceType.Energy, 20); SetSkill(SkillName.MagicResist, 59.2, 68.2); SetSkill(SkillName.Tactics, 47.5, 57.9); SetSkill(SkillName.Wrestling, 76.8, 83.7); Fame = 800; Karma = -800; Tamable = true; ControlSlots = 1; MinTameSkill = 32.0; PackGold(11, 16); PackItem(new Engines.Plants.Seed()); Container pack = new Backpack(); pack.DropItem(new Pitcher(BeverageType.Water)); pack.DropItem(new Gold(Utility.RandomMinMax(17, 24))); pack.DropItem(new MandrakeRoot(Utility.RandomMinMax(5, 10))); pack.DropItem(new SulfurousAsh(Utility.RandomMinMax(4, 8))); if (Utility.RandomDouble() < 0.05) { BaseArmor armor = Loot.RandomArmor(true); BaseRunicTool.ApplyAttributesTo(armor, 5, 15, 30); armor.Attributes.Luck = 50; pack.DropItem(armor); } if (Utility.RandomDouble() < 0.05) { BaseWeapon weapon = new CrescentBlade(); BaseRunicTool.ApplyAttributesTo(weapon, 5, 25, 30); pack.DropItem(weapon); } if (Utility.RandomDouble() < 0.05) { BaseJewel jewel = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel, 3, 15, 20); } jewel.Resistances.Fire = 9; PackItem(jewel); } if (0.05 > Utility.RandomDouble()) { pack.DropItem(new FireOpal()); } PackItem(pack); }
public override void GenerateLoot() { AddLoot(LootPack.FilthyRich, 3); AddLoot(LootPack.MedScrolls, 5); AddLoot(LootPack.Gems, 3); if (Utility.RandomDouble() < 0.10) { BaseWeapon weapon = Loot.RandomWeapon(true); BaseRunicTool.ApplyAttributesTo(weapon, 5, 15, 35); PackItem(weapon); } if (Utility.RandomDouble() < 0.10) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(5)) { case 0: armor = new EbonsilkGloves(); break; case 1: armor = new EbonsilkGorget(); break; case 2: armor = new EbonsilkLegs(); break; case 3: armor = new EbonsilkArms(); break; default: armor = new EbonsilkChest(); break; } BaseRunicTool.ApplyAttributesTo(armor, 5, 15, 35); PackItem(armor); } if (Utility.RandomDouble() < 0.20) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 5, 15, 35); PackItem(clothing); } if (Utility.RandomDouble() < 0.10) { BaseShield shield = new BlackHeaterShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 5, 15, 35); } PackItem(shield); } if (Utility.RandomDouble() < 0.10) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 5, 15, 35); } PackItem(bracelet); } if (Utility.RandomDouble() < 0.10) { BaseJewel earrings = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 5, 15, 35); } PackItem(earrings); } if (Utility.RandomDouble() < 0.10) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 5, 15, 35); } PackItem(necklace); } if (Utility.RandomDouble() < 0.10) { BaseJewel ring = new GoldRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 5, 15, 35); } PackItem(ring); } }
public override void GenerateLoot() { if (Utility.RandomDouble() < 0.05) { BaseShield shield = new MetalKiteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 5, 25, 30); } shield.Attributes.BonusStam = 8; PackItem(shield); } if (Utility.RandomDouble() < 0.05) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 15, 20); clothing.Attributes.BonusHits = 7; PackItem(clothing); } if (Utility.RandomDouble() < 0.05) { BaseJewel jewel1 = new GoldEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel1, 3, 15, 20); } jewel1.Resistances.Fire = 5; PackItem(jewel1); } if (Utility.RandomDouble() < 0.05) { BaseJewel jewel2 = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel2, 3, 15, 20); } jewel2.Resistances.Fire = 7; PackItem(jewel2); } if (Utility.RandomDouble() < 0.05) { BaseJewel jewel3 = new GoldRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(jewel3, 3, 15, 20); } jewel3.Resistances.Fire = 6; PackItem(jewel3); } }