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.

help a noob

Featured Replies

Quote

import org.osbot.rs07.api.map.Position;
import org.osbot.rs07.api.ui.Message;
import org.osbot.rs07.api.webwalk.INodeRouteFinder;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import java.util.List;
import org.osbot.rs07.api.Bank;
import org.osbot.rs07.api.GroundItems;
import org.osbot.rs07.api.Inventory;
import org.osbot.rs07.api.Skills;
import org.osbot.rs07.api.Walking;
import org.osbot.rs07.api.map.Area;
import org.osbot.rs07.api.map.Position;
import org.osbot.rs07.api.model.Entity;
import org.osbot.rs07.api.model.GroundItem;
import org.osbot.rs07.api.model.Player;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.utility.ConditionalSleep;
import java.awt.*;


@ScriptManifest(name = "IronOreSlave", author = "Aeon", version = 1.0, info = "About your script", logo = "Logo of your script. Imgur links here [DIRECT LINKS ONLY]")
public class Skeleton extends Script {
    public static Area zone = new Area(3295, 3239, 3298, 3237);

    String[] Ore = new String[]{"Iron ore"};
    private long startTime;
    private int oc = 0;
    INodeRouteFinder finder;


    public int onLoop() throws InterruptedException {
        boolean breaker = false;
        if (!this.inventory.isFull())
            getWalking().walk(new Position(3296, 3312, 0)); //walk to a tile
        walkingEvent.setEnergyThreshold(30); //if the inventory isnt full walk to the tile to get more
    }
   boolean breaker = false;
    int i = 0;
            while (i < this.Ore.length) {
        for (GroundItem g : this.groundItems.getAll()) {
            if (!g.getName().equals(this.Ore[i]) || g == null) continue;
            this.log("more ore!" + this.Ore[i]);
            GroundItem a = this.groundItems.closest(new String[]{this.Ore[i]});
            a.interact("Take");
            this.oc++;
        };
        while (this.myPlayer().!isAnimating(); // making it stop so it can pick up items without stopping by trying to do it over and over
        breaker = true;
        break;
    }
    else if (this.inventory.isFull());
    getWalking().walk(new Position(3295,3234,0));
    walkingEvent.setEnergyThreshold(30);
      Skeleton.new ConditionalSleep(3000, 600) {
        public boolean condition() throws InterruptedException {
           if zone contains myPlayer(); // trying to get it to meet the mule at a half way point and trade the ores over.
        }
    }.sleep();
} else {
return;
        }
}



    }

 

Edited by aeondenied

Are you serious?

Go and actually try to learn Java, follow some Java tutorials and only then attempt to make scripts.

You can't just post some fucking completely syntactically and logically incorrect, unformatted code and expect someone to fix it for you.

Edited by Explv

Aaaaand here come the savages :boge:

Edited by Visty

1 hour ago, Explv said:

Are you serious?

Go and actually try to learn Java, follow some Java tutorials and only then attempt to make scripts.

You can't just post some fucking completely syntactically and logically incorrect, unformatted code and expect someone to fix it for you.

Question is, and I'm wondering. What IDE doesn't show these errors? :???:

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.