Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RSNPC[] unaggressive = NPCs.find(monkeyFilter.and(new Predicate<RSNPC>(){
- RSTile myPos = Player.getPosition();
- @Override
- public boolean test(RSNPC n) {
- if(myPos.distanceTo(n) >= 4){
- return false;
- }
- if(n.isInteractingWithMe()){
- return false;
- }
- return true;
- }
- }));
- if(unaggressive.length > 0){
- sleep(1000,2000);
- RSTile myPos = Player.getPosition();
- for(RSNPC npc:unaggressive){
- if(npc.isInteractingWithMe() || myPos.distanceTo(npc) >= 4){
- continue;
- } else{
- println("Enemies are unaggressive!");
- enemiesAreUnaggressive = true;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement