Interrupting bot casting?
Is there a command in the source code to temporarily stop a bot from casting a spell? I was using #bot sow regular and I noticed that you have to wait for the bot to finish casting whatever spell it is casting before he will actually listen to you. Is there a way you can update this so that once you tell a bot to cast a spell, it automatically starts casting that one and stops doing whatever it was doing before?
|
Not that I'm aware of.. It's frustrating trying to get a rez when my Cleric is rebuffing everyone..
|
Yeah I'm trying to find something that you could just put in those commands that will make the bot stop doing everything until it casts whatever spell you tell it to
|
That or a queuing system would be nice.
|
I assume in the AI_Process it could check to see if you're trying to have them cast something before trying to cast their own spells, but I'm not sure of the best way to handle it.
|
Has anyone made any progress on this?
|
in 1 day? patience dude.
|
There's an example in the command #bot corpse summon
the shadowknight or necromacner bot is first inerrupted from any other spell casting before casting the summon corpse spell using: Code:
g->members[i]->InterruptSpell(); |
Where should I put that to make it work? Like if I was putting it on the sow command would I make it look like
Code:
if ((!strcasecmp(sep->arg[2], "regular")) && (zone->CanCastOutdoor()) && (c->GetLevel() >= 10) ) { |
no, then you would have the same line of code too many times. just put it before the switch(SowerClass) so you only need it once, and it would look better as Sower->InterruptSpell();
|
All times are GMT -4. The time now is 09:18 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.