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

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 06-03-2016, 05:58 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

Bot command spells and bot ai spells draw from two different sources.


AI spells come from the database and probably are not up-to-date.

Command spells, however, come directly from the in-memory spell sub-system: https://github.com/EQEmu/Server/blob...mmand.cpp#L118
- in particular: https://github.com/EQEmu/Server/blob...mmand.cpp#L436


You should get a log report that looks like this:
Quote:
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'RuleI(Bots, CommandSpellRank)' set to 1.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_BindAffinity' returned 14 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Charm' returned 48 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Cure' returned 149 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Depart' returned 157 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Escape' returned 4 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Identify' returned 5 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Invisibility' returned 30 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Levitation' returned 13 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Lull' returned 27 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Mesmerize' returned 42 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_MovementSpeed' returned 21 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Resistance' returned 83 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Resurrect' returned 18 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Rune' returned 21 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_SendHome' returned 2 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Size' returned 4 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_Stance' returned 187 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_SummonCorpse' returned 18 spell entries.
[06-02-2016 :: 19:57:42] [Commands] load_bot_command_spells(): - 'SpT_WaterBreathing' returned 11 spell entries.

If there's an issue with what spells are being chosen, the best place to discriminate would be in the command handler itself: https://github.com/EQEmu/Server/blob...mand.cpp#L3394


Bot command 'size' shows an example of how to discriminate arguments: https://github.com/EQEmu/Server/blob...mand.cpp#L3783


EDIT:

The spell system is designed to use the most level-appropriate spells available - which may not be what is desired in all cases.

An argument to force 'spirit' over 'scale' would probably be the best solution..though, you could completely exclude 'scale' from the spell load by 'continue'ing if its id matches.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
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:23 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