AutoLootAll
function · ui · primitive
- Address
0x4c1fa0· 696 bytes, up to0x4c2257- 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
- EndLootWindow ui
- SetLootSource ui
- LootItemRecordArrived ui
- CGPlayer_C::SetAutoLoot objectlayer
Callees 18
- PlayItemDisplaySound sound
- SndInterfacePlayInterfaceSound sound
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- EndLootWindow ui
- AddChatLine ui
- LootHasContents ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- CGPlayer_C::SetAutoLoot objectlayer
- SendAutoStoreLootItem objectlayer
- CGPlayer_C::SendLootMoney objectlayer
- GetLootItemRollState objectlayer
- SStrCopy storm
- SStrPrintf storm
- SplitCopper unassigned
- FrameScript_GetText ui
- FrameScript_SignalEvent ui
- FrameScript_SignalEvent2 ui
Calls and jumps by a bare address, from tables/calls.tsv.