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

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2009, 03:42 PM
Leere
Sarnak
 
Join Date: Sep 2008
Location: Home
Posts: 31
Default Minor spell message fixes

This is aimed to get rid of the extra 'Your song ends.' messages as well as the double messages for things like Sense The Dead.

Code:
--- c:\projects\eqemu svn\EQEmuServer\zone\spells.cpp	Wed Oct  7 10:38:39 2009
+++ c:\projects\eqemu work 20091007\zone\spells.cpp	Mon Oct 12 19:49:11 2009
@@ -672,3 +672,3 @@
 	// clients need some packets
-	if (IsClient())
+	if (IsClient() && message != SONG_ENDS)
 	{
@@ -2932,3 +2932,3 @@
 	{
-		if(spelltar->IsClient())	// send to target
+		if(spelltar != this && spelltar->IsClient())	// send to target
 			spelltar->CastToClient()->QueuePacket(action_packet);
@@ -4319,3 +4319,3 @@
 {
-	if (IsClient() && (bardsong || IsBardSong(casting_spell_id)))
+	/*if (IsClient() && (bardsong || IsBardSong(casting_spell_id)))
 	{
@@ -4333,3 +4333,3 @@
 		delete outapp;
-	}
+	} /**/
 	bardsong = 0;
The first change removes two extra song ends messages. The second change removes the double messages from spells like Sense The Dead. The last two changes comment out the entire out-going packet that is created in _StopSong, the only thing it did was to create another song ends message, as far as my testing could determine.

I've tested these changes against a Titanium client on a private server. Songs were stopped and faded normally. Interrupting the casting of a song also worked fine. #melody functioned as well as ever.

If this breaks anything it wasn't obvious during a couple of hours of running around and killing things with various classes.
Reply With Quote
  #2  
Old 10-12-2009, 05:01 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Don't use comments to remove code, remove it.
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 07:40 AM.


 

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