public Executioner() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); Title = "the executioner"; Hue = Utility.RandomSkinHue(); if (this.Female = Utility.RandomBool()) { this.Body = 0x191; this.Name = NameList.RandomName("female"); AddItem(new Skirt(Utility.RandomRedHue())); } else { this.Body = 0x190; this.Name = NameList.RandomName("male"); AddItem(new ShortPants(Utility.RandomRedHue())); } SetStr(386, 400); SetDex(151, 165); SetInt(161, 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.Anatomy, 125.0); SetSkill(SkillName.Fencing, 46.0, 77.5); SetSkill(SkillName.Macing, 35.0, 57.5); 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.Lumberjacking, 125.0); Fame = 5000; Karma = -5000; VirtualArmor = 40; AddItem(new ThighBoots(Utility.RandomRedHue())); AddItem(new Surcoat(Utility.RandomRedHue())); ExecutionersAxe weapon = new ExecutionersAxe(); weapon.DamageLevel = (WeaponDamageLevel)Utility.Random(0, 5); weapon.DurabilityLevel = (WeaponDurabilityLevel)Utility.Random(0, 5); weapon.AccuracyLevel = (WeaponAccuracyLevel)Utility.Random(0, 5); AddItem(weapon); Utility.AssignRandomHair(this); }
public OrcChopper() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "an orc chopper"; Body = 138; BaseSoundID = 432; Hue = 2413; SetStr(147, 245); SetDex(91, 115); SetInt(61, 85); SetHits(97, 139); SetDamage(32, 37); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 25, 35); SetResistance(ResistanceType.Fire, 30, 40); SetResistance(ResistanceType.Cold, 15, 25); SetResistance(ResistanceType.Poison, 15, 20); SetResistance(ResistanceType.Energy, 25, 30); SetSkill(SkillName.MagicResist, 90.1, 95.0); SetSkill(SkillName.Tactics, 75.1, 90.0); SetSkill(SkillName.Wrestling, 60.1, 85.0); SetFameLevel(2); SetKarmaLevel(2); VirtualArmor = 15; if (1 > Utility.Random(25)) { PackItem(new EvilOrcHelm()); } Item ExecutionersAxe = new ExecutionersAxe(); AddItem(ExecutionersAxe); PackItem(new LambLeg(3)); switch (Utility.Random(2)) { case 0: PackItem(new Log(10)); break; case 1: PackItem(new Board(25)); break; } }
public override void InitOutfit() { WipeLayers(); BoneArms arms = new BoneArms(); AddItem(arms); BoneGloves gloves = new BoneGloves(); AddItem(gloves); BoneChest tunic = new BoneChest(); AddItem(tunic); BoneLegs legs = new BoneLegs(); AddItem(legs); BoneHelm helm = new BoneHelm(); AddItem(helm); AddItem(new Shoes()); Item weapon = null; if (Utility.RandomBool()) { SetSkill(SkillName.Parry, 60, 95); AddItem(new Buckler()); weapon = new Katana(); SetDamage(8, 10); // numbers based on LordGuardian } else { weapon = new ExecutionersAxe(); SetDamage(20, 30); // numbers based on Executioner } weapon.Movable = true; AddItem(weapon); }
public InternalSellInfo() { Add(typeof(Dagger), Dagger.GetSBSellValue()); Add(typeof(Kryss), Kryss.GetSBSellValue()); Add(typeof(WarFork), WarFork.GetSBSellValue()); Add(typeof(ShortSpear), ShortSpear.GetSBSellValue()); Add(typeof(Pitchfork), Pitchfork.GetSBSellValue()); Add(typeof(Spear), Spear.GetSBSellValue()); Add(typeof(HammerPick), HammerPick.GetSBSellValue()); Add(typeof(WarAxe), WarAxe.GetSBSellValue()); Add(typeof(Mace), Mace.GetSBSellValue()); Add(typeof(Maul), Maul.GetSBSellValue()); Add(typeof(WarHammer), WarHammer.GetSBSellValue()); Add(typeof(WarMace), WarMace.GetSBSellValue()); Add(typeof(ButcherKnife), ButcherKnife.GetSBSellValue()); Add(typeof(SkinningKnife), SkinningKnife.GetSBSellValue()); Add(typeof(Cleaver), Cleaver.GetSBSellValue()); Add(typeof(Cutlass), Cutlass.GetSBSellValue()); Add(typeof(Katana), Katana.GetSBSellValue()); Add(typeof(Scimitar), Scimitar.GetSBSellValue()); Add(typeof(Broadsword), Broadsword.GetSBSellValue()); Add(typeof(Longsword), Longsword.GetSBSellValue()); Add(typeof(VikingSword), VikingSword.GetSBSellValue()); Add(typeof(Axe), Axe.GetSBSellValue()); Add(typeof(BattleAxe), BattleAxe.GetSBSellValue()); Add(typeof(DoubleAxe), DoubleAxe.GetSBSellValue()); Add(typeof(ExecutionersAxe), ExecutionersAxe.GetSBSellValue()); Add(typeof(LargeBattleAxe), LargeBattleAxe.GetSBSellValue()); Add(typeof(TwoHandedAxe), TwoHandedAxe.GetSBSellValue()); Add(typeof(Bardiche), Bardiche.GetSBSellValue()); Add(typeof(Halberd), Halberd.GetSBSellValue()); Add(typeof(Bow), Bow.GetSBSellValue()); Add(typeof(Crossbow), Crossbow.GetSBSellValue()); Add(typeof(HeavyCrossbow), HeavyCrossbow.GetSBSellValue()); }
public InternalBuyInfo() { Add(new GenericBuyInfo("Dagger", typeof(Dagger), Dagger.GetSBPurchaseValue(), 25, 0xF52, 0)); Add(new GenericBuyInfo("Kryss", typeof(Kryss), Kryss.GetSBPurchaseValue(), 25, 0x1401, 0)); Add(new GenericBuyInfo("War Fork", typeof(WarFork), WarFork.GetSBPurchaseValue(), 25, 0x1405, 0)); Add(new GenericBuyInfo("Short Spear", typeof(ShortSpear), ShortSpear.GetSBPurchaseValue(), 25, 0x1403, 0)); Add(new GenericBuyInfo("Pitchfork", typeof(Pitchfork), Pitchfork.GetSBPurchaseValue(), 25, 0xE87, 0)); Add(new GenericBuyInfo("Spear", typeof(Spear), Spear.GetSBPurchaseValue(), 25, 0xF62, 0)); Add(new GenericBuyInfo("Hammer Pick", typeof(HammerPick), HammerPick.GetSBPurchaseValue(), 25, 0x143D, 0)); Add(new GenericBuyInfo("War Axe", typeof(WarAxe), WarAxe.GetSBPurchaseValue(), 25, 0x13B0, 0)); Add(new GenericBuyInfo("Mace", typeof(Mace), Mace.GetSBPurchaseValue(), 25, 0xF5C, 0)); Add(new GenericBuyInfo("Maul", typeof(Maul), Maul.GetSBPurchaseValue(), 25, 0x143B, 0)); Add(new GenericBuyInfo("WarHammer", typeof(WarHammer), WarHammer.GetSBPurchaseValue(), 25, 0x1439, 0)); Add(new GenericBuyInfo("War Mace", typeof(WarMace), WarMace.GetSBPurchaseValue(), 25, 0x1407, 0)); Add(new GenericBuyInfo("Butcher Knife", typeof(ButcherKnife), ButcherKnife.GetSBPurchaseValue(), 25, 0x13F6, 0)); Add(new GenericBuyInfo("Skinning Knife", typeof(SkinningKnife), SkinningKnife.GetSBPurchaseValue(), 25, 0xEC4, 0)); Add(new GenericBuyInfo("Cleaver", typeof(Cleaver), Cleaver.GetSBPurchaseValue(), 25, 0xEC3, 0)); Add(new GenericBuyInfo("Cutlass", typeof(Cutlass), Cutlass.GetSBPurchaseValue(), 25, 0x1441, 0)); Add(new GenericBuyInfo("Katana", typeof(Katana), Katana.GetSBPurchaseValue(), 25, 0x13FF, 0)); Add(new GenericBuyInfo("Scimitar", typeof(Scimitar), Scimitar.GetSBPurchaseValue(), 25, 0x13B6, 0)); Add(new GenericBuyInfo("Broadsword", typeof(Broadsword), Broadsword.GetSBPurchaseValue(), 25, 0xF5E, 0)); Add(new GenericBuyInfo("Longsword", typeof(Longsword), Longsword.GetSBPurchaseValue(), 25, 0xF61, 0)); Add(new GenericBuyInfo("Viking Sword", typeof(VikingSword), VikingSword.GetSBPurchaseValue(), 25, 0x13B9, 0)); Add(new GenericBuyInfo("Axe", typeof(Axe), Axe.GetSBPurchaseValue(), 25, 0xF49, 0)); Add(new GenericBuyInfo("Battle Axe", typeof(BattleAxe), BattleAxe.GetSBPurchaseValue(), 25, 0xF47, 0)); Add(new GenericBuyInfo("Double Axe", typeof(DoubleAxe), DoubleAxe.GetSBPurchaseValue(), 25, 0xF4B, 0)); Add(new GenericBuyInfo("Executioner's Axe", typeof(ExecutionersAxe), ExecutionersAxe.GetSBPurchaseValue(), 25, 0xF45, 0)); Add(new GenericBuyInfo("Large Battle Axe", typeof(LargeBattleAxe), LargeBattleAxe.GetSBPurchaseValue(), 25, 0x13FB, 0)); Add(new GenericBuyInfo("Two-Handed Axe", typeof(TwoHandedAxe), TwoHandedAxe.GetSBPurchaseValue(), 25, 0x1443, 0)); Add(new GenericBuyInfo("Bardiche", typeof(Bardiche), Bardiche.GetSBPurchaseValue(), 25, 0xF4D, 0)); Add(new GenericBuyInfo("Halberd", typeof(Halberd), Halberd.GetSBPurchaseValue(), 25, 0x143E, 0)); Add(new GenericBuyInfo("Bow", typeof(Bow), Bow.GetSBPurchaseValue(), 25, 0x13B2, 0)); Add(new GenericBuyInfo("Crossbow", typeof(Crossbow), Crossbow.GetSBPurchaseValue(), 25, 0xF50, 0)); Add(new GenericBuyInfo("Heavy Crossbow", typeof(HeavyCrossbow), HeavyCrossbow.GetSBPurchaseValue(), 25, 0x13FD, 0)); }
public override void InitOutfit() { WipeLayers(); switch (Utility.Random(2)) { case 0: AddItem(new LeatherSkirt()); break; case 1: AddItem(new LeatherShorts()); break; } switch (Utility.Random(5)) { case 0: AddItem(new FemaleLeatherChest()); break; case 1: AddItem(new FemaleStuddedChest()); break; case 2: AddItem(new LeatherBustierArms()); break; case 3: AddItem(new StuddedBustierArms()); break; case 4: AddItem(new FemalePlateChest()); break; } 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); ExecutionersAxe weapon = new ExecutionersAxe(); weapon.Movable = false; weapon.Crafter = this; weapon.Quality = WeaponQuality.Exceptional; AddItem(weapon); }
public OrcChopper() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "an orc chopper"; Body = 138; BaseSoundID = 0x45A; Hue = 2213; SetStr(147, 245); SetDex(91, 115); SetInt(61, 85); SetHits(97, 139); SetDamage(32, 37); SetSkill(SkillName.MagicResist, 90.1, 95.0); SetSkill(SkillName.Tactics, 75.1, 90.0); SetSkill(SkillName.Wrestling, 60.1, 85.0); SetFameLevel(2); SetKarmaLevel(2); VirtualArmor = 15; Item ExecutionersAxe = new ExecutionersAxe(); AddItem(ExecutionersAxe); PackItem(new LambLeg(3)); switch (Utility.Random(2)) { case 0: PackItem(new Log(10)); break; case 1: PackItem(new Board(25)); break; } }
public BaneOfWantoness() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 0x190; SpeechHue = Utility.RandomTalkHue(); Hue = Utility.RandomSkinColor(); 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; Title = "the Bane of Wantoness"; SetStr(350); SetDex(150); SetInt(120); SetHits(300); SetDamage(12, 23); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 40); SetResistance(ResistanceType.Fire, 30); SetResistance(ResistanceType.Cold, 30); SetResistance(ResistanceType.Poison, 30); SetResistance(ResistanceType.Energy, 30); SetSkill(SkillName.DetectHidden, 80.0); SetSkill(SkillName.Anatomy, 110.0); SetSkill(SkillName.MagicResist, 80.0); SetSkill(SkillName.Macing, 110.0); SetSkill(SkillName.Fencing, 110.0); SetSkill(SkillName.Wrestling, 110.0); SetSkill(SkillName.Swords, 110.0); SetSkill(SkillName.Tactics, 110.0); Fame = 8000; Karma = -8000; VirtualArmor = 30; PlateChest chest = new PlateChest(); chest.Hue = 0x4AB; chest.Name = "plate tunic of wantoness"; chest.Durability = ArmorDurabilityLevel.Indestructible; chest.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(chest); PlateArms arms = new PlateArms(); arms.Hue = 0x4AB; arms.Name = "plate arms of wantoness"; arms.Durability = ArmorDurabilityLevel.Indestructible; arms.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(arms); PlateLegs legs = new PlateLegs(); legs.Hue = 0x4AB; legs.Name = "plate leggings of wantoness"; legs.Durability = ArmorDurabilityLevel.Indestructible; legs.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(legs); PlateGorget neck = new PlateGorget(); neck.Hue = 0x4AB; neck.Name = "plate gorget of wantoness"; neck.Durability = ArmorDurabilityLevel.Indestructible; neck.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(neck); PlateGloves gloves = new PlateGloves(); gloves.Hue = 0x4AB; gloves.Name = "plate gloves of wantoness"; gloves.Durability = ArmorDurabilityLevel.Indestructible; gloves.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(gloves); PlateHelm helm = new PlateHelm(); helm.Hue = 0x4AB; helm.ItemID = 0x2645; helm.Name = "plate helm of wantoness"; helm.Durability = ArmorDurabilityLevel.Indestructible; helm.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(helm); ExecutionersAxe weapon = new ExecutionersAxe(); weapon.Hue = 0x4AB; weapon.Name = "axe of wantoness"; weapon.AccuracyLevel = WeaponAccuracyLevel.Supremely; weapon.DamageLevel = WeaponDamageLevel.Vanq; weapon.DurabilityLevel = WeaponDurabilityLevel.Indestructible; AddItem(weapon); }
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 CursedExecutioner() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Cursed Executioner"; Hue = 33805; Body = 400; Female = false; SetStr(95); SetDex(90); SetInt(100); SetHits(1000); SetDamage(20, 25); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 70); SetResistance(ResistanceType.Fire, 81); SetResistance(ResistanceType.Cold, 91); SetResistance(ResistanceType.Poison, 80); SetResistance(ResistanceType.Energy, 70); SetSkill(SkillName.Anatomy, 100.0); SetSkill(SkillName.Fencing, 120.0); SetSkill(SkillName.Wrestling, 130.0); SetSkill(SkillName.MagicResist, 110.0); SetSkill(SkillName.Tactics, 150.0); VirtualArmor = 20; Item goatee = new Item(8256); goatee.Layer = Layer.FacialHair; goatee.Movable = false; AddItem(goatee); Item LongPants = new Item(5433); LongPants.Hue = 966; LongPants.Layer = Layer.Pants; LongPants.LootType = LootType.Blessed; AddItem(LongPants); Item Shirt = new Item(5399); Shirt.Layer = Layer.Shirt; Shirt.LootType = LootType.Blessed; AddItem(Shirt); Item LeatherGloves = new Item(5062); LeatherGloves.Hue = 966; LeatherGloves.Layer = Layer.Gloves; LeatherGloves.LootType = LootType.Blessed; AddItem(LeatherGloves); Item SkullCap = new Item(5444); SkullCap.Hue = 966; SkullCap.Layer = Layer.Helm; SkullCap.LootType = LootType.Blessed; AddItem(SkullCap); Item Boots = new Item(5899); Boots.Hue = 966; Boots.Layer = Layer.Shoes; Boots.LootType = LootType.Blessed; AddItem(Boots); Item HalfApron = new Item(5435); HalfApron.Hue = 32; HalfApron.Layer = Layer.Waist; HalfApron.LootType = LootType.Blessed; AddItem(HalfApron); Item ExecutionersAxe = new ExecutionersAxe(); ExecutionersAxe.LootType = LootType.Blessed; ExecutionersAxe.Hue = 1157; AddItem(ExecutionersAxe); Container pack = new Backpack(); PackGold(700, 800); PackItem(new DeathsScythe()); }
public Executioner() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); Title = "the executioner"; Hue = Utility.RandomSkinHue(); if (this.Female = Utility.RandomBool()) { this.Body = 0x191; this.Name = NameList.RandomName("female"); AddItem(new Skirt(Utility.RandomRedHue())); } else { this.Body = 0x190; this.Name = NameList.RandomName("male"); AddItem(new ShortPants(Utility.RandomRedHue())); } SetStr(386, 400); SetDex(151, 165); SetInt(161, 175); SetDamage(8, 10); SetSkill(SkillName.Anatomy, 125.0); SetSkill(SkillName.Fencing, 46.0, 77.5); SetSkill(SkillName.Macing, 35.0, 57.5); 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.Lumberjacking, 125.0); Fame = 5000; Karma = -5000; VirtualArmor = 40; AddItem(new ThighBoots(Utility.RandomRedHue())); AddItem(new Surcoat(Utility.RandomRedHue())); ExecutionersAxe weapon = new ExecutionersAxe(); int damageLevel = Utility.Random(0, 5); if (PseudoSeerStone.Instance != null && PseudoSeerStone.Instance._HighestDamageLevelSpawn < damageLevel) { if (damageLevel == 5 && PseudoSeerStone.ReplaceVanqWithSkillScrolls) { PackItem(PuzzleChest.CreateRandomSkillScroll()); } int platAmount = PseudoSeerStone.PlatinumPerMissedDamageLevel * (damageLevel - PseudoSeerStone.Instance._HighestDamageLevelSpawn); if (platAmount > 0) { PackItem(new Platinum(platAmount)); } damageLevel = PseudoSeerStone.Instance._HighestDamageLevelSpawn; } weapon.DamageLevel = (WeaponDamageLevel)damageLevel; weapon.DurabilityLevel = (WeaponDurabilityLevel)Utility.Random(0, 5); weapon.AccuracyLevel = (WeaponAccuracyLevel)Utility.Random(0, 5); AddItem(weapon); Utility.AssignRandomHair(this); }
public InternalBuyInfo() { //Tools Add(new GenericBuyInfo("Tongs", typeof(Tongs), Tongs.GetSBPurchaseValue(), 50, 0xFBB, 0)); Add(new GenericBuyInfo("Smith's Hammer", typeof(SmithHammer), SmithHammer.GetSBPurchaseValue(), 50, 0x13E3, 0)); //Armor Add(new GenericBuyInfo("Ringmail Helm", typeof(RingmailHelm), RingmailHelm.GetSBPurchaseValue(), 25, 5131, 0)); Add(new GenericBuyInfo("Ringmail Gorget", typeof(RingmailGorget), RingmailGorget.GetSBPurchaseValue(), 25, 5078, 1812)); Add(new GenericBuyInfo("Ringmail Arms", typeof(RingmailArms), RingmailArms.GetSBPurchaseValue(), 25, 0x13EE, 0)); Add(new GenericBuyInfo("Ringmail Gloves", typeof(RingmailGloves), RingmailGloves.GetSBPurchaseValue(), 25, 0x13eb, 0)); Add(new GenericBuyInfo("Ringmail Chest", typeof(RingmailChest), RingmailChest.GetSBPurchaseValue(), 25, 0x13ec, 0)); Add(new GenericBuyInfo("Ringmail Legs", typeof(RingmailLegs), RingmailLegs.GetSBPurchaseValue(), 25, 0x13F0, 0)); Add(new GenericBuyInfo("Chainmail Coif", typeof(ChainmailCoif), ChainmailCoif.GetSBPurchaseValue(), 25, 0x13BB, 0)); Add(new GenericBuyInfo("Chainmail Gorget", typeof(ChainmailGorget), ChainmailGorget.GetSBPurchaseValue(), 25, 5063, 2500)); Add(new GenericBuyInfo("Chainmail Arms", typeof(ChainmailArms), ChainmailArms.GetSBPurchaseValue(), 25, 5103, 2500)); Add(new GenericBuyInfo("Chainmail Gloves", typeof(ChainmailGloves), ChainmailGloves.GetSBPurchaseValue(), 25, 5106, 2500)); Add(new GenericBuyInfo("Chainmail Chest", typeof(ChainmailChest), ChainmailChest.GetSBPurchaseValue(), 25, 0x13BF, 0)); Add(new GenericBuyInfo("Chainmail Legs", typeof(ChainmailLegs), ChainmailLegs.GetSBPurchaseValue(), 25, 0x13BE, 0)); Add(new GenericBuyInfo("Platemail Helm", typeof(PlateHelm), PlateHelm.GetSBPurchaseValue(), 25, 0x1412, 0)); Add(new GenericBuyInfo("Platemail Gorget", typeof(PlateGorget), PlateGorget.GetSBPurchaseValue(), 25, 0x1413, 0)); Add(new GenericBuyInfo("Platemail Arms", typeof(PlateArms), PlateArms.GetSBPurchaseValue(), 25, 0x1410, 0)); Add(new GenericBuyInfo("Platemail Gloves", typeof(PlateGloves), PlateGloves.GetSBPurchaseValue(), 25, 0x1414, 0)); Add(new GenericBuyInfo("Platemail PlateChest", typeof(PlateChest), PlateChest.GetSBPurchaseValue(), 25, 0x1415, 0)); Add(new GenericBuyInfo("Female Plate Chest", typeof(FemalePlateChest), FemalePlateChest.GetSBPurchaseValue(), 25, 7173, 0)); Add(new GenericBuyInfo("Platemail Legs", typeof(PlateLegs), PlateLegs.GetSBPurchaseValue(), 25, 0x1411, 0)); Add(new GenericBuyInfo("Bascinet", typeof(Bascinet), Bascinet.GetSBPurchaseValue(), 25, 5132, 0)); Add(new GenericBuyInfo("Close Helm", typeof(CloseHelm), CloseHelm.GetSBPurchaseValue(), 25, 5129, 0)); Add(new GenericBuyInfo("Norse Helm", typeof(NorseHelm), NorseHelm.GetSBPurchaseValue(), 25, 5135, 0)); Add(new GenericBuyInfo("Buckler", typeof(Buckler), Buckler.GetSBPurchaseValue(), 25, 0x1B73, 0)); Add(new GenericBuyInfo("Metal Shield", typeof(MetalShield), MetalShield.GetSBPurchaseValue(), 25, 0x1B7B, 0)); Add(new GenericBuyInfo("Bronze Shield", typeof(BronzeShield), BronzeShield.GetSBPurchaseValue(), 25, 0x1B72, 0)); Add(new GenericBuyInfo("Metal Kite Shield", typeof(MetalKiteShield), MetalKiteShield.GetSBPurchaseValue(), 25, 0x1B74, 0)); Add(new GenericBuyInfo("Heater Shield", typeof(HeaterShield), HeaterShield.GetSBPurchaseValue(), 25, 0x1B76, 0)); //Weapons Add(new GenericBuyInfo("Dagger", typeof(Dagger), Dagger.GetSBPurchaseValue(), 25, 0xF52, 0)); Add(new GenericBuyInfo("Kryss", typeof(Kryss), Kryss.GetSBPurchaseValue(), 25, 0x1401, 0)); Add(new GenericBuyInfo("War Fork", typeof(WarFork), WarFork.GetSBPurchaseValue(), 25, 0x1405, 0)); Add(new GenericBuyInfo("Short Spear", typeof(ShortSpear), ShortSpear.GetSBPurchaseValue(), 25, 0x1403, 0)); Add(new GenericBuyInfo("Pitchfork", typeof(Pitchfork), Pitchfork.GetSBPurchaseValue(), 25, 0xE87, 0)); Add(new GenericBuyInfo("Spear", typeof(Spear), Spear.GetSBPurchaseValue(), 25, 0xF62, 0)); Add(new GenericBuyInfo("Hammer Pick", typeof(HammerPick), HammerPick.GetSBPurchaseValue(), 25, 0x143D, 0)); Add(new GenericBuyInfo("War Axe", typeof(WarAxe), WarAxe.GetSBPurchaseValue(), 25, 0x13B0, 0)); Add(new GenericBuyInfo("Mace", typeof(Mace), Mace.GetSBPurchaseValue(), 25, 0xF5C, 0)); Add(new GenericBuyInfo("Maul", typeof(Maul), Maul.GetSBPurchaseValue(), 25, 0x143B, 0)); Add(new GenericBuyInfo("WarHammer", typeof(WarHammer), WarHammer.GetSBPurchaseValue(), 25, 0x1439, 0)); Add(new GenericBuyInfo("War Mace", typeof(WarMace), WarMace.GetSBPurchaseValue(), 25, 0x1407, 0)); Add(new GenericBuyInfo("Butcher Knife", typeof(ButcherKnife), ButcherKnife.GetSBPurchaseValue(), 25, 0x13F6, 0)); Add(new GenericBuyInfo("Skinning Knife", typeof(SkinningKnife), SkinningKnife.GetSBPurchaseValue(), 25, 0xEC4, 0)); Add(new GenericBuyInfo("Cleaver", typeof(Cleaver), Cleaver.GetSBPurchaseValue(), 25, 0xEC3, 0)); Add(new GenericBuyInfo("Cutlass", typeof(Cutlass), Cutlass.GetSBPurchaseValue(), 25, 0x1441, 0)); Add(new GenericBuyInfo("Katana", typeof(Katana), Katana.GetSBPurchaseValue(), 25, 0x13FF, 0)); Add(new GenericBuyInfo("Scimitar", typeof(Scimitar), Scimitar.GetSBPurchaseValue(), 25, 0x13B6, 0)); Add(new GenericBuyInfo("Broadsword", typeof(Broadsword), Broadsword.GetSBPurchaseValue(), 25, 0xF5E, 0)); Add(new GenericBuyInfo("Longsword", typeof(Longsword), Longsword.GetSBPurchaseValue(), 25, 0xF61, 0)); Add(new GenericBuyInfo("Viking Sword", typeof(VikingSword), VikingSword.GetSBPurchaseValue(), 25, 0x13B9, 0)); Add(new GenericBuyInfo("Axe", typeof(Axe), Axe.GetSBPurchaseValue(), 25, 0xF49, 0)); Add(new GenericBuyInfo("Battle Axe", typeof(BattleAxe), BattleAxe.GetSBPurchaseValue(), 25, 0xF47, 0)); Add(new GenericBuyInfo("Double Axe", typeof(DoubleAxe), DoubleAxe.GetSBPurchaseValue(), 25, 0xF4B, 0)); Add(new GenericBuyInfo("Executioner's Axe", typeof(ExecutionersAxe), ExecutionersAxe.GetSBPurchaseValue(), 25, 0xF45, 0)); Add(new GenericBuyInfo("Large Battle Axe", typeof(LargeBattleAxe), LargeBattleAxe.GetSBPurchaseValue(), 25, 0x13FB, 0)); Add(new GenericBuyInfo("Two-Handed Axe", typeof(TwoHandedAxe), TwoHandedAxe.GetSBPurchaseValue(), 25, 0x1443, 0)); Add(new GenericBuyInfo("Bardiche", typeof(Bardiche), Bardiche.GetSBPurchaseValue(), 25, 0xF4D, 0)); Add(new GenericBuyInfo("Halberd", typeof(Halberd), Halberd.GetSBPurchaseValue(), 25, 0x143E, 0)); }
public InternalSellInfo() { //Tools Add(typeof(Tongs), Tongs.GetSBSellValue()); Add(typeof(SmithHammer), SmithHammer.GetSBSellValue()); //Armor Add(typeof(RingmailHelm), RingmailHelm.GetSBSellValue()); Add(typeof(RingmailGorget), RingmailGorget.GetSBSellValue()); Add(typeof(RingmailArms), RingmailArms.GetSBSellValue()); Add(typeof(RingmailGloves), RingmailGloves.GetSBSellValue()); Add(typeof(RingmailChest), RingmailChest.GetSBSellValue()); Add(typeof(RingmailLegs), RingmailLegs.GetSBSellValue()); Add(typeof(ChainmailCoif), ChainmailCoif.GetSBSellValue()); Add(typeof(ChainmailGorget), ChainmailGorget.GetSBSellValue()); Add(typeof(ChainmailArms), ChainmailArms.GetSBSellValue()); Add(typeof(ChainmailGloves), ChainmailGloves.GetSBSellValue()); Add(typeof(ChainmailChest), ChainmailChest.GetSBSellValue()); Add(typeof(ChainmailLegs), ChainmailLegs.GetSBSellValue()); Add(typeof(PlateHelm), PlateHelm.GetSBSellValue()); Add(typeof(PlateGorget), PlateGorget.GetSBSellValue()); Add(typeof(PlateArms), PlateArms.GetSBSellValue()); Add(typeof(PlateGloves), PlateGloves.GetSBSellValue()); Add(typeof(PlateChest), PlateChest.GetSBSellValue()); Add(typeof(FemalePlateChest), FemalePlateChest.GetSBSellValue()); Add(typeof(PlateLegs), PlateLegs.GetSBSellValue()); Add(typeof(Bascinet), Bascinet.GetSBSellValue()); Add(typeof(CloseHelm), CloseHelm.GetSBSellValue()); Add(typeof(NorseHelm), NorseHelm.GetSBSellValue()); Add(typeof(Buckler), Buckler.GetSBSellValue()); Add(typeof(MetalShield), MetalShield.GetSBSellValue()); Add(typeof(BronzeShield), BronzeShield.GetSBSellValue()); Add(typeof(MetalKiteShield), MetalKiteShield.GetSBSellValue()); Add(typeof(HeaterShield), HeaterShield.GetSBSellValue()); //Weapons Add(typeof(Dagger), Dagger.GetSBSellValue()); Add(typeof(Kryss), Kryss.GetSBSellValue()); Add(typeof(WarFork), WarFork.GetSBSellValue()); Add(typeof(ShortSpear), ShortSpear.GetSBSellValue()); Add(typeof(Pitchfork), Pitchfork.GetSBSellValue()); Add(typeof(Spear), Spear.GetSBSellValue()); Add(typeof(HammerPick), HammerPick.GetSBSellValue()); Add(typeof(WarAxe), WarAxe.GetSBSellValue()); Add(typeof(Mace), Mace.GetSBSellValue()); Add(typeof(Maul), Maul.GetSBSellValue()); Add(typeof(WarHammer), WarHammer.GetSBSellValue()); Add(typeof(WarMace), WarMace.GetSBSellValue()); Add(typeof(ButcherKnife), ButcherKnife.GetSBSellValue()); Add(typeof(SkinningKnife), SkinningKnife.GetSBSellValue()); Add(typeof(Cleaver), Cleaver.GetSBSellValue()); Add(typeof(Cutlass), Cutlass.GetSBSellValue()); Add(typeof(Katana), Katana.GetSBSellValue()); Add(typeof(Scimitar), Scimitar.GetSBSellValue()); Add(typeof(Broadsword), Broadsword.GetSBSellValue()); Add(typeof(Longsword), Longsword.GetSBSellValue()); Add(typeof(VikingSword), VikingSword.GetSBSellValue()); Add(typeof(Axe), Axe.GetSBSellValue()); Add(typeof(BattleAxe), BattleAxe.GetSBSellValue()); Add(typeof(DoubleAxe), DoubleAxe.GetSBSellValue()); Add(typeof(ExecutionersAxe), ExecutionersAxe.GetSBSellValue()); Add(typeof(LargeBattleAxe), LargeBattleAxe.GetSBSellValue()); Add(typeof(TwoHandedAxe), TwoHandedAxe.GetSBSellValue()); Add(typeof(Bardiche), Bardiche.GetSBSellValue()); Add(typeof(Halberd), Halberd.GetSBSellValue()); }
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static Item CreateMetalWeapon() { Item item = null; int nType = Utility.RandomMinMax(0, 41); switch (nType) { case 1: item = new Cutlass(); item.Name = "cutlass"; break; case 2: item = new Katana(); item.Name = "katana"; break; case 3: item = new Kryss(); item.Name = "kryss"; break; case 4: item = new Broadsword(); item.Name = "broadsword"; break; case 5: item = new Longsword(); item.Name = "longsword"; break; case 6: item = new ThinLongsword(); item.Name = "longsword"; break; case 7: item = new VikingSword(); item.Name = "barbarian sword"; break; case 8: item = new Scimitar(); item.Name = "scimitar"; break; case 9: item = new BoneHarvester(); item.Name = "sickle"; break; case 10: item = new CrescentBlade(); item.Name = "crescent blade"; break; case 11: item = new DoubleBladedStaff(); item.Name = "bladed staff"; break; case 12: item = new Lance(); item.Name = "lance"; break; case 13: item = new Pike(); item.Name = "pike"; break; case 14: item = new Scythe(); item.Name = "scythe"; break; case 15: item = new Dagger(); item.Name = "dagger"; break; case 16: item = new HammerPick(); item.Name = "hammer pick"; break; case 17: item = new Mace(); item.Name = "mace"; break; case 18: item = new Maul(); item.Name = "maul"; break; case 19: item = new WarHammer(); item.Name = "war hammer"; break; case 20: item = new WarMace(); item.Name = "war mace"; break; case 21: item = new ExecutionersAxe(); item.Name = "great axe"; break; case 22: item = new BattleAxe(); item.Name = "battle axe"; break; case 23: item = new TwoHandedAxe(); item.Name = "two-handed axe"; break; case 24: item = new Axe(); item.Name = "axe"; break; case 25: item = new DoubleAxe(); item.Name = "double axe"; break; case 26: item = new RoyalSword(); item.Name = "royal sword"; break; case 27: item = new LargeBattleAxe(); item.Name = "large battle axe"; break; case 28: item = new WarAxe(); item.Name = "war axe"; break; case 29: item = new Bardiche(); item.Name = "bardiche"; break; case 30: item = new Halberd(); item.Name = "halberd"; break; case 31: item = new Pitchfork(); item.Name = "trident"; break; case 32: item = new ShortSpear(); item.Name = "short spear"; break; case 33: item = new Spear(); item.Name = "spear"; break; case 34: item = new NoDachi(); item.Name = "no dachi"; break; case 35: item = new Wakizashi(); item.Name = "wakizashi"; break; case 36: item = new Tetsubo(); item.Name = "tetsubo"; break; case 37: item = new Lajatang(); item.Name = "lajatang"; break; case 38: item = new Daisho(); item.Name = "daisho"; break; case 39: item = new Tekagi(); item.Name = "tekagi"; break; case 40: item = new Kama(); item.Name = "kama"; break; case 41: item = new Sai(); item.Name = "sai"; break; } return(item); }
public Urk() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { BaseSoundID = 0x45A; Hue = 0x430; Body = 0x190; Name = NameList.RandomName("urk"); HairItemID = 0; FacialHairItemID = 0; Item helm = new WornHumanDeco(); helm.Name = "urkish face"; helm.ItemID = 0x141B; helm.Hue = 0x430; helm.Layer = Layer.Helm; AddItem(helm); if (Utility.RandomMinMax(1, 2) == 1) { LeatherArms ratarms = new LeatherArms(); ratarms.Name = "urkish rat skin arms"; ratarms.PoisonBonus = 6; ratarms.Hue = 0x972; AddItem(ratarms); LeatherChest ratchest = new LeatherChest(); ratchest.Name = "urkish rat skin tunic"; ratchest.PoisonBonus = 8; ratchest.Hue = 0x972; AddItem(ratchest); LeatherGloves ratgloves = new LeatherGloves(); ratgloves.Name = "urkish rat skin gloves"; ratgloves.PoisonBonus = 5; ratgloves.Hue = 0x972; AddItem(ratgloves); LeatherGorget ratgorget = new LeatherGorget(); ratgorget.Name = "urkish rat skin gorget"; ratgorget.PoisonBonus = 4; ratgorget.Hue = 0x972; AddItem(ratgorget); LeatherLegs ratlegs = new LeatherLegs(); ratlegs.Name = "urkish rat skin leggings"; ratlegs.PoisonBonus = 7; ratlegs.Hue = 0x972; AddItem(ratlegs); } else { BoneChest bonechest = new BoneChest(); bonechest.Name = "urkish chest piece"; bonechest.PoisonBonus = 8; bonechest.Hue = 0x972; AddItem(bonechest); BoneArms bonearms = new BoneArms(); bonearms.Name = "urkish bracers"; bonearms.PoisonBonus = 6; bonearms.Hue = 0x972; AddItem(bonearms); BoneLegs bonelegs = new BoneLegs(); bonelegs.Name = "urkish leggings"; bonelegs.PoisonBonus = 7; bonelegs.Hue = 0x972; AddItem(bonelegs); BoneGloves bonegloves = new BoneGloves(); bonegloves.Name = "urkish gauntlets"; bonegloves.PoisonBonus = 5; bonegloves.Hue = 0x972; AddItem(bonegloves); } Item weapon = new BattleAxe(); switch (Utility.Random(28)) { case 0: weapon = new BattleAxe(); weapon.Name = "battle axe"; break; case 1: weapon = new VikingSword(); weapon.Name = "great sword"; break; case 2: weapon = new Halberd(); weapon.Name = "halberd"; break; case 3: weapon = new DoubleAxe(); weapon.Name = "double axe"; break; case 4: weapon = new ExecutionersAxe(); weapon.Name = "great axe"; break; case 5: weapon = new WarAxe(); weapon.Name = "war axe"; break; case 6: weapon = new TwoHandedAxe(); weapon.Name = "two handed axe"; break; case 7: weapon = new Cutlass(); weapon.Name = "cutlass"; break; case 8: weapon = new Katana(); weapon.Name = "katana"; break; case 9: weapon = new Kryss(); weapon.Name = "kryss"; break; case 10: weapon = new Broadsword(); weapon.Name = "broadsword"; break; case 11: weapon = new Longsword(); weapon.Name = "longsword"; break; case 12: weapon = new ThinLongsword(); weapon.Name = "longsword"; break; case 13: weapon = new Scimitar(); weapon.Name = "scimitar"; break; case 14: weapon = new BoneHarvester(); weapon.Name = "sickle"; break; case 15: weapon = new CrescentBlade(); weapon.Name = "crescent blade"; break; case 16: weapon = new DoubleBladedStaff(); weapon.Name = "double bladed staff"; break; case 17: weapon = new Pike(); weapon.Name = "pike"; break; case 18: weapon = new Scythe(); weapon.Name = "scythe"; break; case 19: weapon = new Pitchfork(); weapon.Name = "trident"; break; case 20: weapon = new ShortSpear(); weapon.Name = "short spear"; break; case 21: weapon = new Spear(); weapon.Name = "spear"; break; case 22: weapon = new Club(); weapon.Name = "club"; break; case 23: weapon = new HammerPick(); weapon.Name = "hammer pick"; break; case 24: weapon = new Mace(); weapon.Name = "mace"; break; case 25: weapon = new Maul(); weapon.Name = "maul"; break; case 26: weapon = new WarHammer(); weapon.Name = "war hammer"; break; case 27: weapon = new WarMace(); weapon.Name = "war mace"; break; } weapon.Name = "urkish " + weapon.Name; weapon.Hue = 0x7D1; ((BaseWeapon)weapon).AosElementDamages.Physical = 60; ((BaseWeapon)weapon).AosElementDamages.Poison = 40; AddItem(weapon); switch (Utility.RandomMinMax(0, 5)) { case 0: Title = "the urk warrior"; break; case 1: Title = "the urk savage"; break; case 2: Title = "the urk barbarian"; break; case 3: Title = "the urk fighter"; break; case 4: Title = "the urk gladiator"; break; case 5: Title = "the urk berserker"; break; } SetStr(196, 250); SetDex(76, 95); SetInt(36, 60); SetHits(118, 150); SetDamage(8, 18); SetDamageType(ResistanceType.Physical, 60); SetDamageType(ResistanceType.Poison, 40); SetResistance(ResistanceType.Physical, 35, 45); SetResistance(ResistanceType.Fire, 20, 30); SetResistance(ResistanceType.Cold, 50, 60); SetResistance(ResistanceType.Poison, 60, 80); SetResistance(ResistanceType.Energy, 30, 40); SetSkill(SkillName.MagicResist, 65.1, 80.0); SetSkill(SkillName.Tactics, 85.1, 100.0); SetSkill(SkillName.Macing, 85.1, 95.0); SetSkill(SkillName.Swords, 85.1, 95.0); SetSkill(SkillName.Fencing, 85.1, 95.0); SetSkill(SkillName.Wrestling, 85.1, 95.0); Fame = 3000; Karma = -3000; VirtualArmor = 40; }