July 25, 20169 yr Does anyone have an enum for the areas of each city? Something like this: I think I can really create a beneficial (free) script for the whole community, but I'd rather not consume time doing work that's already been done. Would anybody happen to have this? public enum City { LUMBRIDGE(x1, y1, x2, y2), VARROCK(x1, y1, x2, y2); private int x1, y1, x2, y2; City(int x1, y1, x2, y2) { this.x1 = x1; this.y1 = y1; this.x2 = x2; this.y2 = y2; } public Area construct() { return new Area(x1, y1, x2, y2); } }
July 25, 20169 yr Use Manners Map Utility. http://osbot.org/forum/topic/77331-download-for-mmu/?hl=map+utility public enum City { LUMBRIDGE(x1, y1, x2, y2), VARROCK(x1, y1, x2, y2); private int x1, y1, x2, y2; City(int x1, y1, x2, y2) { this.x1 = x1; this.y1 = y1; this.x2 = x2; this.y2 = y2; } public Area construct() { return new Area(x1, y1, x2, y2); } } Also what is that^ public enum City { LUMBRIDGE("Lumbridge", new Position(0, 0, 0), new Position(0, 0, 0)); String name; Area area; City(String name, Position p1, Position p2) { this.name = name; this.area = new Area(p1, p2); } } Edited July 25, 20169 yr by House
July 25, 20169 yr Author Use Manners Map Utility. http://osbot.org/forum/topic/77331-download-for-mmu/?hl=map+utility Also what is that^ I just wrote that up in like 1min as an example lol thanks for the help bro
July 26, 20169 yr Does anyone have an enum for the areas of each city? Something like this: I think I can really create a beneficial (free) script for the whole community, but I'd rather not consume time doing work that's already been done. Would anybody happen to have this? public enum City { LUMBRIDGE(x1, y1, x2, y2), VARROCK(x1, y1, x2, y2); private int x1, y1, x2, y2; City(int x1, y1, x2, y2) { this.x1 = x1; this.y1 = y1; this.x2 = x2; this.y2 = y2; } public Area construct() { return new Area(x1, y1, x2, y2); } } http://explv.github.io/#
July 26, 20169 yr Author http://explv.github.io/# oh yeah i forgot about that... that thing's really cool. regardless, i already made it for the cities that i needed: public enum City { DRAYNOR(3070, 3302, 3136, 3213), ALKHARID(3335, 3145, 3264, 3224), VARROCK(3135, 3517, 3290, 3375), CANIFIS(3518, 3466, 3458, 3511), FALADOR(2931, 3393, 3067, 3308), SEERS(2680, 3507, 2743, 3453), POLLNIVEACH(3380, 3005, 3330, 2940), RELLEKKA(2688, 3697, 2613, 3648), ARDOUGNE(2688, 3339, 2559, 3264); private int x1; private int x2; private int y1; private int y2; City(int x1, int y1, int x2, int y2) { this.x1 = x1; this.x2 = x2; this.y1 = y1; this.y2 = y2; } public Area construct() { return new Area(x1, y1, x2, y2); } }
July 26, 20169 yr oh yeah i forgot about that... that thing's really cool. regardless, i already made it for the cities that i needed: public enum City { DRAYNOR(3070, 3302, 3136, 3213), ALKHARID(3335, 3145, 3264, 3224), VARROCK(3135, 3517, 3290, 3375), CANIFIS(3518, 3466, 3458, 3511), FALADOR(2931, 3393, 3067, 3308), SEERS(2680, 3507, 2743, 3453), POLLNIVEACH(3380, 3005, 3330, 2940), RELLEKKA(2688, 3697, 2613, 3648), ARDOUGNE(2688, 3339, 2559, 3264); private int x1; private int x2; private int y1; private int y2; City(int x1, int y1, int x2, int y2) { this.x1 = x1; this.x2 = x2; this.y1 = y1; this.y2 = y2; } public Area construct() { return new Area(x1, y1, x2, y2); } } public enum City { LUMBRIDGE(3222, 3218, 0), AL_KHARID(3293, 3174, 0), DRAYNOR(3093, 3244, 0), PORT_SARIM(3023, 3208, 0), KARAMJA(2948, 3147, 0), CRANDOR(2851, 3238, 0), RIMMINGTON(2957, 3214, 0), VARROCK(3210, 3424, 0), DIGSITE(3354, 3402, 0), FALADOR(2964, 3378, 0), GRAND_EXCHANGE(3161, 3486, 0), BARBARIAN_VILLAGE(3082, 3420, 0), EDGEVILLE(3093, 3493, 0), BURTHORPE(2926, 3559, 0), CATHERBY(2813, 3447, 0), CAMELOT(2757, 3477, 0), SEERS_VILLAGE(2708, 3492, 0), WEST_ARDOUGNE(2529, 3307, 0), EAST_ARDOUGNE(2662, 3305, 0), TREE_GNOME_STRONGHOLD(2461, 3443, 0), POLLNIVNEACH(3359, 2910, 0), SOPHANEM(3274, 2784, 0), CANIFIS(3506, 3496, 0), PORT_PHASMATYS(3687, 3502, 0), MORT_TON(3489, 3288, 0), TZHAAR(2480, 5175, -2), APE_ATOLL(2755, 2784, 0); private int x, y, z; City(int x, int y, int z) { this.x = x; this.y = y; this.z = z; } public Position construct() { return new Position(x, y, z); } } ?
July 26, 20169 yr Author public enum City { LUMBRIDGE(3222, 3218, 0), AL_KHARID(3293, 3174, 0), DRAYNOR(3093, 3244, 0), PORT_SARIM(3023, 3208, 0), KARAMJA(2948, 3147, 0), CRANDOR(2851, 3238, 0), RIMMINGTON(2957, 3214, 0), VARROCK(3210, 3424, 0), DIGSITE(3354, 3402, 0), FALADOR(2964, 3378, 0), GRAND_EXCHANGE(3161, 3486, 0), BARBARIAN_VILLAGE(3082, 3420, 0), EDGEVILLE(3093, 3493, 0), BURTHORPE(2926, 3559, 0), CATHERBY(2813, 3447, 0), CAMELOT(2757, 3477, 0), SEERS_VILLAGE(2708, 3492, 0), WEST_ARDOUGNE(2529, 3307, 0), EAST_ARDOUGNE(2662, 3305, 0), TREE_GNOME_STRONGHOLD(2461, 3443, 0), POLLNIVNEACH(3359, 2910, 0), SOPHANEM(3274, 2784, 0), CANIFIS(3506, 3496, 0), PORT_PHASMATYS(3687, 3502, 0), MORT_TON(3489, 3288, 0), TZHAAR(2480, 5175, -2), APE_ATOLL(2755, 2784, 0); private int x, y, z; City(int x, int y, int z) { this.x = x; this.y = y; this.z = z; } public Position construct() { return new Position(x, y, z); } } ? bro those are positions not areas lol