View Single Post
04/09/14, 07:58 AM   #1
ZaneMcDougal
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 2
Problem getting correct data from GetSkillLineXPInfo()

From the API on ESOUI wiki:

GetSkillLineXPInfo(SkillType skillType, luaindex skillIndex)

Returns: integer lastRankXp, integer nextRankXP, integer currentXP

my code: (8,6) corresponds to woodworking

xp1, xp2, xp3 = GetSkillLineXPInfo(8,6);

result:
xp1 = nil
xp2 = nil
xp3 = lastRankXP

Pretty sure i'm screwing something up but have no idea.

p.s. Spent 3 hours debugging only to realize I put a space in my "elseif's" (else if vice elseif) = FAIL.
  Reply With Quote