Core/Text: Add support for BroadcastTextID in creature_text table. (#265)

This commit is contained in:
sucofog
2016-12-02 11:30:39 +01:00
committed by Francesco Borzì
parent 6d740d4ab1
commit 09419e53b8
7 changed files with 53 additions and 27 deletions
@@ -1619,7 +1619,7 @@ class instance_icecrown_citadel : public InstanceMapScript
if (player->GetQuestStatus(QUEST_A_FEAST_OF_SOULS) == QUEST_STATUS_INCOMPLETE)
{
uint8 id = urand(0, 15);
std::string const& text = sCreatureTextMgr->GetLocalizedChatString(NPC_THE_LICH_KING_LH, 20+id, 0, LOCALE_enUS);
std::string const& text = sCreatureTextMgr->GetLocalizedChatString(NPC_THE_LICH_KING_LH, 0, 20 + id, 0, LOCALE_enUS);
WorldPacket data;
ChatHandler::BuildChatPacket(data, CHAT_MSG_MONSTER_WHISPER, LANG_UNIVERSAL, 0, player->GetGUID(), text, CHAT_TAG_NONE, "The Lich King");
player->SendPlaySound(17235 + id, true);