ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   ChampionsPoints (https://www.esoui.com/forums/showthread.php?t=9723)

DevIl 05/08/21 12:32 AM

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?:confused:

Shinni 05/08/21 03:03 AM

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.

DevIl 05/08/21 03:51 AM

Quote:

Originally Posted by Shinni (Post 43872)
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.:(


All times are GMT -6. The time now is 07:08 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI