[DiscordArchive] The first SQL queries on that link is that how you do it?
[DiscordArchive] The first SQL queries on that link is that how you do it?
Archived author: Roddan • Posted: 2023-08-05T21:13:46.863000+00:00
Original source
The first SQL queries on that link is that how you do it?
Archived author: Roddan • Posted: 2023-08-05T21:14:51.402000+00:00
Original source
Let's say this one ```GOSSIP_USE_OUTHOUSE``` I don't see any ID for it in the C++
Archived author: Kitzunu • Posted: 2023-08-05T21:18:05.583000+00:00
Original source
yep.
`gossip_menu` adds the menu page.
`gossip_menu_options` the clickable options, like "Use the book!"
If the gossip is added through C++ you only need this and reference it in `AddGossipItemFor()`
If you do it all in DB, aka convert the C++ script to DB. You will need to update `creature_template`.`gossip_menu_id` to `gossip_menu`.`MenuID`
iirc MenuID is a sniffed field though
Archived author: Roddan • Posted: 2023-08-05T21:18:47.513000+00:00
Original source
I have it sniffed from retail
Archived author: Kitzunu • Posted: 2023-08-05T21:18:58.406000+00:00
Original source
awesome
Archived author: Kitzunu • Posted: 2023-08-05T21:19:11.530000+00:00
Original source
also for your question about GOSSIP_USE_OUTHOUSE
Archived author: Kitzunu • Posted: 2023-08-05T21:19:19.486000+00:00
Original source
you have
Archived author: Roddan • Posted: 2023-08-05T21:20:02.414000+00:00
Original source
Do you have to know what it's called in the Sniff when it comes to MenuID?
tring const& text, uint32 sender, uint32 action);
tring const& text, uint32 sender, uint32 action, std:
tring const& popupText, uint32 popupMoney, bool coded);Archived author: Kitzunu • Posted: 2023-08-05T21:20:23.975000+00:00
Original source
```cpp
#define GOSSIP_USE_OUTHOUSE "Use the outhouse."
// Using provided text, not from DB
void AddGossipItemFor(Player* player, uint32 icon, std:
tring const& text, uint32 sender, uint32 action);
// Using provided texts, not from DB
void AddGossipItemFor(Player* player, uint32 icon, std:
tring const& text, uint32 sender, uint32 action, std:
tring const& popupText, uint32 popupMoney, bool coded);
// Uses gossip item info from DB
void AddGossipItemFor(Player* player, uint32 gossipMenuID, uint32 gossipMenuItemID, uint32 sender, uint32 action, uint32 boxMoney = 0);
```
which is used in the AddGossipItemFor().
AddGossipItemFor() can take both string input, and gossipMenuID input from DB
Archived author: Kitzunu • Posted: 2023-08-05T21:20:53.581000+00:00
Original source
I am not good with sniffs... I will do a scarry thing and ping <@546729924874993665> and hope I dont get murdered x)