rendered paste bodydo { mousetime = theScript.getInputBot().theInputTread .timeTillDone(); if (mousetime != -1) { if (moving) { int interval = StaticColorMethods.defaultmaxAgeInMillisecs * 2; updatePoints(); removeRedundantPoints(3); if (mousetime > interval) { paintPoints(interval); Thread.sleep(interval); }else{ paintPoints((int) mousetime); Thread.sleep(mousetime); } nextPoint = getNext(); if (nextPoint != null) { XY updatedMovingMouseTo = new XY(nextPoint.x + xOffet, nextPoint.y + yOffset); if (SortMethods.distance(movingMouseTo, updatedMovingMouseTo) > 5) { movingMouseTo = updatedMovingMouseTo; theScript.addOrder(new Order(theScript .getPrority(), Order.ORDER_MOVE, movingMouseTo.x, movingMouseTo.y, Areas.ENTIRE, true)); Thread.sleep(10); } } } else { paintPoints((int) mousetime); Thread.sleep(mousetime); } } } while (mousetime > 0);