Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Developing free script - City Area enum?

Featured Replies

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);
    }
}

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 by House

 

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/#

  • Author

 

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);
    }
}

 

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);
    }
}

?

  • 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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.