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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-26-2011, 04:20 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

patch file contents below.

edit: Hmm still think a rule would be nice on this. Any other opinions?
edit2: i rebuilt my server with 2021 and this change and it is not working.

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() && !permarooted)
 			SetTarget(hate_list.GetClosest(this));
 		else
 		{
Reply With Quote
  #2  
Old 09-26-2011, 04:47 PM
Caryatis
Dragon
 
Join Date: May 2009
Location: Milky Way
Posts: 539
Default

A rule makes no sense for this, neither does this change either but at least it will be easy to edit out.
Reply With Quote
  #3  
Old 10-18-2011, 02:49 AM
bowmaster
Discordant
 
Join Date: Jan 2007
Posts: 300
Default

if i remember correctly I was a SK + Necro

Perm Rooted Mobs Do go for the Closest Mob.
Because technically its still a root , but with a longer Duration
Reply With Quote
  #4  
Old 10-19-2011, 06:15 AM
wolfwalkereci
Discordant
 
Join Date: Dec 2005
Posts: 435
Default

Really....
Reply With Quote
  #5  
Old 10-19-2011, 07:15 AM
saarr
Fire Beetle
 
Join Date: Jul 2011
Posts: 11
Default

there is a Zun mob in tacvi (live) that drops the bbb, him and his four adds are perma rooted and summon at 95%. Every 10% in health he drops his adds come alive and hit like him. my guild used to summon tank the adds and him till the guild as a whole got stronger to straight tank them. Also in barindu there is a zun that is perma rooted till 50% if i remeber right and doesnt (used to) not summon, but was later patched to summon (unoffical patch not noted) and my guild at the time had time gear and he meleed for 7k with an ae ramp and was nasty but summon tanking was the only way to tank him unslowed. this is just my 2cents is all.
Reply With Quote
  #6  
Old 10-24-2011, 09:12 AM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default

Just a thought, you can always set an NPC's runspeed to 0 which would in effect make them 'perm rooted'.. Then just use scripting if you need them to run again.
__________________
www.eq2emu.com
EQ2Emu Co-Founder / EQ2Emu Developer
EQEMu Co-Founder / Former EQEMu Developer / GuildWars / Zek Seasons Servers
Reply With Quote
  #7  
Old 10-27-2011, 07:16 PM
bowmaster
Discordant
 
Join Date: Jan 2007
Posts: 300
Default

Believe so yeahh , havnt raided any perma rooted mobs for a while . unless theyve changed it , in the last few years.
Reply With Quote
  #8  
Old 09-26-2011, 04:57 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

I think a rule is appropriate unless someone can verify how it works on live today. I remember rooted mobs just attacking the closest target, but I also don't recall any that were permarooted.
Reply With Quote
  #9  
Old 09-26-2011, 05:16 PM
sorvani
Dragon
 
Join Date: May 2010
Posts: 965
Default

lerxst: typically the only permarooted mobs you will see are a few raid mobs scattered around in general. Permarooted mobs did behave differently than rooted mobs. Here is a post from 2003 on the subject.
http://everquest.allakhazam.com/db/i...05380013444374

caryatis: the point of a rule is to let people who do not like something, change that something easily. Yes your post about setting a low run speed works. But the point of the original post valid and the permarooted boolean already exists. It should be used appropriately instead of just getting lumped in with rooted.
Reply With Quote
  #10  
Old 09-26-2011, 05:58 PM
lerxst2112
Demi-God
 
Join Date: Aug 2010
Posts: 1,742
Default

Quote:
Originally Posted by sorvani View Post
lerxst: typically the only permarooted mobs you will see are a few raid mobs scattered around in general. Permarooted mobs did behave differently than rooted mobs. Here is a post from 2003 on the subject.
http://everquest.allakhazam.com/db/i...05380013444374
That's why I said "on live today". How it may have worked in 2003 could be the same as today, but it also might not be. IMO some things should be checked before just being implemented. But, that's just my opinion.

Also, glad you fixed the error in the original posted code when you posted the patch. Knowing both pieces of code the OP posted wouldn't compile doesn't fill me with confidence.
Reply With Quote
  #11  
Old 09-26-2011, 07:27 PM
Caryatis
Dragon
 
Join Date: May 2009
Location: Milky Way
Posts: 539
Default

The point you are missing though sorvani is that on live mobs exhibit both behaviors. Some perma rooted mobs attack the closest target, others a use normal aggro list. If you make it a rule then you limit your entire server to only using one kind(and you can change it at will now, per mob).

I dont see why you dont see 0.0001 as permaroot with normal agro and 0 as permaroot like spell rooted.
Reply With Quote
  #12  
Old 09-26-2011, 07:50 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

use -1 as a special flag, rather than 0.0001, to prevent some funky behavior where mob accidentally gets agroed by someone, and starts moving towards that player, and eventually leaves his room, if player stays in zone long enough
Reply With Quote
  #13  
Old 09-26-2011, 11:31 PM
Kayen
Developer
 
Join Date: Mar 2009
Location: -
Posts: 228
Default

I have to agree with Caryatis.

This is a fix for something that isn't broken.

Permarooted/Rooted mobs always attack the closest target which is
how eqlive worked long as I played.

If you want to by pass this set run speed to 0.00000001, and I have been doing
this for years with no problems.

Kayen
GM Storm Haven.
Reply With Quote
  #14  
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
  #15  
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


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 03:41 AM.


 

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