Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold


Popular Content

Showing content with the highest reputation on 04/17/2020 in all areas

  1. 1 point
    My code to pick up items dropped from NPCs killed by my character was failing on NPCs that took up more than one tile. Made this little snippet to get all tiles an NPC takes up (since it seems like their drop can potentially end up in any of them). This is basically just like the RSObject getAllTiles method but for NPCs. If there's a better way to do it already present in the API, let me know. But this seems to generally work for what I wanted it to do. public static List<RSTile> getAllTiles(RSNPC c) { RSArea searchArea = new RSArea(c.getPosition(), 5); Polygon bounds = c.getModel().getEnclosedArea(); List<RSTile> tiles = Arrays.asList(searchArea.getAllTiles()).parallelStream().unordered() .filter(t -> Projection.getTileBoundsPoly(t, 0).intersects(bounds.getBounds())).collect(Collectors.toList()); return tiles; }
  2. 1 point
    Hey I managed to fix the issue while replacing with fake account info, it seems if you do "TRUE" or other variations for using proxy instead of just "true" lowercase it won't import further lines. No issue, managed to just change that myself and worked perfectly! Thanks!
  3. 1 point
  4. 1 point
    The combination between this + fals clue scroll script makes my pp hard
  5. 1 point
    hey friends hope everyone is staying safe and remember to wash your hands have a good day
  6. 1 point
  • Create New...