Script::CursorCanGoInSlot
function · ui · orchestration
- Address
0x4c8ff0· 191 bytes, up to0x4c90ae- Signature
int __fastcall (lua_State *L)- Meaning
- Returns 1 when the cursor item can go in a slot, else nil
- 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 8
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetCursorItemGuid ui
- ReadInventorySlotArg ui
- CGPlayer_C::CheckItemForSlot objectlayer
- lua_pushnil lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.