CountItemForAction
function · ui · primitive
- Address
0x4e6d20· 175 bytes, up to0x4e6dce- Signature
uint32_t __fastcall (uint32_t entry)- Meaning
- Counts an item's stacks or charges in the player's inventory
- Confidence
- verified, proof one
- Finding
- ui/actionbar#item-slot-counts
Finding: Item slot counts in ui: action bars
0x4e6d20(entry) counts an item for a slot: 0 without an active player; otherwise it requests the
template (callback 0x4e5b80) and, when the template's charges (+0x144) are neither 0 nor -1, sums the
absolute spell charges of the entry's items with 0x622180, else the stack counts with 0x622130. The
walk uses mask 0, which widens to equipment, bag slots, backpack and keyring, entering bags and
leaving out the bank (objectlayer/inventory), so a worn item counts. 0x4e6c70(slot) is
GetActionCount: the cached 0xbc6390 for an item slot, else 0.
The derivation is in the doc.
Callers 3
Callees 5
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- CountInventoryItemsByEntry objectlayer
- CountInventoryCharges objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.