Jump to content











[F2P] Pie Shell Maker [600k+/HR]


  • Please log in to reply
64 replies to this topic

#1
Forever_madness

Forever_madness
  • Restricted
  • 30 posts
  • Joined 22-February 09

Requirements:
Money to buy the supplies required. As of the 30th of December Pie Dishes are 103 GP Mid and Pastry Dough is 415GP Mid.

What does this do?
Mixes pastry dough with pie dish to make massive profits.
Pastry dough is around 415p Pie dish is around 100gp and the finished product is well over 1000gp. Getting supplies can be quite a hassle sometimes though.

Features
Very Simple Script; Just does it's Job.
The video that encouraged me to make this script:


Projected Updates:
Bug Fixes.

Update Log:

Version 0.1 - First Release



Lots of credit to Debauchery who basically helped me get back on my feet after not coding for a long time. He basically wrote the whole thing.


And finally code:


import org.rsbot.event.events.MessageEvent;

import org.rsbot.script.Script;

import org.rsbot.script.ScriptManifest;

import org.rsbot.script.wrappers.RSItem;

import org.rsbot.event.listeners.PaintListener;

import java.awt.*;

import org.rsbot.event.listeners.MessageListener;

import java.awt.Graphics2D;

import org.rsbot.script.util.Timer;

import org.rsbot.script.wrappers.RSComponent;


@ScriptManifest(authors = {"Forever_Madness"}, name = "PieShellMaker", description = "Combines all ingedients to make a pie shell.", version = 0.1)

public class PieShellMaker extends Script implements PaintListener, MessageListener {


	int shellID = 2315;

	int doughID = 1953;

	int dishID = 2313;

	int made = 0;

	long startTime;

	int shellPrice, doughPrice, dishPrice, profit, pPH;


	@Override

	public boolean onStart() {

		log("Script starting up!");

		startTime = System.currentTimeMillis();

		camera.setPitch(true);

		mouse.setSpeed(random(5, 8));

		sleep(500, 1500);


		shellPrice = grandExchange.getMarketPrice(shellID);

		doughPrice = grandExchange.getMarketPrice(doughID);

		dishPrice = grandExchange.getMarketPrice(dishID);


		return true;

	}


	public void makeShell() {

		if (!bank.isOpen()) {

			RSItem Dough = inventory.getItem(doughID);

			RSItem Dish = inventory.getItem(dishID);

			sleep(random(100, 110));

			if (Dough != null && Dish != null) {

				inventory.useItem(Dough, Dish);

				sleep(1000, 1200);

			}

			RSComponent pie = interfaces.getComponent(905, 14);

			if (pie != null && pie.getTooltip().contains("Make All")) {

				pie.doClick(true);

				sleep(10000, 12500);

			}

		}

	}


	public void useBank() {

		if (bank.open() == false) {

			stopScript();

		}

		sleep(500,1000);

		if (bank.isOpen()) {

			if (inventory.contains(shellID)) {

				bank.depositAll();

			}

			if (bank.getCount(doughID) >= 14) {

				if (inventory.getCount(doughID) < 14) {

					bank.withdraw(doughID, (14 - inventory.getCount(doughID)));

					sleep(500,1000);

				}

			} else {

				log("No more dough");

				stopScript();

			}

			if (bank.getCount(dishID) >= 14) {

				if (inventory.getCount(dishID) < 14) {

					bank.withdraw(dishID, (14 - inventory.getCount(dishID)));

					sleep(500,1000);

				}

			} else {

				log("No more dishes");

				stopScript();

			}

			if (inventory.getCount(dishID) == 14 && inventory.getCount(doughID) == 14) {

				bank.close();

				sleep(500,1000);

			}

		}

	}


	@Override

	public void onFinish() {

		log("You made:" + made);

		log("Money:" + profit);

		env.saveScreenshot(true);

	}


	public void onRepaint(Graphics g1) {

		Graphics2D g = (Graphics2D) g1;

		g.setRenderingHints(antialiasing);


		long millis = System.currentTimeMillis() - startTime;

		profit = ((shellPrice - (doughPrice + dishPrice)) * made);

		pPH = (int) ((profit) * 3600000D / (System.currentTimeMillis() - startTime));


		if (game.isLoggedIn()) {

			g.setFont(font1);

			g.setColor(color1);

			g.drawString("Ran For:" + Timer.format(millis), 5, 20);

			g.drawString("Made:" + made, 5, 45);

			g.drawString("Profit:" + profit, 5, 60);

			g.drawString("P/H:" + pPH, 5, 75);

		}

	}

	private final RenderingHints antialiasing = new RenderingHints(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

	private final Color color1 = new Color(0, 255, 0);

	private final Font font1 = new Font("Arial", 0, 18);


	public void messageReceived(MessageEvent e) {

		String message = e.getMessage().toLowerCase();

		if (message.equalsIgnoreCase("You put the pastry dough into the pie dish to make a pie shell.")) {

			made++;

		}

	}


	private enum State {


		NEEDS_TO_BANK, MAKING_PIES

	}


	private State GetState() {

		if (!inventory.contains(doughID) && !inventory.contains(dishID)) {

			return State.NEEDS_TO_BANK;

		} else {

			return State.MAKING_PIES;

		}

	}


	public int loop() {

		switch (GetState()) {

			case NEEDS_TO_BANK:

				useBank();

				break;

			case MAKING_PIES:

				makeShell();

				break;

		}

		return 1;

	}

}



#2
elias99

elias99
  • Members
  • 65 posts
  • Joined 27-February 09
Thanks for Stealingmy script and my Ide.

#3
ASTEROiD

ASTEROiD
  • Members
  • 346 posts
  • Joined 14-April 09

elias99 said:

Thanks for Stealingmy script and my Ide.

I lol'd at your failure.

Might try this script soon thanks.

#4
lesley21

lesley21
  • Members
  • 21 posts
  • Joined 21-July 10
Look out.
The prices will crash totaly fast,
Anyways. nice script dude ! keep this work up :D

#5
RapidPace

RapidPace
  • Restricted
  • 10 posts
  • Joined 22-November 10
neither pastry dough or pie dishes sell.. so.. ill post back in an hour with buying status

#6
Zirocce

Zirocce
  • Members
  • 38 posts
  • Joined 10-October 10
i tried this but couldnt buy even for max price, so i quit and moved to another money making script.

#7
The Middle

The Middle
  • Members
  • 3859 posts
  • Joined 25-April 09

elias99 said:

Thanks for Stealingmy script and my Ide.

I'm also guessing he stole your idea on how to spell and use correct grammar?

#8
grinwis17

grinwis17
  • Members
  • 13 posts
  • Joined 14-November 10
what is the name for to save

Save name: ???????

#9
The Middle

The Middle
  • Members
  • 3859 posts
  • Joined 25-April 09

grinwis17 said:

what is the name for to save

Save name: ???????

PieShellMaker.java

#10
e4tmystr

e4tmystr
  • Members
  • 873 posts
  • Joined 08-November 10
won't be using.

#11
stitches335

stitches335
  • Members
  • 4 posts
  • Joined 15-December 10

e4tmystr said:

won't be using.
Alright, so let me get this straight.. You went out of your way to post on this guy's thread, the same guy who spent his own time coding a script for you to use for free, that you won't be using his bot? Do you post on every thread which scripts you will and will not be using? How about you write your own code so that you won't feel the need to spam up threads with your almost incoherent crap that you call a worthy post.

But thanks, OP, for contributing to this site. Your work is greatly appreciated.

#12
superkool2

superkool2
  • Members
  • 281 posts
  • Joined 09-August 09
Sorry nothing buys neither pastry dough or the other thing. so i cant test it.

#13
The Middle

The Middle
  • Members
  • 3859 posts
  • Joined 25-April 09

e4tmystr said:

won't be using.

why post on the thread if your not going to use?
fucking spammer, get a life.

#14
Idunbotbro

Idunbotbro
  • Members
  • 67 posts
  • Joined 19-December 10
I'm sure this script is awesome, but sad enough the supplies aren't buying ;(

#15
abijan

abijan
  • Members
  • 154 posts
  • Joined 24-July 09
...same as everyone. Perhaps you could make the script collect the supplies? Then it'd be pure profit!

#16
daanm

daanm
  • Members
  • 36 posts
  • Joined 04-November 10

superkool2 said:

Sorry nothing buys neither pastry dough or the other thing. so i cant test it.

Some ppl are just fucking dum "eum yes im talking about you"

abijan said:

...same as everyone. Perhaps you could make the script collect the supplies? Then it'd be pure profit!

dont waste your time telling stupid ppl  good moneymaking XD

#17
Forever_madness

Forever_madness
  • Restricted
  • 30 posts
  • Joined 22-February 09
Thanks for the positive comments; I recently bought alot of pastry dough. So I'm not sure if it still sells. But the Pie dish needs to be made from unfired pie dish. I can make a script later that will either collect Pie Dishes and/or make unfired --> Fired.
But I have around 10k in Pastry Doughs/Pie Dishes ran it overnight and made 6M. I might post the progress report soon.
If anyone gets supplies please tell me and if you want me to make an unfired Pie dish --> Pie dish maker. Quote this post and tell me!

elias99 said:

Thanks for Stealingmy script and my Ide.

I finished my script 2 days ago; You released yours yesterday 6:52 PM I posted this thread 4:52 PM Failed fag?

#18
Jakeroxs

Jakeroxs
  • Members
  • 220 posts
  • Joined 11-June 09
Nice script but can't get the supplies :/

#19
Forever_madness

Forever_madness
  • Restricted
  • 30 posts
  • Joined 22-February 09
Are pastry doughs not buying either?
Last time I checked they sold for minimum. :S
Other than that I'll work on a script that makes Unfired Pie Dishes into Pie Dishes as they never sell.

#20
elias99

elias99
  • Members
  • 65 posts
  • Joined 27-February 09
1.This dont make 600k\hr
2.this is my ide and my script
3.there is hard to get pie dishs..