• Are you not able to open the client? Try following our getting started guide
• Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
• How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
• # Area Questions

## Recommended Posts

Hello eveyone.

So I know that if you want to create an area you would do

```Area fishArea = new Area(3085, 3233, 3089, 3224, 0);
```

but what happens if I want different z values? For example, I still want the equation to be true if I'm on the x and y, but with a z value of 1 instead of 0. How would I do that?

##### Share on other sites

dont define it that way. use the same thing but just define new tiles so you can have a cube.

##### Share on other sites

Area fishArea = new Area(3085, 3233, 3089, 3224, 0);

the constructor is

x1, y1, x2, y2, z

so if you want it on z 1

Area fishArea = new Area(3085, 3233, 3089, 3224, 1);

##### Share on other sites

Area fishArea = new Area(3085, 3233, 3089, 3224, 0);

the constructor is

x1, y1, x2, y2, z

so if you want it on z 1

Area fishArea = new Area(3085, 3233, 3089, 3224, 1);

I think he wants a cube , so as long as he in an area that has verticle components?

```Area yourArea = new Area((new Tile(3169, 2976, 0)), (new Tile(3176, 2970, 1)));
```
##### Share on other sites

I think he wants a cube , so as long as he in an area that has verticle components?

```Area yourArea = new Area((new Tile(3169, 2976, 0)), (new Tile(3176, 2970, 1)));
```

Or he could just use:

Area(int x1, int y1, int x2, int y2)

Creates a rectangular area using basic coordinates for any plane.

Dont input the Z and it ignores the plane unless the API is lying to me.
##### Share on other sites

Or he could just use:

Area(int x1, int y1, int x2, int y2)

Creates a rectangular area using basic coordinates for any plane.

Dont input the Z and it ignores the plane unless the API is lying to me.

yeah that should totally work too. Look at all these solutions