View Single Post
02-24-15, 08:22 AM   #2
odjur84
A Fallenroot Satyr
 
odjur84's Avatar
Join Date: Jan 2015
Posts: 24
Hi!

I don't know if I get, where your question aims to, but I would add something like

Code:
local classname, classFileName = UnitClassBase("player");
local b = false;
for i = 1, GetNumGlyphSockets() do
     _, _, _, glyphSpellID, _ = GetGlyphSocketInfo(i);
     if (glyphSpellID == 162532) then 
         b = true;
         break;
     end
end
if (classname ~= "Priest" or b == false) then
     core:Hide();
end
I don't know if this was helpful, since I'm just beginning with LUA and creating addons, but I hope it!

Cheers,

odjur84

[Edit: You may want to use classFileName rather than classname, because classname is localized and classFileName isn't. But I don't know the output of classFileName.]

Last edited by odjur84 : 02-24-15 at 08:29 AM.
  Reply With Quote