benilla-re systems structs docs

s_questRewardSpell

global · ui

Address
0xbe0830 · 4 bytes, up to 0xbe0833
Type
uint32_t
Meaning
Holds the reward spell id of the last quest details or offer reward packet, never cleared
Confidence
verified, proof one
Finding
ui/questrewardspell#reward-spell-source

Finding: Reward spell source in ui: quest reward spell functions

The reward spell id of GetRewardSpell is one cell. It has one writer, the quest panel publisher 0x500ef0, which stores its ninth stack argument, and two readers, GetRewardSpell and the reward spell tooltip. Two messages call the publisher: the quest details message (0x188), which reads the id after the money and before the emote list, and the offer reward message (0x18d), which reads one unused u32 after the money and then the id. The request-items message (0x18b) publishes through another function. Nothing clears the cell: the world-enter reset and the dialog teardown skip it, so the function answers from the latest details or offer reward message, whichever panel is open, and from 0 before any.

The derivation is in the doc.