- Joined
- Sep 22, 2015
- Messages
- 1,613
- Thread Author
- #1
- Spectre Version: 1.1.7
- Bind Version: 1.1.1
- Affected Games: RS3 (didn't try osrs)
- Code Used:
Code:@Override public void execute() { System.out.println("Fishing handler"); System.out.println(bot.fishOption); Player player = Players.getLocal(); Npc fishingSpot = Npcs.newQuery().names("Fishing spot").actions(bot.fishOption).within(bot.fishingArea).results().nearest(); if(player != null) { if (fishingSpot != null) { if(!player.isMoving()) { if (fishingSpot.isVisible()) { System.out.println("Fishing spot is visible"); if (fishingSpot.interact(bot.fishOption, "Fishing spot")) { Execution.delayUntil(() -> player.getAnimationId() == -1, 5000); } } else { System.out.println("Fishing spot isn't visible"); Camera.turnTo(fishingSpot); } } } } }
The script will detect that the fishingPool isn't visible but won't even turn to it