Script::CancelAuction
function · ui · primitive
- Address
0x4d0260· 374 bytes, up to0x4d03d5- Signature
int __fastcall (lua_State *L)- Meaning
- Sends 0x257 for an owner list row after checking money for the cancel fee
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/auctionlists#cancelling
- Test
ui::luabind_4d0260_cancel_auction_min_increment
Finding: Cancelling in ui: auction lists, sorting and deposits
CancelAuction(index) takes the 1-based index into the owner list and sends 0x257 with the auctioneer GUID and that auction's id; an
out-of-range index or no auctioneer does nothing. When the auction has a current bid, the player must hold
at least that bid times 0.05 (the float 0x3d4ccccd, truncated), else ERR_NOT_ENOUGH_MONEY is shown and nothing
is sent. With no player the error shows at once (0x4d0301); with a player that is not the active one the coinage reads as 0 (0x4d031c), so any fee of 1 or more gives the error and a bid under 20 copper, whose truncated fee is 0, passes (0x4d0341, 0x4d0346). A non-number raises Usage: SetSelectedAuctionItem(index), the message of another function.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 10
- __ftol crt
- CDataStore::PutUInt32 base
- CDataStore::PutGuid base
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGGameUI::DisplayError ui
- ClientServices::Send net
- lua_isnumber lua
- lua_tonumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.