Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private class HandleAttack implements Strategy {
- Npc[] abbyDemon = Npcs.getNearest(81);//1615
- @Override
- public boolean activate() {
- return abbyDemon.length > 0;
- }
- @Override
- public void execute() {
- System.out.print("running attackhandler.java");
- Time.sleep(1500);
- if(abbyDemon != null && abbyDemon[0].isInCombat() && !Players.getMyPlayer().isInCombat()) {
- abbyDemon[0].interact(1);
- Time.sleep(new SleepCondition() {
- @Override
- public boolean isValid() {
- return !Players.getMyPlayer().isInCombat();
- }
- }, 5000);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement