Show gained/lost experience amounts
This source edit simply displays the amount of gained and lost experience to all players. This is something you will find in other private MMOs, such as Ragnarok Online or Lineage 2, and it answers a lot of questions I've had over the years about exp distribution calculations so felt it'd be a great insight for players, even if it distracts from nostalgic immersion.
RebuildEQ is my little self project and is utilizing this if you'd like to see it in action. Note: The EXP display only shows gained NORMAL exp, not AA. Gained experience http://i.imgur.com/yy9OwI0.png Lost experience (You can flip the value (-i) to remove the negative) http://i.imgur.com/qTs7kqM.png Ressurected 96% experience (It's technically ~95.9992%!) http://i.imgur.com/O1mImS3.png The code: zone/exp.cpp Before: Code:
if (isrezzexp) Code:
i = set_exp - m_pp.exp; zone/exp.cpp Before: Code:
else if((set_exp + set_aaxp) < (m_pp.exp+m_pp.expAA)){ //only loss message if you lose exp, no message if you gained/lost nothing. Code:
else if((set_exp + set_aaxp) < (m_pp.exp+m_pp.expAA)){ //only loss message if you lose exp, no message if you gained/lost nothing. |
I actually have something similar in my log.out, especially when I was working on limited max XP per quest and kill to 11%.
|
Thank you!
|
Very cool will have to add this next time I build.
|
Added a note: This assumes all gained and lost experience is NORMAL exp, (I have AA's disabled on my server). If you guys plan to use this on a server with AAs enabled, more work is involved.
|
I guess that would make sense. I am not planning on updating my source any time soon so will revisit when I do. If anyone else dose update it to work with AA's would be much appreciated if you posted it here. I am not sure I am able to figure it out but if I do I will be sure to post it.
|
It seems people are more interested in edits like this than I expected, so, if I find some time I'll toss in the AA version, and likely will post other snippets similar to this. Love the feedback, thanks.
|
I wonder how much Log.Out to something like GmSay actually uses resources if you are not subscribed to it? One place this would be noticeable would be the output of spells or mob pathing.
|
This is amazing Shin. Thank you for your work.
|
If edits like these are something usable, it is really easy to just turn them on via a rule, so people can use them if they want. Then they can exist in the main branch without issue
|
Quote:
|
Quote:
|
|
All times are GMT -4. The time now is 02:33 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.