C_Loot
namespaceavailable in: camelotStatus in wowlua
2 functions: 0 implemented, 0 recorded, 2 guessed. 37 events, 7 of them fired by the emulator on its own.
Functions
| function | what it does | status |
|---|---|---|
GetLootRollDuration | Returns how long a loot roll lasts. · by wowlua(rollID: number): number? | guessed |
IsLegacyLootModeEnabled | Returns true if legacy loot mode is enabled by entering an instance at at least eleven levels above the intended content. For example, raids are designed for level 60 characters, so legacy loot mode would be enabled for level 71 or higher characters. Boss encounters defeated in legacy loot mode will drop loot acting as if the maximum amount of characters are in the instance and can drop items from the full loot pool, not just loot that is in the character's loot specialization.(): boolean | guessed |
"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.
Events
| event | payload | fired by the emulator |
|---|---|---|
AZERITE_EMPOWERED_ITEM_LOOTED | itemLink: string | not implemented |
BONUS_ROLL_ACTIVATE | no payload | not implemented |
BONUS_ROLL_DEACTIVATE | no payload | not implemented |
BONUS_ROLL_FAILED | no payload | not implemented |
BONUS_ROLL_RESULT | typeIdentifier: string, itemLink: string, quantity: number, specID: number, sex: number, personalLootToast: boolean, currencyID: number?, isSecondaryResult: boolean, corrupted: boolean | not implemented |
BONUS_ROLL_STARTED | no payload | not implemented |
CANCEL_ALL_LOOT_ROLLS | no payload | implemented |
CANCEL_LOOT_ROLL | rollID: number | not implemented |
CONFIRM_DISENCHANT_ROLL | rollID: number, rollType: number | not implemented |
CONFIRM_LOOT_ROLL | rollID: number, rollType: number, confirmReason: string | not implemented |
ENCOUNTER_LOOT_RECEIVED | encounterID: number, itemID: number, itemLink: string, quantity: number, itemName: string, fileName: string | not implemented |
GARRISON_MISSION_BONUS_ROLL_LOOT | itemID: number, quantity: number | not implemented |
ITEM_PUSH | bagSlot: number, iconFileID: number | implemented |
LEGACY_LOOT_RULES_CHANGED | isLegacyLootModeEnabled: boolean | not implemented |
LOOT_BIND_CONFIRM | lootSlot: number | not implemented |
LOOT_CLOSED | no payload | implemented |
LOOT_ITEM_AVAILABLE | itemTooltip: string, lootHandle: number | not implemented |
LOOT_ITEM_ROLL_WON | itemLink: string, rollQuantity: number, rollType: number, roll: number, upgraded: boolean | not implemented |
LOOT_OPENED | autoLoot: boolean, isFromItem: boolean | implemented |
LOOT_READY | autoloot: boolean | implemented |
LOOT_ROLLS_COMPLETE | lootHandle: number | not implemented |
LOOT_SLOT_CHANGED | lootSlot: number | not implemented |
LOOT_SLOT_CLEARED | lootSlot: number | implemented |
MAIN_SPEC_NEED_ROLL | rollID: number, roll: number, isWinning: boolean | not implemented |
OPEN_MASTER_LOOT_LIST | no payload | not implemented |
PET_BATTLE_LOOT_RECEIVED | typeIdentifier: string, itemLink: string, quantity: number | not implemented |
PLAYER_LOOT_SPEC_UPDATED | no payload | not implemented |
QUEST_CURRENCY_LOOT_RECEIVED | questID: number, currencyId: number, quantity: number | not implemented |
QUEST_LOOT_RECEIVED | questID: number, itemLink: string, quantity: number | implemented |
SHOW_LOOT_TOAST | typeIdentifier: string, itemLink: string, quantity: number, specID: number, sex: number, personalLootToast: boolean, toastMethod: number, lessAwesome: boolean, upgraded: boolean, corrupted: boolean | not implemented |
SHOW_LOOT_TOAST_LEGENDARY_LOOTED | itemLink: string | not implemented |
SHOW_LOOT_TOAST_UPGRADE | itemLink: string, quantity: number, specID: number, sex: number, baseQuality: number, personalLootToast: boolean, lessAwesome: boolean | not implemented |
SHOW_PVP_FACTION_LOOT_TOAST | typeIdentifier: string, itemLink: string, quantity: number, specID: number, sex: number, personalLootToast: boolean, lessAwesome: boolean | not implemented |
SHOW_RATED_PVP_REWARD_TOAST | typeIdentifier: string, itemLink: string, quantity: number, specID: number, sex: number, personalLootToast: boolean, lessAwesome: boolean | not implemented |
START_LOOT_ROLL | rollID: number, rollTime: number, lootHandle: number? | not implemented |
TRIAL_CAP_REACHED_MONEY | no payload | not implemented |
UPDATE_MASTER_LOOT_LIST | no payload | not implemented |
An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("AZERITE_EMPOWERED_ITEM_LOOTED").
sources
Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Loot system, camelot 1.60.1). Descriptions: warcraft.wiki.gg's API pages, by its contributors, CC BY-SA 4.0 ↗; written by wowlua where no documentation describes the entry.