Thread: Mercenaries
View Single Post
  #11  
Old 03-15-2013, 09:50 PM
Armm
Sarnak
 
Join Date: Feb 2013
Posts: 70
Default

First, there is still a major bug where when for example at level 85 i am fighting a mob with just merc and PC and the PC dies and loses a level. After i zone back to bind point the merc is visually there, but unresponsive, i cant unsuspend, i cant dismiss them, cant purchase a new one, and the old merc remains in database. If i RELOG, when i come back into the game the merc is there and responsive. If i then dismiss it it in fact dismisses properly, and is erased from the database.


The second bug i think i can help you out with. When a tank merc is fighting a mob and you get within melee range you draw immediate aggro no matter what, just like with pets... Since i had just been looking into changing that for pets i tested this code and it seems to work. I basically modified what you did with bots.... After i applied this ,ercs could hold aggro no problem even when in melee range unless i outdmged them... Hope this helps.

This is in hate_list.cpp

Code:
+++ "b/C:\\EQEMU\\EQEmuServer\\zone\\hate_list.cpp"
@@ -361,6 +361,20 @@ Mob *HateList::GetTop(Mob *center)
 				}
 			}
 #endif //BOTS
+			
+			
+			if(!isTopClientType) {
+				if(top->IsMerc()) {
+					isTopClientType = true;
+					topClientInRange = top;
+				}
+			}
+			
 			if(!isTopClientType)
 				return topClientInRange;
Reply With Quote