benilla-re systems structs docs

TradeInfoSetPlayerItem

function · ui · primitive

Address
0x4bfa70 · 160 bytes, up to 0x4bfb0f
Signature
uint32_t __fastcall (uint32_t slot, uint8_t bagSlot, uint64_t item, uint64_t container)
Meaning
Sends the set or clear of an own trade slot, stores its item, container and slot byte and signals the change
Confidence
verified, proof one
Finding
ui/trade#the-own-offer

Finding: The own offer in ui: trade requests and status messages

The own offer is three arrays over slots 0 to 6: the item GUID (0xb716d0), its container's GUID (0xb715e8) and its bag-relative slot byte (0xb71590). 0x4bfa70(slot, bagSlot, item, container) returns 0 for a slot outside 0 to 6. A zero item sends CMSG_CLEAR_TRADE_ITEM (0x5d4480); any other sends CMSG_SET_TRADE_ITEM (0x5d4380) and returns 0 when that refuses. It then stores the three values, signals TRADE_PLAYER_ITEM_CHANGED (324) with slot + 1 and returns 1. It tests neither an open trade nor whether another slot holds the item.

The derivation is in the doc.

Callers 4

Callees 3

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