View Single Post
  #1  
Old 01-20-2016, 05:25 PM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 502
Post 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


Lost experience (You can flip the value (-i) to remove the negative)


Ressurected 96% experience (It's technically ~95.9992%!)


The code:
zone/exp.cpp
Before:
Code:
if (isrezzexp)
		this->Message_StringID(MT_Experience, REZ_REGAIN);
	else{
		if(membercount > 1)
			this->Message_StringID(MT_Experience, GAIN_GROUPXP);
		else if(IsRaidGrouped())
			Message_StringID(MT_Experience, GAIN_RAIDEXP);
		else
			this->Message_StringID(MT_Experience, GAIN_XP);
After:
Code:
i = set_exp - m_pp.exp;
if (isrezzexp) {
	Message(15, "You regain %i experience from resurrection.", i);
}
else {
	if(membercount > 1) {
		Message(15, "You have gained %i party experience!", i);
	}
	else if(IsRaidGrouped()) {
		Message(15, "You have gained %i raid experience!", i);
	}
	else {
		Message(15, "You have gained %i experience!", i);
	}

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.
		Message(15, "You have lost experience.");
	}
After:
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 = set_exp - m_pp.exp;
		Message(15, "You have lost %i experience.", i);
	}
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote