Thread Tools Display Modes
05/08/21, 12:32 AM   #1
DevIl
Join Date: May 2021
Posts: 2
ChampionsPoints

Hello, maybe anyone has a Solution 4 my problem.
The Funcction 'GetUnitXP('player')' return in my case (CP 1338) 217,954,891.

Then there is the Function 'GetNumChampionXPInChampionPoint(cp) and i think
Code:
 earned=0
 for i = 0, 1337 do       
        n = GetNumChampionXPInChampionPoint(i)       
        earned = earned + n
    end
    return earned + GetPlayerChampionXP()
should return nearly the same result like 'GetUnitXP('player')' , but it deliver in my case : 252,009,786.
That is a difference from 34,054,895!
Does anyone have any explanation for this incredible difference?
  Reply With Quote
05/08/21, 03:03 AM   #2
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
I'd guess that's the exp required for level 1-50?

Also the experience required for champion points is given by some formula which also works for 0, so GetNumChampionXPInChampionPoint(0) does return some number even though there is no 0th champion point. However, GetNumChampionXPInChampionPoint(0) is only 32k so it's not the main source of your difference.
  Reply With Quote
05/08/21, 03:51 AM   #3
DevIl
Join Date: May 2021
Posts: 2
Originally Posted by Shinni View Post
I'd guess that's the exp required for level 1-50?
difference.
Unfortunately, not. LvL XP 1 to 50 are ONLY round about 2.8M.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » ChampionsPoints

Thread Tools
Display Modes

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