blahs44

Untitled

Oct 19th, 2013
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1.     private NPC getclosestDragon(List<NPC> list) {
  2.  
  3.         NPC exp = null;
  4.  
  5.         for (int i = 0; i < list.size(); i++) {
  6.             if (((NPC) list.get(i)).getLevel() == 79) {
  7.                 if (((NPC) list.get(i)).getFacing() == this.client
  8.                         .getMyPlayer()) {
  9.                     exp = (NPC) list.get(i);
  10.                     return exp;
  11.                 }
  12.                 if (((NPC) list.get(i)).getFacing() == null) {
  13.                     exp = (NPC) list.get(i);
  14.                     return exp;
  15.                 }
  16.             }
  17.         }
  18.  
  19.         return exp;
  20.     }
Advertisement
Add Comment
Please, Sign In to add comment