Script::KeyRingButtonIDToInvSlotID
function · ui · primitive
- Address
0x4c8150· 91 bytes, up to0x4c81aa- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the inventory slot of a key ring button
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/inventoryverbs#using-and-cursor-tests
Finding: Using and cursor tests in ui: inventory, container, bank and vendor getters
UseInventoryItem(slot [, onSelf]) raises Invalid inventory slot in UseInventoryItem for a refused slot. For slot -1 it
does nothing. Otherwise it uses the slot on the current target, or on the player when the second argument is true.
CursorCanGoInSlot(slot) returns 1 when the cursor item can be placed in the slot (the item check of CheckItemForSlot) or when the slot is -1
and the cursor kind is 9, else nil. HasWandEquipped() returns 1 when slot 17 holds an item whose subclass is 19, else nil.
KeyRingButtonIDToInvSlotID(id) returns the id plus 81.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- __ftol crt
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.