DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord
function · dbcache · orchestration
- Address
0x55ba30· 534 bytes, up to0x55bc45- Signature
void * __thiscall (void *this, uint32_t key, uint64_t *owner, void *callback, void *data, bool dedupe)- Meaning
- Returns an item record by id, or keeps a callback and sends the cache query on a miss
- Confidence
- verified, proof two
- Name from
- the community database (idb)
- Finding
- dbcache/overview#asking-for-a-record
- Test
dbcache::callback_order_difftest
Finding: Asking for a record in dbcache: overview
A lookup takes a key, a pointer to the caller's 64-bit id, a callback, its data and a flag. A zero key returns null. A node that is valid
returns its record, with nothing touched. Otherwise, with no callback it returns null and sends nothing. With one, a node is made if absent, the callback is added unless the flag is set and an
equal one (same function and data) is there, and for a new node the query is sent: the cache's opcode, the key and, when the owner flag +0x38 is set, the caller's id. A
pending node leaves the query to the first caller. Eleven lookups are copies of one body; the table gives their node offsets.
| lookup | cache | owner flag | key copy | valid byte | callback list |
|---|---|---|---|---|---|
creature 0x556aa0 | 0xc0e354 | 1 | +0x4c | +0x50 | +0x54 |
game object 0x558560 | 0xc0e318 | 1 | +0x94 | +0x98 | +0x9c |
item name 0x559fe0 | 0xc0e2dc | 1 | +0x1c | +0x20 | +0x24 |
item 0x55ba30 | 0xc0e2a0 | 1 | +0x1ec | +0x1f0 | +0x1f4 |
NPC text 0x55d530 | 0xc0e264 | 1 | +0x158 | +0x15c | +0x160 |
guild 0x560e30 | 0xc0e1ec | 0 | +0x310 | +0x314 | +0x318 |
quest 0x562a40 | 0xc0e1b0 | 0 | +0x18f4 | +0x18f8 | +0x18fc |
page text 0x564730 | 0xc0e174 | 1 | +0x41c | +0x420 | +0x424 |
pet name 0x566240 | 0xc0e138 | 1 | +0x70 | +0x74 | +0x78 |
petition 0x567d60 | 0xc0e0fc | 1 | +0x13e0 | +0x13e4 | +0x13e8 |
item text 0x569980 | 0xc0e0c0 | 1 | +0x1f58 | +0x1f5c | +0x1f60 |
The derivation is in the doc.
Callers 167
- Script::GetItemInfo ui
- CGGameUI::OnItemPush ui
- ConfirmDestroyCursorItem ui
- ValidateSpellItemTarget ui
- InitializeMailWorld ui
- ParseAuctionSubject ui
- RefreshStationery ui
- CompareStationery ui
- Script::ClickSendMailItemButton ui
- Script::GetStationeryInfo ui
- Script::GetSendMailItem ui
- Script::GetSendMailPrice ui
- Script::GetInboxHeaderInfo ui
- Script::GetInboxItem ui
- Script::ClickTradeButton ui
- Script::GetTradeTargetItemInfo ui
- Script::GetTradeTargetItemLink ui
- Script::GetTradePlayerItemInfo ui
- SetLootSource ui
- AutoLootAll ui
- GetLootRowQuality ui
- GetLootRowLink ui
- TakeLootRow ui
- Script::GetLootRollItemInfo ui
- Script::GetLootRollItemLink ui
- GetPrizeItem ui
- 0x4c40e0 ui
- ClickInventorySlot ui
- Script::GetInventoryItemTexture ui
- Script::GetInventoryItemQuality ui
- Script::GetInventoryItemCooldown ui
- Script::GetInventoryItemLink ui
- HandleAuctionListResultPacket ui
- HandleAuctionOwnerListResultPacket ui
- HandleAuctionBidderListResultPacket ui
- HandleAuctionBidderNotificationPacket ui
- HandleAuctionOwnerNotificationPacket ui
- HandleAuctionRemovedNotificationPacket ui
- CompareAuctionRows ui
- Script::CalculateAuctionDeposit ui
- Script::ClickAuctionSellItemButton ui
- Script::GetAuctionSellItemInfo ui
- Script::GetAuctionItemInfo ui
- Script::GetAuctionItemLink ui
- Script::PlaceAuctionBid ui
- Script::GetTrainerServiceIcon ui
- Script::GetTrainerServiceDescription ui
- Script::GetAbandonQuestItems ui
- Script::GetQuestLogLeaderBoard ui
- Script::GetQuestLogRewardInfo ui
- Script::GetQuestLogChoiceInfo ui
- Script::GetQuestLogItemLink ui
- ShowItemTextPage ui
- Script::ItemTextGetMaterial ui
- ActionSlotIsConsumable ui
- GetItemSlotOnUseSpell ui
- UseActionSlot ui
- PickupActionSlot ui
- PlaceOnActionSlot ui
- GetActionSlotTexture ui
- CountItemForAction ui
- Script::GetCraftItemLink ui
- Script::GetCraftReagentInfo ui
- Script::GetCraftReagentItemLink ui
- Script::GetCraftSpellFocus ui
- Script::GetContainerItemInfo ui
- Script::GetContainerItemCooldown ui
- Script::UseContainerItem ui
- Script::GetBagName ui
- AskMerchantRowRecord ui
- Script::GetBuybackItemInfo ui
- Script::GetMerchantItemLink ui
- Script::GetMerchantItemMaxStack ui
- BuildTradeSkillList ui
- Script::GetTradeSkillIcon ui
- Script::GetTradeSkillItemStats ui
- Script::GetTradeSkillItemLink ui
- Script::GetTradeSkillReagentInfo ui
- Script::GetTradeSkillReagentItemLink ui
- Script::GetTradeSkillTools ui
- GetQuestItemFields ui
- QuestItemArrived ui
- Script::GetQuestItemLink ui
- Script::GetQuestBackgroundMaterial ui
- DressUpModel::TryOnItem ui
- Script::UnitName ui
- Script::UnitRangedDamage ui
- CGTooltip::BuildGameObject ui
- ItemObjectLink ui
- CGTooltip::BuildItem ui
- CGTooltip::BuildSpell ui
- GameTooltip::SetAction ui
- GameTooltip::SetInventoryItem ui
- GameTooltip::SetBagItem ui
- GameTooltip::SetAuctionCompareItem ui
- GameTooltip::SetMerchantCompareItem ui
- CGItem_C::RequestRecord objectlayer
- CGItem_C::ApplyRecord objectlayer
- FormatItemName objectlayer
- CGItem_C::HasUseSpell objectlayer
- CGItem_C::GetUseSpell objectlayer
- CGItem_C::Use objectlayer
- OnItemStackCountChanged objectlayer
- OnItemEntryChanged objectlayer
- CGItem_C::GetPageTextId objectlayer
- CGItem_C::GetName objectlayer
- GetItemRecordDword5c objectlayer
- GetItemClass objectlayer
- GetItemSubClass objectlayer
- GetItemInventoryType objectlayer
- GetItemBagFamily objectlayer
- GetItemDisplayId objectlayer
- GetItemMaterial objectlayer
- GetItemRecordDword1b4 objectlayer
- GetItemRecord objectlayer
- CGItem_C::GetRepairCost objectlayer
- ItemRecordDword1c8IsSet objectlayer
- ItemRecordDword1ccIsSet objectlayer
- CGPlayer_C::ReadQuestComplete objectlayer
- OnRewardItemRecord objectlayer
- ReportQuestItemProgress objectlayer
- CGPlayer_C::SwapItems objectlayer
- OnSwapItemRecord objectlayer
- CGPlayer_C::AutoEquipCursorItem objectlayer
- OnAutoEquipItemRecord objectlayer
- IsSelfResurrectItem objectlayer
- CGPlayer_C::ApplyEquipmentDisplay objectlayer
- BaseHandlerUse objectlayer
- HandleLootStartRoll objectlayer
- OnLootRollItemReady objectlayer
- HandleLootAllPassed objectlayer
- OnAllPassedItemReady objectlayer
- HandleLootRollWon objectlayer
- OnWinnerNameReady objectlayer
- OnWonItemReady objectlayer
- VoteOnLootRoll objectlayer
- HandleLootRoll objectlayer
- OnRollerNameReady objectlayer
- OnRollItemReady objectlayer
- GetCombatLogName objectlayer
- LogItemEnchantment objectlayer
- OnCombatLogItemRecord objectlayer
- LogTradeSkillItem objectlayer
- LogFeedPet objectlayer
- LogDurabilityItem objectlayer
- LogOpenLock objectlayer
- GetItemDescRecordDword5c objectlayer
- GetItemDescClass objectlayer
- GetItemDescSubClass objectlayer
- GetItemDescInventoryType objectlayer
- GetItemDescDisplayId objectlayer
- GetItemDescMaterial objectlayer
- GetItemDescRecordDword1b4 objectlayer
- SpellHistory::GetCooldown spell
- SpellHistory::HasHeldRecord spell
- ReportCastFailure spell
- ShowItemCastFailure spell
- ShowProspectCastFailure spell
- AdjustCategoryRecovery spell
- SetSpellCooldownRemaining spell
- GetItemCooldown spell
- IsItemSpellHeld spell
- Spell_C::GetMinMaxRange spell
- CheckSpellEquippedItem spell
- SendCast spell
- HandleSpellGo spell
- OnItemRecordForCooldown spell
Callees 8
- CDataStore::PutUInt32 base
- CDataStore::PutGuid base
- 0x55b630 dbcache
- ClearDbCacheLink dbcache
- LinkDbCacheCallback dbcache
- 0x56d610 dbcache
- ClientServices::Send net
- SMemAlloc storm
Calls and jumps by a bare address, from tables/calls.tsv.