Farmer Posted May 18, 2013 Share Posted May 18, 2013 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 More sharing options...
Aeterna Posted May 18, 2013 Share Posted May 18, 2013 new Area(bottom_left_x, bottom_left_y, top_right_x, top_right_y) Link to comment Share on other sites More sharing options...
Farmer Posted May 18, 2013 Author Share Posted May 18, 2013 new Area(bottom_left_x, bottom_left_y, top_right_x, top_right_y) And how would I get my local player's current location? There doesn't seem to be anything similar to Players#getMyPlayer() Link to comment Share on other sites More sharing options...
Aeterna Posted May 18, 2013 Share Posted May 18, 2013 myX(), myY(), client.getPlane() [height level], client.getMyPlayer().getX(), client.getMyPlayer().getY(), client.getMyPlayer().getZ() Link to comment Share on other sites More sharing options...