Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int npcsInArea(int area) {
- int count = 0;
- for (int i = 0; i < Server.npcHandler.npcs.length; i++) {
- if (Server.npcHandler.npcs[i] != null) {
- boolean inArea = false;
- switch (area) {
- case 0:
- inArea = Server.npcHandler.npcs[i].AREA_BOOLEAN();
- break;
- case 1:
- inArea = Server.npcHandler.npcs[i].AREA_BOOLEAN2();
- break;
- }
- if (inArea) {
- count++;
- }
- }
- }
- return count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement