mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
feat: parse and display StartQuest field from item query response
Items that begin a quest (like quest starter drop items) now show "Begins a Quest" in the tooltip. All three expansion parsers (WotLK/TBC/Classic) now read the PageText/LanguageID/PageMaterial/StartQuest fields after Description. startQuestId is propagated through all 5 inventory rebuild paths and stored in ItemDef.
This commit is contained in:
parent
5fcf71e3ff
commit
62b7622f75
7 changed files with 36 additions and 0 deletions
|
|
@ -991,6 +991,14 @@ bool TbcPacketParsers::parseItemQueryResponse(network::Packet& packet, ItemQuery
|
|||
if (packet.getReadPos() < packet.getSize())
|
||||
data.description = packet.readString();
|
||||
|
||||
// Post-description: PageText, LanguageID, PageMaterial, StartQuest
|
||||
if (packet.getReadPos() + 16 <= packet.getSize()) {
|
||||
packet.readUInt32(); // PageText
|
||||
packet.readUInt32(); // LanguageID
|
||||
packet.readUInt32(); // PageMaterial
|
||||
data.startQuestId = packet.readUInt32(); // StartQuest
|
||||
}
|
||||
|
||||
data.valid = !data.name.empty();
|
||||
LOG_DEBUG("[TBC] Item query: ", data.name, " quality=", data.quality,
|
||||
" invType=", data.inventoryType, " armor=", data.armor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue