Hi guys,
When i make a jar of a script it's now showing up in the scripts folder maybe there is something wrong with the code and I don't see it.
this is the code:
package woodcutter;
import org.osbot.rs07.api.model.Entity;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
public class woodcutter extends Script {
final String TREE_NAME = "Tree";
@ScriptManifest(info="test", logo = "", version = 0, author = "Lupy", name = "Woodcutter script")
@Override
public int onLoop() throws InterruptedException {
if(! getInventory().isFull()) {
//chop
Entity tree = objects.closest(TREE_NAME);
if(tree != null && tree.isVisible()) {
tree.interact("Chop Down");
} else {
camera.toEntity(tree);
}
} else {
//bank
}
return 0;
}
//when script is started
public void onStart() {
}
//when script is exited
public void onExit() {
}
}
thanks in advance