benilla-re systems structs docs

Script::SetSelectedAuctionItem

function · ui · primitive

Address
0x4cfda0 · 285 bytes, up to 0x4cfebc
Signature
int __fastcall (lua_State *L)
Meaning
Stores the auction id of a list row as the selection and returns nothing
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/auctionlists#selection

Finding: Selection in ui: auction lists, sorting and deposits

SetSelectedAuctionItem("type", index) stores the id of the indexed record in a cell per list (0x849058 browse, 0x84905c owner, 0x849060 bidder), or -1 when the index is outside the list, and returns nothing. GetSelectedAuctionItem("type") scans the list for that id and returns its 1-based position, or 0 when it is gone, so sorting never moves the selection. The cells start at -1 and the reset sets them to -1: a cell below 0 skips the scan, so the getter answers 0 until a selection is made. A type that is none of the three makes the getter return the number 1.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

Calls and jumps by a bare address, from tables/calls.tsv.