benilla-re systems structs docs

LatchQuestExpiryByQuest

function · ui · primitive

Address
0x4df550 · 42 bytes, up to 0x4df579
Signature
int32_t __fastcall (uint32_t questId)
Meaning
Passes the first display row holding a quest id, a header included, to 0x4df4f0, which may latch it; 0 when none
Confidence
verified, proof one
Finding
ui/questtimers#where-the-two-lists-split

Finding: Where the two lists split in ui: quest timers

A row latched with its failed bit clear and its time left at 0 or more is counted by GetQuestIndexForTimer and left out by GetQuestTimers: from its place on, the n-th index and the n-th time belong to different quests, and the last index has no time. Two things make such a row: SMSG_QUESTUPDATE_FAILEDTIMER (0x197), latching a quest that cannot be turned in whatever its time left, and a rise in the time left of a row latched while negative, from a sync that raises G (the world-enter rebuild runs before the first answer) or the machine clock stepping back. It lasts until the time left falls below 0, the failed bit is set or a rebuild clears the latches.

The derivation is in the doc.

Callers 1

Callees 1

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