benilla-re systems structs docs

Script::GiveMasterLoot

function · ui · primitive

Address
0x4c2fd0 · 117 bytes, up to 0x4c3044
Signature
int __fastcall (lua_State *L)
Meaning
Gives a loot slot to the candidate at an index through 0x4c2940, doing nothing for an empty candidate
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/masterloot#giving-the-item

Finding: Giving the item in ui: master loot and the loot method

GiveMasterLoot(slot, index) takes two numbers (Usage: GiveMasterLoot(slot, index)), both 1-based, finds the candidate GUID of the index and does nothing if it is 0; otherwise it calls the worker 0x4c2940 and returns nothing. The worker needs an open window, applies the coin-row shift, bounds the slot below 16, needs an occupied row and a wire loot type of 2, and then sends CMSG_LOOT_MASTER_GIVE (0x2a3): the loot source GUID (u64), the wire slot byte (u8) and the candidate GUID (u64). Every failed check returns without a message.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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