public override void OnDoubleClick(Mobile from)
        {
            from.SendMessage("What creature do you want to look up?");
            Target t = new BookTarget(this);

            from.Target = t;
            from.SendSound(0x55);
        }
Example #2
0
        public override void OnDoubleClick(Mobile from)
        {
            if (Charges > 0)
            {
                Target t;

                if (!IsChildOf(from.Backpack))
                {
                    from.SendLocalizedMessage(1060640);                       // The item must be in your backpack to use it.
                }
                else
                {
                    from.SendMessage("What do you want to research with this?");
                    t           = new BookTarget(this);
                    from.Target = t;
                }
            }
            else
            {
                from.SendMessage("Finding nothing about it, you throw it away.");
                this.Delete();
            }
        }