Novak Posted March 29, 2015 Share Posted March 29, 2015 the osbot 2 area class does not support planes, so i made my own package data; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.utility.Area; public class RS2Area { public final Area area; public final int plane; public RS2Area(Area area, int plane) { this.area = area; this.plane = plane; } public boolean contains(Position pos) { return area.contains(pos) && pos.getZ() == plane; } public boolean contains(Entity entity) { return area.contains(entity) && entity.getPosition().getZ() == plane; } } Quote Link to comment Share on other sites More sharing options...
AresScripts Posted March 29, 2015 Share Posted March 29, 2015 Thanks for sharing. I actually will need this very soon Quote Link to comment Share on other sites More sharing options...
Mysteryy Posted March 29, 2015 Share Posted March 29, 2015 the osbot 2 area class does not support planes, so i made my own package data; import org.osbot.rs07.api.map.Position; import org.osbot.rs07.api.model.Entity; import org.osbot.rs07.utility.Area; public class RS2Area { public final Area area; public final int plane; public RS2Area(Area area, int plane) { this.area = area; this.plane = plane; } public boolean contains(Position pos) { return area.contains(pos) && pos.getZ() == plane; } public boolean contains(Entity entity) { return area.contains(entity) && entity.getPosition().getZ() == plane; } } Yea why areas dont have planes in osb api is beyond me. :P Quote Link to comment Share on other sites More sharing options...
nyan Posted April 18, 2015 Share Posted April 18, 2015 (edited) i've worked with a few api's now and i found that i've had better success with my scripts when i separated the plane and the area, especially in my rooftop agility script. speaking of rooftop agility, look for the beta release in the near future! i just have to convert it from the api it is currently written for. long live mirror mode! Edited April 18, 2015 by shiny greninja Quote Link to comment Share on other sites More sharing options...
Novak Posted April 18, 2015 Author Share Posted April 18, 2015 i've worked with a few api's now and i found that i've had better success with my scripts when i separated the plane and the area, especially in my rooftop agility script. speaking of rooftop agility, look for the beta release in the near future! i just have to convert it from the api it is currently written for. long live mirror mode! pls all courses supported. look for release soon Quote Link to comment Share on other sites More sharing options...