# C_Loot: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_Loot

## Functions

### C_Loot.GetLootRollDuration

```lua
duration = C_Loot.GetLootRollDuration(rollID)
```

Arguments:
- `rollID`: number

Returns:
- `duration`: number, may be nil

### C_Loot.IsLegacyLootModeEnabled

```lua
isLegacyLootModeEnabled = C_Loot.IsLegacyLootModeEnabled()
```

Returns:
- `isLegacyLootModeEnabled`: bool

## Events

### AZERITE_EMPOWERED_ITEM_LOOTED

Payload, after the event's name:
- `itemLink`: cstring

### BONUS_ROLL_ACTIVATE

No payload.

### BONUS_ROLL_DEACTIVATE

No payload.

### BONUS_ROLL_FAILED

No payload.

### BONUS_ROLL_RESULT

Payload, after the event's name:
- `typeIdentifier`: cstring
- `itemLink`: cstring
- `quantity`: number
- `specID`: number
- `sex`: number
- `personalLootToast`: bool
- `currencyID`: number, may be nil
- `isSecondaryResult`: bool
- `corrupted`: bool

### BONUS_ROLL_STARTED

No payload.

### CANCEL_ALL_LOOT_ROLLS

No payload.

### CANCEL_LOOT_ROLL

Payload, after the event's name:
- `rollID`: number

### CONFIRM_DISENCHANT_ROLL

Payload, after the event's name:
- `rollID`: number
- `rollType`: number

### CONFIRM_LOOT_ROLL

Payload, after the event's name:
- `rollID`: number
- `rollType`: number
- `confirmReason`: cstring

### ENCOUNTER_LOOT_RECEIVED

Payload, after the event's name:
- `encounterID`: number
- `itemID`: number
- `itemLink`: cstring
- `quantity`: number
- `itemName`: cstring
- `fileName`: cstring

### GARRISON_MISSION_BONUS_ROLL_LOOT

Payload, after the event's name:
- `itemID`: number
- `quantity`: number

### ITEM_PUSH

Payload, after the event's name:
- `bagSlot`: luaIndex
- `iconFileID`: number

### LEGACY_LOOT_RULES_CHANGED

Payload, after the event's name:
- `isLegacyLootModeEnabled`: bool

### LOOT_BIND_CONFIRM

Payload, after the event's name:
- `lootSlot`: luaIndex

### LOOT_CLOSED

No payload.

### LOOT_ITEM_AVAILABLE

Payload, after the event's name:
- `itemTooltip`: cstring
- `lootHandle`: number

### LOOT_ITEM_ROLL_WON

Payload, after the event's name:
- `itemLink`: cstring
- `rollQuantity`: number
- `rollType`: number
- `roll`: number
- `upgraded`: bool

### LOOT_OPENED

Payload, after the event's name:
- `autoLoot`: bool
- `isFromItem`: bool

### LOOT_READY

Payload, after the event's name:
- `autoloot`: bool

### LOOT_ROLLS_COMPLETE

Payload, after the event's name:
- `lootHandle`: number

### LOOT_SLOT_CHANGED

Payload, after the event's name:
- `lootSlot`: luaIndex

### LOOT_SLOT_CLEARED

Payload, after the event's name:
- `lootSlot`: luaIndex

### MAIN_SPEC_NEED_ROLL

Payload, after the event's name:
- `rollID`: number
- `roll`: number
- `isWinning`: bool

### OPEN_MASTER_LOOT_LIST

No payload.

### PET_BATTLE_LOOT_RECEIVED

Payload, after the event's name:
- `typeIdentifier`: cstring
- `itemLink`: cstring
- `quantity`: number

### PLAYER_LOOT_SPEC_UPDATED

No payload.

### QUEST_CURRENCY_LOOT_RECEIVED

Payload, after the event's name:
- `questID`: number
- `currencyId`: number
- `quantity`: number

### QUEST_LOOT_RECEIVED

Payload, after the event's name:
- `questID`: number
- `itemLink`: cstring
- `quantity`: number

### SHOW_LOOT_TOAST

Payload, after the event's name:
- `typeIdentifier`: cstring
- `itemLink`: cstring
- `quantity`: number
- `specID`: number
- `sex`: number
- `personalLootToast`: bool
- `toastMethod`: number
- `lessAwesome`: bool
- `upgraded`: bool
- `corrupted`: bool

### SHOW_LOOT_TOAST_LEGENDARY_LOOTED

Payload, after the event's name:
- `itemLink`: cstring

### SHOW_LOOT_TOAST_UPGRADE

Payload, after the event's name:
- `itemLink`: cstring
- `quantity`: number
- `specID`: number
- `sex`: number
- `baseQuality`: number
- `personalLootToast`: bool
- `lessAwesome`: bool

### SHOW_PVP_FACTION_LOOT_TOAST

Payload, after the event's name:
- `typeIdentifier`: cstring
- `itemLink`: cstring
- `quantity`: number
- `specID`: number
- `sex`: number
- `personalLootToast`: bool
- `lessAwesome`: bool

### SHOW_RATED_PVP_REWARD_TOAST

Payload, after the event's name:
- `typeIdentifier`: cstring
- `itemLink`: cstring
- `quantity`: number
- `specID`: number
- `sex`: number
- `personalLootToast`: bool
- `lessAwesome`: bool

### START_LOOT_ROLL

Payload, after the event's name:
- `rollID`: number
- `rollTime`: number
- `lootHandle`: number, may be nil

### TRIAL_CAP_REACHED_MONEY

No payload.

### UPDATE_MASTER_LOOT_LIST

No payload.

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
