Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

ESOUI » Developer Discussions » Lua/XML Help » Problem getting correct data from GetSkillLineXPInfo()


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off