benilla-re systems structs docs

Script::GetAuctionItemTimeLeft

function · ui · primitive

Address
0x4cf470 · 415 bytes, up to 0x4cf60e
Signature
int __fastcall (lua_State *L)
Meaning
Returns the time left bucket 1 to 4 of an auction row, removing rows long past their deadline
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/auctionlists#item-links-and-time-left

Finding: Item links and time left in ui: auction lists, sorting and deposits

GetAuctionItemLink("type", index) pushes one string, <colour>|Hitem:<entry>:<enchant>:<random>:<suffix>|h[<name>]|h|r, the colour by quality from seven fixed codes (grey, white, green, blue, purple, orange, light gold; quality 7 or more uses white), and pushes nothing on a miss. GetAuctionItemTimeLeft("type", index) pushes 1 to 4 and 0 on a miss: the number 1 when the deadline has passed, otherwise 1, 2 or 3 as the time left is under 30 minutes, 2 hours or 8 hours, else 4. A row more than 10000 ms past its deadline is also removed from the lists.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 10

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