refactor(Core/Packets): Rewrite various quest packets to modern class. (#22835)

Co-authored-by: sudlud <sudlud@users.noreply.github.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Jackson
2026-06-13 15:29:45 -04:00
committed by GitHub
parent 81457d95f2
commit a623dd2383
8 changed files with 458 additions and 129 deletions
+5 -8
View File
@@ -17,6 +17,7 @@
#include "Player.h"
#include "PlayerScript.h"
#include "QuestPackets.h"
enum ApprenticeAnglerQuestEnum
{
@@ -54,14 +55,10 @@ public:
player->SaveToDB(false, false);
// Send packet with money
WorldPacket data(SMSG_QUESTGIVER_QUEST_COMPLETE, (4 + 4 + 4 + 4 + 4));
data << uint32(quest->GetQuestId());
data << uint32(0);
data << uint32(moneyRew);
data << uint32(0);
data << uint32(0);
data << uint32(0);
player->SendDirectMessage(&data);
WorldPackets::Quest::QuestGiverQuestComplete questGiverQuestComplete;
questGiverQuestComplete.QuestId = quest->GetQuestId();
questGiverQuestComplete.RewardMoney = moneyRew;
player->SendDirectMessage(questGiverQuestComplete.Write());
}
}
};