Originally Posted by Ayantir
I think you should consider more the language switch in craft.
and also the vampire / ww skilllines removed but not respec'ed.
|
What exactly do you mean by the language switch in craft? I'm checking those lines in the first and second tiers by their global values, not by their order. Only at the lowest level am I checking by the skill order. What am I missing?
Lua Code:
local enchantingSkillType, enchantingSkillLine = GetCraftingSkillLineIndices(CRAFTING_TYPE_ENCHANTING)
local provisionSkillType, provisionSkillLine = GetCraftingSkillLineIndices(CRAFTING_TYPE_PROVISIONING)
if skillType == SKILL_TYPE_TRADESKILL then
if skillIndex == 1 then
return 1
end
if skillIndex == 2 then
if skillType == enchantingSkillType and skillLine == enchantingSkillLine then
return 1
end
if skillType == provisionSkillType and skillLine == provisionSkillLine then
return 1
end
end
end
I'm sure iterating a hidden vampire and/or werewolf line can be done but I've not done it myself. Do you (or anyone else reading) know of a good way to iterate those trees when they're hidden?