With the raise of the CP cap to 3600 in Update 29 (ESO 6.3.5 - Flames of Ambition) this addon is rendered obsolete!
This tiny addon displays the actual amount of earned champion points of a player after they hit the current champion points cap of 810.
It does that by basically just patching a single UI function not to check if the CP are higher than 810.
The addon supports 2 commands:
/realcpdebug - Toggles the display of an error message if it fails to resolve the level
/realcprestore - Restores a saved, unpatched version of the original function. This effectivly "unloads" the addon.
The function sometimes gets called with wrong parameters! In that case it displays a red questionmark as the level, indicating it could not resolve the level! This seems to be a bug from the game itself though, since the patched function is almost identical to the unmodified one (according to the esoui reference on git):
Lua Code:
-- Original function
function GetLevelOrChampionPointsStringNoIcon(level, championPoints)
if championPoints and championPoints > 0 then
if championPoints > CHAMPION_CAP then
return tostring(CHAMPION_CAP)
else
return tostring(championPoints)
end
elseif level and level > 0 then
return tostring(level)
else
return ""
end
end
-- Patched function
function GetLevelOrChampionPointsStringNoIcon(level, championPoints)
if championPoints and championPoints > 0 then
return tostring(championPoints)
elseif level and level > 0 then
return tostring(level)
else
return "|caa0000?|r"
end
end