benilla-re systems structs docs

CGTradeInfo::GetGameError

function · ui · primitive

Address
0x4bfd70 · 65 bytes, up to 0x4bfdb0
Signature
uint32_t __fastcall (uint32_t inventoryResult, uint32_t sideByte)
Meaning
Maps a trade refusal result and wire byte to a message id
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/trade#inventory-refusals

Finding: Inventory refusals in ui: trade requests and status messages

Status 12 (the window closes) prints a message chosen by the inventory result and a wire byte: 0x4bfd70 maps result 4 (bag full), 0x11 (too many) and 0x1c (reagent) itself and passes every other result to the inventory-result table 0x622630, 61 distinct message ids in all. The id 0x1d1 shows nothing. For the three mapped results the byte picks between a line about the player and one about the partner.

resultbyte 0byte 1
40xc1 ERR_TRADE_TARGET_BAG_FULL0xc0 ERR_TRADE_BAG_FULL
0x110xc2 ERR_TRADE_MAX_COUNT_EXCEEDED0xc3 ERR_TRADE_TARGET_MAX_COUNT_EXCEEDED
0x1c0xd3 ERR_SPELL_FAILED_REAGENTS_GENERIC0x1d1 (nothing)

The derivation is in the doc.

Callers 1

Callees 1

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