Code: Select all
procedure SetContextMenuHook(MenuID : Cardinal; EntryNumber : Byte)
Code: Select all
procedure SetContextMenuHook(MenuID : Cardinal; EntryNumber : Byte)
menuID = npc ID, you can see menu content in uo jounral tab when menu requested by client or by function RequestContextMenu. Or use function GetContextMenu for get content of menu. Also EntryNumber can be seen ibidRay wrote:What is the MenuID and how can I get it?Code: Select all
procedure SetContextMenuHook(MenuID : Cardinal; EntryNumber : Byte)
Code: Select all
Program ContextMenu;
Const
NPCID = $0052F8B9;
begin
RequestContextMenu(NPCID);
end.
Code: Select all
[15:31:24:500] System: ContexMenu! MenuID $0052F8B9 EntriesNumber: 03
[15:31:24:500] System: Entry0: Tag $0208 Flags: 0000 Text: Open Paperdoll
[15:31:24:500] System: Entry1: Tag $006E Flags: 0000 Text: Buy
[15:31:24:500] System: Entry2: Tag $006F Flags: 0000 Text: Sell
Code: Select all
17:13:19:231: Ray, Client -> Server: 0xBF, len: 11
0000: BF 00 0B 00 15 00 52 FB 6A 00 01
Code: Select all
17:14:40:780: Ray, Client -> Server: 0xBF, len: 11
0000: BF 00 0B 00 15 00 52 FB 6A 00 6E
Code: Select all
[17:13:19:215] System: ContexMenu! MenuID $0052FB6A EntriesNumber: 03
[17:13:19:215] System: Entry0: Tag $0208 Flags: 0000 Text: Open Paperdoll
[17:13:19:215] System: Entry1: Tag $006E Flags: 0000 Text: Buy
[17:13:19:215] System: Entry2: Tag $006F Flags: 0000 Text: Sell