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');