benilla-re systems structs docs

s_questInvalidCaseIndex

global · objectlayer

Address
0x5dbd30 · 22 bytes, up to 0x5dbd45
Type
uint8_t[22]
Meaning
Maps an invalid-quest reason minus 1 to a case of 0x5dbd14
Confidence
verified, proof one
Finding
objectlayer/quests#quest-giver-messages

Finding: Quest giver messages in objectlayer: quests

0x5e59b0 dispatches nine opcodes for the active player through the bytes 0x5e5ab8 and the cases 0x5e5a90 (value − 0x183, cmp 0x12); any other opcode returns 0.

opcodereaderreads
0x1830x5dc9f0GUID, i32 status: sets it on a unit whose NPC flags have 0x2
0x1850x5dbb10the greeting list
0x1880x5dbd50the details
0x18b0x5dc050the item request
0x18d0x5dc1e0the reward offer
0x18f0x5dbca0i32 reason: the invalid-quest error, then 0x501130(0, 0)
0x1910x5dc400the completion
0x1920x5dc840i32 quest, i32 reason: the failure
0x195noneERR_QUEST_LOG_FULL

The derivation is in the doc.