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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-12-2009, 11:35 AM
gaeorn
Developer
 
Join Date: Apr 2009
Location: USA
Posts: 478
Default New rules NPC:astFightingDelayMovingMin and NPC:astFightingDelayMovingMax

I played a monk on live years ago so I found on the emu that when I would feign, the first mobs to start to return home were too close in time to the last mobs to return home. The difference between the first and the last was larger on live (although, I do not know exactly what it was on live).

Since this was hardcoded in the emu, it wasn't easy to adjust the numbers. So I made them into rules and figured I would share

The default values match what was in the emu code to begin with.

Code:
Index: common/ruletypes.h
===================================================================
--- common/ruletypes.h  (revision 655)
+++ common/ruletypes.h  (working copy)
@@ -200,6 +200,8 @@
 RULE_INT ( NPC, OOCRegen, 0)
 RULE_BOOL ( NPC, BuffFriends, false )
 RULE_BOOL ( NPC, EnableNPCQuestJournal, false)
+RULE_INT ( NPC, LastFightingDelayMovingMin, 10000)
+RULE_INT ( NPC, LastFightingDelayMovingMax, 20000)
 RULE_CATEGORY_END()
 
 RULE_CATEGORY ( Aggro )
Index: zone/MobAI.cpp
===================================================================
--- zone/MobAI.cpp      (revision 655)
+++ zone/MobAI.cpp      (working copy)
@@ -432,8 +432,8 @@
        AIfeignremember_timer = NULL;
        AIscanarea_timer = 0;
        pLastFightingDelayMoving = 0;
-       minLastFightingDelayMoving = 10000;
-       maxLastFightingDelayMoving = 20000;
+       minLastFightingDelayMoving = RuleI(NPC, LastFightingDelayMovingMin);
+       maxLastFightingDelayMoving = RuleI(NPC, LastFightingDelayMovingMax);
 
        pDontHealMeBefore = 0;
        pDontBuffMeBefore = 0;
SQL:

Code:
INSERT INTO `rule_values` VALUES ('1', 'NPC:LastFightingDelayMovingMin', '10000','Minimum time (in ms) before mob goes home after all aggro loss');
INSERT INTO `rule_values` VALUES ('1', 'NPC:LastFightingDelayMovingMax', '20000','Maximum time (in ms) before mob goes home after all aggro loss');
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 02:19 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