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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-30-2012, 09:41 PM
louis1016
Hill Giant
 
Join Date: Dec 2009
Posts: 157
Default bot snaring

Mobs flee faster on my server, making it necessary to snare in groups. My bots are not snaring, however, not sure why. The code for snaring is much different then heal AI and other ai for example. I believe it has something to do with the dontsnaremebefore entries but I can not figure out why its not working properly. How can I fix this?
Reply With Quote
  #2  
Old 05-01-2012, 03:29 PM
louis1016
Hill Giant
 
Join Date: Dec 2009
Posts: 157
Default

Ok i noticed that the bots are in fact snaring after the mob starts to flee. I need to get them to snare before they flee but I still cant figure it out. Any help would be much appreciated, ive spent a lot of time on this with no results
Reply With Quote
  #3  
Old 05-02-2012, 10:08 AM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

Bots arent currently set up to snare other than when the mob is fleeing. To have bots snare mobs who are not fleeing, you need to add Snare to the spell types used by whatever bot class in AI_EngagedCastSpell(). The line should look like one of the nuke ones. Just put it in the order you want it (before or after nuke). Just use SpellType_Snare. You will probably also need to modify where it calculates the spell casting chances. I'm not sure if snare has anything other that 0 since it wasn't really being used. Let me know if you have any problems with this and I can help out some more. I just don't have the code in front of me.
Reply With Quote
  #4  
Old 05-02-2012, 11:01 AM
louis1016
Hill Giant
 
Join Date: Dec 2009
Posts: 157
Default

thank you for your help, this works perfectly!
Reply With Quote
  #5  
Old 05-02-2012, 11:52 PM
louis1016
Hill Giant
 
Join Date: Dec 2009
Posts: 157
Default

Snare works fine now, but for some reason when I tried to add root in this way, my bot is now only rooting when the mob is snared. I have no idea why, but would adding the root entry work this same way?
Reply With Quote
  #6  
Old 05-03-2012, 01:26 AM
louis1016
Hill Giant
 
Join Date: Dec 2009
Posts: 157
Default

Well I removed the buff stacking check in root and now that works fine too. I guess root/snare stacks strangly and the result messed up its bot ai.
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 10:35 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