Jump to content

npcs.interact question


Daviyow

Recommended Posts

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 tongue.png? 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 by Daviyow
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...