Thanks (again) for posting. That's what I expected, that it's hard-coded. I started wondering about this after I had created a replica of the Euphoria spell (ID 5520), but the bot wouldn't cast it at all.
I used the enchanter as a reference to my issue, but it does revolve around all function calls like this one (Bot::MesmerizeTarget). The enchanters, druids, ect ect.
Like I was telling you before, I will play around with it (and that I wasn't sure of how it was coded completely yet). I think that it should work a little differently, like search through like the cleric's healing spells do to select the best heal for the job. I believe that it should sort by something like this: level of spell -> mana consumption -> specific spell type (in this case, mez). Then use spell ID that is the highest level spell (unless mana is too low for the spell, then use the next rank down IF mob is within the level range of the spell).
There would need to be checks, just like that of the code that is already in the source... but a more friendly version that would allow a non-programmer to simply add in spells for their custom content (into the bot's primary spell set).
|