beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { SetNumLives(1); ExcTargetType(0xffffffff); //IncTargetType(0x2); if (GetGlobalVar(2) == 3) { SetFollowWaypoint(145,0,0); } else { SetFollowWaypoint(120,0,0); } SetFollowRange(50); EndFrame(); goto Start; } EndFrame(); goto Wait; label Start: if (GetGlobalVar(2) == 3) { if (UnitInArea (-9337,-8687,70)) { // need to set global var 7 to 0 SetGlobalVar(6,GetGlobalVar(6) + 1); DespawnUnit(); EndFrame(); goto End; } } else { if (UnitInArea (7785,-6251,70)) { SetGlobalVar(7,GetGlobalVar(7) + 1); DespawnUnit(); EndFrame(); goto End; } } EndFrame(); goto Start; label End: EndFrame(); goto End; endscript; $