NpcTextRead
function · dbcache · primitive
- Address
0x7c9fa0· 308 bytes, up to0x7ca0d3- Signature
void __thiscall (void *this, CDataStore *stream)- Meaning
- Reads an NPC text record: eight probabilities, string pairs, languages and emotes
- Confidence
- verified, proof two
- Finding
- dbcache/records#item-and-npc-text
- Test
dbcache::dbcache_npctext
Finding: Item and NPC text in dbcache: records
Item (0x7c9640, 0x1d4 bytes): dwords at +0, +4; four string pointers +8 to +0x14; 20 dwords +0x18 to +0x64; two arrays of ten at +0x68 and +0x90, read as
pairs; five groups of a float at +0xb8…, a float at +0xcc… and a dword at +0xe0…; seven dwords from +0xf4; the rest to +0x1d0, with a description pointer at +0x198, not written when empty.
NPC text (0x7c9fa0, 0x140): eight times: a float at +i·4, two string pointers at +0x20 + i·8 and +0x24 + i·8, a dword at +0x60 + i·4, then three emote pairs at +0x80 and +0xe0 strides.
The derivation is in the doc.
Callers 2
- 0x55d8b0 dbcache
- NpcCacheLoad dbcache
Callees 5
- CDataStore::GetInt32 base
- CDataStore::GetFloat base
- CDataStore::GetCString base
- SMemFree storm
- SStrDupA storm
Calls and jumps by a bare address, from tables/calls.tsv.