Guest User

Untitled

a guest
Jun 22nd, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. public boolean warbosNpcIsBusy(NPC i) {
  2. if (i.getInteracting() != null || i.isInCombat()) {
  3. return true;
  4. } else {
  5. return false;
  6. }
  7. }
  8.  
  9. public boolean npcCanBeAttack(String name) {
  10. NPC i = npcs.getClosest(20, name);
  11. if (!warbosNpcIsBusy(i)) {
  12. return true;
  13. } else {
  14. return false;
  15. }
  16. }
Add Comment
Please, Sign In to add comment