Script::GetLotteryPrizeInfo
function · ui · orchestration
- Address
0x4c44e0· 232 bytes, up to0x4c45c7- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the name, icon, count 1, quality and usability of the prize slot an index selects
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 0
None by a direct call or jump.
Callees 8
- __ftol crt
- GetPrizeItem ui
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.