I'm looking for a code that simply shows me the current spell of my chosing, and it's cd. I have no issues with Clcinfo as a whole and I'm not asking for rotational stuff just this one icon. Just a simple icon for my current level 90 talent and the cd time. It works if I just do returnIconSpell("Holy Prism") or the other 2 but not all 3 together as one function.
I've attempted to use the behavior :
_, talent = GetTalentRowSelectionInfo(6)
if talent == 16 then
return IconSpell("Holy Prism")
else
return IconSpell("Light's Hammer")
else
return IconSpell("Execution Sentence")
end
Doesn't work and throws the error -> code error: [string "_, talent = GetTalentRowSelectionInfo(6)..."]:6: 'end' expected (to close 'if' at line 2) near 'else'
Any and all help would be appreciated.
Armory : Fear@Cho'GallUI Screen : Elv UIWow Progress : Vindictive Cpu : Intel I7-2600k Mem : 16gb Corsair Vengeance Psu : Corsair HX1050 Gfx : EVGA GTX 770
if talent == 16 then
return IconSpell("Holy Prism")
elseif talent == 9001 then
return IconSpell("Light's Hammer")
else
return IconSpell("Execution Scentence")
end
Two specific issues I noticed: first, you only check a condition for the *first* if statement. You probably want "elseif talent == 9001" for the second, with an appropriate value in place of 9001.
Second, you have if ... else ... else ... end, which is wrong. If you need more than one condition, you need to use "if ... elseif ... elseif ... else ... end" (note there is no space in the "elseif" part of the statement.
I wasnt having any luck with that either as it would pull holy prism then nothing else. I created a new grid and 3 new icons that I put on top of eachother and it'll only show the icon for the spell I have talented. Thanks for your help though
Armory : Fear@Cho'GallUI Screen : Elv UIWow Progress : Vindictive Cpu : Intel I7-2600k Mem : 16gb Corsair Vengeance Psu : Corsair HX1050 Gfx : EVGA GTX 770