Jump to content

jrock1000

Members
  • Posts

    2
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

jrock1000's Achievements

Newbie

Newbie (1/10)

0

Reputation

  1. Aaaaaah yeah forgot about that Thanks!
  2. Hey guys, I am working on my first woodcutting bot and it seems work but my problem is that if it clicks a tree, it also click another tree. So sometimes it walks between two trees but idk what the problem is. 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; import java.awt.*; @ScriptManifest(author = "Jrock", info = "My first script", name = "JWoodcutter", version = 0.01, logo = "") public class main extends Script { String tree = "Tree"; @Override public void onStart() { log("Let's get started with JWoodcutter"); } @Override public int onLoop() throws InterruptedException { Inventory invent = inventory.getInventory(); if(!invent.isFull() && !myPlayer().isAnimating()) chopping { Entity treeEntity = objects.closest(tree); if(treeEntity != null) { treeEntity.interact("Chop down"); } } return random(200, 300); } @Override public void onExit() { log("Thanks for running my Woodcutter!"); } @Override public void onPaint(Graphics2D g) { } } Kind Regards, Jrock1000
×
×
  • Create New...