Core/PacketIO: Implement missing packet fields
This commit is contained in:
@@ -223,6 +223,7 @@ void Channel::JoinChannel(Player* player, std::string const& pass)
|
|||||||
notify->Data.ChatChannelID = _channelId;
|
notify->Data.ChatChannelID = _channelId;
|
||||||
//notify->Data.InstanceID = 0;
|
//notify->Data.InstanceID = 0;
|
||||||
notify->Data._ChannelFlags = _channelFlags;
|
notify->Data._ChannelFlags = _channelFlags;
|
||||||
|
notify->Data.UserFlags = GetPlayerFlags(guid);
|
||||||
notify->Data._Channel = GetName(localeIdx);
|
notify->Data._Channel = GetName(localeIdx);
|
||||||
notify->Data.ChannelGUID = _channelGuid;
|
notify->Data.ChannelGUID = _channelGuid;
|
||||||
notify->Data.Write();
|
notify->Data.Write();
|
||||||
|
|||||||
@@ -263,6 +263,7 @@ void PlayerMenu::SendGossipMenu(uint32 titleTextId, ObjectGuid objectGUID)
|
|||||||
text.QuestID = questID;
|
text.QuestID = questID;
|
||||||
text.ContentTuningID = quest->GetContentTuningId();
|
text.ContentTuningID = quest->GetContentTuningId();
|
||||||
text.QuestType = item.QuestIcon;
|
text.QuestType = item.QuestIcon;
|
||||||
|
text.QuestInfoID = quest->GetQuestInfoID();
|
||||||
text.QuestFlags[0] = quest->GetFlags();
|
text.QuestFlags[0] = quest->GetFlags();
|
||||||
text.QuestFlags[1] = quest->GetFlagsEx();
|
text.QuestFlags[1] = quest->GetFlagsEx();
|
||||||
text.QuestFlags[2] = quest->GetFlagsEx2();
|
text.QuestFlags[2] = quest->GetFlagsEx2();
|
||||||
@@ -431,11 +432,11 @@ void PlayerMenu::SendQuestGiverQuestListMessage(Object* questgiver)
|
|||||||
|
|
||||||
if (Quest const* quest = sObjectMgr->GetQuestTemplate(questID))
|
if (Quest const* quest = sObjectMgr->GetQuestTemplate(questID))
|
||||||
{
|
{
|
||||||
questList.QuestDataText.emplace_back();
|
WorldPackets::NPC::ClientGossipText& text = questList.QuestDataText.emplace_back();
|
||||||
WorldPackets::NPC::ClientGossipText& text = questList.QuestDataText.back();
|
|
||||||
text.QuestID = questID;
|
text.QuestID = questID;
|
||||||
text.ContentTuningID = quest->GetContentTuningId();
|
text.ContentTuningID = quest->GetContentTuningId();
|
||||||
text.QuestType = questMenuItem.QuestIcon;
|
text.QuestType = questMenuItem.QuestIcon;
|
||||||
|
text.QuestInfoID = quest->GetQuestInfoID();
|
||||||
text.QuestFlags[0] = quest->GetFlags();
|
text.QuestFlags[0] = quest->GetFlags();
|
||||||
text.QuestFlags[1] = quest->GetFlagsEx();
|
text.QuestFlags[1] = quest->GetFlagsEx();
|
||||||
text.QuestFlags[2] = quest->GetFlagsEx2();
|
text.QuestFlags[2] = quest->GetFlagsEx2();
|
||||||
|
|||||||
@@ -485,12 +485,11 @@ void WorldSession::HandleMirrorImageDataRequest(WorldPackets::Spells::GetMirrorI
|
|||||||
mirrorImageComponentedData.UnitGUID = guid;
|
mirrorImageComponentedData.UnitGUID = guid;
|
||||||
if (ChrModelEntry const* chrModel = sDB2Manager.GetChrModel(creator->GetRace(), creator->GetGender()))
|
if (ChrModelEntry const* chrModel = sDB2Manager.GetChrModel(creator->GetRace(), creator->GetGender()))
|
||||||
mirrorImageComponentedData.ChrModelID = chrModel->ID;
|
mirrorImageComponentedData.ChrModelID = chrModel->ID;
|
||||||
|
mirrorImageComponentedData.DisplayScale = creator->GetDisplayScale();
|
||||||
mirrorImageComponentedData.RaceID = creator->GetRace();
|
mirrorImageComponentedData.RaceID = creator->GetRace();
|
||||||
mirrorImageComponentedData.Gender = creator->GetGender();
|
mirrorImageComponentedData.Gender = creator->GetGender();
|
||||||
mirrorImageComponentedData.ClassID = creator->GetClass();
|
mirrorImageComponentedData.ClassID = creator->GetClass();
|
||||||
|
mirrorImageComponentedData.Customizations.assign(player->m_playerData->Customizations.begin(), player->m_playerData->Customizations.end());
|
||||||
for (UF::ChrCustomizationChoice const& customization : player->m_playerData->Customizations)
|
|
||||||
mirrorImageComponentedData.Customizations.push_back(customization);
|
|
||||||
|
|
||||||
Guild* guild = player->GetGuild();
|
Guild* guild = player->GetGuild();
|
||||||
mirrorImageComponentedData.GuildGUID = (guild ? guild->GetGUID() : ObjectGuid::Empty);
|
mirrorImageComponentedData.GuildGUID = (guild ? guild->GetGUID() : ObjectGuid::Empty);
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ WorldPacket const* ChannelNotifyJoined::Write()
|
|||||||
_worldPacket << SizedString::BitsSize<7>(_Channel);
|
_worldPacket << SizedString::BitsSize<7>(_Channel);
|
||||||
_worldPacket << SizedString::BitsSize<11>(ChannelWelcomeMsg);
|
_worldPacket << SizedString::BitsSize<11>(ChannelWelcomeMsg);
|
||||||
_worldPacket << uint32(_ChannelFlags);
|
_worldPacket << uint32(_ChannelFlags);
|
||||||
_worldPacket << uint8(Unknown1107);
|
_worldPacket << uint8(UserFlags);
|
||||||
_worldPacket << int32(ChatChannelID);
|
_worldPacket << int32(ChatChannelID);
|
||||||
_worldPacket << uint64(InstanceID);
|
_worldPacket << uint64(InstanceID);
|
||||||
_worldPacket << ChannelGUID;
|
_worldPacket << ChannelGUID;
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ namespace WorldPackets
|
|||||||
uint32 _ChannelFlags = 0; ///< @see enum ChannelFlags
|
uint32 _ChannelFlags = 0; ///< @see enum ChannelFlags
|
||||||
std::string _Channel; ///< Channel Name
|
std::string _Channel; ///< Channel Name
|
||||||
ObjectGuid ChannelGUID;
|
ObjectGuid ChannelGUID;
|
||||||
uint8 Unknown1107 = 0;
|
uint8 UserFlags = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ChannelNotifyLeft final : public ServerPacket
|
class ChannelNotifyLeft final : public ServerPacket
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ ByteBuffer& operator<<(ByteBuffer& data, ClientGossipText const& gossipText)
|
|||||||
data << int32(gossipText.QuestID);
|
data << int32(gossipText.QuestID);
|
||||||
data << int32(gossipText.ContentTuningID);
|
data << int32(gossipText.ContentTuningID);
|
||||||
data << int32(gossipText.QuestType);
|
data << int32(gossipText.QuestType);
|
||||||
data << int32(gossipText.Unused1102);
|
data << int32(gossipText.QuestInfoID);
|
||||||
data.append(gossipText.QuestFlags);
|
data.append(gossipText.QuestFlags);
|
||||||
|
|
||||||
data << Bits<1>(gossipText.Repeatable);
|
data << Bits<1>(gossipText.Repeatable);
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ namespace WorldPackets
|
|||||||
int32 QuestID = 0;
|
int32 QuestID = 0;
|
||||||
int32 ContentTuningID = 0;
|
int32 ContentTuningID = 0;
|
||||||
int32 QuestType = 0;
|
int32 QuestType = 0;
|
||||||
int32 Unused1102 = 0;
|
int32 QuestInfoID = 0;
|
||||||
bool Repeatable = false;
|
bool Repeatable = false;
|
||||||
bool ResetByScheduler = false;
|
bool ResetByScheduler = false;
|
||||||
bool Important = false;
|
bool Important = false;
|
||||||
|
|||||||
@@ -1037,7 +1037,7 @@ WorldPacket const* MirrorImageComponentedData::Write()
|
|||||||
_worldPacket << GuildGUID;
|
_worldPacket << GuildGUID;
|
||||||
_worldPacket << Size<uint32>(ItemDisplayID);
|
_worldPacket << Size<uint32>(ItemDisplayID);
|
||||||
_worldPacket << int32(SpellVisualKitID);
|
_worldPacket << int32(SpellVisualKitID);
|
||||||
_worldPacket << int32(Unused_1115);
|
_worldPacket << float(DisplayScale);
|
||||||
|
|
||||||
for (Character::ChrCustomizationChoice const& customization : Customizations)
|
for (Character::ChrCustomizationChoice const& customization : Customizations)
|
||||||
_worldPacket << customization;
|
_worldPacket << customization;
|
||||||
|
|||||||
@@ -1009,7 +1009,7 @@ namespace WorldPackets
|
|||||||
ObjectGuid UnitGUID;
|
ObjectGuid UnitGUID;
|
||||||
int32 ChrModelID = 0;
|
int32 ChrModelID = 0;
|
||||||
int32 SpellVisualKitID = 0;
|
int32 SpellVisualKitID = 0;
|
||||||
int32 Unused_1115 = 0;
|
float DisplayScale = 1.0f;
|
||||||
uint8 RaceID = 0;
|
uint8 RaceID = 0;
|
||||||
uint8 Gender = 0;
|
uint8 Gender = 0;
|
||||||
uint8 ClassID = 0;
|
uint8 ClassID = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user