ClickInventorySlot
function · ui · primitive
- Address
0x4c7300· 1634 bytes, up to0x4c7961- Signature
void __fastcall (int32_t slot)- Meaning
- Places, swaps, picks up, buys into or repairs the item at an inventory slot from the cursor payload
- Confidence
- verified, proof one
- Finding
- ui/bags#pickup-of-an-inventory-slot
Finding: Pickup of an inventory slot in ui: bags and bag slots
PickupInventoryItem(slot) is 0x4c8da0 and calls 0x4c7300 directly. It differs from the bag pickup in six ways:
no floor on the slot, so equipment slots and the ammo slot (-1) pass; a held item is placed or swapped, not dropped;
the occupant mask is item (2), not container (4); a bank item slot is gated on the bank as well as a bank bag slot;
its control gate also passes on bit 20 of the player's flags; and it has the item-targeting leg (a spell waiting for
an item target takes the click) and the repair-cursor leg. The ammo leg (slot -1) sends 0x268 with the held ammo's entry.
The derivation is in the doc.
Callers 3
Callees 30
- CDataStore::PutUInt32 base
- CDataStore::PutUInt32_3 base
- CDataStore::PutGuid base
- SndInterfacePlayInterfaceSound sound
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- 0x48efa0 ui
- CGGameUI::SetCursorItem ui
- GetCursorItemInfo ui
- CGGameUI::SetCursorVirtualItem ui
- CGGameUI::GetCursorVirtualItem ui
- ClearCursor ui
- LockItem ui
- ValidateSpellItemTarget ui
- CGGameUI::DisplayError ui
- 0x4c9a80 ui
- 0x4c9aa0 ui
- MerchantCanRepair ui
- GetItemRepairCost ui
- GetBaseCursorMode ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- ClientServices::Send net
- GetItemClass objectlayer
- CGPlayer_C::SwapItems objectlayer
- CGPlayer_C::AutoEquipCursorItem objectlayer
- SendBuyItemInSlot objectlayer
- CGPlayer_C::CheckItemForSlot objectlayer
- CountInventoryItemsByEntry objectlayer
- IsSpellTargeting spell
- SpellTargetWantsItem spell
Calls and jumps by a bare address, from tables/calls.tsv.