Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #17  
Old 02-16-2010, 12:56 AM
gaeorn
Developer
 
Join Date: Apr 2009
Location: USA
Posts: 478
Default

Quote:
Originally Posted by iRFNA View Post
Well, I think I found the problem. There's a check for seeing if a particular spell is a nuke spell in spdat.cpp called IsPureNukeSpell. While it does check to see if the spell alters a target's HP, it neglects to see if that is a positive or negative change. On around line 355, I changed:

Code:
	return
	(
		spells[spell_id].effectid[0] == SE_CurrentHP &&
		effect_count == 1
	);
to

Code:
	return
	(
		spells[spell_id].effectid[0] == SE_CurrentHP &&
		spells[spell_id].base[0] < 0 &&
		effect_count == 1
	);
and I haven't seen my bots healing enemies anymore.
Committed to rev 1255. Thanks iRFNA!
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 07:09 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