benilla-re systems structs docs

SendMasterLootGive

function · ui · primitive

Address
0x4c2940 · 289 bytes, up to 0x4c2a60
Signature
void __fastcall (int slot, uint64_t candidate)
Meaning
Sends CMSG_LOOT_MASTER_GIVE for a type 2 loot row after the window, slot and type checks
Confidence
verified, proof one
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 1

Callees 5

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