[DiscordArchive] OnGossipSelect for Fairbanks works off of uiAction which I thought was the fifth arguement for AddGo
[DiscordArchive] OnGossipSelect for Fairbanks works off of uiAction which I thought was the fifth arguement for AddGo
Archived author: whatwere • Posted: 2022-07-17T21:18:08.328000+00:00
Original source
OnGossipSelect for Fairbanks works off of uiAction which I thought was the fifth arguement for AddGossipItemFor but it seems to not work that way for me?
Archived author: whatwere • Posted: 2022-07-17T21:21:19.019000+00:00
Original source
It seems that instead of using the fifth arguement it instead sends the position in the UI.
Archived author: whatwere • Posted: 2022-07-17T21:22:07.489000+00:00
Original source
Maybe it's because I'm using sGossipSelect?
Archived author: Revision • Posted: 2022-07-17T21:23:12.706000+00:00
Original source
The fifth argument for the default `AddGossipItemFor` is actionId in every case
Archived author: whatwere • Posted: 2022-07-17T21:24:12.780000+00:00
Original source
It's swapped for some reason?
``` unit->AI()->sGossipSelect(_player, menuId, gossipListId);
if (!sScriptMgr->OnGossipSelect(_player, unit, _player->PlayerTalkClass->GetGossipOptionSender(gossipListId), _player->PlayerTalkClass->GetGossipOptionAction(gossipListId)))
_player->OnGossipSelect(unit, gossipListId, menuId);```
Archived author: whatwere • Posted: 2022-07-17T21:24:26.953000+00:00
Original source
sGossipSelect menuID is second, OnGossipSelect menuID is third
Archived author: whatwere • Posted: 2022-07-17T21:24:35.420000+00:00
Original source
Inside
void WorldSession::HandleGossipSelectOptionOpcode(WorldPacket& recv_data)
Archived author: whatwere • Posted: 2022-07-17T21:28:25.963000+00:00
Original source
Even swapping that doesn't seem to work, not sure what the problem is.