I've used the Skill Line info in my addons. But stop before using the XP side. Here's what I have used it for.
Use the tradeskill constant to get access to the skilltype.
local skillType,skillIndex = GetCraftingSkillLineIndices(tradeSkill)
You then use skillType and skillIndex to get the rest of the information.
local skillName,skillRank = GetSkillLineInfo(skillType,skillIndex)
local lastRankXp, nextRankXP, currentXP = GetSkillLineXPInfo(skillType, skillIndex)
local numAbilities = GetNumSkillAbilities(skillType, skillIndex)
And then onto the ability specific functions etc.
Last edited by Xrystal : 04/09/14 at 08:41 AM.
|