Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved Camera wont turnTo

Joined
Sep 22, 2015
Messages
1,613
  1. Spectre Version: 1.1.7
  2. Bind Version: 1.1.1
  3. Affected Games: RS3 (didn't try osrs)
  4. 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
 
s̶c̶r̶i̶p̶t̶ bot*
Joined
Aug 23, 2015
Messages
2,232
@Cloud ... I know you hate to hear this, but I am also still having issues with the camera :(
 
Top