Hello there Otlanders!
I made an simple attack spell for my monster and I have a question about setNoMove(true/false).
Everything is okay. Monster is attacking and stop moving while he is using this spell but i want to do something like this way: "Monster stops for attack -> doing spell -> can move (setNoMove(false))"
For now is that monster cannot move because i dont know how to do the block movement only for time while spell is casting.
Anyone know how to do that?
Maybe addEvent? But im not good at this. that's why im asking for.
Script:
I made an simple attack spell for my monster and I have a question about setNoMove(true/false).
Everything is okay. Monster is attacking and stop moving while he is using this spell but i want to do something like this way: "Monster stops for attack -> doing spell -> can move (setNoMove(false))"
For now is that monster cannot move because i dont know how to do the block movement only for time while spell is casting.
Anyone know how to do that?
Maybe addEvent? But im not good at this. that's why im asking for.
Script:
Code:
function onCastSpell(creature, var)
local outfit = {lookTypeEx = 0, lookType = 30, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}
doSetCreatureOutfit(creature, outfit, 500)
doTargetCombatHealth(creature, creature:getTarget(), COMBAT_PHYSICALDAMAGE, -100, -200, CONST_ME_NONE)
creature:setNoMove(true)
return true
end