benilla-re systems structs docs

AutoLootAll

function · ui · primitive

Address
0x4c1fa0 · 696 bytes, up to 0x4c2257
Signature
void __fastcall (uint32_t flag)
Meaning
Sends the money and plain rows, clears the auto-loot byte, then closes an empty window or signals LOOT_OPENED
Confidence
verified, proof one
Finding
ui/autoloot#auto-loot
Test
ui::auto_loot_sweep_difftest

Finding: Auto-loot in ui: auto-loot

0x4c1fa0(flag) sweeps the open window. It returns at once while item records are pending, and with no active player only signals LOOT_OPENED. Otherwise, in order: it sends CMSG_LOOT_MONEY when the money cell is not 0 (−1 too), and for money above 0 plays the coin sound and, outside a party and a raid, prints the money line, once per source; it sends each row of loot type 0 as a click does (item sound, CMSG_AUTOSTORE_LOOT_ITEM), except a bind-on-pickup row of quality 2 or more, of which the first raises LOOT_BIND_CONFIRM; other types are left; it clears the player's auto-loot byte; then it closes the loot with release when LootHasContents finds nothing, else signals LOOT_OPENED if flag is 0.

The derivation is in the doc.

Callers 4

Callees 18

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