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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user