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

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 10-03-2008, 05:37 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

A band aid to fix this problem seems to be:

Code:
Index: zone/mob.cpp
===================================================================
--- zone/mob.cpp        (revision 34)
+++ zone/mob.cpp        (working copy)
@@ -1927,8 +1927,9 @@
                        //                      cout << "Mobs currently Aggro: " << zone->MobsAggroCount() << endl;
                }
        }
-       if (GetTarget() == mob)
+       if (GetTarget() == mob && !this->IsClient())
                SetTarget(hate_list.GetTop(this));
+
        return bFound;
 }
 void Mob::WhipeHateList() {
@@ -2323,4 +2324,4 @@
                        val++;
        }
        return val;
-}
\ No newline at end of file
+}
The whole issue seems to be that a hate_list is maintained for the client. (attack something, FD, stand up, target self, #hatelist), and when a player kills a mob, Mob::RemoveFromHateList is called and a new target for the client is chosen from the top of it's hate list, which the patch above stops.

I'm not going to commit my 'band aid', as there may be a better solution regarding hate list management for a client (maybe just clear a client's hate list when he FDs).

Last edited by Derision; 10-03-2008 at 01:39 PM..
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 10:30 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