Jump to content
Farmer

Area Conversion.

Recommended Posts

First off, I would like to point out that i'm aware that the way I declared the points in general isn't the most efficient way of doing it. Nonetheless, I would like to convert this to the Osbot API, and am currently unaware of how to do so. I'm still learning. :3

  public static final Area powerchopZone = new Area(new Tile[] {
            new Tile(Methods.getX(Players.getMyPlayer().getLocation()) - 5, Methods.getY(Players.getMyPlayer().getLocation()) + 5), new Tile(Methods.getX(Players.getMyPlayer().getLocation()) + 5, Methods.getY(Players.getMyPlayer().getLocation()) + 5),
            new Tile(Methods.getX(Players.getMyPlayer().getLocation()) - 5, Methods.getY(Players.getMyPlayer().getLocation()) - 5), new Tile(Methods.getX(Players.getMyPlayer().getLocation()) + 5, Methods.getY(Players.getMyPlayer().getLocation()) - 5)
    });
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...