benilla-re systems structs docs

Script::GetQuestLogSelection

function · ui · primitive

Address
0x4dfb20 · 42 bytes, up to 0x4dfb49
Signature
int __fastcall (lua_State *L)
Meaning
Returns the 1-based row of the selected quest, or 0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/questlog#the-selection

Finding: The selection in ui: the quest log list

The selected quest is a quest id in 0xbb7480, set only by SelectQuestLogEntry(i) (0x4dfae0) through 0x4def30, which refuses an index outside the list and a header row and then leaves the old selection. GetQuestLogSelection() re-derives the row by searching for the id (0 when it has no row). No rebuild changes the selection, so it survives re-sorts, and with the selected quest uncached it reads 0 until the completing rebuild.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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