Script::LootSlotIsCoin
function · ui · primitive
- Address
0x4c2e00· 97 bytes, up to0x4c2e60- Signature
int __fastcall (lua_State *L)- Meaning
- Returns 1 when a loot slot is the coin row, else nil
- 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 7
- __ftol crt
- GetLootCoinMoney ui
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.