Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

My first 100% working WC bot

Featured Replies

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 <3 

 

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;
    }

}

You don't even need to add that visibility check, interaction event takes care of that for you. 

 

RS2Object tree = objects.closest(tree);

if(tree != null){

tree.interact("Chop down");

}

 

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 QwPha8E.png

 

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); // might want to check if the tree is reachable
            if (TREE != null){
                if (TREE.isVisible()){ // no need for this, client does that for you.
                     { // remove
                        TREE.interact("Chop down");
                    } // remove
                }else{ // remove
                    camera.toEntity(TREE); // remove
                } // remove

            }
        }else{
            inventory.dropAll(); // might change to dropAllExcept(Axes)
        }
        return 50;
    }

}

 

Good to see some new scripters around here! smile.png

I added some notes in the code above ^^

 

Feel free to Message me your code if you want to feedback on it smile.png

 

Khaleesi

Edited by Khaleesi

  • Author

Good to see some new scripters around here! smile.png

I added some notes in the code above ^^

 

Feel free to Message me your code if you want to feedback on it smile.png

 

Khaleesi

 

Thanks, i have a question btw, do you know how to bank the logs? 

 

Right now i drop them 

inventory.dropAll("Oak logs");

Edited by hajar424

  • Author

1) Walk to a bank

2) bank.open();

3) bank.depositAll("Oak logs");

 

it work but i dont know how to walk to a position, sorry for asking to much /:

Would need some work... i can help if you want not crazy good or anything but ive written about 3 scripts currently 2 level 80 wcs after about 1 week

could definitely help if you want but I'm not the most efficient pm for my skype if you want help.

it work but i dont know how to walk to a position, sorry for asking to much /:

 

To walk to a position:

getLocalWalker().walk(Position)

To walk a path:

getLocalWalker().walkPath(Position[])

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.