beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { ExcTargetType(0x2); IncTargetType(0x40); IncTargetType(0x1); IncludeGTarget(1); EndFrame(); goto Check; } EndFrame(); goto Wait; label Check: if (UnitDead()) { EndFrame(); goto Wait; } if (GetGlobalVar(0) >= 1) { SetFollowWaypoint(103,0,0); ExcTargetType(0xffffffff); label loop: if (GetFollowMode() == 3) { DespawnUnit(); EndFrame(); goto End; } EndFrame(); goto loop; } EndFrame(); goto Check; label End: EndFrame(); goto End; endscript; $