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.

Gather or buy then hop script?

Featured Replies

Is there already such an animal. Basically just a script that will gather items, hop worlds, gather more, etc... till the inventory is full, then user interaction could take to bank or whatever?

 

This would be something like mining runite or telegrabbing wine of zammy, except just picking stuff up and perhaps buying things from merchants. There are lot's of places this would be nice to have. 

 

I like to use cakes for Agility training in the wildy course. The cake salesman sells 3 at a time. It takes a few hops to fill up with cakes at 50gp ea. You can buy these cakes all day long for 250gp at the ge, but what a waste of cash!

 

Picking nightshades 2 at a time, then waiting 30 seconds. A hop would speed this right along.

 

How about just buying gems from the stall at Kharid? 

 

Does something like this exist??

Edited by mustang guy

Precise store buyer is the only script which buys stuff from the shop. It did contain lots of bugs the last time i used it.

  • Author

I wrote a script that gathers, but world hopping is what I can't figure out. Here is my source for nabbing. Feel free to use my source if you want to add variables for "Limpwurt root" and add world hopping.  biggrin.png Note: items that are from kills, eg. Limpwurt roots, do not show up when you first enter a world. In fact, it takes quite a long time for that stuff to appear. This would be fine for stuff like "Blue dragon scales", "Red spider's eggs" or "Nightshade" which are there as soon as you get into a world.

import org.osbot.rs07.api.model.GroundItem;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
 

import java.awt.*;
 
@ScriptManifest(author = "Mustang Guy", info = "private script", name = "Limpwurt root nabber", version = 0.01, logo = "")
public class main2 extends Script {
 
    @Override
    public void onStart() 
    {
        log("Bot to pick up Limpwurt roots when it sees them");
    }
    
    private enum State {PICK, BANK, WAIT};

    private State getState()
    {
    	GroundItem ns = groundItems.closest("Limpwurt root");
		if (!inventory.isFull() && ns != null && ns.exists())
		{
   			return State.PICK;
		}
    	if (inventory.isFull())
    	{
    		return State.BANK;
    	}
    	return State.WAIT;
    }
 
    @Override
    public int onLoop() throws InterruptedException 
    {
    	GroundItem ns = groundItems.closest("Limpwurt root");
    	switch (getState()) 
    	{
		case PICK:
			log("PICK...PICK...PICK...PICK...PICK...PICK");
			log("I am going to pick up the Limpwurt now");
			log(" ");
			
			if (ns != null && ns.exists())
				ns.interact("Take");
			break;
		case BANK:
			log("GO TO THE BANK ... YOU ARE FULL");
			break;
		case WAIT:
			log("LURKING");
			
			sleep(random(500, 700));
			break;
	}
        return random(200, 300);
    }
 
    @Override
    public void onExit() 
    {
        log("adios");
    }
 
    @Override
    public void onPaint(Graphics2D g) 
    {}
 
}

Edited by mustang guy

I'd be willing to write the script if you have an account I can use and a better description of what feature(s) you want it to pick / buy.

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.