View Single Post
05-09-14, 06:53 PM   #13
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
If GetItemInfo works then so does GetitemFamily, they both rely on the item being cached.

If I understand what you're trying to do here, and you only want items that are at least epic quality and aren't considered enchanting materials, then you can try something like this..
Lua Code:
  1. local _, item, quantity, quality = GetLootSlotInfo(i)
  2. if quality >= 4 and bit.band(GetItemFamily(GetLootSlotLink(i) or '') or 0, 0x0040) == 0 then
  Reply With Quote