qverkk1 Posted August 8, 2015 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.
qverkk1 Posted August 8, 2015 Author Posted August 8, 2015 (edited) How did you declare npc? NPC npc = npcs.closest(new Filter<NPC>() Edited August 8, 2015 by qverkk1
qverkk1 Posted August 8, 2015 Author Posted August 8, 2015 Okay i have it working, it may be closed now. Czar helped me