mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Scripts/Gossips: Set gossip menu id for scripts that load menu items from database
(cherry picked from commit 900a2f6d88)
This commit is contained in:
@@ -29,6 +29,11 @@ uint32 GetGossipActionFor(Player* player, uint32 gossipListId)
|
||||
return player->PlayerTalkClass->GetGossipOptionAction(gossipListId);
|
||||
}
|
||||
|
||||
void InitGossipMenuFor(Player* player, uint32 menuId)
|
||||
{
|
||||
player->PlayerTalkClass->GetGossipMenu().SetMenuId(menuId);
|
||||
}
|
||||
|
||||
void ClearGossipMenuFor(Player* player)
|
||||
{
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
|
||||
@@ -88,6 +88,7 @@ enum eTradeskill
|
||||
|
||||
uint32 TC_GAME_API GetGossipSenderFor(Player* player, uint32 menuId);
|
||||
uint32 TC_GAME_API GetGossipActionFor(Player* player, uint32 gossipListId);
|
||||
void TC_GAME_API InitGossipMenuFor(Player* player, uint32 menuId);
|
||||
void TC_GAME_API ClearGossipMenuFor(Player* player);
|
||||
// Using provided text, not from DB
|
||||
void TC_GAME_API AddGossipItemFor(Player* player, GossipOptionNpc optionNpc, std::string const& text, uint32 sender, uint32 action);
|
||||
|
||||
Reference in New Issue
Block a user