View Single Post
05/03/14, 12:57 PM   #11
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
Originally Posted by lyravega View Post
I have somewhat similar problem. In my add-on I have a little code which just prints the loot to the chat with d().

That event gives us itemName, it is cool. But I wasn't able to link it to any other function, in order to get the quality of it. Same goes for the icon, I mean both the quality and the icon, you can get via GetLootItemInfo(), but I have no clue how to obtain the lootId.
Lua Code:
  1. for i = 1,GetNumLootItems() do
  2.      local lootID, lootName, lootIcon, lootCount, lootQuality, lootValue, lootIsQuest = GetLootItemInfo(i)
  3. end
  Reply With Quote