benilla-re systems structs docs

Script::GetNumLootItems

function · ui · orchestration

Address
0x4c2c30 · 41 bytes, up to 0x4c2c58
Signature
int __fastcall (lua_State *L)
Meaning
Returns the loot row count through 0x4c2260
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/loot#loot-lua-reads

Finding: Loot Lua reads in ui: the loot window

GetNumLootItems() is the count above. GetLootSlotInfo(slot) (1-based, no range check) always returns four values: icon path, name, stack count and quality. A closed window or a slot out of range gives a nil icon, an empty name, 0 and 0; a cleared row or an uncached item gives quality -1. The coin row gives the coin icon, the money text, 0 and 0. An item row gives its icon (or INV_Misc_QuestionMark), its name with the random suffix (ui/auctionmessages#item-names-in-messages), the count and the cache's quality. LootSlotIsItem and LootSlotIsCoin return the number 1 or nil. A non-number raises Usage: GetLootSlotInfo(slot).

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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