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

Development: Custom Code This is for code thatdoes not emulate live and wont be added to the official code.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-13-2007, 09:36 AM
valcree
Fire Beetle
 
Join Date: Jan 2007
Posts: 11
Default Pet control unseen casters

It seems that every mob that casts on the mob you are fighting gets added to your pet's hate list. That seems logical, but it's not how I remember it in eq. I don't remember pets running off and bringing huge trains of mobs back to the group durring a fight. Though.. I haven't played eq for a while. Anyways I decided to make my pets more controllable since people were tending to avoid pet classes on my server, or just not making pets even though they could.

In attack.cpp in AddToHateList add...

if(IsPet() && IsEngaged()){
return;
}

Before...

if(IsPet() && GetOwner() && GetOwner()->GetAA(aaPetDiscipline) && IsHeld()){
return;
}

Yes, I know... Another shameless hack, but pets are very well behaved after it. -Grin-
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 11:50 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