benilla-re systems structs docs

GetPrizeItem

function · ui · primitive

Address
0x4c3f50 · 394 bytes, up to 0x4c40d9
Meaning
Fills the name, icon, count, quality and usability of the prize slot an index selects
Confidence
verified, proof one
Finding
ui/lottery#prizes

Finding: Prizes in ui: the lottery and minigame functions

IsVendorActive(), GetNumLotteryPrizes(), GetJackpotAmount() and GetMoneyPrizes() push their numbers and return 0, so Lua receives nothing. They push the vendor value once now passes the vendor time, else 0; the count of nonzero prize ids; the jackpot; the three money words. GetLotteryPrizeInfo(i) returns the item's name, icon path, the count 1, the quality, and 1 when the player can use it, else nil. It picks the last slot at which the running count of nonzero ids equals i - 1, so with all four slots set i from 2 to 5 gives slots 0 to 3 and 1 fails. A non-number, i - 1 above 4 unsigned or no slot raises Invalid prize item in GetPrizeItemInfo("type", index).

The derivation is in the doc.

Callers 1

Callees 8

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