EJ_GetLootInfo

From Warcraft Wiki
Jump to navigation Jump to search
GitHub Octocat.png  Townlong-Yak Globe.png  Townlong-Yak BAD.png  Blizz.gif  ProfIcons engineering.png C_EncounterJournal.GetLootInfo 11.1.5 (60428)4.4.2 (59734)1.15.7 (60191) + 9.0.1 / 4.4.0 / 1.15.3
GitHub Octocat.png  Townlong-Yak Globe.png  Townlong-Yak BAD.png  Blizz.gif  ProfIcons engineering.png C_EncounterJournal.GetLootInfoByIndex 11.1.5 (60428)4.4.2 (59734)1.15.7 (60191) + 9.0.1 / 4.4.0 / 1.15.3
GitHub Octocat.png  Townlong-Yak Globe.png EJ_GetLootInfo + 4.2.0

Returns loot info for an encounter or instance.

itemID, encounterID, name, icon, slot, armorType, link = EJ_GetLootInfo(lootID)
                                                       = EJ_GetLootInfoByIndex(index [, encounterIndex])

Arguments (EJ_GetLootInfo)

lootID
number

Arguments (EJ_GetLootInfoByIndex)

index
number - ranging from 1 to EJ_GetNumLoot.
encounterIndex
number (optional) - index of any multiple bosses that drop the same loot, ranging from 1 to EJ_GetNumEncountersForLootByIndex. This makes it possible for the FrameXML to show two boss names for a loot item. [1]

Returns

itemID
number
encounterID
number
name
string - item name, including quality color escape sequence.
icon
number - FileID
slot
string - INVTYPE, e.g. "Two-Hand" or "Shoulder".
armorType
string - e.g. "Cloth" or "Mail". The string will be colored red if the item cannot be equipped.
link
string - ItemLink

Triggers events

Patch changes