How to stop meele atack in SmartAI

Hello i play with smarAI scripts and one problem stop me, when i have channeling spell npc cast it but again continue with meele atack and channeling spell is broken. How i can solve this problem ? Thanks /emoticons/default_smile.png

use cpp scripting instead. You can’t stop the npc from attacking using only SmartAI scripting.

hm ok, can you explain me how use function for this ?

There are example scripts in src/server/scripts/Examples/example_creature.cpp to help you get started with scripting your npc, the function u need is:


i think, add it to the function where it does the channel spell(s).