EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Correction: "Hit by non-melee damage" (https://www.eqemulator.org/forums/showthread.php?t=25953)

haecz 08-16-2008 09:13 AM

Correction: "Hit by non-melee damage"
 
The "Hit by non-melee damage" message is filtered wrong, it currently uses "Other"-filter. Changing the following lines will enable the client to recieve the message correctly.


attack.cpp line 2363
Code:

owner->Message_StringID(4,OTHER_HIT_NONMELEE,GetCleanName(),ConvertArray(damage,val1));
to:
Code:

owner->Message_StringID(MT_NonMelee,OTHER_HIT_NONMELEE,GetCleanName(),ConvertArray(damage,val1));



attack.cpp line 2386
Code:

attacker->Message_StringID(4,OTHER_HIT_NONMELEE,GetCleanName(),ConvertArray(damage,val1));
to:
Code:

attacker->Message_StringID(MT_NonMelee,OTHER_HIT_NONMELEE,GetCleanName(),ConvertArray(damage,val1));

Angelox 08-16-2008 01:38 PM

Ahh! Finally I got it - I was thinking , what does he mean by 'other'? good work, thanks for the fix! (I'm slow, but eventually i get there :) )


All times are GMT -4. The time now is 11:45 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.