///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// public static Item CreateMetalShield() { Item item = null; switch (Utility.RandomMinMax(0, 7)) { case 0: item = new BronzeShield(); item.Name = "shield"; break; case 1: item = new Buckler(); item.Name = "buckler"; break; case 2: item = new MetalKiteShield(); item.Name = "kite shield"; break; case 3: item = new HeaterShield(); item.Name = "large shield"; break; case 4: item = new MetalShield(); item.Name = "small shield"; break; case 5: item = new ChaosShield(); item.Name = "chaos shield"; break; case 6: item = new OrderShield(); item.Name = "order shield"; break; case 7: item = new RoyalShield(); item.Name = "royal shield"; break; } return(item); }
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; }
private void CreateClassic() { m_MoveSound = 821; m_CaptureSound = 1094; m_DeathSound = 1059; m_Piece.Female = false; m_Piece.BodyValue = 0x190; if (m_BChessboard.OverrideMinorHue) { m_Piece.Hue = Hue; } else { m_Piece.Hue = m_BChessboard.SkinHue; } m_Piece.AddItem(new ShortHair(m_BChessboard.OverrideMinorHue ? Hue : m_BChessboard.HairHue)); Item item = null; if (m_Color == ChessColor.White) { item = new OrderShield(); m_Piece.AddItem(item); } else { item = new ChaosShield(); m_Piece.AddItem(item); } item = new ChainChest(); item.Hue = Hue; m_Piece.AddItem(item); item = new ChainLegs(); item.Hue = MinorHue; m_Piece.AddItem(item); item = new Boots(); item.Hue = Hue; m_Piece.AddItem(item); item = new Scimitar(); m_Piece.AddItem(item); }
private void CreateClassic() { m_MoveSound = 1055; m_CaptureSound = 1068; m_DeathSound = 0; m_CheckSound = 1086; m_CheckMateSound = 1088; m_Piece.Female = false; m_Piece.BodyValue = 0x190; m_Piece.AccessLevel = AccessLevel.GameMaster; m_Piece.NameHue = 0x3B2; if (m_BChessboard.OverrideMinorHue) { m_Piece.Hue = Hue; } else { m_Piece.Hue = m_BChessboard.SkinHue; } Item item = null; if (m_Color == ChessColor.White) { item = new LordBritishSuit(); m_Piece.AddItem(item); item = new OrderShield(); m_Piece.AddItem(item); item = new Longsword(); m_Piece.AddItem(item); } else { item = new LordBlackthorneSuit(); m_Piece.AddItem(item); item = new ChaosShield(); m_Piece.AddItem(item); item = new Longsword(); m_Piece.AddItem(item); } }
public override void GiveEquipment() { var machete = new BoneMachete(); machete.Name = "a chaos blade"; machete.Hue = 1920; machete.Identified = true; machete.Movable = false; AddItem(Immovable(machete)); var shield = new ChaosShield(); shield.Name = "a corrupted chaos shield"; shield.Hue = 1920; shield.Identified = true; shield.Movable = false; AddItem(Immovable(shield)); base.GiveEquipment(); }
public override void OnDeath(Container c) { base.OnDeath(c); Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 4) == 1) { switch (Utility.RandomMinMax(0, 8)) { case 0: Item loot1 = new PlateChest(); loot1.Name = "tunic"; MorphingItem.MorphMyItem(loot1, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot1); break; case 1: Item loot2 = new PlateArms(); loot2.Name = "arms"; MorphingItem.MorphMyItem(loot2, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot2); break; case 2: Item loot3 = new PlateLegs(); loot3.Name = "leggings"; MorphingItem.MorphMyItem(loot3, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot3); break; case 3: Item loot4 = new PlateGorget(); loot4.Name = "gorget"; MorphingItem.MorphMyItem(loot4, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot4); break; case 4: Item loot5 = new PlateGloves(); loot5.Name = "guantlets"; MorphingItem.MorphMyItem(loot5, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot5); break; case 5: Item loot6 = new OrcHelm(); loot6.Name = "helm"; MorphingItem.MorphMyItem(loot6, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot6); break; case 6: Item loot7 = new RoyalSword(); loot7.Name = "sword"; MorphingItem.MorphMyItem(loot7, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("weapons")); c.DropItem(loot7); break; case 7: Item loot8 = new ChaosShield(); loot8.Name = "shield"; MorphingItem.MorphMyItem(loot8, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("armors")); c.DropItem(loot8); break; case 8: Item loot9 = Loot.RandomJewelry(); MorphingItem.MorphMyItem(loot9, "IGNORED", "Grundul Varg's", "IGNORED", MorphingTemplates.TemplateGrundulVarg("misc")); c.DropItem(loot9); break; } } } } }
public ChaosDragoon() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.15, 0.4) { Body = 0x190; Hue = Race.Human.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); //SetResistance( ResistanceType.Physical, 25, 38 ); //SetResistance( ResistanceType.Fire, 25, 38 ); //SetResistance( ResistanceType.Cold, 25, 38 ); //SetResistance( ResistanceType.Poison, 25, 38 ); //SetResistance( ResistanceType.Energy, 25, 38 ); 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; var res = Utility.Random(6) switch { 0 => CraftResource.BlackScales, 1 => CraftResource.RedScales, 2 => CraftResource.BlueScales, 3 => CraftResource.YellowScales, 4 => CraftResource.GreenScales, 5 => CraftResource.WhiteScales, _ => CraftResource.None }; var melee = Utility.Random(3) switch { 0 => (BaseWeapon) new Kryss(), 1 => new Broadsword(), 2 => new Katana(), _ => null }; 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()); 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; }
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 DungeonGuard() : base(AIType.AI_Melee) { Name = NameList.RandomName("male"); Title = "the Guard"; Fame = 5000; Karma = -5000; Hue = 1175; BodyValue = 400;; SetStr(150); SetDex(100); SetInt(200); SetHits(1000); SetSkill(SkillName.MagicResist, 200.0); SetSkill(SkillName.Tactics, 100.0); SetSkill(SkillName.Swords, 120.0); SetSkill(SkillName.DetectHidden, 100.0, 120.0); PlateArms a = new PlateArms(); a.Hue = 1109; a.LootType = LootType.Blessed; AddItem(a); Cloak c = new Cloak(); c.Hue = 1157; c.LootType = LootType.Blessed; AddItem(c); BodySash b = new BodySash(); b.Hue = 1157; b.LootType = LootType.Blessed; AddItem(b); PlateGloves g = new PlateGloves(); g.Hue = 1109; g.LootType = LootType.Blessed; AddItem(g); PlateLegs l = new PlateLegs(); l.Hue = 1109; l.LootType = LootType.Blessed; AddItem(l); PlateChest t = new PlateChest(); t.Hue = 1109; t.LootType = LootType.Blessed; AddItem(t); PlateGorget n = new PlateGorget(); n.Hue = 1109; n.LootType = LootType.Blessed; AddItem(n); PlateHelm h = new PlateHelm(); h.Hue = 1109; h.LootType = LootType.Blessed; AddItem(h); VikingSword w = new VikingSword(); w.Hue = 1109; w.Movable = false; w.LootType = LootType.Blessed; AddItem(w); ChaosShield s = new ChaosShield(); s.Hue = 1109; s.Movable = false; s.LootType = LootType.Blessed; AddItem(s); }
public BaneOfAnarchy() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 0x190; SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); 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 Anarchy"; 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 = 0x4AA; chest.Name = "plate tunic of anarchy"; chest.Durability = ArmorDurabilityLevel.Indestructible; chest.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(chest); PlateArms arms = new PlateArms(); arms.Hue = 0x4AA; arms.Name = "plate arms of anarchy"; arms.Durability = ArmorDurabilityLevel.Indestructible; arms.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(arms); PlateLegs legs = new PlateLegs(); legs.Hue = 0x4AA; legs.Name = "plate leggings of anarchy"; legs.Durability = ArmorDurabilityLevel.Indestructible; legs.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(legs); PlateGorget neck = new PlateGorget(); neck.Hue = 0x4AA; neck.Name = "plate gorget of anarchy"; neck.Durability = ArmorDurabilityLevel.Indestructible; neck.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(neck); PlateGloves gloves = new PlateGloves(); gloves.Hue = 0x4AA; gloves.Name = "plate gloves of anarchy"; gloves.Durability = ArmorDurabilityLevel.Indestructible; gloves.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(gloves); PlateHelm helm = new PlateHelm(); helm.Hue = 0x4AA; helm.ItemID = 0x2645; helm.Name = "plate helm of anarchy"; helm.Durability = ArmorDurabilityLevel.Indestructible; helm.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(helm); ChaosShield shield = new ChaosShield(); shield.Hue = 0x4AA; shield.ItemID = 0x2645; shield.Name = "shield of anarchy"; shield.Durability = ArmorDurabilityLevel.Indestructible; shield.ProtectionLevel = ArmorProtectionLevel.Invulnerability; AddItem(shield); VikingSword weapon = new VikingSword(); weapon.Hue = 0x4AA; weapon.Name = "sword of anarchy"; weapon.AccuracyLevel = WeaponAccuracyLevel.Supremely; weapon.DamageLevel = WeaponDamageLevel.Vanq; weapon.DurabilityLevel = WeaponDurabilityLevel.Indestructible; AddItem(weapon); }
private void CreateClassic() { m_MoveSound = 588; m_CaptureSound = 168; m_DeathSound = 170; m_Piece.Female = false; m_Piece.BodyValue = 0x190; if (m_BChessboard.OverrideMinorHue) { m_Piece.Hue = Hue; } else { m_Piece.Hue = m_BChessboard.SkinHue; } m_Piece.AddItem(new PonyTail(m_BChessboard.OverrideMinorHue ? Hue : m_BChessboard.HairHue)); Item item = null; if (m_Color == ChessColor.White) { item = new OrderShield(); m_Piece.AddItem(item); } else { item = new ChaosShield(); m_Piece.AddItem(item); } item = new Doublet(MinorHue); m_Piece.AddItem(item); item = new PlateLegs(); item.Hue = Hue; m_Piece.AddItem(item); item = new PlateChest(); item.Hue = Hue; m_Piece.AddItem(item); item = new PlateArms(); item.Hue = Hue; m_Piece.AddItem(item); item = new PlateGorget(); item.Hue = Hue; m_Piece.AddItem(item); item = new PlateGloves(); item.Hue = Hue; m_Piece.AddItem(item); item = new Lance(); m_Piece.AddItem(item); Server.Mobiles.Horse horse = new Server.Mobiles.Horse(); if (m_Color == ChessColor.White) { horse.BodyValue = 226; horse.Hue = 1150; } else { horse.BodyValue = 179; horse.ItemID = 16055; horse.Hue = 1109; } horse.Rider = m_Piece; m_Piece.Direction = Facing; }
public BlackKnight() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 0x190; SpeechHue = Utility.RandomDyedHue(); Hue = Utility.RandomSkinHue(); 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 Black Knight"; SetStr(230); SetDex(150); SetInt(120); SetHits(230); 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 = 7000; Karma = -7000; VirtualArmor = 30; PlateChest bk_chest = new PlateChest(); AddItem(bk_chest); PlateArms bk_arms = new PlateArms(); AddItem(bk_arms); PlateLegs bk_legs = new PlateLegs(); AddItem(bk_legs); PlateGorget bk_gorget = new PlateGorget(); AddItem(bk_gorget); PlateGloves bk_gloves = new PlateGloves(); AddItem(bk_gloves); PlateHelm bk_helm = new PlateHelm(); AddItem(bk_helm); VikingSword bk_sword = new VikingSword(); AddItem(bk_sword); ChaosShield bk_shield = new ChaosShield(); AddItem(bk_shield); AddItem(new Boots( )); if (90 < Utility.Random(100)) { switch (Utility.RandomMinMax(0, 7)) { case 0: MorphingItem.MorphMyItem(bk_chest, "Black Knight", "IGNORED", "IGNORED", MorphingTemplates.TemplateBlackKnight("armors")); break; case 1: MorphingItem.MorphMyItem(bk_arms, "Black Knight", "IGNORED", "IGNORED", MorphingTemplates.TemplateBlackKnight("armors")); break; case 2: MorphingItem.MorphMyItem(bk_legs, "Black Knight", "IGNORED", "IGNORED", MorphingTemplates.TemplateBlackKnight("armors")); break; case 3: MorphingItem.MorphMyItem(bk_gorget, "Black Knight", "IGNORED", "IGNORED", MorphingTemplates.TemplateBlackKnight("armors")); break; case 4: MorphingItem.MorphMyItem(bk_gloves, "Black Knight", "IGNORED", "IGNORED", MorphingTemplates.TemplateBlackKnight("armors")); break; case 5: MorphingItem.MorphMyItem(bk_helm, "Black Knight", "IGNORED", "IGNORED", MorphingTemplates.TemplateBlackKnight("armors")); break; case 6: MorphingItem.MorphMyItem(bk_sword, "Black Knight", "IGNORED", "IGNORED", MorphingTemplates.TemplateBlackKnight("weapons")); break; case 7: MorphingItem.MorphMyItem(bk_shield, "Black Knight", "IGNORED", "IGNORED", MorphingTemplates.TemplateBlackKnight("armors")); break; } } MorphingTime.ColorMyClothes(this, 0x497); }
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 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); }
public DrowWeaponMaster() : base(AIType.AI_Melee, FightMode.Agressor, 10, 1, 0.2, 0.4) { Name = NameList.RandomName("drowmale"); Title = "the Weapon Master"; SpeechHue = Utility.RandomDyedHue(); Hue = 1109; Body = 0x190; Level = 10; NameHue = 2545; new Tizzin().Rider = this; LongHair hair = new LongHair(); hair.Movable = false; AddItem(hair); ChainChest chest = new ChainChest(); chest.Hue = 0xA3B; chest.Movable = false; AddItem(chest); RingmailArms arms = new RingmailArms(); arms.Hue = 0xA3B; arms.Movable = false; AddItem(arms); RingmailGloves gloves = new RingmailGloves(); gloves.Hue = 0xA3B; gloves.Movable = false; AddItem(gloves); ChainLegs legs = new ChainLegs(); legs.Hue = 0xA3B; legs.Movable = false; AddItem(legs); Cloak cloak = new Cloak(); cloak.Hue = 0xA39; cloak.Movable = false; AddItem(cloak); ChaosShield shield = new ChaosShield(); shield.Hue = 0xA3B; shield.Movable = false; AddItem(shield); Boots boots = new Boots(); boots.Hue = 0xA39; boots.Movable = false; AddItem(boots); BodySash sash = new BodySash(); sash.Hue = 0xA16; sash.Movable = false; AddItem(sash); PackGold(10, 17); SetSkill(SkillName.MagicResist, 80.0, 99.5); SetSkill(SkillName.Swords, 90.0, 102.5); SetSkill(SkillName.Tactics, 85.0, 97.5); SetSkill(SkillName.Wrestling, 65.0, 77.5); SetStr(316, 370); SetDex(351, 415); SetInt(141, 165); SetHits(420, 483); SetDamage(11, 17); SetResistance(ResistanceType.Physical, 10, 25); SetResistance(ResistanceType.Fire, 10, 25); SetResistance(ResistanceType.Energy, 10, 25); SetResistance(ResistanceType.Cold, 10, 25); SetResistance(ResistanceType.Poison, 20, 30); Karma = -5000; Fame = 5000; switch (Utility.Random(4)) { case 0: Scimitar scim = new Scimitar(); scim.Movable = false; AddItem(scim); break; case 1: Longsword lsword = new Longsword(); lsword.Movable = false; AddItem(lsword); break; case 2: Broadsword bsword = new Broadsword(); bsword.Movable = false; AddItem(bsword); break; case 3: Cutlass cl = new Cutlass(); cl.Movable = false; AddItem(cl); break; } }
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 ForgottenOneSwordAndShield() : base(AIType.AI_Melee, FightMode.Good, 10, 1, 0.2, 0.4) { Title = "a ForgottenOne Swordsman"; Name = NameList.RandomName("male"); Body = 0x191; Hue = 33805; Female = false; SetStr(1025, 1425); SetDex(81, 148); SetInt(475, 675); Fame = -1000; Karma = -1000; SetHits(1000, 2000); SetDamage(24, 33); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 60, 85); SetResistance(ResistanceType.Fire, 65, 90); SetResistance(ResistanceType.Cold, 40, 55); SetResistance(ResistanceType.Poison, 40, 60); SetResistance(ResistanceType.Energy, 50, 75); SetSkill(SkillName.Archery, 100, 140); SetSkill(SkillName.Tactics, 100, 140); SetSkill(SkillName.MagicResist, 100, 140); SetSkill(SkillName.Tactics, 100, 140); SetSkill(SkillName.Wrestling, 100, 140); SetSkill(SkillName.Swords, 100, 140); SetSkill(SkillName.Magery, 100, 140); SetSkill(SkillName.Focus, 100, 140); VirtualArmor = 80; VikingSword vikingsword = new VikingSword(); vikingsword.Movable = false; AddItem(vikingsword); ChaosShield chaosshield = new ChaosShield(); chaosshield.Movable = false; AddItem(chaosshield); //AddItem(new Bolt(100)); HumilityCloak cloak = new HumilityCloak(); cloak.Movable = false; AddItem(cloak); SpiritualityHelm spiritualityhelm = new SpiritualityHelm(); spiritualityhelm.Movable = false; AddItem(spiritualityhelm); HonestyGorget honestygorget = new HonestyGorget(); honestygorget.Movable = false; AddItem(honestygorget); JusticeBreastplate justicebreastplate = new JusticeBreastplate(); justicebreastplate.Movable = false; AddItem(justicebreastplate); BodySash bodysash = new BodySash(); bodysash.Movable = false; bodysash.Name = "ForgottenOne"; AddItem(bodysash); CompassionArms compassionarms = new CompassionArms(); compassionarms.Movable = false; AddItem(compassionarms); ValorGauntlets valorgauntlets = new ValorGauntlets(); valorgauntlets.Movable = false; AddItem(valorgauntlets); HonorLegs honorlegs = new HonorLegs(); honorlegs.Movable = false; AddItem(honorlegs); SacrificeSollerets sacrificesollerets = new SacrificeSollerets(); sacrificesollerets.Movable = false; AddItem(sacrificesollerets); // PlateChest chest = new PlateChest(); // chest.Movable = false; // chest.Hue = 137; // AddItem(chest); VampiriacSteed vampiriacsteed = new VampiriacSteed(); vampiriacsteed.Hue = 2412; //horse.Hits = 200; //horse.Karma = 500; vampiriacsteed.Rider = this; //new VampiriacSteed().Rider = this; vikingsword.Hue = 2412; chaosshield.Hue = 2412; cloak.Hue = 2412; spiritualityhelm.Hue = 137; honestygorget.Hue = 137; justicebreastplate.Hue = 137; bodysash.Hue = 2412; compassionarms.Hue = 137; valorgauntlets.Hue = 137; honorlegs.Hue = 137; sacrificesollerets.Hue = 137; }
public ChaosDragoonElite() : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.15, 0.4) { Body = 0x190; Hue = Race.Human.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; res = Utility.Random(6) switch { 0 => CraftResource.BlackScales, 1 => CraftResource.RedScales, 2 => CraftResource.BlueScales, 3 => CraftResource.YellowScales, 4 => CraftResource.GreenScales, 5 => CraftResource.WhiteScales, _ => res }; var melee = Utility.Random(3) switch { 0 => (BaseWeapon) new Kryss(), 1 => new Broadsword(), 2 => new Katana(), _ => null }; 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; } res = Utility.Random(9) switch { 0 => CraftResource.DullCopper, 1 => CraftResource.ShadowIron, 2 => CraftResource.Copper, 3 => CraftResource.Bronze, 4 => CraftResource.Gold, 5 => CraftResource.Agapite, 6 => CraftResource.Verite, 7 => CraftResource.Valorite, 8 => CraftResource.Iron, _ => res }; SwampDragon mt = new SwampDragon(); mt.HasBarding = true; mt.BardingResource = res; mt.BardingHP = mt.BardingMaxHP; mt.Rider = this; }
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 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 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 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 Junin() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.175, 0.3) { Name = "Junin Pince"; //Title= ""; Hue = 2221; Body = 400; SpeechHue = 2305; BaseSoundID = 0; Team = 0; //new EtherealHorse().Rider = this; SetStr(275, 375); SetDex(190, 225); SetInt(0, 0); SetHits(330, 475); SetSkill(SkillName.Tactics, 100.7, 100.4); SetSkill(SkillName.MagicResist, 150.4, 150.7); SetSkill(SkillName.Swords, 110.4, 110.7); SetSkill(SkillName.Anatomy, 110.4, 110.7); SetSkill(SkillName.Parry, 75.1, 100.1); Fame = 15000; Karma = -15000; VirtualArmor = 75; Item VikingSword = new VikingSword(); VikingSword.Movable = false; VikingSword.Hue = 1249; EquipItem(VikingSword); Item ChaosShield = new ChaosShield(); ChaosShield.Movable = false; ChaosShield.Hue = 1253; EquipItem(ChaosShield); //Item BoneHelm = new BoneHelm(); //BoneHelm.Movable=false; //BoneHelm.Hue=38; //EquipItem( BoneHelm ); Item HoodedShroudOfShadows = new HoodedShroudOfShadows(); HoodedShroudOfShadows.Movable = false; HoodedShroudOfShadows.Hue = 1249; HoodedShroudOfShadows.Name = "death shroud"; EquipItem(HoodedShroudOfShadows); Item PlateGloves = new PlateGloves(); PlateGloves.Movable = false; PlateGloves.Hue = 1; EquipItem(PlateGloves); //Item LongPants = new LongPants(); //LongPants.Movable=false; //LongPants.Hue=1; //EquipItem( LongPants ); Item Sandals = new Sandals(); Sandals.Movable = false; Sandals.Hue = 1; EquipItem(Sandals); //Item Cloak = new Cloak(); //Cloak.Movable=false; //Cloak.Hue=0xFFFF; //EquipItem( Cloak ); Item hair = new Item(0x203B); hair.Hue = 2306; hair.Layer = Layer.Hair; hair.Movable = false; AddItem(hair); PackGold(400, 3000); PackArmor(0, 5); PackWeapon(0, 5); PackArmor(0, 2); PackWeapon(0, 2); switch (Utility.Random(2)) { case 0: PackItem(new JuninSoul()); break; } }