WowAddons

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

C_LootHistory.GetAllEncounterInfos

infos = C_LootHistory.GetAllEncounterInfos()

Returns

infosEncounterLootInfo[]

C_LootHistory.GetInfoForEncounter

info = C_LootHistory.GetInfoForEncounter(encounterID)

Arguments

encounterIDnumber

Returns

infoEncounterLootInfo may be nil

C_LootHistory.GetLootHistoryTime

time = C_LootHistory.GetLootHistoryTime()

Returns

timenumber

C_LootHistory.GetSortedDropsForEncounter

drops = C_LootHistory.GetSortedDropsForEncounter(encounterID)

Arguments

encounterIDnumber

Returns

dropsEncounterLootDropInfo[] may be nil

C_LootHistory.GetSortedInfoForDrop

info = C_LootHistory.GetSortedInfoForDrop(encounterID, lootListKey)

Arguments

encounterIDnumber
lootListKeynumber

Returns

infoEncounterLootDropInfo may be nil

Events

LOOT_HISTORY_CLEAR_HISTORY

No payload.

LOOT_HISTORY_GO_TO_ENCOUNTER

encounterIDnumber

LOOT_HISTORY_ONE_HUNDRED_ROLL

encounterIDnumber
lootListKeynumber

LOOT_HISTORY_UPDATE_DROP

encounterIDnumber
lootListKeynumber

LOOT_HISTORY_UPDATE_ENCOUNTER

encounterIDnumber

Tables

Enum.EncounterLootDropRollState enumeration

NeedMainSpec0
NeedOffSpec1
Transmog2
Greed3
NoRoll4
Pass5

EncounterLootDropInfo structure

lootListKeynumber
itemHyperlinkstring
playerRollStateEncounterLootDropRollState
currentLeaderEncounterLootDropRollInfo may be nil
isTiedbool default false
winnerEncounterLootDropRollInfo may be nil
allPassedbool default false
rollInfosEncounterLootDropRollInfo[]
startTimenumber
durationnumber

EncounterLootDropRollInfo structure

playerNamestring
playerGUIDWOWGUID
playerClassstring
isSelfbool
stateEncounterLootDropRollState
isWinnerbool default false
rollnumber may be nil

EncounterLootDrops structure

encounterIDnumber
dropsEncounterLootDropInfo[]

EncounterLootInfo structure

encounterNamestring
encounterIDnumber
startTimenumber
durationnumber

Il te faut WowAddons

Gratuit, pour Windows, macOS et Linux : il met l’addon dans ton jeu en un clic et le tient à jour. Ouvre-le une fois, puis appuie de nouveau sur Installer.

WowAddons tourne sur ton ordinateur : ouvre wowaddons.gg dessus.

Télécharger pour Windows