public override void OnDoubleClick(Mobile from) { Point3D loc = GetWorldLocation(); if (!from.InLOS(loc) || !from.InRange(loc, 2)) { from.LocalOverheadMessage(MessageType.Regular, 0x3E9, 1019045); // I can't reach that } else { //Only can equip via double click if its in your pack. if (this.Parent != from.Backpack) { return; } Item eq = from.FindItemOnLayer(this.Layer); if (eq != null) { eq.DropToMobile(from, from, Point3D.Zero); } from.EquipItem(this); Fishing.System.BeginHarvesting(from, this); } }
public override void OnDoubleClick(Mobile from) { //Only can equip via double click if its in your pack. if (this.Parent != from.Backpack) { return; } Item eq = from.FindItemOnLayer(this.Layer); if (eq != null) { eq.DropToMobile(from, from, Point3D.Zero); } from.EquipItem(this); base.OnDoubleClick(from); }