Quantcast
Download
(1 Kb)
Download
Updated: 01/20/20 08:04 PM
Pictures
File Info
Compatibility:
Harrowstorm (5.3.0)
Dragonhold (5.2.5)
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Updated:01/20/20 08:04 PM
Created:11/21/19 09:21 AM
Monthly downloads:242
Total downloads:503
Favorites:5
MD5:
Categories:Miscellaneous, Group, Guild & Friends
5.2.5
RealCP
Version: 1.2.1
by: MrPikPik [More]
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:
  1. -- Original function
  2. function GetLevelOrChampionPointsStringNoIcon(level, championPoints)
  3.     if championPoints and championPoints > 0 then
  4.         if championPoints > CHAMPION_CAP then
  5.             return tostring(CHAMPION_CAP)
  6.         else
  7.             return tostring(championPoints)
  8.         end
  9.     elseif level and level > 0 then
  10.         return tostring(level)
  11.     else
  12.         return ""
  13.     end
  14. end
  15.  
  16. -- Patched function
  17. function GetLevelOrChampionPointsStringNoIcon(level, championPoints)
  18.     if championPoints and championPoints > 0 then
  19.         return tostring(championPoints)
  20.     elseif level and level > 0 then
  21.         return tostring(level)
  22.     else
  23.         return "|caa0000?|r"
  24.     end
  25. end
1.2.1
- Updated API version from 100029 to 100030 for support of the Harrowstorm DLC on the PTS.


1.2
- CP now showing in group window and in open world while looking at a player.


1.1
- Abilty to restore original functions.


1.0
- Initial release.
Archived Files (2)
File Name
Version
Size
Uploader
Date
1.2
1kB
MrPikPik
11/21/19 02:03 PM
1.1
1kB
MrPikPik
11/21/19 09:34 AM


Post A Reply Comment Options
Unread 12/06/19, 09:15 AM  
MrPikPik
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 1
Uploads: 1
Originally Posted by Rhyono
Missing levels are supposedly fixed now.
Rarely they are missing, but usually they are all there on game start
Report comment to moderator  
Reply With Quote
Unread 11/29/19, 04:47 PM  
Rhyono
AddOn Author - Click to view AddOns

Forum posts: 583
File comments: 1149
Uploads: 19
Missing levels are supposedly fixed now.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: