Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

Search found 3 matches

by Oct
13.01.2017 18:28
Forum: Help
Topic: ContextMenu without SetContextMenuHook
Replies: 5
Views: 5490

Re: ContextMenu without SetContextMenuHook

I found my error:
SetContextMenuHook(ID, EntryNumber) has to be SetContextMenuHook(ID, EntryNumber + 1)

To activate Entry0 you have to do SetContextMenuHook(ID, 1)...
A simple index offset :oops:
by Oct
13.01.2017 10:04
Forum: Help
Topic: ContextMenu without SetContextMenuHook
Replies: 5
Views: 5490

Re: ContextMenu without SetContextMenuHook

ClearContextMenu; RequestContextMenu(VendorID : Cardinal); GetContextMenu(var list : TStringList); for i := 0 to list.Count-1 do if Pos('Quest Conversation', list[i]) then begin SetContextMenuHook(VendorID : Cardinal; i); Break; end; "SetContextMenuHook" requests a new Context-Menu. The E...
by Oct
13.01.2017 9:25
Forum: Help
Topic: ContextMenu without SetContextMenuHook
Replies: 5
Views: 5490

ContextMenu without SetContextMenuHook

On my shard we have a NPC that has a random ContextMenu (random Entries, random Positions). I get the "bad" context-Menu in 50% of the time. Clicking "Crime and Punishment" will send my char to Jail. Good: ContexMenu! MenuID $0002AF30 EntriesNumber: 04 Entry0: Tag $0000 Flags: 00...