Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. private boolean atPlace(String place){
  2. RSArea area1 = new RSArea(new RSTile(2933, 3282), new RSTile(2941, 3287));
  3. RSArea area2 = new RSArea(new RSTile(2930, 3277), new RSTile(2937, 3281));
  4. if (place.equals("mine")) {
  5. return area1.contains(getMyPlayer().getLocation());
  6. }
  7. if (place.equals("sink")) {
  8. return area2.contains(getMyPlayer().getLocation());
  9. }
  10. return false;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement