Script::CancelTradeAccept
function · ui · orchestration
- Address
0x4c06f0· 10 bytes, up to0x4c06f9- Signature
int __fastcall (lua_State *L)- Meaning
- Clears the player's accept flag and returns nothing
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/trade#accept-flags
Finding: Accept flags in ui: trade requests and status messages
Two flags hold the accept state: the player's (0xb71730) and the partner's (0xb71734). 0x4bf230(flag) and
0x4bf280(flag) set them and signal TRADE_ACCEPT_UPDATE (0x142) with both flags, player first, only when the flag
changes. Status 4 sets the partner's flag; status 9 clears it. Status 7 clears the player's, then the partner's, so it
can signal twice. A change of the player's flag also sends CMSG_ACCEPT_TRADE (0x11a) or CMSG_UNACCEPT_TRADE
(0x11b); AcceptTrade() and CancelTradeAccept() set it, and a new partner offer clears both flags.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.