CanCo Posted August 15, 2017 Posted August 15, 2017 (edited) How can I use local titles instead of the set tiles eg. in an instance area the local tiles are always the same, but the main tiles change so it is easier to use local tiles. (EDIT: in this instance anyway, not sure about other instances) How can this be done? Current: Area area = new Area(x, y, x, y); Is somthing like this possible: Area area = new Area(LocalX x,LocalY y,LocalX x,LocalY y); Edited August 15, 2017 by CanCo
JohnDoe1 Posted August 15, 2017 Posted August 15, 2017 public static Area SafeVarrock = new Area(3192, 3351, 3206, 3345); thats a example of how to set a area thwen you can call on the area latr
CanCo Posted August 15, 2017 Author Posted August 15, 2017 (edited) 32 minutes ago, JohnDoe1 said: public static Area SafeVarrock = new Area(3192, 3351, 3206, 3345); thats a example of how to set a area thwen you can call on the area latr Yes i know that is what i posted. What i am looking for is not area using main tiles but using local tiles that are inside instance, because main tiles change in instances but local tiles stay the same. Edited August 15, 2017 by CanCo
Alek Posted August 15, 2017 Posted August 15, 2017 Constructors are based off of type, not label? You would need to convert Local X/Y by adding Base X/Y to it.
Team Cape Posted August 15, 2017 Posted August 15, 2017 1 hour ago, CanCo said: How can I use local titles instead of the set tiles eg. in an instance area the local tiles are always the same, but the main tiles change so it is easier to use local tiles. (EDIT: in this instance anyway, not sure about other instances) How can this be done? Current: Area area = new Area(x, y, x, y); Is somthing like this possible: Area area = new Area(LocalX x,LocalY y,LocalX x,LocalY y); Use 1 object in the local area that has a fixed position as your 'base' position, and calculate the area relative to that object
d0zza Posted August 15, 2017 Posted August 15, 2017 You can also create your own 'localArea' API that act the same as OSBot's Area API.
CanCo Posted August 16, 2017 Author Posted August 16, 2017 Alright that sounds like a plan, thanks all