Jump to content

OSD pls


Recommended Posts

Whot you think? I get OSD now?

package com;

import javax.swing.*;

import org.osbot.script.*;
import org.osbot.script.rs2.model.RS2Object;

@ScriptManifest(name = "WCer", author = "Some Guy", version = 1D, info = "A WCer")
public class WoodCutter extends Script {

    private int AXE_ID = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter your axe ID. You can use itemdb.biz for this"));

    private States currentState;

    enum States {
        Mining, Dropping;

    public int onLoop() throws InterruptedException {

        if (!client.getMyPlayer().isUnderAttack() &&
                !client.getInventory().isFull()) {
            currentState = States.Mining;
        } else
            currentState = States.Dropping;

        switch (currentState) {
            case Mining:
                return mine();
            case Dropping:
                return drop();

        return random(20, 25);

    public int mine() throws InterruptedException {
        while (!client.getMyPlayer().isAnimating()) {
            RS2Object Tree = closestObjectForName("Tree");
            Tree.interact(true, "Chop");
        return random(2000, 2500);

    public int drop() throws InterruptedException {
        return random(2000, 2500);

Link to comment
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.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...