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

Resolved The client clicking on the minimap to get to a particular GameObject even though it is on the Screen

Discussion in 'Client & Site Support' started by Infinite Inferno, Oct 3, 2014.

  1. Infinite Inferno

    Infinite Inferno The Pip Collector

    Joined:
    Sep 14, 2014
    Messages:
    445
    Likes Received:
    122
    Since @red forgot to post this, i will do it for him, here is the code:
    Code (Text):
    1.  
    2.    Npc enriched = Npcs.getLoaded("Enriched " + str + currentWisp.substring(1, currentWisp.length()) + " spring", "Enriched " + str + currentWisp.substring(1, currentWisp.length()) + " wisp").sortByDistance().first();
    3.  
    @Cloud @Arbiter
     
  2. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    Yeah no, it's his code that's making it click, we don't have any random click the minimap code in the sort function...
     
  3. Infinite Inferno

    Infinite Inferno The Pip Collector

    Joined:
    Sep 14, 2014
    Messages:
    445
    Likes Received:
    122
    So its not this particular piece of code causing the error correct?
     
  4. red

    red

    Joined:
    Nov 17, 2013
    Messages:
    259
    Likes Received:
    111
    Code (Text):
    1. if (npc != null) {
    2.                                 if (!npc.isVisible()) {
    3.                                     if (!Players.getLocal().isMoving()) {
    4.                                         if (onMinimap(npc.getPosition())) {
    5.                                             npc.getPosition().minimap().click();
    6.                                         } else {
    7.                                             getClosestTileOnMap(npc.getPosition()).minimap().click();
    8.                                         }
    9.                                     }
    10.                                 } else {
    11.                                     if (!Players.getLocal().isMoving()) {
    12.                                         if (npc.interact("Harvest")) {
    13.                                             waitToStart(true);
    14.                                         }
    15.                                     }
    16.                                 }
    17.                             }
    I dont think it is my code...
    @Cloud
     
  5. Cloud

    Cloud Engineer

    Joined:
    Jul 28, 2013
    Messages:
    2,777
    Likes Received:
    1,124
    resolved in dev chat
     

Share This Page

Loading...