Core/Packets: Added most of the chat packets

This commit is contained in:
Intel
2014-11-17 20:41:16 +02:00
parent da37723b5f
commit dbb102e647
11 changed files with 455 additions and 619 deletions

View File

@@ -634,6 +634,7 @@ void ChatHandler::BuildChatPacket(WorldPackets::Chat::Chat* packet, ChatMsg chat
uint32 achievementId /*= 0*/, std::string const& channelName /*= ""*/, LocaleConstant locale /*= DEFAULT_LOCALE*/, std::string const& addonPrefix /*= ""*/)
{
// Clear everything because same packet can be used multiple times
packet->Reset();
packet->SenderGUID.Clear();
packet->SenderAccountGUID.Clear();
packet->SenderGuildGUID.Clear();
@@ -655,7 +656,7 @@ void ChatHandler::BuildChatPacket(WorldPackets::Chat::Chat* packet, ChatMsg chat
if (Player const* playerSender = sender->ToPlayer())
{
packet->SenderAccountGUID = ObjectGuid::Create<HighGuid::WowAccount>(playerSender->GetSession()->GetAccountId());
packet->SenderAccountGUID = playerSender->GetSession()->GetAccountGUID();
packet->ChatFlags = playerSender->GetChatFlags();
if (Guild const* guild = playerSender->GetGuild())