Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Submitted on December 28, 2016 at 12:56 AM

Section 1 (Text)

package main.script;

import java.awt.Graphics2D;

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

@ScriptManifest(author = "Booleans Yay", info = "Bone burying made ez pz", name = "Bone Bury", version = 1, logo = "")

public class BoneBury extends Script
{

	@Override
	public void onStart(){}
	
	private enum BotState
	{
		PICKUP, BURY
	};

	private BotState getState()
	{
		return inventory.isFull() ? BotState.BURY : BotState.PICKUP;
	}
	
	@Override
	public int onLoop() throws InterruptedException
	{
		switch (getState())
		{
		case PICKUP:
			if (!myPlayer().isAnimating())
			{
				GroundItem bone = groundItems.closest("Bones");
				if (bone != null)
				{
					bone.interact("Take");
					Thread.sleep(random(1500));
				}
			}
			break;
		case BURY:
			camera.moveYaw(random(360));
			while (!inventory.isEmpty())
			{
				Item bones = inventory.getItem("Bones");
				if (bones != null)
				{
					bones.interact("Bury");
					if (myPlayer().isAnimating())
					{
						bones.interact("Bury");
						Thread.sleep(random(200));
					}
				}
			}
			break;
		}
		return random(200, 300);
	}

	@Override
	public void onExit(){}

	@Override
	public void onPaint(Graphics2D g){}
}