Script::GetNumPastDrawResults
function · ui · orchestration
- Address
0x4c4660· 36 bytes, up to0x4c4683- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes the number of used lottery draw records and returns no values
- 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 2
- CountDrawRecords ui
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.