FFTL Posted December 4, 2015 Share Posted December 4, 2015 (edited) So i have one simple killing script, it basically just clicks on wanted npc and loops it. But every time when npc is doing death animation it is still clicking it once again. I cant seem to fix my problem, can someone help me lol Edited December 4, 2015 by FFTL Quote Link to comment Share on other sites More sharing options...
Profile Posted December 4, 2015 Share Posted December 4, 2015 i can help you very easy, My skype is profile.osbot pretty much, you wanna check the npc's health to check if it's >0 :P If you need any scripting help read pm! Quote Link to comment Share on other sites More sharing options...
Vilius Posted December 4, 2015 Share Posted December 4, 2015 (edited) if (target != null && target.exists() && target.getHealth() > 0) { Edited December 4, 2015 by Vilius Quote Link to comment Share on other sites More sharing options...
Explv Posted December 4, 2015 Share Posted December 4, 2015 (edited) So i have one simple killing script, it basically just clicks on wanted npc and loops it. But every time when npc is doing death animation it is still clicking it once again. I cant seem to fix my problem, can someone help me lol Change if (target != null && target.exists() && target.interact("Attack")) To if (target != null && target.exists() && target.getHealth() > 0){ target.interact("Attack") You are interacting with the NPC in your if statement... which makes no sense Edited December 4, 2015 by Explv 1 Quote Link to comment Share on other sites More sharing options...
FFTL Posted December 4, 2015 Author Share Posted December 4, 2015 Change if (target != null && target.exists() && target.interact("Attack")) To if (target != null && target.exists() && target.getHealth() > 0){ target.interact("Attack") You are interacting with the NPC in your if statement... which makes no sense Thanks alot man!! Quote Link to comment Share on other sites More sharing options...