benilla-re systems structs docs

GetQuestItemId

function · ui · primitive

Address
0x501920 · 115 bytes, up to 0x501992
Meaning
Returns the item id of a reward, choice or required record
Confidence
verified, proof one
Finding
ui/questpanel#item-arrival-and-links

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

When an item record arrives for the panel, 0x5018c0 signals QUEST_ITEM_UPDATE (305) provided its arrival flag is set and the record is cached. GetQuestItemLink(type, index) returns the item link of the same entries, built as the quest log link, or nil for an unknown type, an index of 8 or more, a zero id or an uncached item (the test is ja 6 after the decrement at 0x501924, so index 7 passes and reads past the sixth record); other arguments raise Usage: GetQuestItemLink("type", index).

The derivation is in the doc.

Callers 2

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.