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 The client clicking on the minimap to get to a particular GameObject even though it is on the Screen

The Pip Collector
Joined
Sep 14, 2014
Messages
445
Since @red forgot to post this, i will do it for him, here is the code:
Code:
   Npc enriched = Npcs.getLoaded("Enriched " + str + currentWisp.substring(1, currentWisp.length()) + " spring", "Enriched " + str + currentWisp.substring(1, currentWisp.length()) + " wisp").sortByDistance().first();
@Cloud @Arbiter
 
Engineer
Joined
Jul 28, 2013
Messages
2,776
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...
 

red

Joined
Nov 17, 2013
Messages
258
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...
Code:
if (npc != null) {
                                if (!npc.isVisible()) {
                                    if (!Players.getLocal().isMoving()) {
                                        if (onMinimap(npc.getPosition())) {
                                            npc.getPosition().minimap().click();
                                        } else {
                                            getClosestTileOnMap(npc.getPosition()).minimap().click();
                                        }
                                    }
                                } else {
                                    if (!Players.getLocal().isMoving()) {
                                        if (npc.interact("Harvest")) {
                                            waitToStart(true);
                                        }
                                    }
                                }
                            }
I dont think it is my code...
@Cloud
 
Top