SHARE
TWEET

Untitled

a guest Aug 13th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
Top