private Item RandomOre(IEntity e) { Item orepile = null; switch (Utility.Random(4)) { case 0: orepile = new DullCopperOre(); break; case 1: orepile = new ShadowIronOre(); break; case 2: orepile = new CopperOre(); break; default: orepile = new BronzeOre(); break; } orepile.ItemID = 0x19B9; return(orepile); }
public ShadowIronElemental(int oreAmount) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { this.Name = "a shadow iron elemental"; this.Body = 111; this.BaseSoundID = 268; this.SetStr(226, 255); this.SetDex(126, 145); this.SetInt(71, 92); this.SetHits(136, 153); this.SetDamage(9, 16); this.SetDamageType(ResistanceType.Physical, 100); this.SetResistance(ResistanceType.Physical, 30, 40); this.SetResistance(ResistanceType.Fire, 30, 40); this.SetResistance(ResistanceType.Cold, 20, 30); this.SetResistance(ResistanceType.Poison, 10, 20); this.SetResistance(ResistanceType.Energy, 30, 40); this.SetSkill(SkillName.MagicResist, 50.1, 95.0); this.SetSkill(SkillName.Tactics, 60.1, 100.0); this.SetSkill(SkillName.Wrestling, 60.1, 100.0); this.Fame = 4500; this.Karma = -4500; Item ore = new ShadowIronOre(oreAmount); ore.ItemID = 0x19B9; this.PackItem(ore); }
public ShadowIronElemental(int oreAmount = 2) : base(AIType.AI_Melee) { Body = 111; BaseSoundID = 268; SetStr(226, 255); SetDex(126, 145); SetInt(71, 92); SetHits(136, 153); SetDamage(9, 16); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 30, 40); SetResistance(ResistanceType.Fire, 30, 40); SetResistance(ResistanceType.Cold, 20, 30); SetResistance(ResistanceType.Poison, 10, 20); SetResistance(ResistanceType.Energy, 30, 40); SetSkill(SkillName.MagicResist, 50.1, 95.0); SetSkill(SkillName.Tactics, 60.1, 100.0); SetSkill(SkillName.Wrestling, 60.1, 100.0); Fame = 4500; Karma = -4500; VirtualArmor = 23; Item ore = new ShadowIronOre(oreAmount); ore.ItemID = 0x19B9; PackItem(ore); }
public ShadowIronElemental(int oreAmount) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 111; BaseSoundID = 268; Hue = m_DefaultHue; Alignment = Alignment.Elemental; SetStr(226, 255); SetDex(126, 145); SetInt(71, 92); SetHits(136, 153); SetDamage(9, 16); SetSkill(SkillName.MagicResist, 50.1, 95.0); SetSkill(SkillName.Tactics, 60.1, 100.0); SetSkill(SkillName.Wrestling, 60.1, 100.0); Fame = 4500; Karma = -4500; VirtualArmor = 23; Item ore = new ShadowIronOre(oreAmount); ore.ItemID = 0x19B9; PackItem(ore); }
public AntLion() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "an ant lion"; Body = 787; BaseSoundID = 1006; SetStr(296, 320); SetDex(81, 105); SetInt(36, 60); SetHits(151, 162); SetDamage(7, 21); SetDamageType(ResistanceType.Physical, 70); SetDamageType(ResistanceType.Poison, 30); SetResistance(ResistanceType.Physical, 45, 60); SetResistance(ResistanceType.Fire, 25, 35); SetResistance(ResistanceType.Cold, 30, 40); SetResistance(ResistanceType.Poison, 40, 50); SetResistance(ResistanceType.Energy, 30, 35); SetSkill(SkillName.MagicResist, 70.0); SetSkill(SkillName.Tactics, 90.0); SetSkill(SkillName.Wrestling, 90.0); Fame = 4500; Karma = -4500; VirtualArmor = 45; PackItem(new Bone(3)); PackItem(new FertileDirt(Utility.RandomMinMax(1, 5))); if (Core.ML && Utility.RandomDouble() < .33) { PackItem(Engines.Plants.Seed.RandomPeculiarSeed(2)); } Item orepile = null; /* no trust, no love :( */ switch (Utility.Random(4)) { case 0: orepile = new DullCopperOre(); break; case 1: orepile = new ShadowIronOre(); break; case 2: orepile = new CopperOre(); break; default: orepile = new BronzeOre(); break; } orepile.Amount = Utility.RandomMinMax(1, 10); orepile.ItemID = 0x19B9; PackItem(orepile); // TODO: skeleton }
public override void OnDeath(Container c) { base.OnDeath(c); Item ore = new ShadowIronOre(Utility.RandomMinMax(5, 10)); ore.ItemID = 0x19B7; c.DropItem(ore); }
public AntLion() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 787; BaseSoundID = 1006; SetStr(296, 320); SetDex(81, 105); SetInt(36, 60); SetHits(151, 162); SetDamage(7, 21); SetSkill(SkillName.MagicResist, 70.0); SetSkill(SkillName.Tactics, 90.0); SetSkill(SkillName.Wrestling, 90.0); Fame = 4500; Karma = -4500; VirtualArmor = 45; PackItem(new Bone(3)); PackItem(new FertileDirt(Utility.RandomMinMax(1, 5))); Item orepile = null; /* no trust, no love :( */ switch (Utility.Random(4)) { case 0: orepile = new DullCopperOre(); break; case 1: orepile = new ShadowIronOre(); break; case 2: orepile = new CopperOre(); break; default: orepile = new BronzeOre(); break; } orepile.Amount = Utility.RandomMinMax(1, 10); orepile.ItemID = 0x19B9; PackItem(orepile); PackItem(new FertileDirt(Utility.RandomMinMax(1, 5))); // TODO: skeleton }
public OrcBrute() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 189; Name = "an orc brute"; BaseSoundID = 0x45A; SetStr(767, 945); SetDex(66, 75); SetInt(46, 70); SetHits(476, 552); SetDamage(20, 25); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 45, 55); SetResistance(ResistanceType.Fire, 40, 50); SetResistance(ResistanceType.Cold, 25, 35); SetResistance(ResistanceType.Poison, 25, 35); SetResistance(ResistanceType.Energy, 25, 35); SetSkill(SkillName.Macing, 90.1, 100.0); SetSkill(SkillName.MagicResist, 125.1, 140.0); SetSkill(SkillName.Tactics, 90.1, 100.0); SetSkill(SkillName.Wrestling, 90.1, 100.0); Fame = 15000; Karma = -15000; VirtualArmor = 50; Item ore = new ShadowIronOre(25); ore.ItemID = 0x19B9; PackItem(ore); PackItem(new IronIngot(10)); if (0.05 > Utility.RandomDouble()) { PackItem(new OrcishKinMask()); } if (0.2 > Utility.RandomDouble()) { PackItem(new BolaBall()); } PackItem(new Yeast()); }
public override void OnDeath(Container CorpseLoot) { CorpseLoot.DropItem(new Bone(3)); CorpseLoot.DropItem(new FertileDirt(Utility.RandomMinMax(1, 5))); if (Core.ML && Utility.RandomDouble() < .33) { CorpseLoot.DropItem(Engines.Plants.Seed.RandomPeculiarSeed(3)); } Item orepile; switch (Utility.Random(4)) { case 0: orepile = new DullCopperOre(); break; case 1: orepile = new ShadowIronOre(); break; case 2: orepile = new CopperOre(); break; default: orepile = new BronzeOre(); break; } orepile.Amount = Utility.RandomMinMax(1, 10); orepile.ItemID = 0x19B9; CorpseLoot.DropItem(orepile); if (0.07 >= Utility.RandomDouble()) { switch (Utility.Random(3)) { case 0: CorpseLoot.DropItem(new UnknownBardSkeleton()); break; case 1: CorpseLoot.DropItem(new UnknownMageSkeleton()); break; case 2: CorpseLoot.DropItem(new UnknownRogueSkeleton()); break; } } // PackBones(); base.OnDeath(CorpseLoot); }
public TrojanWarrior() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Body = 189; Hue = 0x21; Name = "a trojan warrior"; BaseSoundID = 0x45A; SetStr(200, 300); SetDex(66, 75); SetInt(46, 70); SetHits(76, 92); SetDamage(7, 9); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 45, 55); SetResistance(ResistanceType.Fire, 40, 50); SetResistance(ResistanceType.Cold, 25, 35); SetResistance(ResistanceType.Poison, 25, 35); SetResistance(ResistanceType.Energy, 25, 35); SetSkill(SkillName.Macing, 90.1, 100.0); SetSkill(SkillName.MagicResist, 125.1, 140.0); SetSkill(SkillName.Tactics, 90.1, 100.0); SetSkill(SkillName.Wrestling, 90.1, 100.0); Fame = 3500; Karma = -3500; VirtualArmor = 50; Item ore = new ShadowIronOre(25); ore.ItemID = 0x19B9; PackItem(ore); PackItem(new VeriteIngot(10)); if (0.1 > Utility.RandomDouble()) { PackItem(new PlatinumCoin()); } if (0.5 > Utility.RandomDouble()) { PackItem(new OrcishVisage()); } }
public override void OnDeath(Container c) { base.OnDeath(c); if (this.RealName == "a golden sculpture") { Item ore = new GoldOre(Utility.RandomMinMax(5, 10)); ore.ItemID = 0x19B7; c.DropItem(ore); } else if (this.RealName == "an iron sculpture") { Item ore = new IronOre(Utility.RandomMinMax(5, 10)); ore.ItemID = 0x19B7; c.DropItem(ore); } else if (this.RealName == "a jade sculpture") { RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "jade stones"); c.DropItem(stones); } else if (this.RealName == "a marble sculpture") { RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "gargish marble stones"); c.DropItem(stones); } else if (this.RealName == "a shadow iron sculpture") { Item ore = new ShadowIronOre(Utility.RandomMinMax(5, 10)); ore.ItemID = 0x19B7; c.DropItem(ore); } else if (this.RealName == "a silver sculpture") { RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "silver stones"); c.DropItem(stones); } else if (this.RealName == "a stone sculpture") { Granite granite = new Granite(); granite.Amount = 1; c.DropItem(granite); } else if (this.RealName == "a bronze sculpture") { Item ore = new BronzeOre(Utility.RandomMinMax(5, 10)); ore.ItemID = 0x19B7; c.DropItem(ore); } }
public ShadowIronElemental(int oreAmount) : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "a shadow iron elemental"; Body = 14; Hue = MaterialInfo.GetMaterialColor("shadow iron", "monster", 0); BaseSoundID = 268; SetStr(226, 255); SetDex(126, 145); SetInt(71, 92); SetHits(136, 153); SetDamage(9, 16); SetDamageType(ResistanceType.Physical, 100); SetResistance(ResistanceType.Physical, 30, 40); SetResistance(ResistanceType.Fire, 30, 40); SetResistance(ResistanceType.Cold, 20, 30); SetResistance(ResistanceType.Poison, 10, 20); SetResistance(ResistanceType.Energy, 30, 40); SetSkill(SkillName.MagicResist, 50.1, 95.0); SetSkill(SkillName.Tactics, 60.1, 100.0); SetSkill(SkillName.Wrestling, 60.1, 100.0); Fame = 4500; Karma = -4500; VirtualArmor = 23; Item ore = new ShadowIronOre(oreAmount); ore.ItemID = 0x19B9; PackItem(ore); }
public override void OnDeath(Container c) { base.OnDeath(c); if (this.RealName == "an iron grue") { Item ore = new IronOre(Utility.RandomMinMax(3, 8)); ore.ItemID = 0x19B7; c.DropItem(ore); } else if (this.RealName == "a golden grue") { Item ore = new GoldOre(Utility.RandomMinMax(3, 8)); ore.ItemID = 0x19B9; c.DropItem(ore); } else if (this.RealName == "a shadow iron grue") { Item ore = new ShadowIronOre(Utility.RandomMinMax(3, 8)); ore.ItemID = 0x19B9; c.DropItem(ore); } else if (this.RealName == "a valorite grue") { Item ore = new ValoriteOre(Utility.RandomMinMax(3, 8)); ore.ItemID = 0x19B9; c.DropItem(ore); } else if (this.RealName == "a verite grue") { Item ore = new VeriteOre(Utility.RandomMinMax(3, 8)); ore.ItemID = 0x19B9; c.DropItem(ore); } else if (this.RealName == "an agapite grue") { Item ore = new AgapiteOre(Utility.RandomMinMax(3, 8)); ore.ItemID = 0x19B9; c.DropItem(ore); } else if (this.RealName == "a bronze grue") { Item ore = new BronzeOre(Utility.RandomMinMax(3, 8)); ore.ItemID = 0x19B9; c.DropItem(ore); } else if (this.RealName == "a copper grue") { Item ore = new CopperOre(Utility.RandomMinMax(3, 8)); ore.ItemID = 0x19B9; c.DropItem(ore); } else if (this.RealName == "a dull copper grue") { Item ore = new DullCopperOre(Utility.RandomMinMax(3, 8)); ore.ItemID = 0x19B9; c.DropItem(ore); } else if (this.RealName == "a stone grue") { Granite granite = new Granite(); granite.Amount = Utility.RandomMinMax(1, 3); c.DropItem(granite); } }
public AntLion() : base(AIType.AI_Melee, FightMode.Closest, 10, 1, 0.2, 0.4) { Name = "an ant lion"; Body = 787; BaseSoundID = 1006; SetStr(296, 320); SetDex(81, 105); SetInt(36, 60); SetDamage(4, 8); SetDamageType(ResistanceType.Physical, 70); SetDamageType(ResistanceType.Poison, 30); SetResistance(ResistanceType.Physical, 45); SetResistance(ResistanceType.Fire, -25); SetResistance(ResistanceType.Cold, 30); SetResistance(ResistanceType.Poison, 40); SetResistance(ResistanceType.Energy, 30); SetSkill(SkillName.MagicResist, 70.0); SetSkill(SkillName.Tactics, 45.6, 54.4); SetSkill(SkillName.Wrestling, 50.7, 59.6); Fame = 4500; Karma = -4500; Tamable = true; ControlSlots = 3; MinTameSkill = 69.9; PackItem(new Bone(3)); PackItem(new FertileDirt(Utility.RandomMinMax(1, 5))); Item orepile = null; /* no trust, no love :( */ switch (Utility.Random(4)) { case 0: orepile = new DullCopperOre(); break; case 1: orepile = new ShadowIronOre(); break; case 2: orepile = new CopperOre(); break; default: orepile = new BronzeOre(); break; } orepile.Amount = Utility.RandomMinMax(45, 65); orepile.ItemID = 0x19B9; PackItem(orepile); // TODO: skeleton Container pack = Backpack; if (pack != null) { pack.Delete(); } pack = new StrongBackpack(); pack.Movable = false; AddItem(pack); }
public void ConvertOretoIngot(Mobile from) { this.Skills.Mining.Cap = 120; Container backpack = this.Backpack; BankBox bank = from.BankBox; IronOre item = (IronOre)backpack.FindItemByType(typeof(IronOre)); if (item is BaseOre) { BaseOre m_Ore = item as BaseOre; int toConsume = m_Ore.Amount; if (toConsume > 30000) { toConsume = 30000; } else if (m_Ore.Amount < 2) { m_Ore.Delete(); } BaseIngot ingot = m_Ore.GetIngot(); ingot.Amount = toConsume * 2; m_Ore.Consume(toConsume); this.PlaySound(0x57); this.AddToBackpack(item); this.AddToBackpack(ingot); } ShadowIronOre item1 = (ShadowIronOre)backpack.FindItemByType(typeof(ShadowIronOre)); if (item1 is BaseOre) { BaseOre m_Ore = item1 as BaseOre; int toConsume = m_Ore.Amount; if (toConsume > 30000) { toConsume = 30000; } else if (m_Ore.Amount < 2) { m_Ore.Delete(); } BaseIngot ingot = m_Ore.GetIngot(); ingot.Amount = toConsume * 2; m_Ore.Consume(toConsume); this.PlaySound(0x57); this.AddToBackpack(item); this.AddToBackpack(ingot); } BronzeOre item2 = (BronzeOre)backpack.FindItemByType(typeof(BronzeOre)); if (item2 is BaseOre) { BaseOre m_Ore = item2 as BaseOre; int toConsume = m_Ore.Amount; if (toConsume > 30000) { toConsume = 30000; } else if (m_Ore.Amount < 2) { m_Ore.Delete(); } BaseIngot ingot = m_Ore.GetIngot(); ingot.Amount = toConsume * 2; m_Ore.Consume(toConsume); this.PlaySound(0x57); this.AddToBackpack(item); this.AddToBackpack(ingot); } CopperOre item3 = (CopperOre)backpack.FindItemByType(typeof(CopperOre)); if (item3 is BaseOre) { BaseOre m_Ore = item3 as BaseOre; int toConsume = m_Ore.Amount; if (toConsume > 30000) { toConsume = 30000; } else if (m_Ore.Amount < 2) { m_Ore.Delete(); } BaseIngot ingot = m_Ore.GetIngot(); ingot.Amount = toConsume * 2; m_Ore.Consume(toConsume); this.PlaySound(0x57); this.AddToBackpack(item); this.AddToBackpack(ingot); } GoldOre item4 = (GoldOre)backpack.FindItemByType(typeof(GoldOre)); if (item4 is BaseOre) { BaseOre m_Ore = item4 as BaseOre; int toConsume = m_Ore.Amount; if (toConsume > 30000) { toConsume = 30000; } else if (m_Ore.Amount < 2) { m_Ore.Delete(); } BaseIngot ingot = m_Ore.GetIngot(); ingot.Amount = toConsume * 2; m_Ore.Consume(toConsume); this.PlaySound(0x57); this.AddToBackpack(item); this.AddToBackpack(ingot); } DullCopperOre item5 = (DullCopperOre)backpack.FindItemByType(typeof(DullCopperOre)); if (item5 is BaseOre) { BaseOre m_Ore = item5 as BaseOre; int toConsume = m_Ore.Amount; if (toConsume > 30000) { toConsume = 30000; } else if (m_Ore.Amount < 2) { m_Ore.Delete(); } BaseIngot ingot = m_Ore.GetIngot(); ingot.Amount = toConsume * 2; m_Ore.Consume(toConsume); this.PlaySound(0x57); this.AddToBackpack(item); this.AddToBackpack(ingot); } AgapiteOre item6 = (AgapiteOre)backpack.FindItemByType(typeof(AgapiteOre)); if (item6 is BaseOre) { BaseOre m_Ore = item6 as BaseOre; int toConsume = m_Ore.Amount; if (toConsume > 30000) { toConsume = 30000; } else if (m_Ore.Amount < 2) { m_Ore.Delete(); } BaseIngot ingot = m_Ore.GetIngot(); ingot.Amount = toConsume * 2; m_Ore.Consume(toConsume); this.PlaySound(0x57); this.AddToBackpack(item); this.AddToBackpack(ingot); } VeriteOre item7 = (VeriteOre)backpack.FindItemByType(typeof(VeriteOre)); if (item7 is BaseOre) { BaseOre m_Ore = item7 as BaseOre; int toConsume = m_Ore.Amount; if (toConsume > 30000) { toConsume = 30000; } else if (m_Ore.Amount < 2) { m_Ore.Delete(); } BaseIngot ingot = m_Ore.GetIngot(); ingot.Amount = toConsume * 2; m_Ore.Consume(toConsume); this.PlaySound(0x57); this.AddToBackpack(item); this.AddToBackpack(ingot); } ValoriteOre item8 = (ValoriteOre)backpack.FindItemByType(typeof(ValoriteOre)); if (item8 is BaseOre) { BaseOre m_Ore = item8 as BaseOre; int toConsume = m_Ore.Amount; if (toConsume > 30000) { toConsume = 30000; } else if (m_Ore.Amount < 2) { m_Ore.Delete(); } BaseIngot ingot = m_Ore.GetIngot(); ingot.Amount = toConsume * 2; m_Ore.Consume(toConsume); this.PlaySound(0x57); this.AddToBackpack(item); this.AddToBackpack(ingot); } }