Core/Gossip: Add new helper method to ScriptedGossip for resolving menuId -> sender (PR #25293)

(cherry picked from commit db8bdaa08f)
This commit is contained in:
Maks Szokalski
2020-08-21 00:47:03 +02:00
committed by Shauren
parent 669b6bea21
commit b5d0a94ead
2 changed files with 6 additions and 0 deletions

View File

@@ -19,6 +19,11 @@
#include "Creature.h"
#include "Player.h"
uint32 GetGossipSenderFor(Player* player, uint32 menuId)
{
return player->PlayerTalkClass->GetGossipOptionSender(menuId);
}
uint32 GetGossipActionFor(Player* player, uint32 gossipListId)
{
return player->PlayerTalkClass->GetGossipOptionAction(gossipListId);

View File

@@ -86,6 +86,7 @@ enum eTradeskill
GOSSIP_SENDER_SEC_STABLEMASTER = 10
};
uint32 TC_GAME_API GetGossipSenderFor(Player* player, uint32 menuId);
uint32 TC_GAME_API GetGossipActionFor(Player* player, uint32 gossipListId);
void TC_GAME_API ClearGossipMenuFor(Player* player);
// Using provided text, not from DB