Daviyow Posted January 19, 2015 Posted January 19, 2015 (edited) hi, i remember in osbot 1 u could prevent your script to run to enemys by adding something like npcs.interact("attack",false); now i looked into the api and i see this is not the case anymore and my little piece of coding is not working could i get help? or any ideas ? i just tried this O PS: Why does my osbot lagg when it tries to "Attack"? private void attackMan() throws InterruptedException { NPC Man = npcs.closest(manArea, "Man"); if (Man != null) { if (idleTime.getElapsed() >= 3000) { if (Man.isVisible()) { Man.interact("Attack"); sleep(2000); } else { camera.toEntity(Man); } } } } Edited January 19, 2015 by Daviyow
Alek Posted January 19, 2015 Posted January 19, 2015 I'm making a release today with re-written interaction events 1
fixthissite Posted January 19, 2015 Posted January 19, 2015 Because the API is shit and barely works.If they're looking for more devs, I'd be happy to help; not sure how one would apply
Alek Posted January 19, 2015 Posted January 19, 2015 http://osbot.org/forum/topic/64606-osbot-2315-everything-you-do-has-changed/