benilla-re systems structs docs

GetVendorActive

function · ui · orchestration

Address
0x4c4140 · 32 bytes, up to 0x4c415f
Meaning
Returns the vendor dword once the clock has passed the vendor time, else 0
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 1

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