Script::GetPastDrawResult
function · ui · primitive
- Address
0x4c4690· 154 bytes, up to0x4c4729- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the four numbers and age of the draw record an index selects
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/lottery#draws
Finding: Draws in ui: the lottery and minigame functions
GetNextDrawTime() pushes the next draw time minus now and GetNumPastDrawResults() the count of records whose first number is
nonzero; both return 0, so Lua receives nothing. GetPastDrawResult(i) returns five values: the record's four numbers and its age
in seconds, now minus +0x4. It picks the first record at which the running count of used records equals i - 1, so i from 2 to
5 gives the used records in order and 1 gives the first record only when that record is empty. No such record raises
Invalid index in GetPastDrawResults("type", index).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- __ftol crt
- GetDrawRecord ui
- lua_tonumber lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.