import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
@ScriptManifest(
logo = "1", name = "testing", version = 1, author = "Obrands", info = "hi")
public class Main extends Script {
@Override
public void onStart() {
log("welcome");
}
@Override
public int onLoop() throws InterruptedException {
NPC goblin = npcs.closest("goblin");
if (goblin != null) {
goblin.interact("Attack");
}
return random(1000, 2000);
}
@Override
public void onExit() {
log("bye");
}