xinobyte 1 Share Posted April 30, 2017 Is there a way to create a non rectangular Area ?I couldn't find an answer in the docs and I can't do it tile by tile cause it has 500+ of them. Link to comment Share on other sites More sharing options...
Ayylmao42000 6 Share Posted April 30, 2017 https://dreambot.org/javadocs/org/dreambot/api/methods/map/Area.html#Area-org.dreambot.api.methods.map.Tile...- This might help Link to comment Share on other sites More sharing options...
Banker 175 Share Posted April 30, 2017 Area Maker by @Hoodz on SDN Link to comment Share on other sites More sharing options...
Polymorphism 48 Share Posted May 24, 2017 Try this. With a little math you can do amazing things with it. public Area getSurroundingArea(int radius) Link to comment Share on other sites More sharing options...
Rubick 30 Share Posted August 22, 2017 Try this. With a little math you can do amazing things with it. public Area getSurroundingArea(int radius) Does this return a polygonal area around you with all valid tiles or something? that would be amazing Link to comment Share on other sites More sharing options...
Polymorphism 48 Share Posted August 23, 2017 Does this return a polygonal area around you with all valid tiles or something? that would be amazing All tiles within x radius, with player being centerpoint Link to comment Share on other sites More sharing options...
Rubick 30 Share Posted August 23, 2017 All tiles within x radius, with player being centerpoint I'm just curious if it includes the tiles that you can't move to/are off the map. Link to comment Share on other sites More sharing options...
Polymorphism 48 Share Posted August 23, 2017 I'm just curious if it includes the tiles that you can't move to/are off the map. Yeah, all tiles. You can filter out unreachable tiles after generating the surrounding area. Be mindful of the size you generate, i try to not do more than 10 unless specifically necessary as it will take significantly longer to generate the area Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.