When i was a little kid i always dreamed about making my own bot. My first attempt was at p****bot but they were not providing good tutorials like osbot. I found out about osbot yesterday and the tutorials was so good that i made my own working bot.
Thanks OSBOT
SIMPLE WOODCUTTING BOT (first bot in 6hrs)
import javafx.animation.Animation;
import org.osbot.rs07.api.Inventory;
import org.osbot.rs07.api.model.Entity;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
@ScriptManifest(logo="",version = 1, author = "Hajar424", info = "" , name = "W3" )
public class Woodcutter extends Script{
final String tree = "Tree";
@Override
public int onLoop() throws InterruptedException {
Inventory invent = inventory.getInventory();
if (!invent.isFull()){
Entity TREE = objects.closest(tree);
if (TREE != null){
if (TREE.isVisible()){
{
TREE.interact("Chop down");
}
}else{
camera.toEntity(TREE);
}
}
}else{
inventory.dropAll();
}
return 50;
}
}