public override void Confirm(Mobile from) { if (From == null) { return; } if (!CanConvertArmor(Armor)) { from.SendLocalizedMessage(1154119); // This action would exceed a stat cap return; } if (From.Account == null || !From.Account.WithdrawGold(250000)) { From.SendLocalizedMessage(1019022); // You do not have enough gold. return; } if (Armor.ArmorAttributes.MageArmor > 0) { Armor.ArmorAttributes.MageArmor = 0; } else { Armor.ArmorAttributes.MageArmor = 1; } Armor.InvalidateProperties(); From.SendLocalizedMessage(1154118); // Your armor has been converted. }