Advertisement
Guest User

Untitled

a guest
Aug 13th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1. RSArea areaObj = new RSArea(SouthWestTileX, SouthWestTileY, NorthWestTileX, NorthWestTileY);
  2. RSNPC npc = npcs.getNearest(ID);
  3. RSTile npcTile = npc.getLocation();
  4. if (areaObj.contains(npcTile)) {
  5.     //dostuff
  6. } else {
  7.     //dostuff
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement