benilla-re systems structs docs

s_questRewardMoney

global · ui

Address
0xbe082c · 4 bytes, up to 0xbe082f
Type
int32_t
Meaning
Holds the money the open quest panel rewards
Confidence
verified, proof one
Finding
ui/questpanel#item-records

Finding: Item records in ui: quest panel state and the quest dialog verbs

The panel holds six records of 0x24 bytes from 0xbdf020. A record has three triples of item id, display id and count: the reward at +0x00, the choice at +0x0c and the required item at +0x18. The reward copy 0x500ef0 fills the reward and choice triples from its arrays, sets unused entries to id 0, display 0 and count 1, stores the title (a single space for an empty one), the money split into reward and wanted, and the reward spell, then signals QUEST_DETAIL (301) for a details panel and QUEST_COMPLETE (303) otherwise. The request copy 0x501070 fills the required triples the same way and signals QUEST_PROGRESS (302).

The derivation is in the doc.