March 29, 201510 yr 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; } }
March 29, 201510 yr 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
April 18, 201510 yr 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, 201510 yr by shiny greninja
April 18, 201510 yr Author 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
Create an account or sign in to comment