benilla-re systems structs docs

Script::GetQuestIndexForTimer

function · ui · primitive

Address
0x4e15f0 · 320 bytes, up to 0x4e172f
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the 1-based list index of the n-th running timed quest, or nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/questtimers#getquestindexfortimer

Finding: GetQuestIndexForTimer in ui: quest timers

GetQuestIndexForTimer(n) returns the 1-based list index of the n-th timed quest that is still running, or nil. Its index is the space GetQuestLogTitle and SelectQuestLogEntry take. It skips a header, a slot index outside 0 to 0x14, a timer of 0, a failed quest and a time left below 0, as GetQuestTimers does, but not a set expiry latch, and it sets no latch.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 9

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