GetItemInSlot
function · objectlayer · primitive
- Address
0x6228a0· 109 bytes, up to0x62290c- Signature
void * __thiscall (void *this, uint32_t slot)- Meaning
- Returns the item object in a slot, none for a bank slot while no banker is open
- Confidence
- verified, proof one
- Finding
- objectlayer/inventory#searching-the-inventory
Finding: Searching the inventory in objectlayer: inventory
Bag_C.cpp's searches over an inventory list:
| function | does |
|---|---|
0x622420 | the walk (spell/checks): bit 0x10 stops it entering bags; with 0x20 only items whose ITEM_FIELD_SPELL_CHARGES is nonzero, and bags, reach the callback |
0x6223f0, 0x6222b0 | the walk with a callback, or by entry with the owner and slot out |
0x622130, 0x622180 | the stack count, or the summed absolute charges, of an entry (−1 any) |
0x622270, 0x6222e0, 0x6223a0 | the first item of an entry, of a class and subclass mask, of a bag family |
0x6221e0 | clears bit 0 of +0x314 on items of an entry not in trade nor held at 0xb6ef90 or 0xb72608 |
0x6225d0 | the slot of an item object, or −1 |
0x6228a0 | the item in a slot, none for a bank slot while no banker is open |
0x622910 | free slots: empty backpack slots plus those of each bag (item class 1) in 19 to 22 |
0x6229d0 | equipment durability: the sum of current over the sum of max, times 100, truncated |
The derivation is in the doc.
Callers 33
- UseInventorySlot ui
- RecomputeInventoryAlerts ui
- Script::GetInventoryItemTexture ui
- Script::GetInventoryItemBroken ui
- Script::GetInventoryItemCount ui
- Script::GetInventoryItemQuality ui
- Script::GetInventoryItemCooldown ui
- Script::GetInventoryItemLink ui
- Script::IsInventoryItemLocked ui
- Script::ShowInventorySellCursor ui
- Script::SetInventoryPortaitTexture ui
- Script::OffhandHasWeapon ui
- Script::GetWeaponEnchantInfo ui
- OnBagSlotChanged ui
- Script::GetContainerItemInfo ui
- Script::GetContainerItemLink ui
- Script::GetContainerItemCooldown ui
- Script::PickupContainerItem ui
- Script::SplitContainerItem ui
- Script::UseContainerItem ui
- Script::ShowContainerSellCursor ui
- Script::GetBuybackItemInfo ui
- Script::GetRepairAllCost ui
- Script::RepairAllItems ui
- GameTooltip::SetInventoryItem ui
- GameTooltip::SetBagItem ui
- GameTooltip::SetAuctionCompareItem ui
- GameTooltip::SetMerchantCompareItem ui
- GameTooltip::SetBuybackItem ui
- FindEquippedItemForSpell objectlayer
- CountFreeSlots objectlayer
- GetDurabilityPercent objectlayer
- AdjustCategoryRecovery spell
Callees 1
- ClntObjMgrObjectPtr objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.