BuybackItemArrived
function · ui · orchestration
- Address
0x4fb570· 13 bytes, up to0x4fb57c- Signature
void __stdcall (uint32_t, uint8_t)- Meaning
- Signals MERCHANT_UPDATE when a buy-back item record has arrived
- Confidence
- verified, proof one
- Finding
- ui/merchant#buy-back-reads
Finding: Buy-back reads in ui: buy-back, shopping tooltips and repair
GetNumBuybackItems() returns the cached count 0xbddfac, or 0 with no vendor open. GetBuybackItemInfo(index)
(1-based) returns six values: the item name, the icon path, the price (the price field of the slot),
the stack count, 0 (available), and 1 when the player can use the item else nil. An index past the count, a missing
player, an empty slot or an uncached item record returns nil, nil, 0, 1, 0, 1; the last is the number, not a
boolean. After the window closes the cache still answers (below). A cache miss queues the item with 0x4fb570, which signals MERCHANT_UPDATE (317).
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.