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

Reply
 
Thread Tools Display Modes
  #1  
Old 11-06-2008, 06:54 PM
LeftRoad
Sarnak
 
Join Date: Aug 2005
Location: Maine
Posts: 38
Default spell kills mob but no message

I've noticed that if a spell kills a mob there is no final spell message for the killing blow. So, I cut and pasted code from elsewhere and, in my limited testing, it seems to fix the issue.

In attack.cpp... find this code in the Mob::CommonDamage function, at about line 3617...
Code:
if(!IsSaved) {
     SetHP(-100);
     Death(attacker, damage, spell_id, skill_used);
     return;
}
...and change it to...
Code:
if(!IsSaved) {
     SetHP(-100);

     if(attacker && attacker->IsClient()) {
          if ((spell_id != SPELL_UNKNOWN) && damage>0) {
               char val1[20]={0};
               attacker->Message_StringID(4,OTHER_HIT_NONMELEE,GetCleanName(),ConvertArray(damage,val1));
          }
     }

     Death(attacker, damage, spell_id, skill_used);
     return;
}
Can someone else give it a try to confirm it? Thanks
Reply With Quote
  #2  
Old 11-07-2008, 05:02 PM
seveianrex
Sarnak
 
Join Date: Sep 2008
Location: asdf
Posts: 60
Default

Committed.
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:45 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