mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
Core/Text: Add support for BroadcastTextID in creature_text table. (#265)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -1360,7 +1360,7 @@ public:
|
||||
return;
|
||||
|
||||
uint8 id = GetSpeachId();
|
||||
std::string const& text = sCreatureTextMgr->GetLocalizedChatString(me->GetEntry(), id, 0, LOCALE_enUS);
|
||||
std::string const& text = sCreatureTextMgr->GetLocalizedChatString(me->GetEntry(), 0, id, 0, LOCALE_enUS);
|
||||
WorldPacket data;
|
||||
ChatHandler::BuildChatPacket(data, CHAT_MSG_MONSTER_WHISPER, LANG_UNIVERSAL, me->GetGUID(), summoner->GetGUID(), text, CHAT_TAG_NONE, "Toalu'u the Mystic");
|
||||
summoner->ToPlayer()->SendDirectMessage(&data);
|
||||
|
||||
@@ -648,7 +648,7 @@ public:
|
||||
if (owner->ToPlayer()->GetGroup())
|
||||
{
|
||||
_hasParty = true;
|
||||
std::string const& text = sCreatureTextMgr->GetLocalizedChatString(me->GetEntry(), 0 /*text group*/, urand(0, 60) /*text id*/, LOCALE_enUS);
|
||||
std::string const& text = sCreatureTextMgr->GetLocalizedChatString(me->GetEntry(), 0, 0 /*text group*/, urand(0, 60) /*text id*/, LOCALE_enUS);
|
||||
|
||||
_data.Initialize(SMSG_MESSAGECHAT, 200); // guess size
|
||||
_data << uint8(CHAT_MSG_MONSTER_PARTY);
|
||||
|
||||
Reference in New Issue
Block a user