public override void OnDoubleClick(Mobile from) { Server.Mobiles.PlayerMobile pm = from as Server.Mobiles.PlayerMobile; if (from.InRange(GetWorldLocation(), 1)) { pm.CloseGump(typeof(RunebookGump)); from.SendGump(new RunebookGump(from, this)); } }
public override void OnDoubleClick(Mobile from) { Server.Mobiles.PlayerMobile pm = from as Server.Mobiles.PlayerMobile; if (IsChildOf(from.Backpack)) { pm.CloseGump(typeof(LargeBODGump)); from.SendGump(new LargeBODGump(from, this)); } else { from.SendLocalizedMessage(1045156); // You must have the deed in your backpack to use it. } }