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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 06-22-2012, 11:12 PM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,449
Default

Quote:
Originally Posted by demonstar55 View Post
Apparently I missed some things or didn't test that change enough

Code:
Index: attack.cpp
===================================================================
--- attack.cpp  (revision 2146)
+++ attack.cpp  (working copy)
@@ -3392,7 +3392,7 @@

                                if(attacker && attacker->IsClient() && (spell_id != SPELL_UNKNOWN) && damage>0) {
                                        char val1[20]={0};
-                                       attacker->Message_StringID(4,OTHER_HIT_NONMELEE,GetCleanName(),ConvertArray(damage,val1));
+                                       entity_list.MessageClose_StringID(this, false, 100, MT_NonMelee, HIT_NON_MELEE, attacker->GetCleanName(), GetCleanName(),ConvertArray(damage,val1));
                                }

                                Death(attacker, damage, spell_id, skill_used);
@@ -3534,7 +3534,10 @@
                                if (((spell_id != SPELL_UNKNOWN)||(FromDamageShield)) && damage>0) {
                                        //special crap for spell damage, looks hackish to me
                                        char val1[20]={0};
-                                       attacker->Message_StringID(MT_NonMelee,OTHER_HIT_NONMELEE,GetCleanName(),ConvertArray(damage,val1));
+                                       if (FromDamageShield)
+                                               attacker->Message_StringID(MT_NonMelee,OTHER_HIT_NONMELEE,GetCleanName(),ConvertArray(damage,val1));
+                                       else
+                                               entity_list.MessageClose_StringID(this, false, 100, MT_NonMelee,HIT_NON_MELEE,attacker->GetCleanName(),GetCleanName(),ConvertArray(damage,val1));
                            } else {
                                if(damage > 0) {
                                                if(spell_id != SPELL_UNKNOWN)
Committed along with another change to DS Filters, r2147.
Reply With Quote
 


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 05:44 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