freshman123m 1 Share Posted July 27, 2017 Title, thanks. Link to comment Share on other sites More sharing options...
Manly 879 Share Posted July 27, 2017 getmap().getdestination().equals(tile) Link to comment Share on other sites More sharing options...
freshman123m 1 Author Share Posted July 27, 2017 getmap().getdestination().equals(tile) Does not seem to be a getDestination method, there is a getMiniMapTileDestination however that returns a Minimaptiledestination object Link to comment Share on other sites More sharing options...
Manly 879 Share Posted July 27, 2017 Does not seem to be a getDestination method, there is a getMiniMapTileDestination however that returns a Minimaptiledestination object Uhh it must be under getwalking then. Ive forgotten which one its under. Link to comment Share on other sites More sharing options...
Scorpius 144 Share Posted July 27, 2017 Here is what I use to traverse in my scripts (Usually pointing to a random tile inside an area); if (getWalking().getDestination() == null) { getWalking().walk(area_bank.getRandomTile()); } else if (!area_bank.contains(getWalking().getDestination()) && getWalking().getDestinationDistance() < 6) { getWalking().walk(area_bank.getRandomTile()); } Link to comment Share on other sites More sharing options...
Volta 183 Share Posted July 27, 2017 nvm Link to comment Share on other sites More sharing options...
Manly 879 Share Posted July 27, 2017 The docs say getDestination() returns -1 if no destination btw, not null. Thats getDestinationDistance() Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.