Example #1
0
        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));
            }
        }
Example #2
0
        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.
            }
        }