ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Search/Requests (https://www.esoui.com/forums/forumdisplay.php?f=165)
-   -   Show CP Level On Alts Lower Than Level 50 (https://www.esoui.com/forums/showthread.php?t=8623)

amber1019 06/30/19 11:58 AM

Show CP Level On Alts Lower Than Level 50
 
I'm wanting to know my CP level on my alts that are lower than level 50.
Without having to go into the Champion UI and add up all the points myself to figure it out.
Or without having to go back to the character log-in screen to see my CP total.

Whether it's a command I can type in the chat and have the chat respond with my CP level,
Or whether it's a small addition to my character screen UI,
Or a small number somewhere on the Champion UI.

I don't care how it's done, but I'm tired of having all these alts below level 50 and not knowing quickly what my CP level is.
How it's not already implemented into the UI somehow blows my mind.

I found that the addon Foundry Tactical Combat includes it in its player unit frames. But I don't want to use its player unit frames. :(

So if someone could create another way for us to see our CP on lowbies, that would be awesome.
Or if someone knows a way for me to edit the lua of Slightly Improved Experience Bar for it to show CP on lowbie alts, that would be super cool as well.

Baertram 06/30/19 01:13 PM

Try these scripts in the chat:

If you are logged in to a char below level 50 it might return 0 though.
In the past I think they returned the CP points or level only if you already reached the CP ranks (at level 50) with each char.

Champion points earned
/script d("CP points: " .. GetPlayerChampionPointsEarned())

Champion points effective (usable)
/script d("CP points: " .. GetUnitEffectiveChampionPoints("player"))

Champion XP
/script d("CP XP: " .. GetPlayerChampionXP())

I'm not sure though if there is an API function to show the champion rank. I only know there are 2: for friendslist and guildlist. Maybe there is also one for the own characters but I haven't found it in the API today.

amber1019 06/30/19 01:30 PM

Script Works!
 
Quote:

Originally Posted by Baertram (Post 38540)
Champion points earned
/script d("CP points: " .. GetPlayerChampionPointsEarned())

This works on characters lower than level 50. It's what I was looking for.
I tried it on my level 37 Necromancer, and it came back with:
CP points: 377

Great! :D Just the information I need! :D

I'll save that in a word document to use in the future.
Although, it would be great if someone created a small addon that enabled you to type in a short command (like: /cp or /cppoints or /cplevel) to get that information to show in chat. Rather than having to remember that script.

But yes, thank you for the response! I really appreciate it!

Rhyono 06/30/19 01:36 PM

Quote:

Originally Posted by amber1019 (Post 38543)
Although, it would be great if someone created a small addon that enabled you to type in a short command (like: /cp or /cppoints or /cplevel) to get that information to show in chat. Rather than having to remember that script.

That is something extremely easy to do. You could use an addon like Hello World to get started. Then, you just need to create a chat command:

Lua Code:
  1. SLASH_COMMANDS["/cplevel"] = MyAddon.ShowCPLevel

Then make that function with the contents being:

Lua Code:
  1. d("CP points: " .. GetPlayerChampionPointsEarned())

amber1019 06/30/19 01:52 PM

Quote:

Originally Posted by Rhyono (Post 38544)
That is something extremely easy to do. You could use an addon like Hello World to get started.

That's great! Thanks for the tip.
But I'd really rather someone else made the addon, or implemented it into an addon that already exists.
I appreciate the information in case I ever want to do something else in the future, but I'd rather not deal with it myself right now.
Someone much more knowledgeable than me could obviously create it within mere minutes. :D

I'm hoping a kind and generous addon creator/author does something with this.
If not, I understand.
If so, much appreciated!

Baertram 06/30/19 02:29 PM

New addon SlashCommands

/cp -> Show the champion points earned

Feel free to use it and add your own slash comamnds.
I'm not going to oficcially release this.

amber1019 06/30/19 03:03 PM

Baertram Is Fantastic!
 
Quote:

Originally Posted by Baertram (Post 38546)
New addon SlashCommands

/cp -> Show the champion points earned

Feel free to use it and add your own slash comamnds.
I'm not going to oficcially release this.

You're SPECTACULAR, Baertram. Thank you SO much for taking the time to do that. You're officially one of my favorite people, ever.
I've added it to my dropbox for safekeeping and put a backup of it in another folder.
Thank you!


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

vBulletin © 2019, Jelsoft Enterprises Ltd
© 2014 - 2019 MMOUI