beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { ExcTargetType(0xffffffff); SetFollowRange(50); EndFrame(); goto End; } EndFrame(); goto Wait; label End: EndFrame(); goto End; endscript; $