s_buybackCount
global · ui
- Address
0xbddfac· 4 bytes, up to0xbddfaf- Type
uint32_t- Meaning
- Holds the number of items the vendor will buy back
- Confidence
- verified, proof one
- Finding
- ui/merchantcursor#merchant-sell-cursors
Finding: Merchant sell cursors in ui: the vendor cursors
ShowMerchantSellCursor(index) and ShowBuybackSellCursor(index) have the same two opening gates and raise a
usage error for a non-number. The merchant form needs an open vendor and a row in range with a nonzero entry. It
shows Buy when the player's coinage is at least the row's price at +0x10, else UnableBuy (23), also when the
active player does not resolve. The buy-back form reads the inventory slot from the buy-back table and shows
UnableBuy when the coinage is below that slot's buy-back price, else Buy; a slot outside the buy-back range gets
Buy. Neither sends a packet.
The derivation is in the doc.