benilla-re systems structs docs

Script::GetBattlefieldEstimatedWaitTime

function · ui · primitive

Address
0x4ab790 · 137 bytes, up to 0x4ab818
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the estimated wait of a queue slot in milliseconds
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/battlefield#queue-status

Finding: Queue status in ui: battlegrounds

GetBattlefieldStatus(index), index 1 to 3, returns five values on every path: the status word (none, queued, confirm, active for 0 to 3, error above), the map name (Name_lang of the Map row at +0x10 + 4*locale, or nil), the instance id and the two bracket levels. An index outside 1 to 3 returns nil, nil, 0, 0, 0. Five time functions return one number each, in milliseconds: the port deadline and the instance expiration give deadline minus now, 0 when unset or past; the instance run time and the time waited give now minus the stamp, 0 when unset; the estimated wait gives the stored value.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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