ChooseQuestReward
function · ui · primitive
- Address
0x5015b0· 159 bytes, up to0x50164e- Meaning
- Sends the reward choice of a reward panel, once, returning 0 for a choice out of range
- Confidence
- verified, proof one
- Finding
- ui/questpanel#completing-and-choosing
Finding: Completing and choosing in ui: quest panel state and the quest dialog verbs
IsQuestCompletable() returns 1 when the request is flagged completable, a player exists and the player carries each of the
six required items in the required count, else nil. CompleteQuest() acts only in a progress panel (kind 2) with the latch clear
and a player: it sends CMSG_QUESTGIVER_REQUEST_REWARD for the giver and quest, then sets the latch. GetQuestReward([choice])
acts only in a reward panel (kind 3): with the latch clear and a player it checks a 1-based choice against the number of
choices, stores the chosen item id, sends CMSG_QUESTGIVER_CHOOSE_REWARD with the 0-based choice (0 for none) and sets the latch.
The derivation is in the doc.
Callers 1
Callees 4
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CountQuestChoiceItems ui
- SendQuestGiverChooseReward objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.