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.

Bone bolt/pack buyer

Featured Replies

Pretty straightforward, buys bone bolt packs at the Dorgesh-kaan mines, unpacks them and hops when shop runs out of stock.

 

Needed it for myself and thought might as well release it in case anyone else ever needs it.

 

Download jar: https://drive.google.com/open?id=0B5zfq4J918uyZHc1YTJMWEM3QUU

 

Source:

 

import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.api.ui.Message;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.utility.ConditionalSleep;

@ScriptManifest(author = "Temsei", info = "Bone Bolt Buyer", name = "Bone Pack Buyer", version = 0, logo = "")
public class Buyer extends Script {
 
    @[member='Override']
    public void onStart() {
    }
    
    private enum State {
		BUY, UNPACK, WAIT
	};
	
	
	private State getState() {
		if (!inventory.isFull())
			return State.BUY;
		if (inventory.isFull())
			return State.UNPACK;
		return State.WAIT;
	}
	
	public void buyBolts() throws InterruptedException {
		NPC npc = npcs.closest("Nardok");
		if (!inventory.isFull() && npc != null){
			npc.interact("Trade");
			new ConditionalSleep(3000) {
				@[member='Override']
				public boolean condition() {
					return store.isOpen();
				}
			}.sleep();
			if (store.isOpen()) {
				while (store.getAmount("Bone bolt pack") > 0 && !inventory.isFull()) {
					store.buy("Bone bolt pack", 10);
				}
				if (store.isOpen())
				store.close();
			}
		}
	}
	
	public void unpackBolts() throws InterruptedException {
			while (inventory.getAmount("Bone bolt pack") > 0) {
				inventory.getItem("Bone bolt pack").interact("Open");
		}
	}
	
	public void onMessage(Message message) throws java.lang.InterruptedException {	
		String txt = message.getMessage().toLowerCase();
		if (txt.contains("stock")) {
			worlds.hopToP2PWorld();
		}
	}
 
    @[member='Override']
    public int onLoop() throws InterruptedException {
    	switch (getState()) {
    	case BUY:    		
    	buyBolts();
    	break;
    	case UNPACK:   		
    	unpackBolts();
     	break; 		
	default:
	break;  
    	}
    	return random(200, 300);
    } 
} 

Edited by Temsei

  • Author

looks nice man. any idea how much gp/h?

 

If you're asking about profit, you don't make any. It's only useful for iron men or if you need to buy more bone bolts than GE buy limits can get you.

Don't know how many it buys per hour, sorry.

Edited by Temsei

gl on release

 

Pretty straightforward, buys bone bolt packs at the Dorgesh-kaan mines, unpacks them and hops when shop runs out of stock.

 

Needed it for myself and thought might as well release it in case anyone else ever needs it.

 

Download jar: https://drive.google.com/open?id=0B5zfq4J918uyZHc1YTJMWEM3QUU

 

Source:

 

import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.api.ui.Message;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.utility.ConditionalSleep;

@ScriptManifest(author = "Temsei", info = "Bone Bolt Buyer", name = "Bone Pack Buyer", version = 0, logo = "")
public class Buyer extends Script {
 
    @[member='Override']
    public void onStart() {
    }
    
    private enum State {
		BUY, UNPACK, WAIT
	};
	
	
	private State getState() {
		if (!inventory.isFull())
			return State.BUY;
		if (inventory.isFull())
			return State.UNPACK;
		return State.WAIT;
	}
	
	public void buyBolts() throws InterruptedException {
		NPC npc = npcs.closest("Nardok");
		if (!inventory.isFull() && npc != null){
			npc.interact("Trade");
			new ConditionalSleep(3000) {
				@[member='Override']
				public boolean condition() {
					return store.isOpen();
				}
			}.sleep();
			if (store.isOpen()) {
				while (store.getAmount("Bone bolt pack") > 0 && !inventory.isFull()) {
					store.buy("Bone bolt pack", 10);
				}
				if (store.isOpen())
				store.close();
			}
		}
	}
	
	public void unpackBolts() throws InterruptedException {
			while (inventory.getAmount("Bone bolt pack") > 0) {
				inventory.getItem("Bone bolt pack").interact("Open");
		}
	}
	
	public void onMessage(Message message) throws java.lang.InterruptedException {	
		String txt = message.getMessage().toLowerCase();
		if (txt.contains("stock")) {
			worlds.hopToP2PWorld();
		}
	}
 
    @[member='Override']
    public int onLoop() throws InterruptedException {
    	switch (getState()) {
    	case BUY:    		
    	buyBolts();
    	break;
    	case UNPACK:   		
    	unpackBolts();
     	break; 		
	default:
	break;  
    	}
    	return random(200, 300);
    } 
} 

 

 

Create an account or sign in to comment

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.