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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #16  
Old 04-26-2011, 02:07 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Looking through the code I think I may have found the offending section of code and it does kind of explain it. There is a check to see if the target character is a Necromancer and if they have Lich on, it is supposed to skip them. I have no buffs on this level 20 guy, and it keeps casting repeatedly. I am going to work with this later on today and see if I can figure it out.
Reply With Quote
  #17  
Old 04-26-2011, 05:45 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Okay I finally got time to look at it again. I found how to fix it, at least for myself.

Code:
                  {
                                // don't cast this on necro's, their health to mana
                                // spell eats up the rune spell and it just keeps
                                // getting recast over and over
                            }
                            else
                            {
                                SpellOnTarget(thespell, g->members[i]);
                            }
Basically just removing the first section and letting it cast. At least on my server this is working, otherwise it is getting caught in a loop. I am sure there is a more elegant solution but this will work for me, for now.
Reply With Quote
  #18  
Old 04-26-2011, 10:19 PM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

Where is this code at? I'll take a look at it, but I'm not sure where this belongs.
Reply With Quote
  #19  
Old 04-26-2011, 10:20 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

bot.cpp

Must also have an impact on the Cleric Bot healing a necro too. When I logged he was at 40% and cleric or druid would not heal him.
Reply With Quote
  #20  
Old 04-27-2011, 09:13 AM
Congdar
Developer
 
Join Date: Jul 2007
Location: my own little world
Posts: 751
Default

40% seems low, but there was special code for waiting to healing necro's in order to give them a chance to use a lifetap spell while also using a lich type spell.
__________________
The Realm
Reply With Quote
  #21  
Old 04-27-2011, 09:26 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I waiting for at least 5 minutes. Had a Druid and Cleric in group.

My guess it is looking for Lich, or Lich related.
Reply With Quote
  #22  
Old 04-27-2011, 10:16 AM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

I'm pretty sure it used to be 60%, but then I think someone changed it to 40% before Necros are healed. It should probably be tweaked a bit. 60% seems much better, especially if they are not in combat.

Code:
// Give necromancers a chance to go lifetap something or cleric can spend too much mana on a necro                                                 
if(hpr >= 40) {                                                         
     break;   
}
Reply With Quote
  #23  
Old 04-27-2011, 10:55 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Holy crap, yeah I just found that in my botspellsai.cpp. I am definitely changing that to suit my needs. I also notice that BL will stand back and just sent their pet in to fight. Mine was healing me over and over with their puny heals. I may be changing that because I do not know about you, I would rather have my tricked out BL doing melee.
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 08:02 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3