Reid Posted June 2, 2014 Posted June 2, 2014 private Condition attackNPC = new Condition(){ NPC npc; @Override public boolean validate() { s.npcs.closest(GUI.npcToKill); return npc != null && !isDoingSomething() && !npc.isUnderAttack() && npc.getHealth() >= 2 && npc.exists(); } @Override public void execute() throws InterruptedException { s.camera.toEntity(npc); npc.interact("Attack"); Script.sleep(Script.random(3000,6000)); while (isDoingSomething()) { Script.sleep(10); } } }; literally works fine in one of my script but im trying to use the same method in another one of my scripts and IT DOESNT WANT TO WORK! FUCK!
Reid Posted June 3, 2014 Author Posted June 3, 2014 Lol... you don't set npc ever. eric you fkin genious!
Volta Posted June 3, 2014 Posted June 3, 2014 eric you fkin genious! what's with the man ass in your avatar