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