benilla-re systems structs docs

Script::SelectAvailableQuest

function · ui · orchestration

Address
0x501ca0 · 64 bytes, up to 0x501cdf
Signature
int __fastcall (lua_State *L)
Meaning
Selects an available quest by its 1-based row
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/questgiver#clicking-a-row

Finding: Clicking a row in ui: a quest giver's quest list

SelectAvailableQuest(n) and SelectActiveQuest(n) take a 1-based row. The available one sends CMSG_QUESTGIVER_QUERY_QUEST (opcode 0x186) for a normal row and CMSG_QUESTGIVER_COMPLETE_QUEST (0x18a) for a one-click row; the active one always sends 0x18a. Each sends the dialog's source guid and the quest id, then sets the acted latch 0xbe0844, and does nothing while it is set. The row bound is cmp esi,count; ja, so the index is decremented before the compare and the 1-based row count+1 is accepted, reading one row past the pool.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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