1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Resolved Camera wont turnTo

Discussion in 'Developer Support' started by qverkk, Apr 15, 2016.

  1. qverkk

    Joined:
    Sep 22, 2015
    Messages:
    1,603
    Likes Received:
    381
    1. Spectre Version: 1.1.7
    2. Bind Version: 1.1.1
    3. Affected Games: RS3 (didn't try osrs)
    4. Code Used:


      Code (Text):
      1. @Override
      2.     public void execute() {
      3.         System.out.println("Fishing handler");
      4.         System.out.println(bot.fishOption);
      5.         Player player = Players.getLocal();
      6.         Npc fishingSpot = Npcs.newQuery().names("Fishing spot").actions(bot.fishOption).within(bot.fishingArea).results().nearest();
      7.         if(player != null) {
      8.             if (fishingSpot != null) {
      9.                 if(!player.isMoving()) {
      10.                     if (fishingSpot.isVisible()) {
      11.                         System.out.println("Fishing spot is visible");
      12.                         if (fishingSpot.interact(bot.fishOption, "Fishing spot")) {
      13.                             Execution.delayUntil(() -> player.getAnimationId() == -1, 5000);
      14.                         }
      15.                     } else {
      16.                         System.out.println("Fishing spot isn't visible");
      17.                         Camera.turnTo(fishingSpot);
      18.                     }
      19.                 }
      20.             }
      21.         }
      22.  
      23.     }

    The script bot will detect that the fishingPool isn't visible but won't even turn to it

     
  2. Best Answer:
    Post #4 by Cloud, Apr 16, 2016
  3. proxi

    proxi s̶c̶r̶i̶p̶t̶ bot*

    Joined:
    Aug 23, 2015
    Messages:
    2,223
    Likes Received:
    501
    @Cloud ... I know you hate to hear this, but I am also still having issues with the camera :(
     
  4. qverkk

    Joined:
    Sep 22, 2015
    Messages:
    1,603
    Likes Received:
    381
    Works for me now. Changed for rs3 mode. My interface looks like this now: http://i.imgur.com/rcNq938.png . Before i was on legacy mode with chatbox always mode or something like that
     
  5. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Should be fixed in the next release.
     

Share This Page

Loading...