qverkk1 Posted August 8, 2015 Share Posted August 8, 2015 I need a bit of help, i'm trying to add a killcounter to my script with: This is in onLoop: if(npc.getAnimation() == 836){ killCount ++; log("KC added"); } else { log("Something is wrong"); } In paint ive got: g.drawString("Kill Count: " + killCount, 320, 330); Any ideas how to get this working? If i run this at it is my whole CPU goes to osbot, taking all processing power. Quote Link to comment Share on other sites More sharing options...
blabla123 Posted August 8, 2015 Share Posted August 8, 2015 How did you declare npc? Quote Link to comment Share on other sites More sharing options...
qverkk1 Posted August 8, 2015 Author Share Posted August 8, 2015 (edited) On 8/8/2015 at 4:55 PM, blabla123 said: How did you declare npc? NPC npc = npcs.closest(new Filter<NPC>() Edited August 8, 2015 by qverkk1 Quote Link to comment Share on other sites More sharing options...
blabla123 Posted August 8, 2015 Share Posted August 8, 2015 And the filter? Quote Link to comment Share on other sites More sharing options...
qverkk1 Posted August 8, 2015 Author Share Posted August 8, 2015 Okay i have it working, it may be closed now. Czar helped me Quote Link to comment Share on other sites More sharing options...