Hello
I've got that spell:
The stun is working good - the 2 seconds not move
But i need to add that things:
- If player/monster have stun he got on self animation id: 31 per second;
- If player/monster is stunned, he cant cast spell (exhaustion);
- If stun going down (time is out) opponent got paralyze for 2 seconds;
I've got that spell:
Lua:
function onCastSpell(cid, var)
local pos = getPosByDir(getCreaturePosition(cid), getCreatureLookDirection(cid), 1)
pos.stackpos = 253
if isPlayer(getThingFromPos(pos).uid) then
doCreatureSetNoMove(getThingFromPos(pos).uid, true)
addEvent(doCreatureSetNoMove, 2000, getThingFromPos(pos).uid, false)
end
return true
end
The stun is working good - the 2 seconds not move
But i need to add that things:
- If player/monster have stun he got on self animation id: 31 per second;
- If player/monster is stunned, he cant cast spell (exhaustion);
- If stun going down (time is out) opponent got paralyze for 2 seconds;