Jump to content

Fay

Members
  • Posts

    420
  • Joined

  • Last visited

  • Days Won

    3
  • Feedback

    100%

Community Answers

  1. Fay's post in Mind correcting my broken code? was marked as the answer   
    Let me guess it would turn the camera to the entity but not actually use the rod on the spot? This should fix it. Read my signature for my TOS lol.
    final String FISHINGSPOT_NAME = "Fishing spot"; final int rod = 11323; public int onLoop() throws InterruptedException { Player player = client.getMyPlayer(); Inventory inv = client.getInventory(); if (!client.getInventory().isFull()) { // If inventory is not full then fish Entity fishSpot = closestNPCForName(FISHINGSPOT_NAME); if (fishSpot != null) { if (fishSpot.isVisible()) { if (!player.isAnimating()) { inv.interactWithId(rod, "Use-rod"); selectOption(fishSpot, fishSpot.getMouseDestination(), "Use-rod"); sleep(200 + random(400)); } } else { client.moveCameraToEntity(fishSpot); } } } else { // If inventory is full then drop all except feathers and rod inv.dropAllExcept(314,rod); } return 50; }
×
×
  • Create New...