Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean warbosNpcIsBusy(NPC i) {
- if (i.getInteracting() != null || i.isInCombat()) {
- return true;
- } else {
- return false;
- }
- }
- public boolean npcCanBeAttack(String name) {
- NPC i = npcs.getClosest(20, name);
- if (!warbosNpcIsBusy(i)) {
- return true;
- } else {
- return false;
- }
- }
Add Comment
Please, Sign In to add comment