Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RSArea areaObj = new RSArea(SouthWestTileX, SouthWestTileY, NorthWestTileX, NorthWestTileY);
- RSNPC npc = npcs.getNearest(ID);
- RSTile npcTile = npc.getLocation();
- if (areaObj.contains(npcTile)) {
- //dostuff
- } else {
- //dostuff
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement