Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-10-2011, 09:58 AM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

This would be a nice rule to add in. As a player I always liked seeing the numbers. Maybe I just play to much D&D :P
My GM toon on my test server already sees the XP when he kills something so maybe some rule could be dropped in to show that?
Reply With Quote
  #2  
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
  #3  
Old 05-18-2011, 10:57 AM
Fridgecritter
Hill Giant
 
Join Date: Feb 2008
Posts: 195
Default great idea

I love this idea. I hope this is refined and implemented.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:18 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3