Jump to content

Soft clay


Salty as fuck

Recommended Posts

Not even going to bother adding a paint.

Uses buckets of water.

 

>>DOWNLOAD<<

 

 

Source:

 

import org.osbot.rs07.api.ui.RS2Widget;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import java.awt.*;


@ScriptManifest(name = "SoftClay", author = "Reminiscence", version = 1.0, info = "Combines buckets of water with clay.", logo = "") 
public class softclay extends Script {


	int bucket = 1929,
			clay = 434;

	RS2Widget iface;

	public boolean interactItems(String item1, String item2) throws InterruptedException	{
		@SuppressWarnings("unused")
		RS2Widget w = widgets.get(309, 2);
		if (!players.myPlayer().isAnimating() && inventory.getItem(item1).interact())	{
			return inventory.getItem(item2).interact(); //
		}
		return false;
	}

	@Override
	public void onStart() {
		log("Starting SoftClay script.");

	}

	@Override
	public void onExit() {
		log("Softclay exiting");
	}


	@Override
	public int onLoop() throws InterruptedException {
		iface = widgets.get(309, 2);
		if (!inventory.contains(bucket) && !inventory.contains(clay)) {
			bank.open();
			sleep(600);
			if (bank.isOpen()) {
				if (inventory.isFull()) {
					bank.depositAll();
					sleep(random(200, 695));
				}
				if (!inventory.contains(bucket)) {
					bank.withdraw(bucket, 14);
					sleep(600);
				}
				if (!inventory.contains(clay)) {
					bank.withdraw(clay, 14);
					sleep(600);
				}

				if (inventory.contains(bucket) && inventory.contains(clay)) {
					bank.close();
				}

				if (bank.isOpen() && (!bank.contains(bucket) || !bank.contains(clay))) {
					log("out of clay or buckets");
					stop();
				}
			}
		}
		
		if (inventory.contains(clay) && !inventory.contains(bucket)) {
			bank.open();
			sleep(600);
			bank.depositAll();
			sleep(600);
		}
		
		if (inventory.contains(bucket) && !inventory.contains(clay)) {
			bank.open();
			sleep(600);
			bank.depositAll();
			sleep(600);
		}

		if (inventory.contains(bucket) && inventory.contains(clay)) {
			if (iface == null) {
				interactItems("Bucket of water", "Clay");
				sleep(600);
			}

			if (iface != null) {
				iface.interact("Make All");
				sleep(18000);
			}
		}

		return 600; 
	}


	@Override
	public void onPaint(Graphics2D g) {




	}


} 
Edited by Reminiscence
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.
Note: Your post will require moderator approval before it will be visible.

Guest
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...