benilla-re systems structs docs

s_targetTradeEnchantId

global · ui

Address
0xb715d8 · 4 bytes, up to 0xb715db
Type
uint32_t
Meaning
Holds the enchantment id of the item in the target's seventh trade slot
Confidence
verified, proof one
Finding
ui/popups#the-trade-enchant-clash

Finding: The trade enchant clash in ui: session and dialog verbs

ReplaceTradeEnchant() calls 0x6e6900 and pushes nothing. ClickTargetTradeButton(index) raises Usage: ClickTargetTradeButton(index) for a non-number, hands a held money cursor to TradeAddMoney, and for index 7 calls 0x496170: with an enchant already in the slot and the pending spell an enchant (effect 0x35) it signals TRADE_REPLACE_ENCHANT with two enchantment names, else it applies the enchant through 0x6e6900 at once. BeginTrade() and CancelTrade() call Trade_C_BeginTrade and TradeCancel, which send opcodes 0x117 and 0x11c with no body.

The derivation is in the doc.