mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/PacketIO: Fixed structure of SMSG_GOSSIP_MESSAGE and SMSG_QUEST_GIVER_QUEST_LIST_MESSAGE
Closes #29161 Closes #29163
This commit is contained in:
@@ -284,6 +284,7 @@ void PlayerMenu::SendGossipMenu(uint32 titleTextId, ObjectGuid objectGUID)
|
||||
text.QuestFlags[0] = quest->GetFlags();
|
||||
text.QuestFlags[1] = quest->GetFlagsEx();
|
||||
text.Repeatable = quest->IsTurnIn() && quest->IsRepeatable() && !quest->IsDailyOrWeekly() && !quest->IsMonthly();
|
||||
text.Important = quest->IsImportant();
|
||||
|
||||
text.QuestTitle = quest->GetLogTitle();
|
||||
LocaleConstant localeConstant = _session->GetSessionDbLocaleIndex();
|
||||
@@ -411,6 +412,7 @@ void PlayerMenu::SendQuestGiverQuestListMessage(Object* questgiver)
|
||||
text.QuestFlags[0] = quest->GetFlags();
|
||||
text.QuestFlags[1] = quest->GetFlagsEx();
|
||||
text.Repeatable = quest->IsTurnIn() && quest->IsRepeatable() && !quest->IsDailyOrWeekly() && !quest->IsMonthly();
|
||||
text.Important = quest->IsImportant();
|
||||
|
||||
text.QuestTitle = quest->GetLogTitle();
|
||||
LocaleConstant localeConstant = _session->GetSessionDbLocaleIndex();
|
||||
|
||||
@@ -77,6 +77,7 @@ ByteBuffer& operator<<(ByteBuffer& data, ClientGossipText const& gossipText)
|
||||
data << int32(gossipText.QuestFlags[1]);
|
||||
|
||||
data.WriteBit(gossipText.Repeatable);
|
||||
data.WriteBit(gossipText.Important);
|
||||
data.WriteBits(gossipText.QuestTitle.size(), 9);
|
||||
data.FlushBits();
|
||||
|
||||
|
||||
@@ -98,6 +98,7 @@ namespace WorldPackets
|
||||
int32 ContentTuningID = 0;
|
||||
int32 QuestType = 0;
|
||||
bool Repeatable = false;
|
||||
bool Important = false;
|
||||
std::string QuestTitle;
|
||||
int32 QuestFlags[2] = { };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user