Core/Gossip: implement another way to do gossip macros(like in TC). (#572)

This commit is contained in:
Кирилл
2017-08-20 18:30:13 +03:00
committed by Yehonal
parent 245d3f87f8
commit 20fed1bc48
2 changed files with 32 additions and 0 deletions

View File

@@ -68,6 +68,18 @@ enum eTradeskill
GOSSIP_SENDER_SEC_STABLEMASTER = 10
};
class Creature;
void ClearGossipMenuFor(Player* player);
// Using provided text, not from DB
void AddGossipItemFor(Player* player, uint32 icon, const char* text, uint32 sender, uint32 action);
// Using provided texts, not from DB
void AddGossipItemFor(Player* player, uint32 icon, const char* text, uint32 sender, uint32 action, const char* popupText, uint32 popupMoney, bool coded);
// Uses gossip item info from DB
void AddGossipItemFor(Player* player, uint32 gossipMenuID, uint32 gossipMenuItemID, uint32 sender, uint32 action);
void SendGossipMenuFor(Player* player, uint32 npcTextID, uint64 const& guid);
void SendGossipMenuFor(Player* player, uint32 npcTextID, Creature const* creature);
void CloseGossipMenuFor(Player* player);
// Defined fuctions to use with player.
// This fuction add's a menu item,