Script::SelectActiveQuest
function · ui · orchestration
- Address
0x501ce0· 64 bytes, up to0x501d1f- Signature
int __fastcall (lua_State *L)- Meaning
- Selects an active 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
- __ftol crt
- SelectActiveQuestImpl ui
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.