View Single Post
04/09/14, 08:36 AM   #3
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
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.
  Reply With Quote