Core/Quests: convert SMSG_QUEST_GIVER_QUEST_LIST_MESSAGE to packet class

* fixed build
* fixed an issue that was preventing players from turning in quests that have collect objectives but are not in quest logs
This commit is contained in:
Ovahlord committed 2020-01-05 13:59:56 +01:00
1 parent efd033a17d
commit 8aa25d9721
6 files changed
+66 -27

No files matched your search

@@ -110,3 +110,25 @@ void WorldPackets::Quest::QueryQuestInfo::Read()
{
_worldPacket >> QuestID;
}
WorldPacket const* WorldPackets::Quest::QuestGiverQuestListMessage::Write()
{
_worldPacket << QuestGiverGUID;
_worldPacket << Greeting;
_worldPacket << uint32(GreetEmoteDelay);
_worldPacket << uint32(GreetEmoteType);
_worldPacket << uint8(QuestDataText.size());
for (GossipText const& gossip : QuestDataText)
{
_worldPacket << uint32(gossip.QuestID);
_worldPacket << uint32(gossip.QuestType);
_worldPacket << int32(gossip.QuestLevel);
_worldPacket << uint32(gossip.QuestFlags);
_worldPacket << uint8(gossip.Repeatable);
_worldPacket << gossip.QuestTitle;
}
return &_worldPacket;
}