Jump to content

azy2

Members
  • Posts

    35
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by azy2

  1. ah okay, Botre's answer didn't work for me. I'll try what you have
  2. I ended up going with this for anyone running into a similar problem. Thanks again to everyone that helped List<NPC> fishingSpots = getNpcs().filter(new ActionFilter<NPC>("Cage")); NPC fishingSpot = fishingSpots.get(0); for (NPC n : fishingSpots) { if (getMap().distance(n) - getMap().distance(myPlayer()) < getMap().distance(fishingSpot) - getMap().distance(myPlayer())) { fishingSpot = n; } }
  3. Thanks so much guys. That will help a lot
  4. I'm writing a fishing bot for the fishing guild and I need to be able to tell the difference between a shark fishing spot and a swordfish fishing spot. Right now I have NPC fishingSpot = npcs.closest("Fishing spot"); Which will select a shark spot if it's the closest when I only want swordfish spots for example. I tried the following NPC fishingSpot = npcs.closestThatContains(true, "Fishing spot", "Cage"); But this is not working. I'm not sure what the bool does but false doesn't work either. Obviously this method doesn't do what I hoped it would. How could I get the closest "Fishing spot" that contains the interaction "Cage"?
  5. Also it would be great if you could add an option to drop tuna and only bank swordfish for those of us trying to make money
  6. I ran into a bug. At one point the script clicked on a spot off to the west of the dock and after my inventory filled it just kept trying to fish the spot over and over again instead of running to the bank. I fixed it by pausing the script and moving my char back onto the dock, then the script realized inv was full and went to the bank. Edit. Otherwise the script has been working flawlessly. Thanks so much for offering a cheap script option
×
×
  • Create New...