Originally Posted by dssd
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
|
I have seen this but I had not understood very well what the line:
Lua Code:
local azeriteItem = Item:CreateFromItemLocation(azeriteItemLocation);
did.
Now I see it creates an obj item and then I can get the name with :GetItemName())
It is a so different approach from legion artifact ... who knows why they change so much ? :)
Btw it works :))
Thanks so much to everyone.