SetQuestClockOffset
function · ui · primitive
- Address
0x4deef0· 53 bytes, up to0x4def24- Meaning
- Stores the local minus server time as the clock offset, arms the hourly deadline and fires QUEST_LOG_UPDATE
- Confidence
- verified, proof one
- Finding
- ui/questtimers#the-clock
Finding: The clock in ui: quest timers
A timed quest's third slot dword is an expiry in the server's epoch seconds. The time left is
timer + G - now - 1, with now the local machine's wall clock in whole seconds (a clock call cached for
500 ms) and G the offset stored by the last time sync, local minus server. So the epoch is the server's and
the advance between syncs is the player's own clock. An expiry N seconds ahead reads N - 1, the last
second 0; after a sync whose difference is 0, G is 1 and it reads N.
The derivation is in the doc.
Callers 1
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.