benilla-re systems structs docs

s_tradeOwnMoney

global · ui

Address
0xb71740 · 4 bytes, up to 0xb71743
Type
uint32_t
Meaning
Holds the copper the player has put into the trade window
Confidence
verified, proof one
Finding
ui/trade#a-refused-offer-slot

Finding: A refused offer slot in ui: trade requests and status messages

Status 22 reads a trailing byte, prints ERR_TRADE_WRONG_REALM and calls 0x4bfbd0(byte). The byte 0xff zeroes the offered money, signals PLAYER_TRADE_MONEY (0x146) and PLAYER_MONEY (0xc8). Any other byte is a slot: its item is unlocked, its record zeroed and TRADE_PLAYER_ITEM_CHANGED (0x144) is signalled with the 1-based slot. The window and network state stay as they are. The byte is not bounded, so a value from 7 to 0xfe writes past the arrays.

The derivation is in the doc.