CGPlayer_C::AutoEquipCursorItem
function · objectlayer · primitive
- Address
0x5e1480· 787 bytes, up to0x5e1792- Meaning
- Equips the cursor's item or ammo with 0x10a or 0x268, first asking to confirm binding
- Confidence
- verified, proof one
- Finding
- objectlayer/inventory#bind-on-equip-confirmation
Finding: Bind-on-equip confirmation in objectlayer: inventory
Equipping or swapping an item into an equipment slot asks first when the item is not yet bound,
binds on equip, and the player could use it. The move is parked in an ITEMSWAP table and
EQUIP_BIND_CONFIRM or AUTOEQUIP_BIND_CONFIRM is signalled with its index; an item record not
yet cached parks the move and replays it on arrival. 0x5e1be0(index, accept) replays an
accepted move with the confirmation set, or releases both slots' items, and frees the entry.
The derivation is in the doc.
Callers 5
- Script::EquipCursorItem ui
- Script::AutoEquipCursorItem ui
- ClickInventorySlot ui
- OnAutoEquipItemRecord objectlayer
- CGPlayer_C::AutoEquipItemInSlot objectlayer
Callees 17
- CDataStore::PutInt8 base
- CDataStore::PutUInt32 base
- ClntObjMgrObjectPtr objectlayer
- 0x48efa0 ui
- GetCursorItemInfo ui
- GetCursorAmmo ui
- ClearCursor ui
- 0x4c9a80 ui
- 0x4c9aa0 ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- ClientServices::Send net
- GetItemClass objectlayer
- CGItem_C::IsBound objectlayer
- AllocItemSwap objectlayer
- CGPlayer_C::FindSlotIndex objectlayer
- CGPlayer_C::CanUseItem objectlayer
- FrameScript_SignalEvent2 ui
Calls and jumps by a bare address, from tables/calls.tsv.