benilla-re systems structs docs

s_lotteryMoneyPrizes

global · ui

Address
0xb71be8 · 12 bytes, up to 0xb71bf3
Type
int32_t[3]
Meaning
Holds the first three money words of the lottery prize slots
Confidence
verified, proof one
Finding
ui/lottery#query-result

Finding: Query result in ui: the lottery and minigame functions

The handler of opcode 0x335 (0x4c3d50) reads 32-bit words: the vendor value (0xb71df0), then the vendor delay (0xb71bd0), whose zero ends the read. Otherwise the vendor time becomes now plus the delay (0xb71bd4), the draw delay (0xb71bd8) plus now the next draw time (0xb71bdc), two words go to 0xb71be0 and 0xb71be4, unread, then four slots of a money word (0xb71be8, the fourth the jackpot 0xb71bf4), a prize item id (0xb71bf8) and a display id (0xb71c08), then four draw records of 0x18 bytes from 0xb71c48: four numbers into +0x8 to +0x14, an age into +0x0, and +0x4 set to now minus the age. Every path signals LOTTERY_SHOW (543). The 0x337 handler 0x4c3e60 returns 0. Now is 0x429580, in seconds.

The derivation is in the doc.