Thread: SyncUI help
View Single Post
08-16-17, 06:03 PM   #9
lightspark
A Rage Talon Dragon Guard
 
lightspark's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 341
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