Jump to content

Aqla

Members
  • Posts

    6
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Aqla's Achievements

Newbie

Newbie (1/10)

4

Reputation

  1. Thank you, Khal! Thank you so much, Chris! This helped me a great deal and taught me a lot. One step closer to writing great scripts. Really appreciate you putting time into the comments and syntax clarification.
  2. Aqla

    Stealth Quester

    F5 to go to ironman mode if I'm not mistaken.
  3. Hello all. I'm writing a fighter bot that picks up loot from the tile where the last target died. I was wondering if someone could point me to a more efficient and clean way to write the for loops that check for relevant items on the tile and picks them up (see below). Looking forward to learn more. public void lootingLastKilled() { List<GroundItem> itemsOnTile = getGroundItems().get(targetTile.getX(), targetTile.getY()); List<String> itemsToLoot = Stream.of("Feather","Bones").collect(Collectors.toList()); // Check for items on target tile that match items the bot should loot for (int i = 0; i < itemsOnTile.size(); i++) { for (int j = 0; j < itemsToLoot.size(); j++) { if (itemsOnTile.get(i).getName().equals(itemsToLoot.get(j))) { // Pick up ground item that matches items to loot GroundItem itemToPickUp = itemsOnTile.get(i); itemToPickUp.interact("Take"); (new ConditionalSleep(3000) { public boolean condition() throws InterruptedException { return myPlayer().isAnimating(); } }).sleep(); } } } }
  4. Does getMouse().move() always move your cursor in a straight line to the specified coordinates or is the path randomized? Thanks in advance.
  5. Is it possible to click an item in the inventory, drag it slightly (but not enough to move it to another inventory space) and release? If so, could someone demonstrate? Thanks in advance.
×
×
  • Create New...