Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private NPC getclosestDragon(List<NPC> list) {
- NPC exp = null;
- for (int i = 0; i < list.size(); i++) {
- if (((NPC) list.get(i)).getLevel() == 79) {
- if (((NPC) list.get(i)).getFacing() == this.client
- .getMyPlayer()) {
- exp = (NPC) list.get(i);
- return exp;
- }
- if (((NPC) list.get(i)).getFacing() == null) {
- exp = (NPC) list.get(i);
- return exp;
- }
- }
- }
- return exp;
- }
Advertisement
Add Comment
Please, Sign In to add comment