benilla-re systems structs docs

TradeInfoClearPlayerItem

function · ui · orchestration

Address
0x4bfbd0 · 121 bytes, up to 0x4bfc48
Signature
void __thiscall (void *this)
Meaning
Clears the own offer slot, or the offered money for 0xff, and signals the change
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.

Callers 2

Callees 3

Calls and jumps by a bare address, from tables/calls.tsv.