SphereCommunity
Removing items from context menu - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Removing items from context menu (/Thread-Removing-items-from-context-menu)



Removing items from context menu - Vendetta - 05-05-2012 07:02 AM

can, and if yes, how items can be removed from context menu.
for example on pets. i wish to remove command: drop


any sugestions? :\


RE: Removing items from context menu - Shaklaban - 05-05-2012 07:52 AM

you can use return 1 for override them on @contextmenurequest, little example for vendors:

PHP Code:
ON=@ContextMenuRequest
    src
.addcontextentry 205,6123
    src
.addcontextentry 200,6103
    src
.addcontextentry 201,6104
    
return 1

ON
=@ContextMenuSelect
if (<argn>=200)
    
buy
elif 
(<argn>=201)
    
sell    
elif 
(<argn>=205)
    
openpaperdoll
endif 



RE: Removing items from context menu - Vendetta - 05-05-2012 08:04 PM

thanks alot