Script::BuyRandomPicks
function · ui · orchestration
- Address
0x4c4400· 171 bytes, up to0x4c44aa- Signature
int __fastcall (lua_State *L)- Meaning
- Buys a number of random lottery picks
- 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 5
- __ftol crt
- CDataStore::PutUInt32 base
- ClientServices::Send net
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.