public TerathanIslandTreasureChest() : base(0x2DF1) { Name = "a treasure chest -30-"; Movable = true; Hue = 285; Weight = 1000.0; TrapPower = 0; Locked = true; RequiredSkill = 30; LockLevel = 30; MaxLockLevel = 35; // Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(45, 450))); } /////////////////////////////////////// Books if (Utility.RandomDouble() < 0.10) { DropItem(new TamersHandbookVol1()); } if (Utility.RandomDouble() < 0.10) { DropItem(new TamersHandbookVol2()); } if (Utility.RandomDouble() < 0.10) { DropItem(new TamersHandbookVol3()); } if (Utility.RandomDouble() < 0.10) { DropItem(new TamersHandbookVol4()); } if (Utility.RandomDouble() < 0.10) { DropItem(new TamersHandbookVol5()); } /////////////////////////////////////// Meats if (Utility.RandomDouble() < 0.15) { DropItem(new Bacon()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Sausage()); } /////////////////////////////////////// Eating Utensils if (Utility.RandomDouble() < 0.08) { DropItem(new KnifeLeft()); } if (Utility.RandomDouble() < 0.08) { DropItem(new KnifeRight()); } if (Utility.RandomDouble() < 0.08) { DropItem(new PewterMug()); } if (Utility.RandomDouble() < 0.08) { DropItem(new Plate()); } if (Utility.RandomDouble() < 0.08) { DropItem(new SpoonLeft()); } if (Utility.RandomDouble() < 0.08) { DropItem(new SpoonRight()); } /////////////////////////////////////// Jewelry if (Utility.RandomDouble() < 0.04) { DropItem(new Agate()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Beryl()); } if (Utility.RandomDouble() < 0.04) { DropItem(new ChromeDiopside()); } if (Utility.RandomDouble() < 0.04) { DropItem(new FireOpal()); } if (Utility.RandomDouble() < 0.04) { DropItem(new MoonstoneCustom()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Onyx()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Opal()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Pearl()); } if (Utility.RandomDouble() < 0.04) { DropItem(new TurquoiseCustom()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Bloodstone()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Citrine()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Demantoid()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Jasper()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Lolite()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Lupis()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Peridot()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Tsavorite()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Zircon()); } /////////////////////////////////////// Supplies if (Utility.RandomDouble() < 0.15) { DropItem(new Arrow(Utility.Random(17, 22))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bolt(Utility.Random(17, 22))); } Item ReagentLoot = Loot.RandomReagent(); ReagentLoot.Amount = Utility.Random(17, 22); DropItem(ReagentLoot); if (Utility.RandomDouble() < 0.15) { DropItem(new Bandage(Utility.Random(17, 22))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bedroll()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bottle(Utility.Random(17, 22))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Lockpick(Utility.Random(17, 22))); } Item PotionLoot = Loot.RandomPotion(); DropItem(PotionLoot); if (Utility.RandomDouble() < 0.20) { DropItem(new LesserPoisonPotion()); } if (Utility.RandomDouble() < 0.15) { DropItem(new PoisonPotion()); } /////////////////////////////////////// Tools if (Utility.RandomDouble() < 0.15) { DropItem(new FishingPole()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Shovel()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Skillet()); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.01) { DropItem(new DyeTub()); } if (Utility.RandomDouble() < 0.15) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(38)) { case 0: weapon = new Hatchet(); break; case 1: weapon = new Bow(); break; case 2: weapon = new Crossbow(); break; case 3: weapon = new Club(); break; case 4: weapon = new Mace(); break; case 5: weapon = new Maul(); break; case 6: weapon = new Pitchfork(); break; case 7: weapon = new ShortSpear(); break; case 8: weapon = new GnarledStaff(); break; case 9: weapon = new ShepherdsCrook(); break; case 10: weapon = new Cutlass(); break; case 11: weapon = new Katana(); break; case 12: weapon = new Kryss(); break; case 13: weapon = new Scimitar(); break; case 14: weapon = new AssassinSpike(); break; case 15: weapon = new DiamondMace(); break; case 16: weapon = new Leafblade(); break; case 17: weapon = new MagicalShortbow(); break; case 18: weapon = new RadiantScimitar(); break; case 19: weapon = new WildStaff(); break; case 20: weapon = new Axe(); break; case 21: weapon = new ExecutionersAxe(); break; case 22: weapon = new Pickaxe(); break; case 23: weapon = new TwoHandedAxe(); break; case 24: weapon = new WarAxe(); break; case 25: weapon = new HeavyCrossbow(); break; case 26: weapon = new HammerPick(); break; case 27: weapon = new WarMace(); break; case 28: weapon = new Spear(); break; case 29: weapon = new WarFork(); break; case 30: weapon = new BlackStaff(); break; case 31: weapon = new QuarterStaff(); break; case 32: weapon = new Longsword(); break; case 33: weapon = new ElvenCompositeLongbow(); break; case 34: weapon = new ElvenMachete(); break; case 35: weapon = new ElvenSpellblade(); break; case 36: weapon = new RuneBlade(); break; default: weapon = new Dagger(); break; } BaseRunicTool.ApplyAttributesTo(weapon, 2, 22, 25); weapon.Hue = 285; weapon.WeaponAttributes.HitLeechStam = 5; weapon.Attributes.BonusHits = 10; DropItem(weapon); } if (Utility.RandomDouble() < 0.15) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(13)) { case 0: armor = new FemaleStuddedChest(); break; case 1: armor = new StuddedArms(); break; case 2: armor = new StuddedBustierArms(); break; case 3: armor = new StuddedGloves(); break; case 4: armor = new StuddedGorget(); break; case 5: armor = new ChainCoif(); break; case 6: armor = new ChainChest(); break; case 7: armor = new ChainLegs(); break; case 8: armor = new RingmailArms(); break; case 9: armor = new RingmailChest(); break; case 10: armor = new RingmailGloves(); break; case 11: armor = new RingmailLegs(); break; default: armor = new StuddedChest(); break; } BaseRunicTool.ApplyAttributesTo(armor, 3, 22, 25); armor.Hue = 285; armor.Attributes.WeaponDamage = 3; DropItem(armor); } if (Utility.RandomDouble() < 0.15) { BaseHat hat = Loot.RandomHat(true); switch (Utility.Random(5)) { case 0: hat = new BearMask(); break; case 1: hat = new DeerMask(); break; case 2: hat = new FeatheredHat(); break; case 3: hat = new WizardsHat(); break; default: hat = new TribalMask(); break; } BaseRunicTool.ApplyAttributesTo(hat, 3, 22, 25); hat.Hue = 285; hat.Attributes.BonusHits = 10; hat.Attributes.SpellDamage = 5; hat.Resistances.Energy = 10; DropItem(hat); } if (Utility.RandomDouble() < 0.15) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 22, 25); clothing.Hue = 285; clothing.Attributes.BonusHits = 5; clothing.Attributes.DefendChance = 3; clothing.Resistances.Physical = 5; DropItem(clothing); } if (Utility.RandomDouble() < 0.15) { BaseShield shield = new WoodenKiteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 3, 22, 25); } shield.Hue = 285; shield.Attributes.BonusHits = 10; DropItem(shield); } if (Utility.RandomDouble() < 0.15) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 3, 22, 25); } bracelet.Hue = 285; bracelet.Attributes.WeaponDamage = 5; bracelet.Attributes.DefendChance = 2; bracelet.Resistances.Fire = 5; DropItem(bracelet); } if (Utility.RandomDouble() < 0.15) { BaseJewel earrings = new SilverEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 3, 22, 25); } earrings.Hue = 285; earrings.Attributes.WeaponDamage = 5; earrings.Attributes.DefendChance = 3; earrings.Resistances.Cold = 5; DropItem(earrings); } if (Utility.RandomDouble() < 0.15) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 3, 22, 25); } necklace.Hue = 285; necklace.Attributes.WeaponDamage = 5; necklace.Attributes.DefendChance = 5; necklace.Resistances.Energy = 5; DropItem(necklace); } if (Utility.RandomDouble() < 0.15) { BaseJewel ring = new SilverRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 3, 22, 25); } ring.Hue = 285; ring.Attributes.WeaponDamage = 5; ring.Attributes.DefendChance = 2; ring.Resistances.Poison = 5; DropItem(ring); } }
public Khashina() : base( AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4 ) { Name = "Khashina"; Body = 401; Female = true; SetStr( 767, 945 ); SetDex( 66, 75 ); SetInt( 46, 70 ); SetHits( 476, 552 ); SetDamage( 20, 25 ); SetDamageType( ResistanceType.Physical, 30 ); SetDamageType( ResistanceType.Cold, 70 ); SetResistance( ResistanceType.Physical, 45, 55 ); SetResistance( ResistanceType.Cold, 60, 70 ); SetResistance( ResistanceType.Poison, 100 ); SetResistance( ResistanceType.Energy, 40, 50 ); 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; Item hair = new Item( Utility.RandomList( 0x203B, 0x203C, 0x203D, 0x2044, 0x2045, 0x2047, 0x2049, 0x204A ) ); hair.Hue = Utility.RandomHairHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem( hair ); StuddedArms studdedarms = new StuddedArms(); studdedarms.Hue = 0x486; AddItem( studdedarms ); FemaleStuddedChest femalesc = new FemaleStuddedChest(); femalesc.Hue = 0x486; AddItem(femalesc); StuddedGloves studdedg = new StuddedGloves(); studdedg.Hue = 0x486; AddItem(studdedg); StuddedGorget studdedgg = new StuddedGorget(); studdedgg.Hue = 0x486; AddItem(studdedgg); LeatherSkirt leatherskirt = new LeatherSkirt(); leatherskirt.Hue = 0x486; AddItem(leatherskirt); ThighBoots thighboots = new ThighBoots(); thighboots.Hue = 0x486; AddItem(thighboots); AddItem( new Server.Items.KhashinaShroud() ); }
public override void IncreaseTier() { base.IncreaseTier(); List<object> list = new List<object>(); Item c; // don't know names above lev 6 switch ( this.Tier ) { case 1: c = new BookOfChivalry(); c.MoveToWorld(new Point3D(2924, 979, -18), this.Map); c.Movable = false; list.Add(c); c = new Longsword(); c.MoveToWorld(new Point3D(2923, 980, -18), this.Map); c.Movable = false; c.ItemID = 0x26CF; list.Add(c); c = new Shirt(); c.MoveToWorld(new Point3D(2924, 978, -18), this.Map); c.Movable = false; c.ItemID = 0x2662; c.Name = "Crisp White Shirt"; list.Add(c); break; case 2: c = new GraveDust(); c.MoveToWorld(new Point3D(2921, 972, -17), this.Map); c.Movable = false; list.Add(c); c = new NoxCrystal(); c.MoveToWorld(new Point3D(2921, 972, -17), this.Map); c.Movable = false; list.Add(c); c = new Static(0xF91); c.MoveToWorld(new Point3D(2921, 972, -17), this.Map); c.Movable = false; list.Add(c); c = new NecromancerSpellbook(); c.MoveToWorld(new Point3D(2922, 972, -18), this.Map); c.Movable = false; list.Add(c); c = new AnimateDeadScroll(); c.MoveToWorld(new Point3D(2923, 972, -18), this.Map); c.Movable = false; list.Add(c); c = new HorrificBeastScroll(); c.MoveToWorld(new Point3D(2923, 972, -18), this.Map); c.Movable = false; list.Add(c); c = new VampiricEmbraceScroll(); c.MoveToWorld(new Point3D(2923, 971, -20), this.Map); c.Movable = false; list.Add(c); c = new Static(0xFDD); c.MoveToWorld(new Point3D(2922, 971, -21), this.Map); list.Add(c); c = new Static(0xFDE); c.MoveToWorld(new Point3D(2923, 971, -21), this.Map); list.Add(c); break; case 3: c = new JesterSuit(); c.MoveToWorld(new Point3D(2919, 985, -16), this.Map); c.Movable = false; list.Add(c); c = new LocalizedStatic(0xE74, 1073424); c.MoveToWorld(new Point3D(2919, 984, -11), this.Map); c.Movable = false; c.Weight = 50.0; c.Hue = 0x113; list.Add(c); c = new JesterHat(); c.MoveToWorld(new Point3D(2919, 983, -13), this.Map); c.Movable = false; c.Hue = 0x113; list.Add(c); break; case 4: c = new Static(0xD25); c.MoveToWorld(new Point3D(2916, 984, -13), this.Map); c.Movable = false; list.Add(c); c = new Static(0x20D9); c.MoveToWorld(new Point3D(2916, 982, -12), this.Map); c.Name = "Gargoyle"; list.Add(c); c = new Static(0x2132); c.MoveToWorld(new Point3D(2914, 982, -9), this.Map); list.Add(c); c = new Static(0x25B6); c.MoveToWorld(new Point3D(2913, 982, -13), this.Map); list.Add(c); c = new Static(0x25B6); c.MoveToWorld(new Point3D(2913, 982, -13), this.Map); list.Add(c); c = new Static(0x222E); c.MoveToWorld(new Point3D(2915, 983, -14), this.Map); list.Add(c); c = new Static(0x2211); c.MoveToWorld(new Point3D(2914, 984, -13), this.Map); list.Add(c); break; case 5: c = new LocalizedStatic(0xE30, 1073421); c.MoveToWorld(new Point3D(2911, 983, -12), this.Map); c.Weight = 10.0; list.Add(c); c = new LocalizedStatic(0x2937, 1073422); c.MoveToWorld(new Point3D(2911, 984, -13), this.Map); list.Add(c); c = new LocalizedStatic(0x12AA, 1073423); c.MoveToWorld(new Point3D(2911, 985, -14), this.Map); list.Add(c); c = new Static(0xEAF); c.MoveToWorld(new Point3D(2910, 985, -21), this.Map); c.Weight = 5.0; list.Add(c); c = new Static(0xEAE); c.MoveToWorld(new Point3D(2910, 986, -21), this.Map); c.Weight = 5.0; list.Add(c); break; case 6: c = new Tessen(); c.MoveToWorld(new Point3D(2910, 966, -17), this.Map); c.Movable = false; list.Add(c); c = new Shuriken(); c.MoveToWorld(new Point3D(2910, 965, -17), this.Map); c.Movable = false; list.Add(c); c = new Static(0x2855); c.MoveToWorld(new Point3D(2910, 964, -16), this.Map); c.Weight = 5.0; list.Add(c); c = new Static(0x241D); c.MoveToWorld(new Point3D(2910, 963, -20), this.Map); c.Weight = 5.0; list.Add(c); c = new Static(0x2409); c.MoveToWorld(new Point3D(2910, 963, -17), this.Map); list.Add(c); c = new Static(0x2416); c.MoveToWorld(new Point3D(2909, 965, -17), this.Map); list.Add(c); break; case 7: c = new Static(0x3069); c.MoveToWorld(new Point3D(2914, 964, -21), this.Map); list.Add(c); c = new Static(0x306A); c.MoveToWorld(new Point3D(2913, 964, -21), this.Map); list.Add(c); c = new Static(0x306B); c.MoveToWorld(new Point3D(2912, 964, -21), this.Map); list.Add(c); c = new ElvenLoveseatEastAddon(); c.MoveToWorld(new Point3D(2913, 966, -21), this.Map); c.Movable = false; list.Add(c); c = new Static(0x2CFC); c.MoveToWorld(new Point3D(2912, 963, -21), this.Map); list.Add(c); c = new LocalizedStatic(0x2D74, 1073425); c.MoveToWorld(new Point3D(2914, 963, -21), this.Map); list.Add(c); break; case 8: c = new Static(0x2); c.MoveToWorld(new Point3D(2905, 970, -15), this.Map); list.Add(c); c = new Static(0x3); c.MoveToWorld(new Point3D(2905, 969, -15), this.Map); list.Add(c); c = new OrderShield(); c.MoveToWorld(new Point3D(2905, 971, -17), this.Map); c.Movable = false; list.Add(c); c = new Static(0x1579); c.MoveToWorld(new Point3D(2904, 971, -21), this.Map); list.Add(c); c = new Static(0x1613); c.MoveToWorld(new Point3D(2908, 969, -21), this.Map); list.Add(c); c = new Static(0x1614); c.MoveToWorld(new Point3D(2908, 968, -21), this.Map); list.Add(c); break; case 9: c = new Static(0x1526); c.MoveToWorld(new Point3D(2905, 976, -15), this.Map); list.Add(c); c = new Static(0x1527); c.MoveToWorld(new Point3D(2905, 975, -15), this.Map); list.Add(c); c = new Static(0x151A); c.MoveToWorld(new Point3D(2905, 972, -21), this.Map); list.Add(c); c = new Static(0x151A); c.MoveToWorld(new Point3D(2905, 977, -21), this.Map); list.Add(c); c = new Static(0x151A); c.MoveToWorld(new Point3D(2908, 972, -21), this.Map); list.Add(c); c = new Static(0x151A); c.MoveToWorld(new Point3D(2908, 977, -21), this.Map); list.Add(c); c = new Static(0x1514); c.MoveToWorld(new Point3D(2904, 975, -17), this.Map); list.Add(c); break; case 10: c = new Static(0x15C5); c.MoveToWorld(new Point3D(2904, 982, -21), this.Map); list.Add(c); c = new Static(0x15C5); c.MoveToWorld(new Point3D(2904, 979, -21), this.Map); list.Add(c); c = new Static(0x157B); c.MoveToWorld(new Point3D(2904, 981, -21), this.Map); list.Add(c); c = new Static(0x14E3); c.MoveToWorld(new Point3D(2905, 980, -21), this.Map); list.Add(c); c = new Static(0x14E4); c.MoveToWorld(new Point3D(2905, 981, -21), this.Map); list.Add(c); c = new Static(0x14E5); c.MoveToWorld(new Point3D(2906, 981, -21), this.Map); list.Add(c); c = new Static(0x14E6); c.MoveToWorld(new Point3D(2906, 980, -21), this.Map); list.Add(c); c = new ChaosShield(); c.MoveToWorld(new Point3D(2905, 978, -19), this.Map); c.Movable = false; list.Add(c); break; case 11: c = new FemaleStuddedChest(); c.MoveToWorld(new Point3D(2912, 976, -16), this.Map); c.Movable = false; c.Hue = 0x497; list.Add(c); c = new Static(0x1EA8); c.MoveToWorld(new Point3D(2913, 973, -13), this.Map); c.Hue = 0x497; list.Add(c); c = new Static(0x20F8); c.MoveToWorld(new Point3D(2913, 975, -11), this.Map); c.Hue = 0x113; list.Add(c); c = new Static(0x20E9); c.MoveToWorld(new Point3D(2912, 974, -11), this.Map); c.Name = "Troll"; list.Add(c); c = new Static(0x2607); c.MoveToWorld(new Point3D(2913, 974, -11), this.Map); list.Add(c); c = new Static(0x25F9); c.MoveToWorld(new Point3D(2912, 975, -11), this.Map); list.Add(c); break; case 12: c = new Static(0x1D8A); c.MoveToWorld(new Point3D(2915, 976, -13), this.Map); list.Add(c); c = new Static(0x1D8B); c.MoveToWorld(new Point3D(2916, 976, -13), this.Map); list.Add(c); c = new Static(0x234D); c.MoveToWorld(new Point3D(2915, 975, -10), this.Map); list.Add(c); c = new WizardsHat(); c.MoveToWorld(new Point3D(2915, 974, -13), this.Map); c.Movable = false; list.Add(c); break; } if (list.Count > 0) this.Tiers.Add(list); }
public MongbatHideoutTreasureChest2() : base(0xE43) { Name = "a treasure chest -50-"; Movable = true; Weight = 1000.0; TrapPower = 0; Locked = true; RequiredSkill = 50; LockLevel = 50; MaxLockLevel = 80; /////////////////////////////////// Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(20, 300))); } /////////////////////////////////////// Supplies switch (Utility.Random(18)) { case 0: DropItem(new Board(70)); break; case 1: DropItem(new BoltOfCloth(70)); break; case 2: DropItem(new Bottle(70)); break; case 3: DropItem(new CopperWire(70)); break; case 4: DropItem(new Cotton(70)); break; case 5: DropItem(new DarkYarn(70)); break; case 6: DropItem(new Feather(70)); break; case 7: DropItem(new Flax(70)); break; case 8: DropItem(new Gears(70)); break; case 9: DropItem(new GoldWire(70)); break; case 10: DropItem(new IronIngot(70)); break; case 11: DropItem(new IronWire(70)); break; case 12: DropItem(new Leather(70)); break; case 13: DropItem(new LightYarn(70)); break; case 14: DropItem(new Shaft(70)); break; case 15: DropItem(new SilverWire(70)); break; case 16: DropItem(new SpoolOfThread(70)); break; case 17: DropItem(new Springs(70)); break; case 18: DropItem(new Wool(70)); break; } switch (Utility.Random(5)) { case 0: DropItem(new BeetleEgg(25)); break; case 1: DropItem(new FishScale(25)); break; case 2: DropItem(new Nirnroot(25)); break; case 3: DropItem(new SerpentScale(25)); break; case 4: DropItem(new ThunderStone(25)); break; } Item ReagentLoot = Loot.RandomReagent(); ReagentLoot.Amount = Utility.RandomMinMax(10, 15); DropItem(ReagentLoot); if (Utility.RandomDouble() < 0.05) { DropItem(new SackFlour()); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.01) { DropItem(new DyeTub()); } /////////////////////////////////////// LV 10-20 /////////////////////////////////////// LV 10-25 for staves if (Utility.RandomDouble() < 0.10) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(28)) { case 0: weapon = new BattleAxe(); break; // Lv10 case 1: weapon = new DoubleAxe(); break; // Lv20 case 2: weapon = new MagicalShortbow(); break; // Lv10 case 3: weapon = new RepeatingCrossbow(); break; // Lv10 case 4: weapon = new ButcherKnife(); break; // Lv10 case 5: weapon = new CompositeBow(); break; // Lv20 case 6: weapon = new EbonyCrossbow(); break; // Lv20 case 7: weapon = new EbonyDagger(); break; // Lv10 case 8: weapon = new Sai(); break; // Lv15 case 9: weapon = new EbonyDualDaggers(); break; // Lv20 case 10: weapon = new Maul(); break; // Lv10 case 11: weapon = new Scepter(); break; // Lv15 case 12: weapon = new WarMace(); break; // Lv20 case 13: weapon = new Pilum(); break; // Lv10 case 14: weapon = new Pike(); break; // Lv15 case 15: weapon = new Spear(); break; // Lv20 case 16: weapon = new QuarterStaff(); break; // Lv10 case 17: weapon = new ReptilianStaff(); break; // Lv15 case 18: weapon = new BubbleStaff(); break; // Lv25 case 19: weapon = new CrystalStaff(); break; // Lv25 case 20: weapon = new EnergyStaff(); break; // Lv25 case 21: weapon = new FireStaff(); break; // Lv25 case 22: weapon = new VineStaff(); break; // Lv25 case 23: weapon = new EbonyRapier(); break; // Lv10 case 24: weapon = new Scimitar(); break; // Lv10 case 25: weapon = new Longsword(); break; // Lv20 case 26: weapon = new VikingSword(); break; // Lv20 default: weapon = new Wakizashi(); break; // Lv20 } switch (Utility.Random(14)) { case 0: weapon.Attributes.AttackChance = Utility.RandomMinMax(1, 5); break; case 1: weapon.Attributes.DefendChance = Utility.RandomMinMax(1, 5); break; case 2: weapon.Attributes.Luck = Utility.RandomMinMax(1, 10); break; case 3: weapon.Attributes.WeaponSpeed = Utility.RandomMinMax(1, 25); break; case 4: weapon.WeaponAttributes.HitDispel = Utility.RandomMinMax(2, 10); break; case 5: weapon.WeaponAttributes.HitFireball = Utility.RandomMinMax(2, 10); break; case 6: weapon.WeaponAttributes.HitHarm = Utility.RandomMinMax(2, 10); break; case 7: weapon.WeaponAttributes.HitLeechHits = Utility.RandomMinMax(2, 10); break; case 8: weapon.WeaponAttributes.HitLeechMana = Utility.RandomMinMax(2, 10); break; case 9: weapon.WeaponAttributes.HitLeechStam = Utility.RandomMinMax(2, 10); break; case 10: weapon.WeaponAttributes.HitLightning = Utility.RandomMinMax(2, 10); break; case 11: weapon.WeaponAttributes.HitLowerAttack = Utility.RandomMinMax(2, 10); break; case 12: weapon.WeaponAttributes.HitLowerDefend = Utility.RandomMinMax(2, 10); break; default: weapon.Attributes.WeaponDamage = Utility.RandomMinMax(1, 10); break; } switch (Utility.Random(14)) { case 0: weapon.Attributes.AttackChance = Utility.RandomMinMax(1, 5); break; case 1: weapon.Attributes.DefendChance = Utility.RandomMinMax(1, 5); break; case 2: weapon.Attributes.Luck = Utility.RandomMinMax(1, 10); break; case 3: weapon.Attributes.WeaponSpeed = Utility.RandomMinMax(1, 25); break; case 4: weapon.WeaponAttributes.HitDispel = Utility.RandomMinMax(2, 10); break; case 5: weapon.WeaponAttributes.HitFireball = Utility.RandomMinMax(2, 10); break; case 6: weapon.WeaponAttributes.HitHarm = Utility.RandomMinMax(2, 10); break; case 7: weapon.WeaponAttributes.HitLeechHits = Utility.RandomMinMax(2, 10); break; case 8: weapon.WeaponAttributes.HitLeechMana = Utility.RandomMinMax(2, 10); break; case 9: weapon.WeaponAttributes.HitLeechStam = Utility.RandomMinMax(2, 10); break; case 10: weapon.WeaponAttributes.HitLightning = Utility.RandomMinMax(2, 10); break; case 11: weapon.WeaponAttributes.HitLowerAttack = Utility.RandomMinMax(2, 10); break; case 12: weapon.WeaponAttributes.HitLowerDefend = Utility.RandomMinMax(2, 10); break; default: weapon.Attributes.WeaponDamage = Utility.RandomMinMax(1, 10); break; } DropItem(weapon); } /////////////////////////////////////// LV 12-18 if (Utility.RandomDouble() < 0.10) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(19)) { case 0: armor = new ChitinArms(); break; // Lv12 case 1: armor = new ChitinChest(); break; // Lv12 case 2: armor = new ChitinGloves(); break; // Lv12 case 3: armor = new ChitinGorget(); break; // Lv12 case 4: armor = new ChitinHelmet(); break; // Lv12 case 5: armor = new ChitinLegs(); break; // Lv12 case 6: armor = new FemaleStuddedChest(); break; // Lv15 case 7: armor = new StuddedArms(); break; // Lv15 case 8: armor = new StuddedBustierArms(); break; // Lv15 case 9: armor = new StuddedChest(); break; // Lv15 case 10: armor = new StuddedGloves(); break; // Lv15 case 11: armor = new StuddedGorget(); break; // Lv15 case 12: armor = new StuddedLegs(); break; // Lv15 case 13: armor = new HideFemaleChest(); break; // Lv18 case 14: armor = new HideGloves(); break; // Lv18 case 15: armor = new HideGorget(); break; // Lv18 case 16: armor = new HidePants(); break; // Lv18 case 17: armor = new HidePauldrons(); break; // Lv18 default: armor = new HideChest(); break; // Lv18 } BaseRunicTool.ApplyAttributesTo(armor, 3, 5, 50); DropItem(armor); } if (Utility.RandomDouble() < 0.10) { BaseHat hat = Loot.RandomHat(true); BaseRunicTool.ApplyAttributesTo(hat, 3, 5, 10); DropItem(hat); } if (Utility.RandomDouble() < 0.10) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 3, 5, 10); DropItem(clothing); } if (Utility.RandomDouble() < 0.05) { BaseShield shield1 = new MetalShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield1, 3, 5, 50); } DropItem(shield1); } if (Utility.RandomDouble() < 0.05) { BaseShield shield2 = new WoodenKiteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield2, 3, 5, 50); } DropItem(shield2); } if (Utility.RandomDouble() < 0.05) { BaseShield shield3 = new MetalKiteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield3, 3, 5, 50); } DropItem(shield3); } if (Utility.RandomDouble() < 0.10) { BaseJewel bracelet = new SilverBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 3, 5, 10); } DropItem(bracelet); } if (Utility.RandomDouble() < 0.10) { BaseJewel earrings = new SilverEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 3, 5, 10); } DropItem(earrings); } if (Utility.RandomDouble() < 0.10) { BaseJewel necklace = new SilverNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 3, 5, 10); } DropItem(necklace); } if (Utility.RandomDouble() < 0.10) { BaseJewel ring = new SilverRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 3, 5, 10); } DropItem(ring); } }
public FortressCalcifinaTreasureChest1() : base(0xE43) { Name = "a treasure chest -25-"; Movable = true; Weight = 1000.0; TrapPower = 0; Locked = true; RequiredSkill = 25; LockLevel = 25; MaxLockLevel = 30; // Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(40, 400))); } /////////////////////////////////////// Supplies if (Utility.RandomDouble() < 0.15) { DropItem(new Arrow(Utility.Random(15, 20))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bolt(Utility.Random(15, 20))); } Item ReagentLoot = Loot.RandomReagent(); ReagentLoot.Amount = Utility.Random(15, 20); DropItem(ReagentLoot); if (Utility.RandomDouble() < 0.15) { DropItem(new Bandage(Utility.Random(15, 20))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bedroll()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bottle(Utility.Random(15, 20))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Lockpick(Utility.Random(15, 20))); } Item PotionLoot = Loot.RandomPotion(); DropItem(PotionLoot); /////////////////////////////////////// Tools if (Utility.RandomDouble() < 0.15) { DropItem(new FishingPole()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Shovel()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Skillet()); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.01) { DropItem(new DyeTub()); } if (Utility.RandomDouble() < 0.15) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(38)) { case 0: weapon = new Hatchet(); break; case 1: weapon = new Bow(); break; case 2: weapon = new Crossbow(); break; case 3: weapon = new Club(); break; case 4: weapon = new Mace(); break; case 5: weapon = new Maul(); break; case 6: weapon = new Pitchfork(); break; case 7: weapon = new ShortSpear(); break; case 8: weapon = new GnarledStaff(); break; case 9: weapon = new ShepherdsCrook(); break; case 10: weapon = new Cutlass(); break; case 11: weapon = new Katana(); break; case 12: weapon = new Kryss(); break; case 13: weapon = new Scimitar(); break; case 14: weapon = new AssassinSpike(); break; case 15: weapon = new DiamondMace(); break; case 16: weapon = new Leafblade(); break; case 17: weapon = new MagicalShortbow(); break; case 18: weapon = new RadiantScimitar(); break; case 19: weapon = new WildStaff(); break; case 20: weapon = new Axe(); break; case 21: weapon = new ExecutionersAxe(); break; case 22: weapon = new Pickaxe(); break; case 23: weapon = new TwoHandedAxe(); break; case 24: weapon = new WarAxe(); break; case 25: weapon = new HeavyCrossbow(); break; case 26: weapon = new HammerPick(); break; case 27: weapon = new WarMace(); break; case 28: weapon = new Spear(); break; case 29: weapon = new WarFork(); break; case 30: weapon = new BlackStaff(); break; case 31: weapon = new QuarterStaff(); break; case 32: weapon = new Longsword(); break; case 33: weapon = new ElvenCompositeLongbow(); break; case 34: weapon = new ElvenMachete(); break; case 35: weapon = new ElvenSpellblade(); break; case 36: weapon = new RuneBlade(); break; default: weapon = new Dagger(); break; } BaseRunicTool.ApplyAttributesTo(weapon, 4, 18, 22); DropItem(weapon); } if (Utility.RandomDouble() < 0.15) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(13)) { case 0: armor = new FemaleStuddedChest(); break; case 1: armor = new StuddedArms(); break; case 2: armor = new StuddedBustierArms(); break; case 3: armor = new StuddedGloves(); break; case 4: armor = new StuddedGorget(); break; case 5: armor = new ChainCoif(); break; case 6: armor = new ChainChest(); break; case 7: armor = new ChainLegs(); break; case 8: armor = new RingmailArms(); break; case 9: armor = new RingmailChest(); break; case 10: armor = new RingmailGloves(); break; case 11: armor = new RingmailLegs(); break; default: armor = new StuddedChest(); break; } BaseRunicTool.ApplyAttributesTo(armor, 4, 18, 22); DropItem(armor); } if (Utility.RandomDouble() < 0.15) { BaseHat hat = Loot.RandomHat(true); switch (Utility.Random(5)) { case 0: hat = new BearMask(); break; case 1: hat = new DeerMask(); break; case 2: hat = new FeatheredHat(); break; case 3: hat = new WizardsHat(); break; default: hat = new TribalMask(); break; } BaseRunicTool.ApplyAttributesTo(hat, 4, 18, 22); DropItem(hat); } if (Utility.RandomDouble() < 0.15) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 4, 18, 22); DropItem(clothing); } if (Utility.RandomDouble() < 0.15) { BaseShield shield = new MetalKiteShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 4, 18, 22); } DropItem(shield); } if (Utility.RandomDouble() < 0.15) { BaseJewel bracelet = new GoldBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 4, 18, 22); } DropItem(bracelet); } if (Utility.RandomDouble() < 0.15) { BaseJewel earrings = new SilverEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 4, 18, 22); } DropItem(earrings); } if (Utility.RandomDouble() < 0.15) { BaseJewel necklace = new GoldNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 4, 18, 22); } DropItem(necklace); } if (Utility.RandomDouble() < 0.15) { BaseJewel ring = new SilverRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 4, 18, 22); } DropItem(ring); } }
public RatmenFortressBossChest() : base(0x2DF2) { Name = "a boss treasure chest -25-"; Movable = true; Weight = 1000.0; TrapPower = 0; Locked = true; RequiredSkill = 25; LockLevel = 25; MaxLockLevel = 30; // Gold if (Utility.RandomDouble() < 0.50) { DropItem(new Gold(Utility.Random(250, 400))); } /////////////////////////////////////// Jewelry if (Utility.RandomDouble() < 0.04) { DropItem(new Agate()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Beryl()); } if (Utility.RandomDouble() < 0.04) { DropItem(new ChromeDiopside()); } if (Utility.RandomDouble() < 0.04) { DropItem(new FireOpal()); } if (Utility.RandomDouble() < 0.04) { DropItem(new MoonstoneCustom()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Onyx()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Opal()); } if (Utility.RandomDouble() < 0.04) { DropItem(new Pearl()); } if (Utility.RandomDouble() < 0.04) { DropItem(new TurquoiseCustom()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Bloodstone()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Citrine()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Demantoid()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Jasper()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Lolite()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Lupis()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Peridot()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Tsavorite()); } if (Utility.RandomDouble() < 0.03) { DropItem(new Zircon()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Amber()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Amethyst()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Andalusite()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Chrysoberyl()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Garnet()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Jade()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Mandarin()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Morganite()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Paraiba()); } if (Utility.RandomDouble() < 0.02) { DropItem(new TigerEye()); } if (Utility.RandomDouble() < 0.02) { DropItem(new Tourmaline()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Alexandrite()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Ametrine()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Kunzite()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Ruby()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Sapphire()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Tanzanite()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Topaz()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Zultanite()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Diamond()); } if (Utility.RandomDouble() < 0.01) { DropItem(new Emerald()); } if (Utility.RandomDouble() < 0.01) { DropItem(new PinkQuartz()); } if (Utility.RandomDouble() < 0.01) { DropItem(new StarSapphire()); } /////////////////////////////////////// Supplies if (Utility.RandomDouble() < 0.15) { DropItem(new Arrow(Utility.Random(35, 50))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bolt(Utility.Random(35, 50))); } Item ReagentLoot = Loot.RandomReagent(); ReagentLoot.Amount = Utility.Random(35, 40); DropItem(ReagentLoot); if (Utility.RandomDouble() < 0.15) { DropItem(new Bandage(Utility.Random(25, 40))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bedroll()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Bottle(Utility.Random(15, 25))); } if (Utility.RandomDouble() < 0.15) { DropItem(new Lockpick(Utility.Random(15, 25))); } Item PotionLoot1 = Loot.RandomPotion(); DropItem(PotionLoot1); Item PotionLoot2 = Loot.RandomPotion(); DropItem(PotionLoot2); Item PotionLoot3 = Loot.RandomPotion(); DropItem(PotionLoot3); /////////////////////////////////////// Tools if (Utility.RandomDouble() < 0.15) { DropItem(new FishingPole()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Shovel()); } if (Utility.RandomDouble() < 0.15) { DropItem(new Skillet()); } /////////////////////////////////////// Rare Items if (Utility.RandomDouble() < 0.01) { DropItem(new DyeTub()); } if (Utility.RandomDouble() < 0.20) { BaseWeapon weapon = Loot.RandomWeapon(true); switch (Utility.Random(38)) { case 0: weapon = new Hatchet(); break; case 1: weapon = new Bow(); break; case 2: weapon = new Crossbow(); break; case 3: weapon = new Club(); break; case 4: weapon = new Mace(); break; case 5: weapon = new Maul(); break; case 6: weapon = new Pitchfork(); break; case 7: weapon = new ShortSpear(); break; case 8: weapon = new GnarledStaff(); break; case 9: weapon = new ShepherdsCrook(); break; case 10: weapon = new Cutlass(); break; case 11: weapon = new Katana(); break; case 12: weapon = new Kryss(); break; case 13: weapon = new Scimitar(); break; case 14: weapon = new AssassinSpike(); break; case 15: weapon = new DiamondMace(); break; case 16: weapon = new Leafblade(); break; case 17: weapon = new MagicalShortbow(); break; case 18: weapon = new RadiantScimitar(); break; case 19: weapon = new WildStaff(); break; case 20: weapon = new Axe(); break; case 21: weapon = new ExecutionersAxe(); break; case 22: weapon = new Pickaxe(); break; case 23: weapon = new TwoHandedAxe(); break; case 24: weapon = new WarAxe(); break; case 25: weapon = new HeavyCrossbow(); break; case 26: weapon = new HammerPick(); break; case 27: weapon = new WarMace(); break; case 28: weapon = new Spear(); break; case 29: weapon = new WarFork(); break; case 30: weapon = new BlackStaff(); break; case 31: weapon = new QuarterStaff(); break; case 32: weapon = new Longsword(); break; case 33: weapon = new ElvenCompositeLongbow(); break; case 34: weapon = new ElvenMachete(); break; case 35: weapon = new ElvenSpellblade(); break; case 36: weapon = new RuneBlade(); break; default: weapon = new Dagger(); break; } BaseRunicTool.ApplyAttributesTo(weapon, 5, 15, 20); DropItem(weapon); } if (Utility.RandomDouble() < 0.20) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(13)) { case 0: armor = new FemaleStuddedChest(); break; case 1: armor = new StuddedArms(); break; case 2: armor = new StuddedBustierArms(); break; case 3: armor = new StuddedGloves(); break; case 4: armor = new StuddedGorget(); break; case 5: armor = new ChainCoif(); break; case 6: armor = new ChainChest(); break; case 7: armor = new ChainLegs(); break; case 8: armor = new RingmailArms(); break; case 9: armor = new RingmailChest(); break; case 10: armor = new RingmailGloves(); break; case 11: armor = new RingmailLegs(); break; default: armor = new StuddedChest(); break; } BaseRunicTool.ApplyAttributesTo(armor, 5, 15, 20); DropItem(armor); } if (Utility.RandomDouble() < 0.20) { BaseHat hat = Loot.RandomHat(true); switch (Utility.Random(5)) { case 0: hat = new BearMask(); break; case 1: hat = new DeerMask(); break; case 2: hat = new FeatheredHat(); break; case 3: hat = new WizardsHat(); break; default: hat = new TribalMask(); break; } BaseRunicTool.ApplyAttributesTo(hat, 5, 15, 20); DropItem(hat); } if (Utility.RandomDouble() < 0.20) { BaseClothing clothing = Loot.RandomClothing(true); BaseRunicTool.ApplyAttributesTo(clothing, 5, 15, 20); DropItem(clothing); } if (Utility.RandomDouble() < 0.20) { BaseShield shield = new HeaterShield(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(shield, 5, 15, 20); } DropItem(shield); } if (Utility.RandomDouble() < 0.20) { BaseJewel bracelet = new SilverBracelet(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(bracelet, 5, 15, 20); } DropItem(bracelet); } if (Utility.RandomDouble() < 0.20) { BaseJewel earrings = new SilverEarrings(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(earrings, 5, 15, 20); } DropItem(earrings); } if (Utility.RandomDouble() < 0.20) { BaseJewel necklace = new SilverNecklace(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(necklace, 5, 15, 20); } DropItem(necklace); } if (Utility.RandomDouble() < 0.20) { BaseJewel ring = new SilverRing(); if (Core.AOS) { BaseRunicTool.ApplyAttributesTo(ring, 5, 15, 20); } DropItem(ring); } }
public override void IncreaseTier() { base.IncreaseTier(); List <object> list = new List <object>(); Item c; // don't know names above lev 6 switch (Tier) { case 1: c = new BookOfChivalry(); c.MoveToWorld(new Point3D(2924, 979, -18), Map); c.Movable = false; list.Add(c); c = new Longsword(); c.MoveToWorld(new Point3D(2923, 980, -18), Map); c.Movable = false; c.ItemID = 0x26CF; list.Add(c); c = new Shirt(); c.MoveToWorld(new Point3D(2924, 978, -18), Map); c.Movable = false; c.ItemID = 0x2662; c.Name = "Crisp White Shirt"; list.Add(c); break; case 2: c = new GraveDust(); c.MoveToWorld(new Point3D(2921, 972, -17), Map); c.Movable = false; list.Add(c); c = new NoxCrystal(); c.MoveToWorld(new Point3D(2921, 972, -17), Map); c.Movable = false; list.Add(c); c = new Static(0xF91); c.MoveToWorld(new Point3D(2921, 972, -17), Map); c.Movable = false; list.Add(c); c = new NecromancerSpellbook(); c.MoveToWorld(new Point3D(2922, 972, -18), Map); c.Movable = false; list.Add(c); c = new AnimateDeadScroll(); c.MoveToWorld(new Point3D(2923, 972, -18), Map); c.Movable = false; list.Add(c); c = new HorrificBeastScroll(); c.MoveToWorld(new Point3D(2923, 972, -18), Map); c.Movable = false; list.Add(c); c = new VampiricEmbraceScroll(); c.MoveToWorld(new Point3D(2923, 971, -20), Map); c.Movable = false; list.Add(c); c = new Static(0xFDD); c.MoveToWorld(new Point3D(2922, 971, -21), Map); list.Add(c); c = new Static(0xFDE); c.MoveToWorld(new Point3D(2923, 971, -21), Map); list.Add(c); break; case 3: c = new JesterSuit(); c.MoveToWorld(new Point3D(2919, 985, -16), Map); c.Movable = false; list.Add(c); c = new LocalizedStatic(0xE74, 1073424); c.MoveToWorld(new Point3D(2919, 984, -11), Map); c.Movable = false; c.Weight = 50.0; c.Hue = 0x113; list.Add(c); c = new JesterHat(); c.MoveToWorld(new Point3D(2919, 983, -13), Map); c.Movable = false; c.Hue = 0x113; list.Add(c); break; case 4: c = new Static(0xD25); c.MoveToWorld(new Point3D(2916, 984, -13), Map); c.Movable = false; list.Add(c); c = new Static(0x20D9); c.MoveToWorld(new Point3D(2916, 982, -12), Map); c.Name = "Gargoyle"; list.Add(c); c = new Static(0x2132); c.MoveToWorld(new Point3D(2914, 982, -9), Map); list.Add(c); c = new Static(0x25B6); c.MoveToWorld(new Point3D(2913, 982, -13), Map); list.Add(c); c = new Static(0x25B6); c.MoveToWorld(new Point3D(2913, 982, -13), Map); list.Add(c); c = new Static(0x222E); c.MoveToWorld(new Point3D(2915, 983, -14), Map); list.Add(c); c = new Static(0x2211); c.MoveToWorld(new Point3D(2914, 984, -13), Map); list.Add(c); break; case 5: c = new LocalizedStatic(0xE30, 1073421); c.MoveToWorld(new Point3D(2911, 983, -12), Map); c.Weight = 10.0; list.Add(c); c = new LocalizedStatic(0x2937, 1073422); c.MoveToWorld(new Point3D(2911, 984, -13), Map); list.Add(c); c = new LocalizedStatic(0x12AA, 1073423); c.MoveToWorld(new Point3D(2911, 985, -14), Map); list.Add(c); c = new Static(0xEAF); c.MoveToWorld(new Point3D(2910, 985, -21), Map); c.Weight = 5.0; list.Add(c); c = new Static(0xEAE); c.MoveToWorld(new Point3D(2910, 986, -21), Map); c.Weight = 5.0; list.Add(c); break; case 6: c = new Tessen(); c.MoveToWorld(new Point3D(2910, 966, -17), Map); c.Movable = false; list.Add(c); c = new Shuriken(); c.MoveToWorld(new Point3D(2910, 965, -17), Map); c.Movable = false; list.Add(c); c = new Static(0x2855); c.MoveToWorld(new Point3D(2910, 964, -16), Map); c.Weight = 5.0; list.Add(c); c = new Static(0x241D); c.MoveToWorld(new Point3D(2910, 963, -20), Map); c.Weight = 5.0; list.Add(c); c = new Static(0x2409); c.MoveToWorld(new Point3D(2910, 963, -17), Map); list.Add(c); c = new Static(0x2416); c.MoveToWorld(new Point3D(2909, 965, -17), Map); list.Add(c); break; case 7: c = new Static(0x3069); c.MoveToWorld(new Point3D(2914, 964, -21), Map); list.Add(c); c = new Static(0x306A); c.MoveToWorld(new Point3D(2913, 964, -21), Map); list.Add(c); c = new Static(0x306B); c.MoveToWorld(new Point3D(2912, 964, -21), Map); list.Add(c); c = new ElvenLoveseatEastAddon(); c.MoveToWorld(new Point3D(2913, 966, -21), Map); c.Movable = false; list.Add(c); c = new Static(0x2CFC); c.MoveToWorld(new Point3D(2912, 963, -21), Map); list.Add(c); c = new LocalizedStatic(0x2D74, 1073425); c.MoveToWorld(new Point3D(2914, 963, -21), Map); list.Add(c); break; case 8: c = new Static(0x2); c.MoveToWorld(new Point3D(2905, 970, -15), Map); list.Add(c); c = new Static(0x3); c.MoveToWorld(new Point3D(2905, 969, -15), Map); list.Add(c); c = new OrderShield(); c.MoveToWorld(new Point3D(2905, 971, -17), Map); c.Movable = false; list.Add(c); c = new Static(0x1579); c.MoveToWorld(new Point3D(2904, 971, -21), Map); list.Add(c); c = new Static(0x1613); c.MoveToWorld(new Point3D(2908, 969, -21), Map); list.Add(c); c = new Static(0x1614); c.MoveToWorld(new Point3D(2908, 968, -21), Map); list.Add(c); break; case 9: c = new Static(0x1526); c.MoveToWorld(new Point3D(2905, 976, -15), Map); list.Add(c); c = new Static(0x1527); c.MoveToWorld(new Point3D(2905, 975, -15), Map); list.Add(c); c = new Static(0x151A); c.MoveToWorld(new Point3D(2905, 972, -21), Map); list.Add(c); c = new Static(0x151A); c.MoveToWorld(new Point3D(2905, 977, -21), Map); list.Add(c); c = new Static(0x151A); c.MoveToWorld(new Point3D(2908, 972, -21), Map); list.Add(c); c = new Static(0x151A); c.MoveToWorld(new Point3D(2908, 977, -21), Map); list.Add(c); c = new Static(0x1514); c.MoveToWorld(new Point3D(2904, 975, -17), Map); list.Add(c); break; case 10: c = new Static(0x15C5); c.MoveToWorld(new Point3D(2904, 982, -21), Map); list.Add(c); c = new Static(0x15C5); c.MoveToWorld(new Point3D(2904, 979, -21), Map); list.Add(c); c = new Static(0x157B); c.MoveToWorld(new Point3D(2904, 981, -21), Map); list.Add(c); c = new Static(0x14E3); c.MoveToWorld(new Point3D(2905, 980, -21), Map); list.Add(c); c = new Static(0x14E4); c.MoveToWorld(new Point3D(2905, 981, -21), Map); list.Add(c); c = new Static(0x14E5); c.MoveToWorld(new Point3D(2906, 981, -21), Map); list.Add(c); c = new Static(0x14E6); c.MoveToWorld(new Point3D(2906, 980, -21), Map); list.Add(c); c = new ChaosShield(); c.MoveToWorld(new Point3D(2905, 978, -19), Map); c.Movable = false; list.Add(c); break; case 11: c = new FemaleStuddedChest(); c.MoveToWorld(new Point3D(2912, 976, -16), Map); c.Movable = false; c.Hue = 0x497; list.Add(c); c = new Static(0x1EA8); c.MoveToWorld(new Point3D(2913, 973, -13), Map); c.Hue = 0x497; list.Add(c); c = new Static(0x20F8); c.MoveToWorld(new Point3D(2913, 975, -11), Map); c.Hue = 0x113; list.Add(c); c = new Static(0x20E9); c.MoveToWorld(new Point3D(2912, 974, -11), Map); c.Name = "Troll"; list.Add(c); c = new Static(0x2607); c.MoveToWorld(new Point3D(2913, 974, -11), Map); list.Add(c); c = new Static(0x25F9); c.MoveToWorld(new Point3D(2912, 975, -11), Map); list.Add(c); break; case 12: c = new Static(0x1D8A); c.MoveToWorld(new Point3D(2915, 976, -13), Map); list.Add(c); c = new Static(0x1D8B); c.MoveToWorld(new Point3D(2916, 976, -13), Map); list.Add(c); c = new Static(0x234D); c.MoveToWorld(new Point3D(2915, 975, -10), Map); list.Add(c); c = new WizardsHat(); c.MoveToWorld(new Point3D(2915, 974, -13), Map); c.Movable = false; list.Add(c); break; } if (list.Count > 0) { Tiers.Add(list); } }
public TownChestArmorer() : base(0xE43) { Name = "a metal chest -20-"; Movable = true; Weight = 1000.0; Hue = 83; TrapPower = 0; Locked = true; RequiredSkill = 20; LockLevel = 20; MaxLockLevel = 25; // Gold if (Utility.RandomDouble() < 0.25) { DropItem(new Gold(Utility.Random(1, 50))); } // Supplies if (Utility.RandomDouble() < 0.08) { DropItem(new ChainCoif()); } if (Utility.RandomDouble() < 0.05) { DropItem(new ChainChest()); } if (Utility.RandomDouble() < 0.06) { DropItem(new ChainLegs()); } if (Utility.RandomDouble() < 0.08) { DropItem(new Bascinet()); } if (Utility.RandomDouble() < 0.08) { DropItem(new CloseHelm()); } if (Utility.RandomDouble() < 0.08) { DropItem(new NorseHelm()); } if (Utility.RandomDouble() < 0.06) { DropItem(new PlateArms()); } if (Utility.RandomDouble() < 0.05) { DropItem(new PlateChest()); } if (Utility.RandomDouble() < 0.07) { DropItem(new PlateGloves()); } if (Utility.RandomDouble() < 0.07) { DropItem(new PlateGorget()); } if (Utility.RandomDouble() < 0.08) { DropItem(new PlateHelm()); } if (Utility.RandomDouble() < 0.06) { DropItem(new PlateLegs()); } if (Utility.RandomDouble() < 0.06) { DropItem(new RingmailArms()); } if (Utility.RandomDouble() < 0.05) { DropItem(new RingmailChest()); } if (Utility.RandomDouble() < 0.07) { DropItem(new RingmailGloves()); } if (Utility.RandomDouble() < 0.06) { DropItem(new RingmailLegs()); } if (Utility.RandomDouble() < 0.07) { DropItem(new BronzeShield()); } if (Utility.RandomDouble() < 0.07) { DropItem(new Buckler()); } if (Utility.RandomDouble() < 0.07) { DropItem(new HeaterShield()); } if (Utility.RandomDouble() < 0.07) { DropItem(new MetalKiteShield()); } if (Utility.RandomDouble() < 0.07) { DropItem(new MetalShield()); } if (Utility.RandomDouble() < 0.07) { DropItem(new WoodenKiteShield()); } if (Utility.RandomDouble() < 0.07) { DropItem(new WoodenShield()); } if (Utility.RandomDouble() < 0.15) { BaseArmor armor = Loot.RandomArmor(true); switch (Utility.Random(13)) { case 0: armor = new FemaleStuddedChest(); break; case 1: armor = new StuddedArms(); break; case 2: armor = new StuddedBustierArms(); break; case 3: armor = new StuddedGloves(); break; case 4: armor = new StuddedGorget(); break; case 5: armor = new ChainCoif(); break; case 6: armor = new ChainChest(); break; case 7: armor = new ChainLegs(); break; case 8: armor = new RingmailArms(); break; case 9: armor = new RingmailChest(); break; case 10: armor = new RingmailGloves(); break; case 11: armor = new RingmailLegs(); break; default: armor = new StuddedChest(); break; } BaseRunicTool.ApplyAttributesTo(armor, 5, 15, 20); DropItem(armor); } }