benilla-re systems structs docs

Script::GetLootRollTimeLeft

function · ui · primitive

Address
0x4c32d0 · 145 bytes, up to 0x4c3360
Signature
int __fastcall (lua_State *L)
Meaning
Returns the milliseconds left to a loot roll, 0 for an unknown roll
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/tradelootverbs#loot-rolls

Finding: Loot rolls in ui: trade window and loot roll verbs

GetLootRollItemInfo(id) returns five values for the open roll with that id: the icon path, the item name with its random suffix, the number 1, the quality, and 1 when the item binds when picked up (record field +0x194 equal to 1), else nil. An unknown roll or uncached item gives nil, nil, 1, 1, nil. GetLootRollItemLink(id) returns the roll's item link or no value. GetLootRollTimeLeft(id) returns the milliseconds until the roll's deadline (+0x28) minus the clock, or 0 for an unknown roll. RollOnLoot(id, type) calls the vote with confirm 0 and ConfirmLootRoll(id, type) with confirm 1. Each raises Usage: <Verb>(id) or (id, rollType) for non-numbers.

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.