benilla-re systems structs docs

s_merchantItemCount

global · ui

Address
0xbddfa8 · 4 bytes, up to 0xbddfab
Type
uint32_t
Meaning
Holds the number of rows of the open vendor
Confidence
verified, proof one
Finding
ui/merchantcursor#grabbing-a-merchant-row

Finding: Grabbing a merchant row in ui: the vendor cursors

With anything but an item on the cursor, PickupMerchantItem(index) grabs a row. The argument must be a number (a numeric string passes), truncated toward zero and reduced by 1. A bad argument, an index outside the item count (compared signed), no open merchant, or a row whose slot word +0 is 0 each clear the cursor and return. Picking the row whose entry is already the preview entry clears the cursor too. Otherwise it puts a kind 5 preview on the cursor: entry +4, display id +8, the zero-based row index. It raises no error.

The derivation is in the doc.