mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix WotLK quest accept packet parsing and wolf display fallback
- Send CMSG_QUESTGIVER_ACCEPT_QUEST with trailing u8 flag on non-classic expansions to match AzerothCore parsing and prevent opcode 393 ByteBufferException. - Keep classic/turtle on short accept packet format (guid + questId). - Add displayId fallback for 31048/31049 to Creature\Wolf\Wolf.m2 so Diseased Young Wolf variants render instead of being dropped.
This commit is contained in:
parent
eaba378b5b
commit
1f7c220fdb
2 changed files with 20 additions and 2 deletions
|
|
@ -9736,8 +9736,14 @@ void GameHandler::handleQuestDetails(network::Packet& packet) {
|
|||
void GameHandler::acceptQuest() {
|
||||
if (!questDetailsOpen || state != WorldState::IN_WORLD || !socket) return;
|
||||
uint64_t npcGuid = currentQuestDetails.npcGuid;
|
||||
auto packet = QuestgiverAcceptQuestPacket::build(
|
||||
npcGuid, currentQuestDetails.questId);
|
||||
// WotLK/TBC expect an additional trailing flag on CMSG_QUESTGIVER_ACCEPT_QUEST.
|
||||
// Classic/Turtle use the short form (guid + questId only).
|
||||
network::Packet packet(wireOpcode(Opcode::CMSG_QUESTGIVER_ACCEPT_QUEST));
|
||||
packet.writeUInt64(npcGuid);
|
||||
packet.writeUInt32(currentQuestDetails.questId);
|
||||
if (!isActiveExpansion("classic") && !isActiveExpansion("turtle")) {
|
||||
packet.writeUInt8(1); // from-gossip / auto-accept continuation flag
|
||||
}
|
||||
socket->send(packet);
|
||||
|
||||
// Add to quest log
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue