Recast invisible when not over script

hey
my wizards die on the way too the spot even with invisible because when invisible over mob attack them
and cant go invisible
how too recast it when not over i cant seem to find it ?

add cast command on walk script cast invisible every 15 step

thx didint try that
i will try it when my chars are logged
<3