View Full Version : Bot spell issue
Nightrider84
06-25-2014, 08:05 PM
I know this is suppose to go on the bot forums but I couldn't find it heh. basically my problem is with the druid bots. I added the skin like wood spell line in and the bots cast it like they are suppose to. but i tried adding the strength of earth spell line and he they wont cast it. any thoughts?
Uleat
06-25-2014, 10:06 PM
Do any of the spells that you are trying to add not stack/overwrite other spells?
Nightrider84
06-25-2014, 11:10 PM
no the str line the thistle line and the skin line all stack, Its just 1 bot im using that I pair with my mage. So there aren't any other buffs in play that would cause problems
Uleat
06-26-2014, 06:37 PM
If there's not a conflict issue..I'd have to look into the bot spell code...
Have you looked at the bot's active spells to see if they're applying as self-only for some reason?
Nightrider84
06-26-2014, 07:03 PM
How do I see what active spells there are? And from what I can physically see I don't see him casting the spell at all.
Nightrider84
06-26-2014, 08:38 PM
Ok so i couldnt figure out what spells he had on him but I did make some progress. He wont cast his str of earth spell line UNLESS there is a tank type warrior sk paladin ect in the group that would benefit from the spell. which is kinda annoying since my mage could use the extra str to carry stuff. Anyway I could fix that?
Uleat
06-26-2014, 09:13 PM
This section is probably what you will want to look at: https://github.com/EQEmu/Server/blob/master/zone/botspellsai.cpp#L300
..in particular - https://github.com/EQEmu/Server/blob/master/zone/botspellsai.cpp#L345
Changing this:
IsEffectInSpell(selectedBotSpell.SpellId, SE_STR) ||
to:
/*IsEffectInSpell(selectedBotSpell.SpellId, SE_STR) ||*/
and recompiling should disregard the anti-str behavior for caster archetypes.
EDIT: Just remember that if you get 'too crazy' with overriding casting behavior, you may run out of spell slots :)
Nightrider84
06-27-2014, 05:22 AM
You sir are a scholar and a gentlemen :)
Nightrider84
06-27-2014, 05:32 AM
One last question for you If you don't mind. Anyway to get cleric shaman and druid bots to reserve like 20% of their mana for heals? Kinda annoying if they blow all their mana shooting stuff.
provocating
06-27-2014, 08:06 AM
One last question for you If you don't mind. Anyway to get cleric shaman and druid bots to reserve like 20% of their mana for heals? Kinda annoying if they blow all their mana shooting stuff.
Look into stances.
http://www.eqemulator.org/forums/showthread.php?t=37010&highlight=stance
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.