View Single Post
  #1  
Old 06-25-2009, 03:07 AM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,164
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