Script::ClickTargetTradeButton
function · ui · primitive
- Address
0x4c0080· 102 bytes, up to0x4c00e5- Signature
int __fastcall (lua_State *L)- Meaning
- Clicks a slot of the target's trade window; slot 7 checks the enchant clash
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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.
Callers 0
None by a direct call or jump.
Callees 7
- __ftol crt
- ClearCursor ui
- CheckTradeEnchantClash ui
- TradeAddMoney objectlayer
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.