public void OnDoubleClick(Mobile from){ if(this.Parent == from){ from.Backpack.AddItem(this); } else { if((from.InRange((this), 4) && from.CanSee(this)) || this.RootParent = from){ if(this.Layer == Layer.OneHanded || this.Layer == Layer.TwoHanded) { Item oneh = from.FindItemOnLayer(Layer.OneHanded); Item twoh = from.FindItemOnLayer(Layer.TwoHanded); switch(this.Layer){ case Layer.OneHanded: { if(twoh != null && twoh is BaseWeapon) from.Backpack.AddItem(twoh); if(oneh != null) from.Backpack.AddItem(oneh); from.EquipItem(this); break; } case Layer.TwoHanded: { if(oneh != null && this is BaseWeapon) from.Backpack.AddItem(oneh); if(twoh != null) from.Backpack.AddItem(twoh); from.EquipItem(this); } } } else { Item eq = from.FindItemOnLayer(this.Layer); if(eq != null) from.Backpack.AddItem(eq); from.EquipItem(this); } } } }