benilla-re systems structs docs

Script::GetMasterLootCandidate

function · ui · primitive

Address
0x4c2f10 · 146 bytes, up to 0x4c2fa1
Signature
int __fastcall (lua_State *L)
Meaning
Returns the name of the master loot candidate at a 1-based index, or nil when empty or not yet cached
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/masterloot#candidates

Finding: Candidates in ui: master loot and the loot method

GetMasterLootCandidate(index) takes a number (else Usage: GetMasterLootCandidate(index)), subtracts 1 and asks 0x61c660 for the GUID at that index of the 40-entry candidate array. The array is dense in wire order outside a raid and keyed by subgroup (five slots per group) in a raid, so a walk to the first nil ends at the first gap. A zero GUID returns nil. Otherwise it asks the name cache; a cached name is returned, and a missing name returns nil while registering 0x4c2fb0 to raise 504 when the name arrives. It always returns one value, and checks no range itself.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 8

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