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

Reply
 
Thread Tools Display Modes
  #1  
Old 06-25-2009, 03:07 AM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default Heal Messages StringIDs

So while parsing with GamParse I noticed the healing tab didn't work... so I looked through eqstr_us.txt to see if I could fix it

now looking through I noticed that one of the messages isn't there and I couldn't find one that is similar and how it's being used, so I'll see if I can rework the heal messages, so here is what is there with somewhat correct messages in the form of Message_StringID

You can change the message names if you want, just simply called them YOU_HEALED and YOU_HEAL

Code:
Index: EQEmuServer/zone/StringIDs.h
===================================================================
--- EQEmuServer/zone/StringIDs.h	(revision 712)
+++ EQEmuServer/zone/StringIDs.h	(working copy)
@@ -88,6 +88,7 @@
 #define SONG_NEEDS_BRASS			408		//You need to play a brass instrument for this song
 #define AA_GAIN_ABILITY				410		//You have gained the ability "%T1" at a cost of %2 ability %T3.
 #define AA_IMPROVE					411		//You have improved %T1 %2 at a cost of %3 ability %T4.
+#define YOU_HEALED					419		//%1 has healed you for %2 points of damage.
 #define BEGINS_TO_GLOW				422		//Your %1 begins to glow.
 #define ALREADY_INVIS				423		//%1 tries to cast an invisibility spell on you, but you are already invisible.
 #define YOU_ARE_PROTECTED			424		//%1 tries to cast a spell on you, but you are protected.
@@ -202,6 +203,7 @@
 #define GAIN_GROUP_LEADERSHIP_EXP	8788	//
 #define GAIN_RAID_LEADERSHIP_EXP	8789	//
 #define BUFF_MINUTES_REMAINING		8799	//%1 (%2 minutes remaining)
+#define YOU_HEAL					9068	//You have healed %1 for %2 points of damage.
 #define OTHER_HIT_DOT				9072	//%1 has taken %2 damage from your %3.
 #define HIT_NON_MELEE				9073	//%1 hit %2 for %3 points of non-melee damage.
 #define STRIKETHROUGH_STRING		9078	//You strike through your opponent's defenses!
Index: EQEmuServer/zone/attack.cpp
===================================================================
--- EQEmuServer/zone/attack.cpp	(revision 712)
+++ EQEmuServer/zone/attack.cpp	(working copy)
@@ -4277,12 +4277,16 @@
 		acthealed = (maxhp - curhp);
 	else
 		acthealed = amount;
-		
+
+	char *TempString = NULL;
+
+	MakeAnyLenString(&TempString, "%d", acthealed);
+
 	if(acthealed > 100){
 		if(caster){
-			Message(MT_NonMelee, "You have been healed by %s for %d points of damage.", caster->GetCleanName(), acthealed);
+			Message_StringID(MT_NonMelee, YOU_HEALED, caster->GetCleanName(), TempString);
 			if(caster != this){
-				caster->Message(MT_NonMelee, "You have healed %s for %d points of damage.", GetCleanName(), acthealed);
+				caster->Message_StringID(MT_NonMelee, YOU_HEAL, GetCleanName(), TempString);
 			}
 		}
 		else{
@@ -4299,6 +4303,7 @@
 
 		SendHPUpdate();
 	}
+	safe_delete_array(TempString);
 }
Reply With Quote
  #2  
Old 06-25-2009, 12:36 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

does this has anything to do with how low level heals NEVER showing healed ammount?
Reply With Quote
  #3  
Old 06-25-2009, 02:17 PM
Yeormom
Discordant
 
Join Date: Apr 2004
Location: 127.0.0.1
Posts: 402
Default

If you never pass the second parameter for the amount healed, then thats why your amount is never shown.
__________________
Yeorwned
Bane of Life [Custom Classic/PvP]
Reply With Quote
  #4  
Old 08-08-2009, 10:06 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Committed in Rev 903.
Reply With Quote
Reply


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 01:20 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3