• 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
• Try asking for help in the chatbox
• # Super advanced circle area #rekt #blazeit720 #pro #owned #yourmom

## Recommended Posts

```class class CircleArea implements Locatable {
private final Tile center;

/**
* @param center
*/
public CircleArea(Tile center, int radius) {
this.center = center;
}

/**
* @return
*/
public Tile getCenter() {
return center;
}

/**
* @param location
* @return
*/
public boolean contains(Locatable location) {
}

/**
* @param g
* @param ctx
*/
public void draw(Graphics2D g, ClientContext ctx) {
drawMiniMap(g, ctx);
}

/**
* @param g
* @param ctx
*/
private void drawMiniMap(Graphics2D g, ClientContext ctx) {
if (center.matrix(ctx).onMap()) {
final Point point = center.matrix(ctx).mapPoint();
g.setColor(contains(ctx.players.local().tile()) ? new Color(8, 174, 14, 128) : new Color(255, 0, 0, 128));
g.setColor(Color.BLACK);
}
}

/**
* @return
*/
public Tile random() {
final double rX = Math.random();
final double rY = Math.random();
final double angle = 2 * Math.PI * rX / rY;
final Point2D.Double point = new Point.Double(
rY * (radius - 1) * Math.cos(angle),
rY * (radius - 1) * Math.sin(angle)
);
return new Tile((int) (center.x() + point.x), (int) (center.y() + point.y), tile().floor());
}

@Override
public Tile tile() {
return center;
}
}```

You're welcome, you can donate me on paypal [email protected] for this amazing work.

Edited by Polish Civil
##### Share on other sites

Donate him, Money goes to the cinema.

##### Share on other sites

Donate him, Money goes to the cinema.

How you know it lol

OH THATS YOU NOOB! ^ I HATE DIS GUY