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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2011, 11:12 AM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

Thanks for the idea. I will work on adding this on, but in its current state, it is no worse than it was before (I guess for clients, it should still find the one with the lowest hpr, instead of just the first one who needs to be healed, and is still better than before).

I guess I just need to know if I should change it before it would be considered for being committed.
Reply With Quote
  #2  
Old 02-17-2011, 01:32 PM
c0ncrete's Avatar
c0ncrete
Dragon
 
Join Date: Dec 2009
Posts: 719
Default

I haven't looked through your code too much, but I'm sure there is significant improvement.

It might be easiest to just make mob->IsEgnaged() a virtual function and overload it in the client object. I can't think of anything that would break. The only time IsEngaged() is used in reference to a client is in the bot code as far as I'm aware. That way, you wouldn't have to mess with all of the group iterations in the bot code.
Reply With Quote
  #3  
Old 02-17-2011, 02:09 PM
realityincarnate
Developer
 
Join Date: Dec 2007
Posts: 122
Default

If you're going to use AggroCount to track whether the client is engaged (and using that with a virtual IsEngaged() seems like a good idea to me), you'll also want to change the IncrementAggroCount() and DecrementAggroCount() functions around a little bit. Currently, they only actually change AggroCount if the rest regen rules are in effect.
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 01:09 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