View Single Post
12/08/17, 03:58 PM   #28
fritzOSU03
 
fritzOSU03's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2016
Posts: 19
Originally Posted by Ayantir View Post
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:
  1. local enchantingSkillType, enchantingSkillLine = GetCraftingSkillLineIndices(CRAFTING_TYPE_ENCHANTING)
  2. local provisionSkillType, provisionSkillLine = GetCraftingSkillLineIndices(CRAFTING_TYPE_PROVISIONING)
  3.  
  4. if skillType == SKILL_TYPE_TRADESKILL then
  5.     if skillIndex == 1 then
  6.         return 1
  7.     end
  8.    
  9.     if skillIndex == 2 then
  10.         if skillType == enchantingSkillType and skillLine == enchantingSkillLine then
  11.             return 1
  12.         end
  13.         if skillType == provisionSkillType and skillLine == provisionSkillLine then
  14.             return 1
  15.         end
  16.     end
  17. 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?
  Reply With Quote