EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bots (https://www.eqemulator.org/forums/forumdisplay.php?f=676)
-   -   Bot rebuffing (https://www.eqemulator.org/forums/showthread.php?t=33275)

provocating 04-26-2011 02:07 PM

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.

provocating 04-26-2011 05:45 PM

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.

bad_captain 04-26-2011 10:19 PM

Where is this code at? I'll take a look at it, but I'm not sure where this belongs.

provocating 04-26-2011 10:20 PM

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.

Congdar 04-27-2011 09:13 AM

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.

provocating 04-27-2011 09:26 AM

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

My guess it is looking for Lich, or Lich related.

bad_captain 04-27-2011 10:16 AM

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; 
}


provocating 04-27-2011 10:55 AM

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.


All times are GMT -4. The time now is 07:21 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.