Core/Chat: Refactored building chat packets
* Moved everything into one specialized method instead of being scattered all over the place * Allow localizing creature names in chat messages (when using $N) * Send SMSG_GM_MESSAGECHAT for gm messages
This commit is contained in:
1 parent
6402fa02ac
commit
107af52853
130 files changed
+766
-934
No files matched your search
@@ -481,7 +481,7 @@ public:
|
||||
char const* msg = "testtest";
|
||||
uint8 type = atoi(args);
|
||||
WorldPacket data;
|
||||
ChatHandler::FillMessageData(&data, handler->GetSession(), type, 0, "chan", handler->GetSession()->GetPlayer()->GetGUID(), msg, handler->GetSession()->GetPlayer());
|
||||
ChatHandler::BuildChatPacket(data, ChatMsg(type), LANG_UNIVERSAL, handler->GetSession()->GetPlayer(), handler->GetSession()->GetPlayer(), msg, 0, "chan");
|
||||
handler->GetSession()->SendPacket(&data);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user