benilla-re systems structs docs

Script::GetLastLotteryNumbers

function · ui · orchestration

Address
0x4c4220 · 100 bytes, up to 0x4c4283
Signature
int __fastcall (lua_State *L)
Meaning
Asks the server for the last lottery numbers
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/lottery#buying

Finding: Buying in ui: the lottery and minigame functions

GetLastLotteryNumbers() sends opcode 0x334 with no body. BuyRandomPicks(n) sends opcode 0x336 with n and 0 for n from 1 to 10, and raises Invalid number of randompicks otherwise; its argument is not checked to be a number. SubmitNumbers(a, b, c, d) converts four numbers, all of which must be from 1 to 31 and distinct, into a mask of one bit each (bit n - 1) and sends opcode 0x336 with 0 and the mask. With an invalid or repeated number it sends nothing and returns 1 without pushing a value, so Lua receives its fourth argument. CloseLottery() does nothing. The window's open, 0x4c3eb0, sends opcode 0x334 and has no caller (ui/loot#no-walk-away-leash).

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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