Advertisement
FALSkills

Untitled

Oct 5th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. RSNPC[] unaggressive = NPCs.find(monkeyFilter.and(new Predicate<RSNPC>(){
  2.  
  3. RSTile myPos = Player.getPosition();
  4.  
  5. @Override
  6. public boolean test(RSNPC n) {
  7. if(myPos.distanceTo(n) >= 4){
  8. return false;
  9. }
  10. if(n.isInteractingWithMe()){
  11. return false;
  12. }
  13. return true;
  14. }
  15.  
  16. }));
  17. if(unaggressive.length > 0){
  18. sleep(1000,2000);
  19. RSTile myPos = Player.getPosition();
  20. for(RSNPC npc:unaggressive){
  21. if(npc.isInteractingWithMe() || myPos.distanceTo(npc) >= 4){
  22. continue;
  23. } else{
  24. println("Enemies are unaggressive!");
  25. enemiesAreUnaggressive = true;
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement