Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 07-03-2006, 02:58 PM
unicorn97211
Sarnak
 
Join Date: May 2006
Posts: 37
Default Mob Pause Before Going Home Fix - Monk Candy

This fix allows the code that causes a mob to pause for a random duration before wandering back home to run.

With this fix in place, when I pull two mobs and I FD, each mob stands there a random duration of time before walking back home and each mob got it's own duration so monks can split again

Here is the diff...

Code:
--- C:\EQEmuSP\Source\Copy of 0.7.0\zone\hate_list.cpp	Fri Dec 09 23:25:36 2005
+++ C:\EQEmuSP\Source\0.7.0\zone\hate_list.cpp	Mon Jul 03 19:24:53 2006
@@ -182,6 +182,8 @@
         if (iterator.GetData()->ent == ent)
         {
             iterator.RemoveCurrent();
+			// Everhood - some functions rely on knowing if it was found
+			return true;
         }
         else
             iterator.Advance();
--- C:\EQEmuSP\Source\Copy of 0.7.0\zone\mob.cpp	Sun Jul 02 22:12:39 2006
+++ C:\EQEmuSP\Source\0.7.0\zone\mob.cpp	Mon Jul 03 19:49:32 2006
@@ -1833,7 +1832,7 @@
 	if (this->IsEngaged())
 	{
 		bFound = hate_list.RemoveEnt(mob);
-		if  (!this->IsEngaged()){
+		if(hate_list.IsEmpty()){
 			if (bFound)
 				AI_Event_NoLongerEngaged();
Reply With Quote
  #2  
Old 07-04-2006, 04:08 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

nice catch, who knows what else the return problem will fix, lol.
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 04:29 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3