World of Warcraft Forever API · C_LootHistory.md, for your AI
C_LootHistory
5 functions, 5 events, 5 tables, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an 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. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
infos = C_LootHistory.GetAllEncounterInfos()
Returns
info = C_LootHistory.GetInfoForEncounter(encounterID)
Arguments
Returns
time = C_LootHistory.GetLootHistoryTime()
Returns
drops = C_LootHistory.GetSortedDropsForEncounter(encounterID)
Arguments
Returns
info = C_LootHistory.GetSortedInfoForDrop(encounterID, lootListKey)
Arguments
encounterID | number | |
|---|
lootListKey | number | |
|---|
Returns
Events
encounterID | number | |
|---|
lootListKey | number | |
|---|
encounterID | number | |
|---|
lootListKey | number | |
|---|
Tables
NeedMainSpec | 0 |
|---|
NeedOffSpec | 1 |
|---|
Transmog | 2 |
|---|
Greed | 3 |
|---|
NoRoll | 4 |
|---|
Pass | 5 |
|---|
playerName | string | |
|---|
playerGUID | WOWGUID | |
|---|
playerClass | string | |
|---|
isSelf | bool | |
|---|
state | EncounterLootDropRollState | |
|---|
isWinner | bool default false | |
|---|
roll | number may be nil | |
|---|
encounterName | string | |
|---|
encounterID | number | |
|---|
startTime | number | |
|---|
duration | number | |
|---|