[DiscordArchive] guys, how do I add a confirm option to this gossip menu?
[DiscordArchive] guys, how do I add a confirm option to this gossip menu?
Archived author: Chaz • Posted: 2019-04-18T12:16:20.926000+00:00
Original source
guys, how do I add a confirm option to this gossip menu?
Archived author: Chaz • Posted: 2019-04-18T12:16:21.532000+00:00
Original source
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, "Argent Crusade", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
Archived author: Chaz • Posted: 2019-04-18T12:16:33.655000+00:00
Original source
"i.e. are you sure you want to purchase"
Archived author: Chaz • Posted: 2019-04-18T12:16:34.295000+00:00
Original source
?
Archived author: Bogir • Posted: 2019-04-18T12:26:37.049000+00:00
Original source
<@!207901137267851264> try to use
```cpp
// Uses gossip item info from DB
void AddGossipItemFor(Player* player, uint32 gossipMenuID, uint32 gossipMenuItemID, uint32 sender, uint32 action)
{
player->PlayerTalkClass->GetGossipMenu().AddMenuItem(gossipMenuID, gossipMenuItemID, sender, action);
}
```
Archived author: Claudiodfc • Posted: 2019-04-18T12:26:56.455000+00:00
Original source
you need a function for whenever a gossip is selected and then get the GOSSIP_ACTION_INFO_DEF
Archived author: Chaz • Posted: 2019-04-18T12:34:27.315000+00:00
Original source
fixed it
Archived author: Chaz • Posted: 2019-04-18T12:34:36.413000+00:00
Original source
sorry
Archived author: Chaz • Posted: 2019-04-18T12:34:45.965000+00:00
Original source
player->ADD_GOSSIP_ITEM_EXTENDED(GOSSIP_ICON_CHAT, "Argent Crusade", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1, "Are you sure you wish to purchase?", 0, false);
Archived author: Chaz • Posted: 2019-04-18T12:34:52.749000+00:00
Original source
that worked ^