LeaveWorldCancelTrade
function · ui · orchestration
- Address
0x4bf220· 5 bytes, up to0x4bf224- Signature
void __cdecl ()- Meaning
- Jumps to the trade module's leave-world hook 0x5d4310
- Confidence
- verified, proof one
- Finding
- ui/trade#starting-a-trade
Finding: Starting a trade in ui: trade requests and status messages
InitiateTrade("unit") raises Usage: InitiateTrade("unit") for a non-string. A token that names no unit does
nothing. If the active player's own object is dead or a ghost it shows ERR_PLAYER_DEAD and sends nothing;
otherwise it calls 0x5d3fb0 with mode 0. Nothing tests the target. BeginTrade() and CancelTrade() take no
arguments and send 0x117 and 0x11c. The other starters of 0x5d3fb0 are DropItemOnUnit and the world-click
drop, with mode 1. 0x117 has two callers (the script function and step 9 above), 0x118 two (steps 4 to 8), 0x119
one (step 2).
The derivation is in the doc.
Callers 1
- LeaveWorldUI ui
Callees 1
- TradeCancel objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.