Quantcast
WoWInterface - View Single Post - New artifact API
View Single Post
08-18-18, 02:32 PM   #9
dssd
A Fallenroot Satyr
Join Date: May 2016
Posts: 25
In BfA there's two new Lua API namespaces for Azerite items.

The necklace is considered an "Azerite Item" and is under the C_AzeriteItem namespace, see /api AzeriteItem

The other pieces that are powered by the necklace are considered "Azerite Empowered Items" and are in the C_AzeriteEmpoweredItem namespace, see /api AzeriteEmpoweredItem


To answer your question on the name, this is how Blizzard does it.
Code:
local azeriteItemLocation = C_AzeriteItem.FindActiveAzeriteItem()
if azeriteItemLocation then
    local azeriteItem = Item:CreateFromItemLocation(azeriteItemLocation);
    print(azeriteItem:GetItemName())
end
  Reply With Quote