From 2889e412b36031fba4f41d5855052c2b179a6938 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Fri, 6 Feb 2026 20:13:28 -0800 Subject: [PATCH] Send CMSG_QUESTGIVER_STATUS_QUERY when quest NPCs spawn The server only sends quest status packets in response to client queries. Send the query for each NPC with the questgiver flag (0x02) when it enters view so the ! and ? markers actually appear. --- src/game/game_handler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 1c4e7487..a5da5bc0 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -2668,6 +2668,12 @@ void GameHandler::handleUpdateObject(network::Packet& packet) { creatureSpawnCallback_(block.guid, unit->getDisplayId(), unit->getX(), unit->getY(), unit->getZ(), unit->getOrientation()); } + // Query quest giver status for NPCs with questgiver flag (0x02) + if ((unit->getNpcFlags() & 0x02) && socket) { + network::Packet qsPkt(static_cast(Opcode::CMSG_QUESTGIVER_STATUS_QUERY)); + qsPkt.writeUInt64(block.guid); + socket->send(qsPkt); + } } } // Track online item objects