[DiscordArchive] intid?
[DiscordArchive] intid?
Archived author: Kitzunu • Posted: 2023-01-05T21:38:25.525000+00:00
Original source
intid?
Archived author: Honey • Posted: 2023-01-05T21:39:32.319000+00:00
Original source
GOSSIP_EVENT_ON_SELECT (event, player, object, sender, intid, code, menu_id)
Archived author: Honey • Posted: 2023-01-05T21:39:42.353000+00:00
Original source
intid is the id of the clicked gossip choice
Archived author: Honey • Posted: 2023-01-05T21:40:19.546000+00:00
Original source
i think it's `action` in C++ gossips
Archived author: Kitzunu • Posted: 2023-01-05T21:40:43.431000+00:00
Original source
what is the C++ hook? I dont speak eluna kek
Archived author: Kitzunu • Posted: 2023-01-05T21:44:02.412000+00:00
Original source
I dont find a hook that takes that many parameters in the core...
Archived author: Kitzunu • Posted: 2023-01-05T21:44:09.247000+00:00
Original source
My best guess would be
```cpp
void OnGossipSelect(WorldObject* source, uint32 gossipListId, uint32 menuId);
```
Archived author: Kitzunu • Posted: 2023-01-05T21:44:17.119000+00:00
Original source
where your intid would be gossipListId?
tring& code)Archived author: Honey • Posted: 2023-01-05T21:45:03.386000+00:00
Original source
```cpp
void Eluna::HandleGossipSelectOption(Player* pPlayer, uint32 menuId, uint32 sender, uint32 action, const std:
tring& code)
{
START_HOOK(PlayerGossipBindings, GOSSIP_EVENT_ON_SELECT, menuId);
pPlayer->PlayerTalkClass->ClearMenus();
Push(pPlayer); // receiver
Push(pPlayer); // sender, just not to mess up the amount of args.
Push(sender);
Push(action);
if (code.empty())
Push();
else
Push(code);
CallAllFunctions(PlayerGossipBindings, key);
```
This is what i've found.
Archived author: Honey • Posted: 2023-01-05T21:45:05.797000+00:00
Original source
<https://www.azerothcore.org/pages/eluna/Global/RegisterCreatureGossipEvent.html>