Crimeny, I'm so embarassed ...
The specialization skills show up right there in your spellbook in General. I
thought I had seen them
somewhere...
It's ugly as sin, but you could use a loop with GetSpellName to determine what specializations a character has:
Code:
local i = 1;
while true do
local spellName, spellRank = GetSpellName(i, BOOKTYPE_SPELL)
if not spellName then
do break end
end
-- You can check by specific "spell" name for the known specializations ...
if ( spellName == "Armorsmith" ) then
-- do stuff here
end
-- Or you could generate a much smaller list by only looking at spells with a rank of "Artisan" ...
-- Note that this will generate a list of all Artisan level tradeskills
if ( spellRank == "Artisan" ) then
-- do stuff here
end
-- or you could just process the entire list
-- process spellName or spellRank
i = i + 1
end