Jump to content

Welcome to DreamBot!

Download for Free

Supercharge Your Bots

Run unlimited bots today using DreamBot's Covert Mode and
stay more protected.

Upgrade Now
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 8 installed
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
OSRS Gambling

Interested in advertising your business? Reach out today!

Download the DreamBot client today!

Looking for feedback on script

Recommended Posts

Hi there, I am CosmicOverride and fairly new to the Runescape botting community, I just started scripting today and made this woodcutting script. I am looking for any advice, suggestions from the community but also using this as an opportunity to share the script to you guys. Feel free to use, and modify at your own risk. I tried implementing some Anti-Ban stuff but as I said I just started scripting today.


import org.dreambot.api.input.Mouse;
import org.dreambot.api.methods.Calculations;
import org.dreambot.api.methods.container.impl.bank.BankLocation;
import org.dreambot.api.methods.map.Area;
import org.dreambot.api.script.AbstractScript;
import org.dreambot.api.script.ScriptManifest;
import org.dreambot.api.script.Category;
import org.dreambot.api.wrappers.interactive.GameObject;

@ScriptManifest(category = Category.WOODCUTTING, name = "Cosmic's Woodcutter", author = "Cosmic", version = 3.1)
public class main extends AbstractScript{
	int[] worlds = {301, 326, 393};
	public static final String TREE = "Tree";
	public static final String AXE = " axe";
	Area cutArea = new Area(3280,3442, 3274, 3457);

	public void onStart() {
		log("Welcome to Cosmic's Wootcutter");
	public int onLoop() {
		if(!getLocalPlayer().isAnimating()) {
			if(getInventory().isFull()) {
				if(getBank().isOpen()) {
					getBank().depositAllExcept(item -> item != null && item.getName().contains(AXE));
					sleep(Calculations.random(10000, 60000));
				}else {
				}else if(cutArea.contains(getLocalPlayer())){
					GameObject tree = getGameObjects().closest(TREE);
					if(tree != null) {
						tree.interact("Chop Down");
						int ran = Calculations.random(0,10);
						if (ran == 0) {
						}else if(ran == 1) {
							int ranr = Calculations.random(0,25);
							if(ranr == 22) {
							}else {
				}else {
		return Calculations.random(1000, 5000);
	public void onExit() {


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...