Quantcast WoWInterface - View Single Post - SyncUI help
Thread: SyncUI help
View Single Post
08-16-17, 06:03 PM   #10
lightspark
A Frostmaul Preserver
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 294
You can also use 12th and 13th returns of GetItemInfo to check for artefact relics, this way you don't need to care about client locale.

Lua Code:
  1. local function isEquip(itemID)
  2.     local equipLoc, _, _, classID, subClassID = select(9, GetItemInfo(itemID))
  3.  
  4.     if (classID == 3 and subClassID == 11) or (equipLoc ~= "" and equipLoc ~= "INVTYPE_BAG") then
  5.         return true
  6.     end
  7.  
  8.     return
  9. end
__________________

Last edited by lightspark : 08-16-17 at 06:05 PM.
  Reply With Quote