benilla-re systems structs docs

s_questClockOffset

global · ui

Address
0xbb7494 · 4 bytes, up to 0xbb7497
Type
int32_t
Meaning
Holds the local clock minus the server's at the last sync, 1 for a zero difference, 0 until synced
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.