protected override void OnTarget(Mobile m, object o) { if (o is Item) { Item IT = (Item)o; if (IT.Parent != m.Backpack) { m.SendLocalizedMessage(1042001); box.NG(m, box); } else if (IT is BaseTool) { BaseTool j = (BaseTool)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } else if (IT is BaseHarvestTool) { BaseHarvestTool j = (BaseHarvestTool)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } else { m.SendMessage("I'm sorry but I do not recognize this type"); box.NG(m, box); } } else { m.SendMessage("I'm sorry but I do not recognize this type"); box.NG(m, box); } }
public override void GetContextMenuEntries(Mobile from, List <ContextMenuEntry> list) { base.GetContextMenuEntries(from, list); if (HarvestSystem != null) { BaseHarvestTool.AddContextMenuEntries(from, this, list, HarvestSystem); } }
protected override void OnTarget(Mobile m, object o) { if (o is Item) { Item IT = (Item)o; if (IT.Parent != m.Backpack) { m.SendLocalizedMessage(1042001); box.NG(m, box); } else if (IT is BaseTool) { BaseTool j = (BaseTool)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } else if (IT is BaseHarvestTool) { BaseHarvestTool j = (BaseHarvestTool)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } //Modded this from to else if (IT is Hatchet || IT is SturdyHatchet || IT is Pickaxe || IT is SturdyPickaxe) else if (IT is Hatchet || IT is Pickaxe || IT is SturdyPickaxe) { BaseAxe j = (BaseAxe)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } else if (IT is ProspectorsTool) { ProspectorsTool j = (ProspectorsTool)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } else if (IT is GargoylesPickaxe) { GargoylesPickaxe j = (GargoylesPickaxe)IT; int uses = j.UsesRemaining; box.AddTool(m, j, uses, box); } else if (IT is BaseAxe) { m.SendMessage("I do not take axe other than pickaxe and gargoyle pickaxe."); box.NG(m, box); } else { m.SendMessage("I'm sorry but I do not recognize this type"); box.NG(m, box); } } else { m.SendMessage("I'm sorry but I do not recognize this type"); box.NG(m, box); } }
public override void GetContextMenuEntries(Mobile from, List <ContextMenuEntry> list) { base.GetContextMenuEntries(from, list); BaseHarvestTool.AddContextMenuEntries(from, this, list, Fishing.System); }