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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2011, 12:55 AM
Estalia
Fire Beetle
 
Join Date: Jun 2005
Posts: 7
Default

http://www.youtube.com/watch?v=Wa-YXWSRsXs at the 2:44 the tank is the shrunk human warrior who is not the closest.

http://www.youtube.com/watch?v=k8fLD...eature=related at the 1 minute mark, im not sure who is tanking, but it isn't any of the people who are close and behind the mob and noone is standing in front of it.

http://www.youtube.com/watch?v=zH-W7fPES9E at about 1:10 you can see the dwarf warrior getting knocked back and not being the closest, but yelinak doesn't spin to someone else.

I put in 10 years on live and really don't remember any of the killable npc's who were permarooted attacking the closest pc. I am not saying there isn't one, but most of the permarooted mobs used in the top "raid" zones from Kunark to GoD had aggro tables. If they didn't they would be saying give the warrior a shield and who care what kind of threat he has, he won't be loosing aggro.
Reply With Quote
  #2  
Old 09-27-2011, 01:42 AM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

I don't think people have any issue with adding the option to set perma-rooted mobs to use a normal hate table vs attacking the closest as they currently do. Seems like there are 2 debates; One being that there is already an option to just set the runspeed to a very low rate to simulate perma-rooted with the same properties as an unrooted mob. The other is that a rule could be added to set it to either handle it one way or the other server-wide for all NPCs.

One solution that would work for both would be to make it a special attack code. Though, I think the simplest solution would be to make it a rule that allows you to toggle if you want ALL perma-rooted mobs to act the same way as reported from Live, or if you want to leave the option to have some attack the closest (runspeed 0.0) and some attack the highest hate (runspeed 0.000001).

Maybe something like this would work out for everyone:

MobAI.cpp
Code:
Index: trunk/EQEmuServer/zone/MobAI.cpp
===================================================================
--- trunk/EQEmuServer/zone/MobAI.cpp	(revision 2021)
+++ trunk/EQEmuServer/zone/MobAI.cpp	(working copy)
@@ -773,7 +773,7 @@

 	if (engaged) 
 	{
-		if (IsRooted())
+		if (IsRooted() && (RuleB(Aggro, PermaRootedAttacksNearest) || !permarooted))
 			SetTarget(hate_list.GetClosest(this));
 		else
 		{
And this to the aggro section of common/ruletypes.h
Code:
RULE_BOOL ( Aggro, PermaRootedAttacksNearest, true )
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
Reply

Thread Tools
Display Modes

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 12:47 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