Script::GetInventorySlotInfo
function · ui · primitive
- Address
0x4c81b0· 228 bytes, up to0x4c8293- Signature
int __fastcall (lua_State *L)- Meaning
- Finds a paper doll slot by name without case and returns its number, icon and ranged flag
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/bags#slot-names
Finding: Slot names in ui: bags and bag slots
GetInventorySlotInfo(name) is 0x4c81b0. The argument is a string or a number (turned into a string). It walks the
PaperDollItemFrame.dbc record store in file order and takes the first row whose ItemSlotName equals the argument
without regard to ASCII case, over the whole string. A match returns three values: the SlotNumber, the SlotIcon
string as stored, and the number 1 when SlotNumber is 18 (the ranged slot), else nil. A miss, a missing argument or
an empty store raises Invalid inventory slot in GetInventorySlotInfo; the name is not in the message.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- SStrCmpI storm
- lua_isstring lua
- lua_tostring lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.