CGPlayer_C::AutoEquipItemInSlot
function · objectlayer · primitive
- Address
0x5e1840· 163 bytes, up to0x5e18e2- Meaning
- Picks up a slot's item and auto-equips it, refusing an item in trade
- 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 3
- UseActionSlot ui
- Script::UseContainerItem ui
- CGPlayer_C::AnswerBindConfirm objectlayer
Callees 5
- ClntObjMgrObjectPtr objectlayer
- CGGameUI::SetCursorItem ui
- CGGameUI::DisplayError ui
- TradeInfoIsPlayerItem ui
- CGPlayer_C::AutoEquipCursorItem objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.