Core/PacketIO: Fixed structure of SMSG_GOSSIP_MESSAGE and SMSG_QUEST_GIVER_QUEST_LIST_MESSAGE

Port From (https://github.com/TrinityCore/TrinityCore/commit/19db88fd1b1dd3ee9432f9f5facda0129f470a2c)
This commit is contained in:
hondacrx
2023-09-02 15:15:32 -04:00
parent 91f750e562
commit d3dd837b11
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -283,6 +283,7 @@ namespace Game.Misc
gossipText.QuestFlags = (uint)quest.Flags;
gossipText.QuestFlagsEx = (uint)quest.FlagsEx;
gossipText.Repeatable = quest.IsTurnIn() && quest.IsRepeatable() && !quest.IsDailyOrWeekly() && !quest.IsMonthly();
gossipText.Important = quest.IsImportant();
gossipText.QuestTitle = quest.LogTitle;
Locale locale = _session.GetSessionDbLocaleIndex();
@@ -375,6 +376,7 @@ namespace Game.Misc
text.QuestFlags = (uint)quest.Flags;
text.QuestFlagsEx = (uint)quest.FlagsEx;
text.Repeatable = quest.IsTurnIn() && quest.IsRepeatable() && !quest.IsDailyOrWeekly() && !quest.IsMonthly();
text.Important = quest.IsImportant();
text.QuestTitle = quest.LogTitle;
if (localeConstant != Locale.enUS)
@@ -368,6 +368,7 @@ namespace Game.Networking.Packets
public uint ContentTuningID;
public int QuestType;
public bool Repeatable;
public bool Important;
public string QuestTitle;
public uint QuestFlags;
public uint QuestFlagsEx;
@@ -381,6 +382,7 @@ namespace Game.Networking.Packets
data.WriteUInt32(QuestFlagsEx);
data.WriteBit(Repeatable);
data.WriteBit(Important);
data.WriteBits(QuestTitle.GetByteCount(), 9);
data.FlushBits();