Reid Posted June 2, 2014 Share 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! Link to comment Share on other sites More sharing options...
irwtonrs1 Posted June 2, 2014 Share Posted June 2, 2014 gtfo 1 Link to comment Share on other sites More sharing options...
Novak Posted June 2, 2014 Share Posted June 2, 2014 obviously a scripter error Link to comment Share on other sites More sharing options...
Ericthecmh Posted June 3, 2014 Share Posted June 3, 2014 Lol... you don't set npc ever. Link to comment Share on other sites More sharing options...
Reid Posted June 3, 2014 Author Share Posted June 3, 2014 Lol... you don't set npc ever. eric you fkin genious! Link to comment Share on other sites More sharing options...
Volta Posted June 3, 2014 Share Posted June 3, 2014 eric you fkin genious! what's with the man ass in your avatar Link to comment Share on other sites More sharing options...