public override void OnClick() { if (!Core.ML || this.m_Vendor == null || this.m_Vendor.Deleted) { return; } WeaponEngravingTool tool = WeaponEngravingTool.Find(this.m_From); if (tool != null && tool.UsesRemaining <= 0) { if (Banker.GetBalance(this.m_From) >= 100000) { this.m_From.SendGump(new WeaponEngravingTool.ConfirmGump(tool, this.m_Vendor)); } else { this.m_Vendor.Say(1076167); // You need a 100,000 gold and a blue diamond to recharge the weapon engraver. } } else { this.m_Vendor.Say(1076164); // I can only help with this if you are carrying an engraving tool that needs repair. } }
public override void AddCustomContextEntries(Mobile from, List <ContextMenuEntry> list) { if (Core.ML && from.Alive) { RechargeEntry entry = new RechargeEntry(from, this); if (WeaponEngravingTool.Find(from) == null) { entry.Enabled = false; } list.Add(entry); } base.AddCustomContextEntries(from, list); }