public Vladamir() { Name = "Vladamir"; Title = "Collector of Uniques"; Body = 400; CantWalk = true; Hue = 0; AddItem(new Server.Items.Cloak(1250)); Item weapon = new Kryss(); weapon.Movable = false; weapon.Hue = 2410; AddItem(weapon); Item shield = new ChaosShield(); shield.Movable = false; shield.Hue = 2410; AddItem(shield); Item arms = new PlateArms(); arms.Movable = false; arms.Hue = 2410; AddItem(arms); Item gloves = new PlateGloves(); gloves.Movable = false; gloves.Hue = 2410; AddItem(gloves); Item chest = new PlateChest(); chest.Movable = false; chest.Hue = 2410; AddItem(chest); Item legs = new PlateLegs(); legs.Movable = false; legs.Hue = 2410; AddItem(legs); Item helm = new NorseHelm(); helm.Movable = false; helm.Hue = 2410; AddItem(helm); Item gorget = new PlateGorget(); gorget.Movable = false; gorget.Hue = 2410; AddItem(gorget); int hairHue = 1055; switch (Utility.Random(1)) { case 0: AddItem(new LongHair(hairHue)); break; } Blessed = true; }
public Mercenary(string name) : base(name, AIType.AI_Melee, 0.01) { SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A)); hair.Hue = Utility.RandomNondyedHue(); hair.Layer = Layer.Hair; hair.Movable = false; PassiveSpeed = 0.4; ActiveSpeed = 0.2; AddItem(hair); if (Female = Utility.RandomBool()) { Body = 0x191; } else { Body = 0x190; if (Utility.RandomBool()) { Item beard = new Item(Utility.RandomList(0x203E, 0x203F, 0x2040, 0x2041, 0x204B, 0x204C, 0x204D)); beard.Hue = hair.Hue; beard.Layer = Layer.FacialHair; beard.Movable = false; AddItem(beard); } } if (!(this is IEvoGuardian)) { Item weapon; switch (Utility.Random(6)) { case 0: weapon = new Kryss(); break; case 1: weapon = new Scimitar(); break; case 2: weapon = new WarAxe(); break; case 3: weapon = new Cutlass(); break; case 4: weapon = new HammerPick(); break; default: weapon = new WarFork(); break; } AddItem(weapon); AddItem(new Robe()); } if (null == Backpack) { Container pack = new Backpack(); pack.Movable = false; AddItem(pack); } }
public TavaraSewel() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Title = "the Cursed"; Hue = 0x8838; Female = true; Body = 0x191; Name = "Tavara Sewel"; AddItem(new Kilt(0x59C)); AddItem(new Sandals(0x599)); Kryss kryss = new Kryss(); Buckler buckler = new Buckler(); RingmailGloves gloves = new RingmailGloves(); FemalePlateChest chest = new FemalePlateChest(); kryss.Hue = 0x96F; kryss.Movable = false; buckler.Hue = 0x96F; buckler.Movable = false; gloves.Hue = 0x599; chest.Hue = 0x96F; AddItem(kryss); AddItem(buckler); AddItem(gloves); AddItem(chest); SetStr(111, 120); SetDex(111, 120); SetInt(111, 120); SetHits(180, 207); SetStam(126, 150); SetMana(0); SetDamage(13, 16); SetResistance(ResistanceType.Physical, 25, 30); SetResistance(ResistanceType.Fire, 25, 30); SetResistance(ResistanceType.Cold, 50, 60); SetResistance(ResistanceType.Poison, 25, 35); SetResistance(ResistanceType.Energy, 25, 35); SetSkill(SkillName.Fencing, 90.1, 100.0); SetSkill(SkillName.Tactics, 90.1, 100.0); SetSkill(SkillName.MagicResist, 80.1, 90.0); SetSkill(SkillName.Anatomy, 90.1, 100.0); Fame = 5000; Karma = -1000; }
public Sprite() : base(AIType.AI_SphereMelee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Sprite"; Hue = 0x045e; Body = 0x191; Female = true; AddItem(new PonyTail(0x0597)); SetStr(86, 90); SetDex(91, 100); SetInt(71, 85); SetHits(86, 90); SetStam(91, 100); SetMana(0); SetDamage(6, 10); SetDamageType(ResistanceType.Physical, 100); SetSkill(SkillName.Fencing, 65.0, 88.0); SetSkill(SkillName.MagicResist, 60.0, 80.0); SetSkill(SkillName.Tactics, 75.0, 85.0); SetSkill(SkillName.Wrestling, 35.0, 58.0); Fame = Utility.RandomMinMax(1200, 3200); VirtualArmor = 5; Item temp; temp = new ThighBoots(); temp.Hue = 0x0599; temp.Movable = false; AddItem(temp); temp = new FemaleLeatherChest(); temp.Hue = 0x0599; temp.Movable = false; AddItem(temp); temp = new Cloak(); temp.Hue = 0x0599; temp.Movable = false; AddItem(temp); temp = new Kryss(); temp.Hue = 0x0599; temp.Movable = false; AddItem(temp); temp = new LeatherLegs(); temp.Hue = 0x0599; temp.Movable = false; AddItem(temp); }
public ChaosDragoonElite() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.15, 0.4) { Name = "a chaos dragoon elite"; Body = 0x190; Hue = Utility.RandomSkinHue(); SetStr(276, 350); SetDex(66, 90); SetInt(126, 150); SetHits(276, 350); SetDamage(29, 34); SetDamageType(ResistanceType.Physical, 100); /*SetResistance(ResistanceType.Physical, 45, 55); * SetResistance(ResistanceType.Fire, 15, 25); * SetResistance(ResistanceType.Cold, 50); * SetResistance(ResistanceType.Poison, 25, 35); * SetResistance(ResistanceType.Energy, 25, 35);*/ SetSkill(SkillName.Tactics, 80.1, 100.0); SetSkill(SkillName.MagicResist, 100.1, 110.0); SetSkill(SkillName.Anatomy, 80.1, 100.0); SetSkill(SkillName.Magery, 85.1, 100.0); SetSkill(SkillName.EvalInt, 85.1, 100.0); SetSkill(SkillName.Swords, 72.5, 95.0); SetSkill(SkillName.Fencing, 85.1, 100); SetSkill(SkillName.Macing, 85.1, 100); Fame = 8000; Karma = -8000; BaseWeapon melee = null; switch (Utility.Random(3)) { case 0: melee = new Kryss(); break; case 1: melee = new Broadsword(); break; case 2: melee = new Katana(); break; } melee.Movable = false; AddItem(melee); }
public ShadowVampireLord() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.4, 0.4) { Hue += 16384; HairHue += 16384; SetSkill(SkillName.Swords, 35.0, 50.0); SetSkill(SkillName.Macing, 35.0, 75.0); SetSkill(SkillName.Fencing, 69.0, 100.0); SetSkill(SkillName.Tactics, 50.0); SetSkill(SkillName.MagicResist, 120.0); AddItem(NotCorpseCont(new Doublet(1194 + 16384))); AddItem(new FancyShirt(37 + 16384)); AddItem(NotCorpseCont(Rehued(new LeatherGloves(), 2424 + 16384))); AddItem(NotCorpseCont(new Boots(1175 + 16384))); AddItem(NotCorpseCont(new LongPants(2424 + 16384))); //if (0.2 >= Utility.RandomDouble()) AddItem(NotCorpseCont(Renamed(Rehued(new GoldNecklace(), 2406), "Broodu Family Stone"))); BaseWeapon weapon = new Kryss(); weapon.Hue = 2406; weapon.Name = "an ancient ritual blade"; weapon.Slayer = SlayerName.Silver; AddItem(NotCorpseCont(weapon)); SetResistance(ResistanceType.Physical, 65); SetResistance(ResistanceType.Fire, 25, 45); SetResistance(ResistanceType.Cold, 25, 65); SetResistance(ResistanceType.Poison, 65); SetResistance(ResistanceType.Energy, 65); Fame = 7000; Karma = -9000; SetStr(430, 475); SetDex(76, 95); SetInt(36, 60); SetHits(500, 600); SetDamage(20, 25); SetDamageType(ResistanceType.Cold, 100); VirtualArmor = 70; }
public TavaraSewel() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Title = "the Cursed"; Hue = 0x8838; Female = true; Body = 0x191; AddItem(Immovable(new Kilt(0x59C))); AddItem(Immovable(new Sandals(0x599))); Kryss kryss = new Kryss(); Buckler buckler = new Buckler(); RingmailGloves gloves = new RingmailGloves(); FemalePlateChest chest = new FemalePlateChest(); kryss.Hue = 0x96F; buckler.Hue = 0x96F; gloves.Hue = 0x599; chest.Hue = 0x96F; AddItem(Immovable(kryss)); AddItem(Immovable(buckler)); AddItem(Immovable(gloves)); AddItem(Immovable(chest)); SetStr(111, 120); SetDex(111, 120); SetInt(111, 120); SetHits(180, 207); SetStam(126, 150); SetMana(0); SetDamage(13, 16); SetSkill(SkillName.Fencing, 90.1, 100.0); SetSkill(SkillName.Tactics, 90.1, 100.0); SetSkill(SkillName.MagicResist, 80.1, 90.0); SetSkill(SkillName.Anatomy, 90.1, 100.0); Fame = 5000; Karma = -1000; }
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 bool OnBeforeDeath() { MagicWizardsHat hat = new MagicWizardsHat(); hat.Map = this.Map; hat.Location = this.Location; Gold gold = new Gold(300, 700); gold.Map = this.Map; gold.Location = this.Location; Kryss weapon = new Kryss(); weapon.DamageLevel = (WeaponDamageLevel)Utility.Random(0, 5); weapon.DurabilityLevel = (WeaponDurabilityLevel)Utility.Random(0, 3); weapon.AccuracyLevel = (WeaponAccuracyLevel)Utility.Random(0, 4); weapon.Map = this.Map; weapon.Location = this.Location; this.Delete(); return(false); }
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; }
public BaneChosenDragonRider() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.15, 0.4) { Name = "a bane chosen dragon rider"; Body = 0x190; Hue = Utility.RandomSkinHue(); SetStr(576, 650); SetDex(226, 290); SetInt(126, 150); SetHits(676, 750); SetDamage(29, 34); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 45, 55); SetResistance(ResistanceType.Fire, 15, 25); SetResistance(ResistanceType.Cold, 50); SetResistance(ResistanceType.Poison, 25, 35); SetResistance(ResistanceType.Energy, 25, 35); SetSkill(SkillName.Tactics, 80.1, 100.0); SetSkill(SkillName.MagicResist, 100.1, 110.0); SetSkill(SkillName.Anatomy, 80.1, 100.0); SetSkill(SkillName.Magery, 85.1, 100.0); SetSkill(SkillName.EvalInt, 85.1, 100.0); SetSkill(SkillName.Swords, 72.5, 95.0); SetSkill(SkillName.Fencing, 85.1, 100); SetSkill(SkillName.Macing, 85.1, 100); Fame = 18000; Karma = -18000; CraftResource res = CraftResource.BlackScales; BaseWeapon melee = null; switch (Utility.Random(3)) { case 0: melee = new Kryss(); break; case 1: melee = new Broadsword(); break; case 2: melee = new Katana(); break; } melee.Movable = false; AddItem(melee); DragonChest Tunic = new DragonChest(); Tunic.Resource = res; Tunic.Movable = false; AddItem(Tunic); DragonLegs Legs = new DragonLegs(); Legs.Resource = res; Legs.Movable = false; AddItem(Legs); DragonArms Arms = new DragonArms(); Arms.Resource = res; Arms.Movable = false; AddItem(Arms); DragonGloves Gloves = new DragonGloves(); Gloves.Resource = res; Gloves.Movable = false; AddItem(Gloves); DragonHelm Helm = new DragonHelm(); Helm.Resource = res; Helm.Movable = false; AddItem(Helm); ChaosShield shield = new ChaosShield(); shield.Movable = false; AddItem(shield); AddItem(new Boots(0x455)); AddItem(new Shirt(Utility.RandomMetalHue())); /*int amount = Utility.RandomMinMax(1, 3); * * switch (res) * { * case CraftResource.BlackScales: AddItem(new BlackScales(amount)); break; * case CraftResource.RedScales: AddItem(new RedScales(amount)); break; * case CraftResource.BlueScales: AddItem(new BlueScales(amount)); break; * case CraftResource.YellowScales: AddItem(new YellowScales(amount)); break; * case CraftResource.GreenScales: AddItem(new GreenScales(amount)); break; * case CraftResource.WhiteScales: AddItem(new WhiteScales(amount)); break; * } * switch (Utility.Random(9)) * { * case 0: res = CraftResource.DullCopper; break; * case 1: res = CraftResource.ShadowIron; break; * case 2: res = CraftResource.Copper; break; * case 3: res = CraftResource.Bronze; break; * case 4: res = CraftResource.Gold; break; * case 5: res = CraftResource.Agapite; break; * case 6: res = CraftResource.Verite; break; * case 7: res = CraftResource.Valorite; break; * case 8: res = CraftResource.Iron; break; * }*/ BaneDragon mt = new BaneDragon(); mt.Rider = this; }
public void DoSpecialAbility(Mobile target) { if (target is PlayerMobile) { int resnum = 0; PlayerMobile owner = target as PlayerMobile; BaseArmor helm1 = new PlateHelm(); BaseArmor gorget1 = new PlateGorget(); BaseArmor tunic1 = new PlateChest(); BaseArmor arms1 = new PlateArms(); BaseArmor gloves1 = new PlateGloves(); BaseArmor legs1 = new PlateLegs(); BaseShield shield1 = new HeaterShield(); BaseWeapon wep1 = new Kryss(); Item helm = owner.FindItemOnLayer(Layer.Helm); if (helm != null) { helm1 = helm as BaseArmor; } Item gorget = owner.FindItemOnLayer(Layer.Neck); if (gorget != null) { gorget1 = gorget as BaseArmor; } Item tunic = owner.FindItemOnLayer(Layer.InnerTorso); if (tunic != null) { tunic1 = tunic as BaseArmor; } Item arms = owner.FindItemOnLayer(Layer.Arms); if (arms != null) { arms1 = arms as BaseArmor; } Item gloves = owner.FindItemOnLayer(Layer.Gloves); if (gloves != null) { gloves1 = gloves as BaseArmor; } Item legs = owner.FindItemOnLayer(Layer.Pants); if (legs != null) { legs1 = legs as BaseArmor; } Item shield = owner.FindItemOnLayer(Layer.TwoHanded); if (shield != null) { shield1 = shield as BaseShield; } Item wep = owner.FindItemOnLayer(Layer.FirstValid); if (wep != null) { wep1 = wep as BaseWeapon; } if (shield1 != null) { resnum = (int)(shield1.Resource); if (resnum >= 1 && resnum <= 99 && shield1.HitPoints >= 21) { shield1.HitPoints -= 20; target.SendMessage("one of your items has been affected by rust"); return; } } if (tunic1 != null) { resnum = (int)(tunic1.Resource); if (resnum >= 1 && resnum <= 99 && tunic1.HitPoints >= 21) { tunic1.HitPoints -= 20; target.SendMessage("one of your items has been affected by rust"); return; } } if (legs1 != null) { resnum = (int)(legs1.Resource); if (resnum >= 1 && resnum <= 99 && legs1.HitPoints >= 21) { legs1.HitPoints -= 20; target.SendMessage("one of your items has been affected by rust"); return; } } if (arms1 != null) { resnum = (int)(arms1.Resource); if (resnum >= 1 && resnum <= 99 && arms1.HitPoints >= 21) { arms1.HitPoints -= 20; target.SendMessage("one of your items has been affected by rust"); return; } } if (helm1 != null) { resnum = (int)(helm1.Resource); if (resnum >= 1 && resnum <= 99 && helm1.HitPoints >= 21) { helm1.HitPoints -= 20; target.SendMessage("one of your items has been affected by rust"); return; } } if (gloves1 != null) { resnum = (int)(gloves1.Resource); if (resnum >= 1 && resnum <= 99 && gloves1.HitPoints >= 21) { gloves1.HitPoints -= 20; target.SendMessage("one of your items has been affected by rust"); return; } } if (gorget1 != null) { resnum = (int)(gorget1.Resource); if (resnum >= 1 && resnum <= 99 && gorget1.HitPoints >= 21) { gorget1.HitPoints -= 20; target.SendMessage("one of your items has been affected by rust"); return; } } if (wep1 != null) { resnum = (int)(wep1.Resource); if (resnum >= 1 && resnum <= 99 && wep1.HitPoints >= 21) { wep1.HitPoints -= 20; target.SendMessage("one of your items has been affected by rust"); return; } } if (shield1 != null) { resnum = (int)(shield1.Resource); if (resnum >= 1 && resnum <= 99 && shield1.HitPoints >= 11) { shield1.HitPoints -= 10; target.SendMessage("one of your items has been affected by rust"); return; } } if (tunic1 != null) { resnum = (int)(tunic1.Resource); if (resnum >= 1 && resnum <= 99 && tunic1.HitPoints >= 11) { tunic1.HitPoints -= 10; target.SendMessage("one of your items has been affected by rust"); return; } } if (legs1 != null) { resnum = (int)(legs1.Resource); if (resnum >= 1 && resnum <= 99 && legs1.HitPoints >= 11) { legs1.HitPoints -= 10; target.SendMessage("one of your items has been affected by rust"); return; } } if (arms1 != null) { resnum = (int)(arms1.Resource); if (resnum >= 1 && resnum <= 99 && arms1.HitPoints >= 11) { arms1.HitPoints -= 10; target.SendMessage("one of your items has been affected by rust"); return; } } if (helm1 != null) { resnum = (int)(helm1.Resource); if (resnum >= 1 && resnum <= 99 && helm1.HitPoints >= 11) { helm1.HitPoints -= 10; target.SendMessage("one of your items has been affected by rust"); return; } } if (gloves1 != null) { resnum = (int)(gloves1.Resource); if (resnum >= 1 && resnum <= 99 && gloves1.HitPoints >= 11) { gloves1.HitPoints -= 10; target.SendMessage("one of your items has been affected by rust"); return; } } if (gorget1 != null) { resnum = (int)(gorget1.Resource); if (resnum >= 1 && resnum <= 99 && gorget1.HitPoints >= 11) { gorget1.HitPoints -= 10; target.SendMessage("one of your items has been affected by rust"); return; } } if (wep1 != null) { resnum = (int)(wep1.Resource); if (resnum >= 1 && resnum <= 99 && wep1.HitPoints >= 11) { wep1.HitPoints -= 10; target.SendMessage("one of your items has been affected by rust"); return; } } } return; }
public override void OnResponse(NetState state, RelayInfo info) //Function for GumpButtonType.Reply Buttons { Mobile from = state.Mobile; PlayerMobile pm = from as PlayerMobile; PlayerModule module = pm.PlayerModule; m_cost = 50; //MOD COST OF WEAPON HERE!! Item wep = from.FindItemOnLayer(Layer.FirstValid); Item weps = from.FindItemOnLayer(Layer.TwoHanded); Container pack = from.Backpack; if (wep != null) { pack.TryDropItem(from, wep, false); } if (weps != null) { pack.TryDropItem(from, weps, false); } switch (info.ButtonID) { case 0: //Cancel { from.SendMessage("You decide against spending your skill points."); //from.SendGump( new LevelGump( from ) ); break; } case 1: //Katana { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Katana kat = new Katana(); (( Item )kat).Name = "Katana [Level Item]"; kat.Identified = true; //Prevents others from being used in the upgrading! kat.LootType = LootType.Blessed; from.EquipItem(kat); } from.SendGump(new WepUpgradeGump(from)); break; } case 2: //Broad Sword { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Broadsword bs = new Broadsword(); bs.Identified = true; bs.Name = "Broadsword"; bs.LootType = LootType.Blessed; from.EquipItem(bs); from.SendMessage(102, "You chose a Broadsword"); } from.SendGump(new WepUpgradeGump(from)); break; } case 3: //Scimitar { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Scimitar sc = new Scimitar(); sc.Identified = true; sc.Name = "Scimitar"; sc.LootType = LootType.Blessed; from.EquipItem(sc); from.SendMessage(102, "You chose a Scimitar"); } from.SendGump(new WepUpgradeGump(from)); break; } case 4: //Viking sword { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; VikingSword vs = new VikingSword(); vs.Identified = true; vs.Name = "Vikingsword"; vs.LootType = LootType.Blessed; from.EquipItem(vs); from.SendMessage(102, "You chose a Viking Sword"); } from.SendGump(new WepUpgradeGump(from)); break; } case 5: //Halberd { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Halberd hb = new Halberd(); hb.Identified = true; hb.Name = "Halberd"; hb.LootType = LootType.Blessed; from.EquipItem(hb); from.SendMessage(102, "You chose a Halberd"); } from.SendGump(new WepUpgradeGump(from)); break; } case 6: //Bardiche { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Bardiche bd = new Bardiche(); bd.Identified = true; bd.Name = "Bardiche"; bd.LootType = LootType.Blessed; from.EquipItem(bd); from.SendMessage(102, "You chose a Bardiche"); } from.SendGump(new WepUpgradeGump(from)); break; } case 7: //Double Axe { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; DoubleAxe da = new DoubleAxe(); da.Identified = true; da.Name = "Double Axe"; da.LootType = LootType.Blessed; from.EquipItem(da); from.SendMessage(102, "You chose a Double Axe"); } from.SendGump(new WepUpgradeGump(from)); break; } case 8: //Large Battle Axe { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; LargeBattleAxe lba = new LargeBattleAxe(); lba.Identified = true; lba.Name = "Large Battle Axe"; lba.LootType = LootType.Blessed; from.EquipItem(lba); from.SendMessage(102, "You chose a Large Battle Axe"); } from.SendGump(new WepUpgradeGump(from)); break; } case 9: //Axe { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Axe a = new Axe(); a.Identified = true; a.Name = "Axe"; a.LootType = LootType.Blessed; from.EquipItem(a); from.SendMessage(102, "You chose an Axe"); } from.SendGump(new WepUpgradeGump(from)); break; } case 10: //Kryss { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Kryss k = new Kryss(); k.Identified = true; k.Name = "Kryss"; k.LootType = LootType.Blessed; from.EquipItem(k); from.SendMessage(102, "You chose a Kryss"); } from.SendGump(new WepUpgradeGump(from)); break; } case 11: //War Fork { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; WarFork wf = new WarFork(); wf.Identified = true; wf.Name = "War Fork"; wf.LootType = LootType.Blessed; from.EquipItem(wf); from.SendMessage(102, "You chose a War Fork"); } from.SendGump(new WepUpgradeGump(from)); break; } case 12: //Dagger { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Dagger d = new Dagger(); d.Identified = true; d.Name = "Dagger"; d.LootType = LootType.Blessed; from.EquipItem(d); from.SendMessage(102, "You chose a Dagger"); } from.SendGump(new WepUpgradeGump(from)); break; } case 13: //Pike { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Pike p = new Pike(); p.Identified = true; p.Name = "Pike"; p.LootType = LootType.Blessed; from.EquipItem(p); from.SendMessage(102, "You chose a Pike"); } from.SendGump(new WepUpgradeGump(from)); break; } case 14: //Short Spear { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; ShortSpear ss = new ShortSpear(); ss.Identified = true; ss.Name = "Short Spear"; ss.LootType = LootType.Blessed; from.EquipItem(ss); from.SendMessage(102, "You chose a Short Spear"); } from.SendGump(new WepUpgradeGump(from)); break; } case 15: //Long Spear { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Spear ls = new Spear(); ls.Identified = true; ls.Name = "Long Spear"; ls.LootType = LootType.Blessed; from.EquipItem(ls); from.SendMessage(102, "You chose a Long Spear"); } from.SendGump(new WepUpgradeGump(from)); break; } case 16: //Pitchfork { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Pitchfork p = new Pitchfork(); p.Identified = true; p.Name = "Pitchfork"; p.LootType = LootType.Blessed; from.EquipItem(p); from.SendMessage(102, "You chose a Pitchfork"); } from.SendGump(new WepUpgradeGump(from)); break; } case 17: //lance { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Lance l = new Lance(); l.Identified = true; l.Name = "Lance"; l.LootType = LootType.Blessed; from.EquipItem(l); from.SendMessage(102, "You chose a Lance"); } from.SendGump(new WepUpgradeGump(from)); break; } case 18: //Sai's { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Sai s = new Sai(); s.Identified = true; s.Name = "Sai"; s.LootType = LootType.Blessed; from.EquipItem(s); from.SendMessage(102, "You chose Sai's"); } from.SendGump(new WepUpgradeGump(from)); break; } case 19: //War Mace { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; WarMace wm = new WarMace(); wm.Identified = true; wm.Name = "War Mace"; wm.LootType = LootType.Blessed; from.EquipItem(wm); from.SendMessage(102, "You chose a War Mace"); } from.SendGump(new WepUpgradeGump(from)); break; } case 20: //War Hammer { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; WarHammer wh = new WarHammer(); wh.Identified = true; wh.Name = "War Hammer"; wh.LootType = LootType.Blessed; from.EquipItem(wh); from.SendMessage(102, "You chose a War Hammer"); } from.SendGump(new WepUpgradeGump(from)); break; } case 21: //Maul { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Maul w = new Maul(); w.Identified = true; w.Name = "Maul"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Maul"); } from.SendGump(new WepUpgradeGump(from)); break; } case 22: //Club { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Club w = new Club(); w.Identified = true; w.Name = "Club"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Club"); } from.SendGump(new WepUpgradeGump(from)); break; } case 23: //Q Staff { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; QuarterStaff w = new QuarterStaff(); w.Identified = true; w.Name = "Quarter Staff"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Quarter Staff"); } from.SendGump(new WepUpgradeGump(from)); break; } case 24: //G Staff { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; GnarledStaff w = new GnarledStaff(); w.Identified = true; w.Name = "Gnarled Staff"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Gnarled Staff"); } from.SendGump(new WepUpgradeGump(from)); break; } case 25: //B Staff { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; BlackStaff w = new BlackStaff(); w.Identified = true; w.Name = "BlackStaff"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Black Staff"); } from.SendGump(new WepUpgradeGump(from)); break; } case 26: //Hammer Pick { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; HammerPick w = new HammerPick(); w.Identified = true; w.Name = "Hammer Pick"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Hammer Pick"); } from.SendGump(new WepUpgradeGump(from)); break; } case 27: //War Axe { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; WarAxe w = new WarAxe(); w.Identified = true; w.Name = "War Axe"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a War Axe"); } from.SendGump(new WepUpgradeGump(from)); break; } case 28: //Bow { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Bow w = new Bow(); w.Identified = true; w.Name = "Bow"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Bow"); } from.SendGump(new WepUpgradeGump(from)); break; } case 29: //Composite Bow { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; CompositeBow w = new CompositeBow(); w.Identified = true; w.Name = "Composite Bow"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Composite Bow"); } from.SendGump(new WepUpgradeGump(from)); break; } case 30: //Crossbow { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Crossbow w = new Crossbow(); w.Identified = true; w.Name = "Crossbow"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Crossbow"); } from.SendGump(new WepUpgradeGump(from)); break; } case 31: //Heavy Crossbow { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; HeavyCrossbow w = new HeavyCrossbow(); w.Identified = true; w.Name = "Heavy Crossbow"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Heavy Crossbow"); } from.SendGump(new WepUpgradeGump(from)); break; } case 32: //Repeating Crossbow { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; RepeatingCrossbow w = new RepeatingCrossbow(); w.Identified = true; w.Name = "Repeating Crossbow"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Repeating Crossbow"); } from.SendGump(new WepUpgradeGump(from)); break; } case 33: //Yumi { if (module.SkillPts < m_cost) { from.SendMessage(37, "Not enough skill points!"); } else { module.SkillPts -= m_cost; Yumi w = new Yumi(); w.Identified = true; w.Name = "Yumi"; w.LootType = LootType.Blessed; from.EquipItem(w); from.SendMessage(102, "You chose a Yumi"); } from.SendGump(new WepUpgradeGump(from)); break; } } }
public ChaosDragoon() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.15, 0.4) { Name = "a chaos dragoon"; Body = 0x190; Hue = Utility.RandomSkinHue(); SetStr(176, 225); SetDex(81, 95); SetInt(61, 85); SetHits(176, 225); SetDamage(24, 26); SetDamageType(ResistanceType.Physical, 25); SetDamageType(ResistanceType.Fire, 25); SetDamageType(ResistanceType.Cold, 25); SetDamageType(ResistanceType.Energy, 25); SetSkill(SkillName.Fencing, 77.6, 92.5); SetSkill(SkillName.Healing, 60.3, 90.0); SetSkill(SkillName.Macing, 77.6, 92.5); SetSkill(SkillName.Anatomy, 77.6, 87.5); SetSkill(SkillName.MagicResist, 77.6, 97.5); SetSkill(SkillName.Swords, 77.6, 92.5); SetSkill(SkillName.Tactics, 77.6, 87.5); Fame = 5000; Karma = -5000; CraftResource res = CraftResource.None; switch (Utility.Random(6)) { case 0: res = CraftResource.BlackScales; break; case 1: res = CraftResource.RedScales; break; case 2: res = CraftResource.BlueScales; break; case 3: res = CraftResource.YellowScales; break; case 4: res = CraftResource.GreenScales; break; case 5: res = CraftResource.WhiteScales; break; } BaseWeapon melee = null; switch (Utility.Random(3)) { case 0: melee = new Kryss(); break; case 1: melee = new Broadsword(); break; case 2: melee = new Katana(); break; } AddItem(melee); DragonHelm helm = new DragonHelm(); helm.Resource = res; AddItem(helm); DragonChest chest = new DragonChest(); chest.Resource = res; AddItem(chest); DragonArms arms = new DragonArms(); arms.Resource = res; AddItem(arms); DragonGloves gloves = new DragonGloves(); gloves.Resource = res; AddItem(gloves); DragonLegs legs = new DragonLegs(); legs.Resource = res; AddItem(legs); ChaosShield shield = new ChaosShield(); AddItem(shield); AddItem(new Shirt()); AddItem(new Boots()); //AddItem(new Boots(0x455)); //AddItem(new Shirt(Utility.RandomMetalHue())); int amount = Utility.RandomMinMax(1, 3); switch (res) { case CraftResource.BlackScales: AddItem(new BlackScales(amount)); break; case CraftResource.RedScales: AddItem(new RedScales(amount)); break; case CraftResource.BlueScales: AddItem(new BlueScales(amount)); break; case CraftResource.YellowScales: AddItem(new YellowScales(amount)); break; case CraftResource.GreenScales: AddItem(new GreenScales(amount)); break; case CraftResource.WhiteScales: AddItem(new WhiteScales(amount)); break; } new SwampDragon().Rider = this; SetSpecialAbility(SpecialAbility.DragonBreath); }
public PirateCabinBoy() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.15, 0.4) { Name = "PirateCabinBoy"; if (Female = Utility.RandomBool()) { Body = 186; } else { Body = 185; } SetStr(57, 62); SetDex(45, 50); SetInt(200, 300); SetHits(10000, 15000); SetDamage(30, 45); SetDamageType(ResistanceType.Physical, 100); SetSkill(SkillName.Fencing, 72.5, 100.0); SetSkill(SkillName.Healing, 60.3, 100.0); SetSkill(SkillName.Macing, 72.5, 100.0); SetSkill(SkillName.Poisoning, 60.0, 100.5); SetSkill(SkillName.MagicResist, 72.5, 100.0); SetSkill(SkillName.Swords, 72.5, 100.0); SetSkill(SkillName.Tactics, 72.5, 100.0); Fame = 1000; Karma = -1000; CanSwim = true; Tamable = false; ControlSlots = 1; MinTameSkill = 99.1; //PackItem( new TreasureChestLevel4() ); switch (Utility.Random(5)) { case 0: PackItem(new SOS()); break; case 1: PackItem(new SpecialFishingNet()); break; } Item LongPants = new LongPants(); LongPants.Movable = false; AddItem(LongPants); LongPants.Hue = 1; Item LeatherGloves = new LeatherGloves(); LeatherGloves.Hue = 1; LeatherGloves.Movable = false; AddItem(LeatherGloves); Item FancyShirt = new FancyShirt(); FancyShirt.Hue = 43; FancyShirt.Movable = false; AddItem(FancyShirt); Item BodySash = new BodySash(); BodySash.Hue = 1; BodySash.Movable = false; AddItem(BodySash); Item TricorneHat = new TricorneHat(); TricorneHat.Hue = 1; TricorneHat.Movable = false; AddItem(TricorneHat); Item ThighBoots = new ThighBoots(); ThighBoots.Hue = 1; ThighBoots.Movable = false; AddItem(ThighBoots); Item Kryss = new Kryss(); Kryss.LootType = LootType.Blessed; Kryss.Movable = false; AddItem(Kryss); /*switch ( Utility.Random( 150 )) * { * case 0: PackItem( new ClothingBlessDeed() ); * break; * }*/ }
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 NightGuard() : base(AIType.AI_Melee, FightMode.Aggressor, 14, 1, 0.8, 1.6) { SpeechHue = Utility.RandomDyedHue(); Title = "A Night Guard"; Name = NameList.RandomName("male"); Hue = Utility.RandomSkinHue(); Body = 0x190; InitStats(115, 100, 85); SetHits(100); SetDamage(22); Skills[SkillName.Anatomy].Base = 120.0; Skills[SkillName.Tactics].Base = 120.0; Skills[SkillName.Fencing].Base = 120.0; Skills[SkillName.MagicResist].Base = 120.0; Skills[SkillName.DetectHidden].Base = 100.0; StuddedChest sChest = new StuddedChest(); sChest.Hue = 1899; AddItem(sChest); StuddedArms sArms = new StuddedArms(); sArms.Hue = 1899; AddItem(sArms); StuddedGloves sGloves = new StuddedGloves(); sGloves.Hue = 1899; AddItem(sGloves); StuddedGorget sGorget = new StuddedGorget(); sGorget.Hue = 1899; AddItem(sGorget); StuddedLegs sLegs = new StuddedLegs(); sLegs.Hue = 1899; AddItem(sLegs); AddItem(new Boots(1899)); AddItem(new SkullCap(1899)); Kryss k = new Kryss(); k.Hue = 1899; AddItem(k); SetStr(95); SetDex(100); SetInt(60); SetHits(210); SetDamage(30); SetDamageType(ResistanceType.Physical, 5); SetDamageType(ResistanceType.Cold, 5); SetDamageType(ResistanceType.Fire, 5); SetDamageType(ResistanceType.Energy, 5); SetDamageType(ResistanceType.Poison, 80); SetResistance(ResistanceType.Physical, 25); SetResistance(ResistanceType.Cold, 25); SetResistance(ResistanceType.Fire, 25); SetResistance(ResistanceType.Energy, 25); SetResistance(ResistanceType.Poison, 100); Fame = 3500; Karma = 3500; VirtualArmor = 40; PackGold(700, 900); }
//AIType, Fight Mode, Range Perception, Fighting Range, Active Speed, Passive Speed public VampireLord() : base(AIType.AI_SphereMage, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "Vampire Lord"; Body = 0x0190; Hue = 0x497; SetStr(750); SetDex(400, 500); SetInt(200, 250); SetHits(350, 400); SetStam(250, 300); SetMana(250, 300); SetDamage(20, 40); SetSkill(SkillName.Poisoning, 90.0, 100.0); SetSkill(SkillName.Tactics, 90.0, 98.0); SetSkill(SkillName.MagicResist, 75.0, 88.0); SetSkill(SkillName.Parry, 85.0, 98.0); SetSkill(SkillName.Wrestling, 67.0, 90.0); SetSkill(SkillName.DetectHidden, 90.0, 100.0); SetSkill(SkillName.Swords, 90.0, 95.0); SetSkill(SkillName.Magery, 95.0, 100.0); SetSkill(SkillName.EvalInt, 95.0, 100.0); Fame = 3000; Karma = -10000; VirtualArmor = 40; Item temp = new PlateGloves { Movable = false, Hue = 0x0492, Name = "Vampire Plate Gauntlets" }; AddItem(temp); temp = new PlateArms { Hue = 0x0492, Movable = false, Name = "Vampire Plate Arms" }; AddItem(temp); temp = new PlateGorget { Movable = false, Hue = 0x0492, Name = "Vampire Plate Gorget" }; AddItem(temp); temp = new PlateLegs { Movable = false, Hue = 0x0492, Name = "Vampire Plate Legs" }; AddItem(temp); temp = new PlateChest { Movable = false, Hue = 0x0492, Name = "Vampire Plate Chest" }; AddItem(temp); temp = new PlateHelm { Movable = false, Hue = 0x0492, Name = "Vampire Plate Helm" }; AddItem(temp); temp = new BodySash { Movable = false, Hue = 0x1, Name = "Vampire Sash" }; AddItem(temp); temp = new Cloak { Movable = false, Hue = 0x1 }; AddItem(temp); BaseArmor tarm; if (Utility.RandomDouble() < 0.3) { switch (Utility.Random(6)) { case 0: tarm = new PlateGloves { Hue = 0x492, Name = "Vampire Plate Gauntlets" }; break; case 1: tarm = new PlateArms { Hue = 0x492, Name = "Vampire Plate Arms" }; break; case 2: tarm = new PlateChest { Hue = 0x492, Name = "Vampire Plate Chest" }; break; case 3: tarm = new PlateHelm { Hue = 0x492, Name = "Vampire Plate Helm" }; break; case 4: tarm = new PlateLegs { Hue = 0x492, Name = "Vampire Plate Legs" }; break; default: tarm = new PlateGorget { Hue = 0x492, Name = "Vampire Plate Gorget" }; break; } tarm.ProtectionLevel = (ArmorProtectionLevel)Utility.RandomMinMax(0, 5); AddItem(tarm); } BaseSword twep; switch (Utility.Random(8)) { case 0: twep = new Broadsword(); break; case 1: twep = new Cutlass(); break; case 2: twep = new Scimitar(); break; case 3: twep = new Katana(); break; case 4: twep = new Kryss(); break; case 5: twep = new Longsword(); break; case 6: twep = new ThinLongsword(); break; default: twep = new VikingSword(); break; } switch (Utility.Random(3)) { case 0: twep.DamageLevel = WeaponDamageLevel.Might; break; case 1: twep.DamageLevel = WeaponDamageLevel.Force; break; case 2: twep.DamageLevel = WeaponDamageLevel.Power; break; } AddItem(twep); }
public PirateCaptain() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { SpeechHue = Utility.RandomDyedHue(); Title = "the pirate captain"; Hue = Utility.RandomSkinHue(); if (this.Female = Utility.RandomBool()) { Body = 0x191; Name = NameList.RandomName("female"); Kryss kryss = new Kryss(); kryss.Movable = false; //kryss.Resource = ResourceName.Gold; kryss.Skill = SkillName.Wrestling; Item necklace = new Necklace(); necklace.Name = "a pirate captain's medallion"; necklace.Movable = false; necklace.Hue = 38; AddItem(kryss); AddItem(new Shirt()); AddItem(new FancyDress()); AddItem(new Shoes()); AddItem(new HeaterShield()); AddItem(necklace); AddItem(new FloppyHat()); } else { Body = 0x190; Name = NameList.RandomName("male"); Cutlass cutlass = new Cutlass(); cutlass.Movable = false; //cutlass.Resource = ResourceName.Gold; cutlass.Skill = SkillName.Wrestling; AddItem(cutlass); AddItem(new FormalShirt()); AddItem(new LongPants(Utility.RandomNeutralHue())); AddItem(new Boots(Utility.RandomNeutralHue())); AddItem(new HeaterShield()); AddItem(new WideBrimHat(Utility.RandomRedHue())); } SetStr(100, 115); SetDex(100, 102); SetInt(50, 65); SetHits(300, 450); SetDamage(25, 37); SetSkill(SkillName.MagicResist, 40.0, 53.2); SetSkill(SkillName.Tactics, 95.6, 100.0); SetSkill(SkillName.Wrestling, 110.0, 120.0); Fame = 2000; Karma = -5000; Item hair = new Item(Utility.RandomList(0x203B, 0x2049, 0x2048, 0x204A)); hair.Hue = Utility.RandomNondyedHue(); hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); }
public override void OnAfterSpawn() { base.OnAfterSpawn(); Region reg = Region.Find(this.Location, this.Map); string World = Server.Misc.Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y); int clothColor = 0; int shieldType = 0; int helmType = 0; int cloakColor = 0; Item weapon = new VikingSword(); weapon.Delete(); if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Whisper") { clothColor = 0x96D; shieldType = 0x1B72; helmType = 0x140E; cloakColor = 0x972; weapon = new Longsword(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Town of Glacial Hills") { clothColor = 0x482; shieldType = 0x1B74; helmType = 0x1412; cloakColor = 0x542; weapon = new Kryss(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Springvale") { clothColor = 0x595; shieldType = 0; helmType = 0x140E; cloakColor = 0x593; weapon = new Pike(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the City of Elidor") { clothColor = 0x665; shieldType = 0x1B7B; helmType = 0x1412; cloakColor = 0x664; weapon = new Katana(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Islegem") { clothColor = 0x7D1; shieldType = 0; helmType = 0x140E; cloakColor = 0x7D6; weapon = new Spear(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "Greensky Village") { clothColor = 0x7D7; shieldType = 0; helmType = 0x1412; cloakColor = 0x7DA; weapon = new Bardiche(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Port of Dusk") { clothColor = 0x601; shieldType = 0x1B76; helmType = 0x140E; cloakColor = 0x600; weapon = new Cutlass(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Port of Starguide") { clothColor = 0x751; shieldType = 0; helmType = 0x1412; cloakColor = 0x758; weapon = new BladedStaff(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Portshine") { clothColor = 0x847; shieldType = 0x1B7A; helmType = 0x140E; cloakColor = 0x851; weapon = new Mace(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Ranger Outpost") { clothColor = 0x598; shieldType = 0; helmType = 0x140E; cloakColor = 0x83F; weapon = new Spear(); } else if (World == "the Land of Lodoria") // ( Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the City of Lodoria" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Castle of Knowledge" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Lodoria City Park" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Village of Lodoria" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Lodoria Cemetery" ) { clothColor = 0x6E4; shieldType = 0x1BC4; helmType = 0x1412; cloakColor = 0x6E7; weapon = new Scimitar(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Lunar City of Dawn") { clothColor = 0x9C4; shieldType = 0x1B76; helmType = 0x140E; cloakColor = 0x9C4; weapon = new DiamondMace(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "The Town of Devil Guard" || Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "The Farmland of Devil Guard") { clothColor = 0x430; shieldType = 0; helmType = 0x140E; cloakColor = 0; weapon = new LargeBattleAxe(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Town of Moon") { clothColor = 0x8AF; shieldType = 0x1B72; helmType = 0x1412; cloakColor = 0x972; weapon = new Longsword(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Grey") { clothColor = 0; shieldType = 0; helmType = 0x140E; cloakColor = 0x763; weapon = new Halberd(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the City of Montor") { clothColor = 0x96F; shieldType = 0x1B74; helmType = 0x1412; cloakColor = 0x529; weapon = new Broadsword(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Fawn") { clothColor = 0x59D; shieldType = 0; helmType = 0x140E; cloakColor = 0x59C; weapon = new DoubleAxe(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Yew") { clothColor = 0x83C; shieldType = 0; helmType = 0x1412; cloakColor = 0x850; weapon = new Spear(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "Iceclad Fisherman's Village" || Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Town of Mountain Crest" || Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "Glacial Coast Village") { clothColor = 0x482; shieldType = 0; helmType = 0x140E; cloakColor = 0x47E; weapon = new Bardiche(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Undercity of Umbra") { clothColor = 0x964; shieldType = 0x1BC3; helmType = 0x140E; cloakColor = 0x966; weapon = new BoneHarvester(); } else if (World == "the Island of Umber Veil") { clothColor = 0xA5D; shieldType = 0; helmType = 0x140E; cloakColor = 0x96D; weapon = new Halberd(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the City of Kuldara") { clothColor = 0x965; shieldType = 0x1BC3; helmType = 0x140E; cloakColor = 0x845; weapon = new Maul(); } else if (World == "the Isles of Dread") { clothColor = 0x978; shieldType = 0; helmType = 0x2645; cloakColor = 0x973; weapon = new OrnateAxe(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Barako") { clothColor = 0x515; shieldType = 0x1B72; helmType = 0x2645; cloakColor = 0x58D; weapon = new WarMace(); } else if (World == "the Savaged Empire") // ( Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Village of Kurak" ) { clothColor = 0x515; shieldType = 0; helmType = 0x140E; cloakColor = 0x59D; weapon = new Spear(); } else if (World == "the Serpent Island") // ( Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the City of Furnace" ) { clothColor = 0x515; shieldType = 0; helmType = 0x2FBB; cloakColor = 0; weapon = new Halberd(); } else // if ( Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the City of Britain" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Britain Castle Grounds" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "Lord British Castle" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Britain Dungeons" ) { clothColor = 0x9C4; shieldType = 0x1BC4; helmType = 0x140E; cloakColor = 0x845; weapon = new VikingSword(); } weapon.Movable = false; ((BaseWeapon)weapon).MaxHitPoints = 1000; ((BaseWeapon)weapon).HitPoints = 1000; ((BaseWeapon)weapon).MinDamage = 500; ((BaseWeapon)weapon).MaxDamage = 900; AddItem(weapon); AddItem(new PlateChest()); if (World == "the Serpent Island") { AddItem(new RingmailArms()); } else { AddItem(new PlateArms()); } // FOR GARGOYLES AddItem(new PlateLegs()); AddItem(new PlateGorget()); AddItem(new PlateGloves()); AddItem(new Boots( )); if (helmType > 0) { PlateHelm helm = new PlateHelm(); helm.ItemID = helmType; helm.Name = "helm"; AddItem(helm); } if (shieldType > 0) { ChaosShield shield = new ChaosShield(); shield.ItemID = shieldType; shield.Name = "shield"; AddItem(shield); } MorphingTime.ColorMyClothes(this, clothColor); if (cloakColor > 0) { Cloak cloak = new Cloak(); cloak.Hue = cloakColor; AddItem(cloak); } Server.Misc.MorphingTime.CheckMorph(this); }
public static void InitOutfit(Mobile m) { CraftResource res = CraftResource.None; switch (Utility.Random(6)) { case 0: res = CraftResource.BlackScales; break; case 1: res = CraftResource.RedScales; break; case 2: res = CraftResource.BlueScales; break; case 3: res = CraftResource.YellowScales; break; case 4: res = CraftResource.GreenScales; break; case 5: res = CraftResource.WhiteScales; break; } BaseWeapon melee = new Kryss(); DragonHelm helm = new DragonHelm(); helm.Name = "exceptional iron sea serpent scale helm"; helm.Resource = res; helm.Movable = false; m.AddItem(helm); ChainChest chest = new ChainChest(); chest.Name = "exceptional iron sea serpent scale tunic"; chest.Resource = res; chest.Movable = false; m.AddItem(chest); DragonArms arms = new DragonArms(); arms.Name = "exceptional iron sea serpent scale arms"; arms.Resource = res; arms.Movable = false; m.AddItem(arms); DragonGloves gloves = new DragonGloves(); gloves.Name = "exceptional iron sea serpent scale gloves"; gloves.Resource = res; gloves.Movable = false; m.AddItem(gloves); DragonLegs legs = new DragonLegs(); legs.Name = "exceptional iron sea serpent scale legs"; legs.Resource = res; legs.Movable = false; m.AddItem(legs); melee.Movable = false; m.AddItem(melee); ChaosShield shield = new ChaosShield(); shield.Movable = false; m.AddItem(shield); Shoes shoes = new Shoes(Utility.RandomNeutralHue()); shoes.Movable = false; m.AddItem(shoes); int amount = Utility.RandomMinMax(1, 3); switch (res) { case CraftResource.BlackScales: m.AddItem(new BlackScales(amount)); break; case CraftResource.RedScales: m.AddItem(new RedScales(amount)); break; case CraftResource.BlueScales: m.AddItem(new BlueScales(amount)); break; case CraftResource.YellowScales: m.AddItem(new YellowScales(amount)); break; case CraftResource.GreenScales: m.AddItem(new GreenScales(amount)); break; case CraftResource.WhiteScales: m.AddItem(new WhiteScales(amount)); break; } }
public Vampire() : base(AIType.AI_SphereMage, FightMode.Closest, 10, 1, 0.2, 0.4) { Hue = 0x497; Body = 0x190; Name = "Vampire"; SetStr(450); SetDex(200, 300); SetInt(150, 200); SetHits(200, 300); SetStam(200, 300); SetMana(150, 200); SetDamage(10, 20); SetSkill(SkillName.Parry, 75.0, 80.0); SetSkill(SkillName.Poisoning, 90.0, 100.0); SetSkill(SkillName.MagicResist, 75.0, 88.0); SetSkill(SkillName.Swords, 75.0, 85.0); SetSkill(SkillName.Tactics, 80.0, 90.0); SetSkill(SkillName.Wrestling, 67.0, 80.0); SetSkill(SkillName.Magery, 65.0, 80.0); SetSkill(SkillName.EvalInt, 75.0, 85.0); Fame = 4000; Karma = -4000; VirtualArmor = 20; Item temp = new PlateGloves { Movable = false, Hue = 0x0590, Name = "Vampire Plate Gauntlets" }; AddItem(temp); temp = new PlateArms { Hue = 0x0845, Movable = false, Name = "Vampire Plate Arms" }; AddItem(temp); temp = new PlateGorget { Movable = false, Hue = 0x0590, Name = "Vampire Plate Gorget" }; AddItem(temp); temp = new PlateLegs { Movable = false, Hue = 0x0590, Name = "Vampire Plate Legs" }; AddItem(temp); temp = new PlateChest { Movable = false, Hue = 0x0590, Name = "Vampire Plate Chest" }; AddItem(temp); temp = new Cloak(0x1) { Movable = false }; AddItem(temp); HairItemID = 8252; HairHue = Utility.RandomHairHue(); BaseSword twep; switch (Utility.Random(8)) { case 0: twep = new Broadsword(); break; case 1: twep = new Cutlass(); break; case 2: twep = new Scimitar(); break; case 3: twep = new Katana(); break; case 4: twep = new Kryss(); break; case 5: twep = new Longsword(); break; case 6: twep = new ThinLongsword(); break; default: twep = new VikingSword(); break; } switch (Utility.Random(3)) { case 0: twep.DamageLevel = WeaponDamageLevel.Ruin; break; case 1: twep.DamageLevel = WeaponDamageLevel.Might; break; case 2: twep.DamageLevel = WeaponDamageLevel.Force; break; } AddItem(twep); }
public BaneChosenHoundMaster() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.15, 0.4) { Name = "a bane chosen hound master"; Body = 0x190; Hue = Utility.RandomSkinHue(); SetStr(176, 225); SetDex(81, 95); SetInt(61, 85); SetHits(376, 450); SetDamage(24, 26); SetDamageType(ResistanceType.Physical, 25); SetDamageType(ResistanceType.Fire, 25); SetDamageType(ResistanceType.Cold, 25); SetDamageType(ResistanceType.Energy, 25); SetResistance(ResistanceType.Physical, 45, 55); SetResistance(ResistanceType.Fire, 15, 25); SetResistance(ResistanceType.Cold, 50); SetResistance(ResistanceType.Poison, 25, 35); SetResistance(ResistanceType.Energy, 25, 35); SetSkill(SkillName.Fencing, 77.6, 92.5); SetSkill(SkillName.Healing, 60.3, 90.0); SetSkill(SkillName.Macing, 77.6, 92.5); SetSkill(SkillName.Anatomy, 77.6, 87.5); SetSkill(SkillName.MagicResist, 77.6, 97.5); SetSkill(SkillName.Swords, 77.6, 92.5); SetSkill(SkillName.Tactics, 77.6, 87.5); Fame = 5000; Karma = -5000; CraftResource res = CraftResource.BlackScales; BaseWeapon melee = null; switch (Utility.Random(3)) { case 0: melee = new Kryss(); break; case 1: melee = new Broadsword(); break; case 2: melee = new Katana(); break; } melee.Movable = false; AddItem(melee); DragonHelm helm = new DragonHelm(); helm.Resource = res; helm.Movable = false; AddItem(helm); DragonChest chest = new DragonChest(); chest.Resource = res; chest.Movable = false; AddItem(chest); DragonArms arms = new DragonArms(); arms.Resource = res; arms.Movable = false; AddItem(arms); DragonGloves gloves = new DragonGloves(); gloves.Resource = res; gloves.Movable = false; AddItem(gloves); DragonLegs legs = new DragonLegs(); legs.Resource = res; legs.Movable = false; AddItem(legs); ChaosShield shield = new ChaosShield(); shield.Movable = false; AddItem(shield); AddItem(new Shirt()); AddItem(new Boots()); }
public override void OnAfterSpawn() { base.OnAfterSpawn(); Region reg = Region.Find(this.Location, this.Map); string World = Server.Misc.Worlds.GetMyWorld(this.Map, this.Location, this.X, this.Y); int clothColor = 0; int shieldType = 0; int helmType = 0; int cloakColor = 0; Item weapon = new VikingSword(); weapon.Delete(); if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Whisper") { clothColor = 0x96D; shieldType = 0x1B72; helmType = 0x140E; cloakColor = 0x972; weapon = new Longsword(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Town of Glacial Hills") { clothColor = 0xB70; shieldType = 0x1B74; helmType = 0x1412; cloakColor = 0xB7A; weapon = new Kryss(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Springvale") { clothColor = 0x595; shieldType = 0; helmType = 0x140E; cloakColor = 0x593; weapon = new Pike(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the City of Elidor") { clothColor = 0x665; shieldType = 0x1B7B; helmType = 0x1412; cloakColor = 0x664; weapon = new Katana(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Islegem") { clothColor = 0x7D1; shieldType = 0; helmType = 0x140E; cloakColor = 0x7D6; weapon = new Spear(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "Greensky Village") { clothColor = 0x7D7; shieldType = 0; helmType = 0x1412; cloakColor = 0x7DA; weapon = new Bardiche(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Port of Dusk") { clothColor = 0x601; shieldType = 0x1B76; helmType = 0x140E; cloakColor = 0x600; weapon = new Cutlass(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Port of Starguide") { clothColor = 0x751; shieldType = 0; helmType = 0x1412; cloakColor = 0x758; weapon = new BladedStaff(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Portshine") { clothColor = 0x847; shieldType = 0x1B7A; helmType = 0x140E; cloakColor = 0x851; weapon = new Mace(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Ranger Outpost") { clothColor = 0x598; shieldType = 0; helmType = 0x140E; cloakColor = 0x83F; weapon = new Spear(); } else if (World == "the Land of Lodoria") // ( Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the City of Lodoria" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Castle of Knowledge" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Lodoria City Park" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Village of Lodoria" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Lodoria Cemetery" ) { clothColor = 0x6E4; shieldType = 0x1BC4; helmType = 0x1412; cloakColor = 0x6E7; weapon = new Scimitar(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Lunar City of Dawn") { clothColor = 0x9C4; shieldType = 0; helmType = 11121; cloakColor = 0x9C4; weapon = new QuarterStaff(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "The Town of Devil Guard" || Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "The Farmland of Devil Guard") { clothColor = 0x430; shieldType = 0; helmType = 0x140E; cloakColor = 0; weapon = new LargeBattleAxe(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Town of Moon") { clothColor = 0x8AF; shieldType = 0x1B72; helmType = 0x1412; cloakColor = 0x972; weapon = new Longsword(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Grey") { clothColor = 0; shieldType = 0; helmType = 0x140E; cloakColor = 0x763; weapon = new Halberd(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the City of Montor") { clothColor = 0x96F; shieldType = 0x1B74; helmType = 0x1412; cloakColor = 0x529; weapon = new Broadsword(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Fawn") { clothColor = 0x59D; shieldType = 0; helmType = 0x140E; cloakColor = 0x59C; weapon = new DoubleAxe(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Yew") { clothColor = 0x83C; shieldType = 0; helmType = 0x1412; cloakColor = 0x850; weapon = new Spear(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "Iceclad Fisherman's Village" || Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Town of Mountain Crest" || Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "Glacial Coast Village") { clothColor = 0x482; shieldType = 0; helmType = 0x140E; cloakColor = 0x47E; weapon = new Bardiche(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Undercity of Umbra") { clothColor = 0x964; shieldType = 0x1BC3; helmType = 0x140E; cloakColor = 0x966; weapon = new BoneHarvester(); } else if (World == "the Island of Umber Veil") { clothColor = 0xA5D; shieldType = 0; helmType = 0x140E; cloakColor = 0x96D; weapon = new Halberd(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the City of Kuldara") { clothColor = 0x965; shieldType = 0x1BC3; helmType = 0x140E; cloakColor = 0x845; weapon = new Maul(); } else if (World == "the Isles of Dread") { clothColor = 0x978; shieldType = 0x1B7A; helmType = 0; cloakColor = 0x973; weapon = new VikingSword(); } else if (Server.Misc.Worlds.GetRegionName(this.Map, this.Location) == "the Village of Barako") { clothColor = 0x515; shieldType = 0x1B72; helmType = 0x2645; cloakColor = 0x58D; weapon = new WarMace(); } else if (World == "the Savaged Empire") // ( Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Village of Kurak" ) { clothColor = 0x515; shieldType = 0; helmType = 0x140E; cloakColor = 0x59D; weapon = new Spear(); } else if (World == "the Serpent Island") // ( Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the City of Furnace" ) { clothColor = 0x515; shieldType = 0; helmType = 0x2FBB; cloakColor = 0; weapon = new Halberd(); } else // if ( Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the City of Britain" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Britain Castle Grounds" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "Lord British Castle" || Server.Misc.Worlds.GetRegionName( this.Map, this.Location ) == "the Britain Dungeons" ) { clothColor = 0x9C4; shieldType = 0x1BC4; helmType = 0x140E; cloakColor = 0x845; weapon = new VikingSword(); } weapon.Movable = false; ((BaseWeapon)weapon).MaxHitPoints = 1000; ((BaseWeapon)weapon).HitPoints = 1000; ((BaseWeapon)weapon).MinDamage = 500; ((BaseWeapon)weapon).MaxDamage = 900; AddItem(weapon); Item arms = new RingmailArms(); if (World == "the Serpent Island") { arms = new PlateArms(); } // FOR GARGOYLES Item tunic = new PlateChest(); Item legs = new PlateLegs(); Item neck = new PlateGorget(); Item hand = new PlateGloves(); Item foot = new Boots( ); if (World == "the Isles of Dread") { tunic.ItemID = 0x5652; tunic.Name = "tunic"; if (this.Female) { tunic.ItemID = 0x563E; Utility.AssignRandomHair(this); } else { Utility.AssignRandomHair(this); FacialHairItemID = Utility.RandomList(0, 8254, 8255, 8256, 8257, 8267, 8268, 8269); } this.HairHue = 0x455; this.FacialHairHue = 0x455; arms.ItemID = 22093; arms.Name = "sleeves"; legs.ItemID = 7176; legs.Name = "skirt"; neck.ItemID = 0x5650; neck.Name = "amulet"; hand.ItemID = 0x564E; hand.Name = "gloves"; foot.ItemID = 5901; foot.Name = "sandals"; } else if (World == "the Moon of Luna") { tunic.ItemID = 7939; tunic.Name = "robe"; if (this.Female) { Utility.AssignRandomHair(this); } else { Utility.AssignRandomHair(this); FacialHairItemID = Utility.RandomList(0, 8254, 8255, 8256, 8257, 8267, 8268, 8269); } this.HairHue = Utility.RandomHairHue(); this.FacialHairHue = this.HairHue; arms.ItemID = 22093; arms.Name = "sleeves"; legs.ItemID = 7176; legs.Name = "skirt"; neck.ItemID = 0x5650; neck.Name = "amulet"; hand.ItemID = 0x564E; hand.Name = "gloves"; foot.ItemID = 5901; foot.Name = "sandals"; } AddItem(tunic); AddItem(arms); AddItem(legs); AddItem(neck); AddItem(hand); AddItem(foot); if (helmType > 0) { PlateHelm helm = new PlateHelm(); helm.ItemID = helmType; helm.Name = "helm"; if (helmType == 11121) { helm.Name = "hood"; } AddItem(helm); } if (shieldType > 0) { ChaosShield shield = new ChaosShield(); shield.ItemID = shieldType; shield.Name = "shield"; AddItem(shield); } MorphingTime.ColorMyClothes(this, clothColor); if (cloakColor > 0) { Cloak cloak = new Cloak(); cloak.Hue = cloakColor; AddItem(cloak); } Server.Misc.MorphingTime.CheckMorph(this); if (Utility.RandomBool() && !Server.Misc.Worlds.InBuilding(this) && this.Map != Map.SerpentIsland) { BaseMount mount = new EvilMount(); if (this.Map == Map.SavagedEmpire) { mount.Body = 0x11C; mount.ItemID = 0x3E92; mount.Hue = Utility.RandomList(0xB79, 0xB19, 0xAEF, 0xACE, 0xAB0); } else if (this.Map == Map.IslesDread) { mount.Body = 0xD5; mount.ItemID = 0x3EC5; if (Server.Misc.MyServerSettings.ClientVersion()) { mount.Body = 0x22; mount.ItemID = 34; if (Utility.RandomBool()) { mount.Body = 0xB1; mount.ItemID = 177; } } else { mount.Hue = Utility.RandomList(0xAB1, 0xAC0, 0x92B); } } else { mount.Body = 0xE2; mount.ItemID = 0x3EA0; if (Server.Misc.MyServerSettings.ClientVersion()) { mount.ItemID = 594; } else { mount.Hue = Utility.RandomList(0, 0, 0, 0, 0, 0x780, 0x781, 0x782, 0x783, 0x8FD, 0x8FE, 0x8FF, 0x900, 0x901, 0x902, 0x903, 0x904, 0x905, 0x906, 0x907, 0x908, Utility.RandomNeutralHue(), Utility.RandomNeutralHue(), Utility.RandomNeutralHue(), Utility.RandomNeutralHue(), Utility.RandomNeutralHue(), Utility.RandomNeutralHue()); } } Server.Mobiles.BaseMount.Ride(mount, this); } }
public ChaosDragoonElite() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.15, 0.4) { this.Name = "a chaos dragoon elite"; this.Body = 0x190; this.Hue = Utility.RandomSkinHue(); this.SetStr(276, 350); this.SetDex(66, 90); this.SetInt(126, 150); this.SetHits(276, 350); this.SetDamage(29, 34); this.SetDamageType(ResistanceType.Physical, 100); /*SetResistance(ResistanceType.Physical, 45, 55); * SetResistance(ResistanceType.Fire, 15, 25); * SetResistance(ResistanceType.Cold, 50); * SetResistance(ResistanceType.Poison, 25, 35); * SetResistance(ResistanceType.Energy, 25, 35);*/ this.SetSkill(SkillName.Tactics, 80.1, 100.0); this.SetSkill(SkillName.MagicResist, 100.1, 110.0); this.SetSkill(SkillName.Anatomy, 80.1, 100.0); this.SetSkill(SkillName.Magery, 85.1, 100.0); this.SetSkill(SkillName.EvalInt, 85.1, 100.0); this.SetSkill(SkillName.Swords, 72.5, 95.0); this.SetSkill(SkillName.Fencing, 85.1, 100); this.SetSkill(SkillName.Macing, 85.1, 100); this.Fame = 8000; this.Karma = -8000; CraftResource res = CraftResource.None; switch (Utility.Random(6)) { case 0: res = CraftResource.BlackScales; break; case 1: res = CraftResource.RedScales; break; case 2: res = CraftResource.BlueScales; break; case 3: res = CraftResource.YellowScales; break; case 4: res = CraftResource.GreenScales; break; case 5: res = CraftResource.WhiteScales; break; } BaseWeapon melee = null; switch (Utility.Random(3)) { case 0: melee = new Kryss(); break; case 1: melee = new Broadsword(); break; case 2: melee = new Katana(); break; } melee.Movable = false; this.AddItem(melee); DragonChest Tunic = new DragonChest(); Tunic.Resource = res; Tunic.Movable = false; this.AddItem(Tunic); DragonLegs Legs = new DragonLegs(); Legs.Resource = res; Legs.Movable = false; this.AddItem(Legs); DragonArms Arms = new DragonArms(); Arms.Resource = res; Arms.Movable = false; this.AddItem(Arms); DragonGloves Gloves = new DragonGloves(); Gloves.Resource = res; Gloves.Movable = false; this.AddItem(Gloves); DragonHelm Helm = new DragonHelm(); Helm.Resource = res; Helm.Movable = false; this.AddItem(Helm); ChaosShield shield = new ChaosShield(); shield.Movable = false; this.AddItem(shield); this.AddItem(new Boots(0x455)); this.AddItem(new Shirt(Utility.RandomMetalHue())); int amount = Utility.RandomMinMax(1, 3); switch (res) { case CraftResource.BlackScales: this.AddItem(new BlackScales(amount)); break; case CraftResource.RedScales: this.AddItem(new RedScales(amount)); break; case CraftResource.BlueScales: this.AddItem(new BlueScales(amount)); break; case CraftResource.YellowScales: this.AddItem(new YellowScales(amount)); break; case CraftResource.GreenScales: this.AddItem(new GreenScales(amount)); break; case CraftResource.WhiteScales: this.AddItem(new WhiteScales(amount)); break; } switch (Utility.Random(9)) { case 0: res = CraftResource.DullCopper; break; case 1: res = CraftResource.ShadowIron; break; case 2: res = CraftResource.Copper; break; case 3: res = CraftResource.Bronze; break; case 4: res = CraftResource.Gold; break; case 5: res = CraftResource.Agapite; break; case 6: res = CraftResource.Verite; break; case 7: res = CraftResource.Valorite; break; case 8: res = CraftResource.Iron; break; } SwampDragon mt = new SwampDragon(); mt.HasBarding = true; mt.BardingResource = res; mt.BardingHP = mt.BardingMaxHP; mt.Rider = this; }
public ChaosDragoonElite() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.15, 0.4) { Name = "a chaos dragoon elite"; Body = 0x190; Hue = Utility.RandomSkinHue(); SetStr(276, 350); SetDex(66, 90); SetInt(126, 150); SetHits(276, 350); SetDamage(29, 34); SetDamageType(ResistanceType.Physical, 100); /*SetResistance(ResistanceType.Physical, 45, 55); * SetResistance(ResistanceType.Fire, 15, 25); * SetResistance(ResistanceType.Cold, 50); * SetResistance(ResistanceType.Poison, 25, 35); * SetResistance(ResistanceType.Energy, 25, 35);*/ SetSkill(SkillName.Tactics, 80.1, 100.0); SetSkill(SkillName.MagicResist, 100.1, 110.0); SetSkill(SkillName.Anatomy, 80.1, 100.0); SetSkill(SkillName.Magery, 85.1, 100.0); SetSkill(SkillName.EvalInt, 85.1, 100.0); SetSkill(SkillName.Swords, 72.5, 95.0); SetSkill(SkillName.Fencing, 85.1, 100); SetSkill(SkillName.Macing, 85.1, 100); Fame = 8000; Karma = -8000; CraftResource res = CraftResource.None; switch (Utility.Random(6)) { case 0: res = CraftResource.BlackScales; break; case 1: res = CraftResource.RedScales; break; case 2: res = CraftResource.BlueScales; break; case 3: res = CraftResource.YellowScales; break; case 4: res = CraftResource.GreenScales; break; case 5: res = CraftResource.WhiteScales; break; } BaseWeapon melee = null; switch (Utility.Random(3)) { case 0: melee = new Kryss(); break; case 1: melee = new Broadsword(); break; case 2: melee = new Katana(); break; } if (melee != null) { melee.Movable = false; AddItem(melee); } DragonChest tunic = new DragonChest { Resource = res, Movable = false }; AddItem(tunic); DragonLegs legs = new DragonLegs { Resource = res, Movable = false }; AddItem(legs); DragonArms arms = new DragonArms { Resource = res, Movable = false }; AddItem(arms); DragonGloves gloves = new DragonGloves { Resource = res, Movable = false }; AddItem(gloves); DragonHelm helm = new DragonHelm { Resource = res, Movable = false }; AddItem(helm); ChaosShield shield = new ChaosShield { Movable = false }; AddItem(shield); AddItem(new Boots(0x455)); AddItem(new Shirt(Utility.RandomMetalHue())); int amount = Utility.RandomMinMax(1, 3); switch (res) { case CraftResource.BlackScales: AddItem(new BlackScales(amount)); break; case CraftResource.RedScales: AddItem(new RedScales(amount)); break; case CraftResource.BlueScales: AddItem(new BlueScales(amount)); break; case CraftResource.YellowScales: AddItem(new YellowScales(amount)); break; case CraftResource.GreenScales: AddItem(new GreenScales(amount)); break; case CraftResource.WhiteScales: AddItem(new WhiteScales(amount)); break; } switch (Utility.Random(9)) { case 0: res = CraftResource.DullCopper; break; case 1: res = CraftResource.ShadowIron; break; case 2: res = CraftResource.Copper; break; case 3: res = CraftResource.Bronze; break; case 4: res = CraftResource.Gold; break; case 5: res = CraftResource.Agapite; break; case 6: res = CraftResource.Verite; break; case 7: res = CraftResource.Valorite; break; case 8: res = CraftResource.Iron; break; } SwampDragon mt = new SwampDragon { HasBarding = true, BardingResource = res }; mt.BardingHP = mt.BardingMaxHP; mt.Rider = this; SetSpecialAbility(SpecialAbility.DragonBreath); }