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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-24-2010, 02:38 PM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

Also, not that anyone would have one yet, but the higher pet focus items summon pets with the high level cloaks with mod2s, including strikethrough. Here's a patch for that.

Code:
--- attack.cpp	(revision 1189)
+++ attack.cpp	(working copy)
@@ -1755,6 +1755,13 @@
 			//pets do half damage to clients in pvp
 			damage=damage/2;
 		}
+
+		if ((damage < 0) && !bRiposte) { 
+			if(MakeRandomInt(0, 100) < (itembonuses.StrikeThrough + spellbonuses.StrikeThrough)) {
+				Attack(other, Hand, true); // Strikethrough only gives another attempted hit
+				return false;
+			}
+		}
 	}
 	else
 		damage = -5;
This is assuming npcs can strikethrough as well.. If not, change with
Code:
--- attack.cpp	(revision 1189)
+++ attack.cpp	(working copy)
@@ -1755,6 +1755,16 @@
 			//pets do half damage to clients in pvp
 			damage=damage/2;
 		}
+
+		if(IsPet())
+		{
+			if ((damage < 0) && !bRiposte) { 
+				if(MakeRandomInt(0, 100) < (itembonuses.StrikeThrough + spellbonuses.StrikeThrough)) {
+					Attack(other, Hand, true); // Strikethrough only gives another attempted hit
+					return false;
+				}
+			}
+		}
 	}
 	else
 		damage = -5;
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:15 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3