Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[DiscordArchive] OnGossipSelect for Fairbanks works off of uiAction which I thought was the fifth arguement for AddGo

rektbyfaith
Administrator
0
07-17-2022, 09:18 PM
#1
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?
rektbyfaith
07-17-2022, 09:18 PM #1

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?

rektbyfaith
Administrator
0
07-17-2022, 09:21 PM
#2
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.
rektbyfaith
07-17-2022, 09:21 PM #2

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.

rektbyfaith
Administrator
0
07-17-2022, 09:22 PM
#3
Archived author: whatwere • Posted: 2022-07-17T21:22:07.489000+00:00
Original source

Maybe it's because I'm using sGossipSelect?
rektbyfaith
07-17-2022, 09:22 PM #3

Archived author: whatwere • Posted: 2022-07-17T21:22:07.489000+00:00
Original source

Maybe it's because I'm using sGossipSelect?

rektbyfaith
Administrator
0
07-17-2022, 09:23 PM
#4
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
rektbyfaith
07-17-2022, 09:23 PM #4

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

rektbyfaith
Administrator
0
07-17-2022, 09:24 PM
#5
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);```
rektbyfaith
07-17-2022, 09:24 PM #5

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);```

rektbyfaith
Administrator
0
07-17-2022, 09:24 PM
#6
Archived author: whatwere • Posted: 2022-07-17T21:24:26.953000+00:00
Original source

sGossipSelect menuID is second, OnGossipSelect menuID is third
rektbyfaith
07-17-2022, 09:24 PM #6

Archived author: whatwere • Posted: 2022-07-17T21:24:26.953000+00:00
Original source

sGossipSelect menuID is second, OnGossipSelect menuID is third

rektbyfaith
Administrator
0
07-17-2022, 09:24 PM
#7
Archived author: whatwere • Posted: 2022-07-17T21:24:35.420000+00:00
Original source

Inside
void WorldSession::HandleGossipSelectOptionOpcode(WorldPacket& recv_data)
rektbyfaith
07-17-2022, 09:24 PM #7

Archived author: whatwere • Posted: 2022-07-17T21:24:35.420000+00:00
Original source

Inside
void WorldSession::HandleGossipSelectOptionOpcode(WorldPacket& recv_data)

rektbyfaith
Administrator
0
07-17-2022, 09:28 PM
#8
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.
rektbyfaith
07-17-2022, 09:28 PM #8

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.

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)