RebuildBuybackList
function · ui · primitive
- Address
0x4fafd0· 234 bytes, up to0x4fb0b9- Signature
void __stdcall ()- Meaning
- Rebuilds the buy-back slot cache from inventory slots 69 to 80, sorted by their timestamps
- Confidence
- verified, proof one
- Finding
- ui/merchant#buy-back-list
Finding: Buy-back list in ui: buy-back, shopping tooltips and repair
The buy-back list is a cache rebuilt by 0x4fafd0. It scans the player's inventory slots 69 to 80 and keeps each slot
whose GUID is set and whose entry in the 12 buy-back prices (descriptor bytes 0x1038 on) is nonzero. The kept
slots are sorted by the matching entry of the 12 timestamps (bytes 0x1068 on), the lowest first, and stored as
absolute slot numbers in 0xbddf24, with their count in 0xbddfac. The open vendor's GUID is 0xbddfa0. The
prices and timestamps are player fields; the item itself is the inventory slot's.
The derivation is in the doc.
Callers 2
Callees 3
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- _qsort crt
Calls and jumps by a bare address, from tables/calls.tsv.