benilla-re systems structs docs

s_questUpdateCases

global · objectlayer

Address
0x5e5ea0 · 16 bytes, up to 0x5e5eaf
Type
void *[4]
Meaning
Holds the 4 case addresses for the quest updates 0x196 to 0x199 in 0x5e5ad0
Confidence
verified, proof one
Finding
objectlayer/quests#quest-updates

Finding: Quest updates in objectlayer: quests

0x5e5ad0 handles 0x196 to 0x19a. 0x19a reads an item and count and reports progress for each log quest not done, as below. The others read a quest; a quest is done when 0x4df4b0 says so or its log entry has failed bit 0x2. An unknown quest prints "Unkown questID (%d) in QuestUpdate". 0x197 first calls 0x4df550, then acts as 0x196: ERR_QUEST_FAILED_S. 0x198 shows ERR_QUEST_OBJECTIVE_COMPLETE_S with the objective text and QUEST_WATCH_UPDATE, or ERR_QUEST_UNKNOWN_COMPLETE without text. 0x199 reads an id, a count, a need and a GUID: the quest's own objective text gives ERR_QUEST_ADD_FOUND_SII, else an id with bit 31 names a game object and shows the same error, else a creature ERR_QUEST_ADD_KILL_SII; then QUEST_WATCH_UPDATE.

The derivation is in the doc.