TakeLootRow
function · ui · primitive
- Address
0x4c2790· 431 bytes, up to0x4c293e- Signature
void __fastcall (int slot, int confirm)- Meaning
- Takes a loot slot: the coin row, a master loot or roll block, a bind confirmation or a store request
- Confidence
- verified, proof one
- Finding
- ui/loot#taking-a-slot
Finding: Taking a slot in ui: the loot window
0x4c2790(slot, confirm) takes a row. A click (confirm 0) on slot 0 with money above 0 takes the coin row: it plays
LOOTWINDOWCOINSOUND, sends CMSG_LOOT_MONEY (0x15e), signals 268 with 1, sets the money to -1 and closes when
nothing is left. Otherwise the money-excluded index picks a row, and its wire loot type decides: 1 shows
ERR_LOOT_ROLL_PENDING (0x19a) and sends nothing; 2 signals OPEN_MASTER_LOOT_LIST (503) and sends nothing; any other
type, for a bind-on-pickup item (bonding 1) of quality 2 or more, signals LOOT_BIND_CONFIRM (287) with the index plus
one, stores the index in 0x847cec and sends nothing; else it plays the item sound and sends
CMSG_AUTOSTORE_LOOT_ITEM (0x108) with the wire slot byte.
The derivation is in the doc.
Callers 2
Callees 13
- PlayItemDisplaySound sound
- SndInterfacePlayInterfaceSound sound
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- EndLootWindow ui
- CGGameUI::DisplayError ui
- LootHasContents ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- SendAutoStoreLootItem objectlayer
- CGPlayer_C::SendLootMoney objectlayer
- GetLootItemRollState objectlayer
- FrameScript_SignalEvent ui
- FrameScript_SignalEvent2 ui
Calls and jumps by a bare address, from tables/calls.tsv.