I am running a LBR era (Pre-AOS) server and would like to re-enable just context menus. I know the on hover menu for item properties is typically not possible but I've never seen anyone ask about the on-click context menus (Buy/Sell/Train options on vendors or Open Paperdoll/Open Backpack/etc on players). I have a few script favorites I've used in the past that heavily rely on these context menus for their use and would like to use them still on this server.

Is this possible and can someone help me achieve this or get me started in the right direction, please?
Post automatically merged:

* This is for a ServUO server.
 
Last edited:
This is a total shot in the dark since I haven't tested it but it looks like editing the core file PacketHandlers.cs

Code:
            if (target != null && ObjectPropertyList.Enabled)
            {
                if (!state.Mobile.ViewOPL)
                {
                    HandleSingleClick(state.Mobile, target);
                }
                else
                {
                    ContextMenu.Display(state.Mobile, target);
                }
            }

to be

Code:
            if (target != null )
            {
                if (!state.Mobile.ViewOPL)
                {
                    HandleSingleClick(state.Mobile, target);
                }
                else
                {
                    ContextMenu.Display(state.Mobile, target);
                }
            }

would do the trick. You may have to tinker with it some, and don't forget to re-compile after changing!
Post automatically merged:

Pyro's post here may also be helpful to you:

 
Last edited:
C#:
if (target != null )
            {
                if (!state.Mobile.ViewOPL)
                {
                    HandleSingleClick(state.Mobile, target);
                    ContextMenu.Display(state.Mobile, target);
                }
                else
                {
                    ContextMenu.Display(state.Mobile, target);
                }
            }
this doesnt open them either
 
Back