RecountLfgTypes
function · ui · primitive
- Address
0x4e89c0· 346 bytes, up to0x4e8b19- Meaning
- Counts and sorts the eligible LfgDungeons entries per type and signals UPDATE_LFG_TYPES
- Confidence
- verified, proof one
- Finding
- ui/lfg#the-type-lists
Finding: The type lists in ui: looking for group
The table LfgDungeons (store 0xc0db2c, 14 fields, 56-byte rows) is grouped by its type word at +0x30: the
start-up function 0x4e7c70 copies each row's id into the dynamic array of its type, six lists of 12 bytes at
0xbc6f90. Type 3 is the quest list, 20 slots filled from the quest log. 0x4e89c0 recounts the lists for the
player: a row counts when the player's level lies in [MinLevel, MaxLevel] (+0x28, +0x2c) and its side word
(+0x34) is negative or equals the player's side, 0 for a faction template with flag 0x4, 1 for flag 0x2, else -1. The
counts go to the six words at 0xbc6f18, each list is sorted by 0x4e8b20, and UPDATE_LFG_TYPES is signalled.
The derivation is in the doc.
Callers 2
- RecountLfgLists ui
- CGPlayer_C::OnLevelChanged objectlayer
Callees 4
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- FrameScript_SignalEvent ui
- _qsort crt
Calls and jumps by a bare address, from tables/calls.tsv.