QuestCacheGetRecord
function · dbcache · orchestration
- Address
0x562a40· 534 bytes, up to0x562c55- Signature
void * __thiscall (void *this, uint32_t key, uint64_t *owner, void *callback, void *data, bool dedupe)- Meaning
- Returns a quest record by id, or keeps a callback and sends the cache query on a miss
- Confidence
- verified, proof two
- Finding
- dbcache/overview#asking-for-a-record
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 42
- RebuildQuestLog ui
- CompareQuestLogRows ui
- GetQuestHeaderOrdinal ui
- PointQuestMarker ui
- GetQuestRowTitle ui
- GetQuestRowTag ui
- GetQuestRowLevel ui
- 0x4df3c0 ui
- CanTurnInQuest ui
- SignalQuestLogForItem ui
- Script::GetAbandonQuestName ui
- Script::GetAbandonQuestItems ui
- Script::GetQuestLogQuestText ui
- Script::GetNumQuestLeaderBoards ui
- Script::GetQuestLogLeaderBoard ui
- Script::GetNumQuestLogRewards ui
- Script::GetNumQuestLogChoices ui
- Script::GetQuestLogRewardInfo ui
- Script::GetQuestLogChoiceInfo ui
- Script::GetQuestLogItemLink ui
- Script::GetQuestLogRewardMoney ui
- Script::GetQuestLogRewardSpell ui
- Script::GetQuestLogRequiredMoney ui
- Script::GetQuestLogPushable ui
- Script::QuestLogPushQuest ui
- Script::GetQuestTimers ui
- 0x4e1580 ui
- CompareLfgQuests ui
- HandleLookingForGroupPacket ui
- Script::GetLookingForGroup ui
- Script::GetLFGResults ui
- Script::GetLFGTypeEntries ui
- GameTooltip::SetQuestLogRewardSpell ui
- CGPlayer_C::ReadQuestComplete objectlayer
- OnQuestCompleteRecord objectlayer
- ReadQuestFailed objectlayer
- OnQuestFailedRecord objectlayer
- CGPlayer_C::ReadBuyItem objectlayer
- OnQuestRecordForItem objectlayer
- OnQuestLogChanged objectlayer
- OnAcceptedQuestRecord objectlayer
- HandleQuestUpdate objectlayer
Callees 8
- CDataStore::PutUInt32 base
- CDataStore::PutGuid base
- DbCacheLinkAddress dbcache
- ClearDbCacheLink dbcache
- LinkDbCacheCallback dbcache
- 0x56dc10 dbcache
- ClientServices::Send net
- SMemAlloc storm
Calls and jumps by a bare address, from tables/calls.tsv.