public GarnetPlateLegs() { Name = "Garnet Leggings"; Hue = Server.Misc.MaterialInfo.GetMaterialColor("garnet", "", 0); MorphingItem.MorphMyItem(this, "IGNORED", "IGNORED", "IGNORED", MorphingTemplates.TemplateGarnet("armors")); }
protected override void OnTarget(Mobile from, object targeted) { Item iOil = targeted as Item; if (from.Backpack.FindItemByType(typeof(OilCloth)) == null) { from.SendMessage("You need an oil cloth to apply this."); } else if (iOil is BaseWeapon) { BaseWeapon xOil = (BaseWeapon)iOil; if (!iOil.IsChildOf(from.Backpack)) { from.SendMessage("You can only use this oil on items in your pack."); } else if (iOil.IsChildOf(from.Backpack) && Server.Misc.MaterialInfo.IsMetalItem(iOil)) { xOil.Resource = CraftResource.None; MorphingItem.MorphMyItem(iOil, "IGNORED", "Garnet", "IGNORED", MorphingTemplates.TemplateGarnet("weapons")); from.RevealingAction(); from.PlaySound(0x23E); from.AddToBackpack(new Bottle()); m_Oil.Consume(); from.Backpack.FindItemByType(typeof(OilCloth)).Delete(); } else { from.SendMessage("You cannot rub this oil on that."); } } else if (iOil is BaseArmor) { BaseArmor xOil = (BaseArmor)iOil; if (!iOil.IsChildOf(from.Backpack)) { from.SendMessage("You can only use this oil on items in your pack."); } else if (iOil.IsChildOf(from.Backpack) && Server.Misc.MaterialInfo.IsMetalItem(iOil)) { xOil.Resource = CraftResource.None; MorphingItem.MorphMyItem(iOil, "IGNORED", "Garnet", "IGNORED", MorphingTemplates.TemplateGarnet("armors")); from.RevealingAction(); from.PlaySound(0x23E); from.AddToBackpack(new Bottle()); m_Oil.Consume(); from.Backpack.FindItemByType(typeof(OilCloth)).Delete(); } else { from.SendMessage("You cannot rub this oil on that."); } } else { from.SendMessage("You cannot rub this oil on that."); } }
public GarnetFemalePlateChest() { Name = "Garnet Female Tunic"; Hue = Server.Misc.MaterialInfo.GetMaterialColor("garnet", "", 0); MorphingItem.MorphMyItem(this, "IGNORED", "IGNORED", "IGNORED", MorphingTemplates.TemplateGarnet("armors")); }