FFTL Posted December 4, 2015 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
Profile Posted December 4, 2015 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!
Vilius Posted December 4, 2015 Posted December 4, 2015 (edited) if (target != null && target.exists() && target.getHealth() > 0) { Edited December 4, 2015 by Vilius
Explv Posted December 4, 2015 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
FFTL Posted December 4, 2015 Author 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!!