Exemple #1
0
  private boolean depositAll() {
    ScreenModel[] box = ScreenModels.find(1518040783L);
    if (box.length > 0) {
      Point P =
          new Point(
              box[0].base_point.x + randomRange(-3, 3), box[0].base_point.y + randomRange(-3, 3));
      Mouse.move(P);
      if (Timing.waitUptext("deposit box", 1000)) {
        Mouse.click(1);
        if (waitBoxScreen(5000)) {
          Point BP = new Point(298 + randomRange(0, 25), 320 + randomRange(0, 16));
          Mouse.move(BP);
          Mouse.click(1);
          return true;
        }
      } else {
        attempt++;
        if (attempt < maxAttempt) {
          if (depositAll()) {
            attempt = 0;
          }
        }
      }
    }

    return false;
  }
Exemple #2
0
  private void gluttonousBehemoth() {
    long bossID = 2081911231L, foodSourceID = 1561638623L;
    Point MSC = new Point(259, 220);

    ScreenModel[] boss = ScreenModels.find(bossID);
    if (boss.length > 0) {
      ScreenModel[] food = ScreenModels.find(foodSourceID);
      if (food.length > 0) {
        int foodDist =
            Math.abs(MSC.x - food[0].base_point.x) + Math.abs(MSC.y - food[0].base_point.y);
        println("Food dist: " + foodDist);
        if (foodDist < 110) {
          Point BP = new Point(boss[0].base_point);
          Mouse.move(BP);
          if (Timing.waitUptext("behemoth", 500)) {
            Mouse.click(BP, 1);
          }
        } else {
          println("We need to move near the food source!");
          Point FP = new Point(food[0].base_point);
          Mouse.click(FP, 1);
        }
      }
    }
  }
Exemple #3
0
  private void icyBones() {
    long bossID = 3076383209L;

    ScreenModel[] boss = ScreenModels.find(bossID);
    if (boss.length > 0) {
      Point BP = new Point(boss[0].base_point);
      Mouse.move(BP);
      if (Timing.waitUptext("bones", 500)) {
        Mouse.click(BP, 1);
      }
    }
  }
Exemple #4
0
  // BEER BUYING
  private boolean talkToSeller() {
    long ID = 2955713843L;

    Point P = getNearestPoint(ID);
    if (P != null) {
      Point BP = new Point(P.x + randomRange(-5, 5), P.y - randomRange(5, 15));
      Mouse.move(BP);
      if (Timing.waitUptext("Emily", 200) || Timing.waitUptext("Kaylee", 200)) {
        Mouse.click(1);
        waitUntilNotMoving();
        return true;
      } else {
        attempt++;
        if (attempt < maxAttempt) {
          if (talkToSeller()) {
            attempt = 0;
          }
        }
      }
    }

    return false;
  }