View Single Post
  #7  
Old 05-18-2011, 02:29 AM
rdurbin
Fire Beetle
 
Join Date: Jan 2006
Posts: 16
Default fixed the mistake I made, works perfect now

Guys ignore the code I posted before, it has a critical error in it, I fixed it with the code below, it also displays the amount of xp you lose and raid xp, i commented out the normal xp messages, these lines are from 207-214, apply these changes to the original exp.cpp, the xp loss message is in yellow and should probably be in red, but im not sure what message # you use for red text

LINES 207-214 of exp.cpp

Code:
if(this->IsGrouped())
				//this->Message_StringID(MT_Experience, GAIN_GROUPXP); //hides normal xp message
				this->Message(15,"You have gained %u Group XP",((set_exp+set_aaxp)-(m_pp.exp+m_pp.expAA)));//Displays grp xp
			else if(IsRaidGrouped())
				//Message_StringID(MT_Experience, GAIN_RAIDEXP); //hides normal xp message
				this->Message(15,"You have gained %u Raid XP",((set_exp+set_aaxp)-(m_pp.exp+m_pp.expAA)));//Displays raid xp
			else
				//this->Message_StringID(MT_Experience, GAIN_XP); //hides normal xp message
				this->Message(15,"You have gained %u XP",((set_exp+set_aaxp)-(m_pp.exp+m_pp.expAA)));//displays solo xp
		}
	}
	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."); //hides normal loss xp message
		this->Message(15,"You have LOST %u XP",((m_pp.exp+m_pp.expAA)-(set_exp+set_aaxp))); //displays amount of xp lost
Reply With Quote