Jump to content











Ultimate VialFiller √ [80k/hour] [no requirements]


  • Please log in to reply
42 replies to this topic

#1
limu

limu
  • Members
  • 96 posts
  • Joined 26-February 11

Ultimate VialFiller
Version 1.2


Supports:
varrock west (works perfectly as far as i know)
falador west (Money gained on paint doesn't work atm)
anti ban
fail safes
(please ask if you'd like a location or some features to be added into the script)

Script:
Please note version 1.2 has a few bugs so please tell me what bugs you get.
p.s i don't think varrock east works yet.

/* Made by limu for the UltimateBot.net range.
 * 
 * SAVE AS UltimateVialFiller.java
 * SAVE AS UltimateVialFiller.java
 * SAVE AS UltimateVialFiller.java
 * 
 * Enjoy the script :D
 */

import org.rsbot.script.Script;
import org.rsbot.script.ScriptManifest;
import org.rsbot.script.wrappers.*;
import java.awt.*;
import java.awt.event.*;
import org.rsbot.event.events.MessageEvent;
import org.rsbot.event.listeners.MessageListener;
import org.rsbot.event.listeners.PaintListener;

import javax.swing.*;

@ScriptManifest(authors = "limu", name = "UltimateVialFiller", version = 1.2, description = "")
public class UltimateVialFiller extends Script implements PaintListener,
		MessageListener {

	ScriptManifest props = getClass().getAnnotation(ScriptManifest.class);
	int vialID = 229;
	int[] waterID = { 24265, 11661 };
	int[] boothID = { 11402, 11758 };
	int wialID = 227;
	int wialIDPrice;
	private int profit;
	private int vialsFilled = 0;
	public long startTime = 0;
	public long millis = 0;
	public long hours = 0;
	public long minutes = 0;
	public long seconds = 0;
	public long last = 0;

	RSArea waterarea;
	RSArea bankarea;
	RSTile[] locToRun;

	// varrock west
	RSArea vww = new RSArea(3217, 3433, 3208, 3424);
	RSArea vwb = new RSArea(3189, 3446, 3182, 3433);
	RSTile[] vwpath = { new RSTile(3189, 3435), new RSTile(3246, 3429),
			new RSTile(3240, 3433) };
	// varrock east
	RSArea vew = new RSArea(3246, 3438, 3234, 3428);
	RSArea veb = new RSArea(3257, 3424, 3250, 3420);
	RSTile[] vepath = { new RSTile(3209, 3427), new RSTile(3242, 3431),
			new RSTile(3253, 3420)};
	// falador west
	RSArea fww = new RSArea(2946, 3384, 2949, 3381);
	RSArea fwb = new RSArea(2947, 3371, 2943, 3368);
	RSTile[] fwpath = { new RSTile(2946, 3368), new RSTile(2949, 3382) };

	RSTilePath pathToBank;

	gui g = new gui();
	public boolean guiWait = true;

	public boolean onStart() {

		g.setVisible(true);
		while (guiWait)
			sleep(500);

		pathToBank = walking.newTilePath(locToRun);
		startTime = System.currentTimeMillis();
		wialIDPrice = grandExchange.lookup(wialID).getGuidePrice();

		return true;
	}

	public void onFinish() {
		log(Color.BLACK, "Thank you for using" + props.name());
	}

	@Override
	public int loop() {
		if (inventory.containsAll(wialID)) {
			if (atBank()) {
				doBank();
			} else {
				walkR();
				antiBan();
			}
		} else {

			if (atWater()) {
				fillVials();
				antiBan();
				sleep(16000, 17000);
			} else {
				walk();
				antiBan();
			}
		}

		return random(500, 800);
	}

	public void fillVials() {
		RSItem Vial = inventory.getItem(vialID);
		RSObject Fountain = objects.getNearest(waterID);

		if (Vial != null) {
			Vial.doAction("Use");
			sleep(600);
			if (Fountain.isOnScreen() && Fountain != null) {
				Fountain.doClick();
			}
		}
	}

	private boolean atWater() {
		RSObject fountain = objects.getNearest(waterID);
		if (fountain != null) {
			if (fountain.isOnScreen()) {
				return true;
			}
		}
		return false;
	}

	private boolean atBank() {
		RSObject bank = objects.getNearest(boothID);
		if (bank != null) {
			if (bank.isOnScreen()) {
				return true;
			}
		}
		return false;
	}

	private void doBank() {
		if (bank.isOpen()) {
			bank.depositAll();
			sleep(1000, 1300);
			bank.withdraw(vialID, vialID);
		} else {
			bank.open();
			sleep(1800, 2200);
		}
	}

	private void walkR() {
		pathToBank.reverse();
		pathToBank.traverse();
		pathToBank.reverse();
	}

	private void walk() {
		pathToBank.traverse();

	}

	private void antiBan() {
		int r = random(0, 25);
		switch (r) {
		case 4:
			mouse.moveOffScreen();
			sleep(3000, 5000);
			break;
		case 9:
			mouse.moveRandomly(11, 67);
			break;
		case 13:
			mouse.moveSlightly();
			sleep(500, 800);
			break;
		case 19:
			camera.moveRandomly(random(870, 2450));
			break;
		case 24:
			camera.moveRandomly(random(100, 600));
			break;
		}
	}

	// GUI
	class gui extends JFrame {
		/**
		 * 
		 */
		private static final long serialVersionUID = 1L;

		public gui() {
			initComponents();
		}

		private void button1ActionPerformed(ActionEvent e) {
			String Loc = comboBox1.getSelectedItem().toString();
			{
				if (Loc.equals("Varrock West")) {
					locToRun = vwpath;
					waterarea = vww;
					bankarea = vwb;
				} else if (Loc.equals("Falador West")) {
					locToRun = fwpath;
					waterarea = fww;
					bankarea = fwb;
				} else if (Loc.equals("Varrock East")) {
					locToRun = vepath;
					waterarea = vew;
					bankarea = veb;
				}

				guiWait = false;
				g.dispose();
			}
		}

		private void initComponents() {
			// JFormDesigner - Component initialization - DO NOT MODIFY
			// //GEN-BEGIN:initComponents
			// Generated using JFormDesigner Evaluation license - tom sharratt
			label1 = new JLabel();
			comboBox1 = new JComboBox();
			label2 = new JLabel();
			button1 = new JButton();

			// ======== this ========
			setResizable(false);
			setForeground(Color.orange);
			Container contentPane = getContentPane();

			// ---- label1 ----
			label1.setText("UltimateVialFiller");
			label1.setFont(label1.getFont().deriveFont(
					label1.getFont().getStyle() | Font.BOLD,
					label1.getFont().getSize() + 10f));
			label1.setForeground(Color.red);

			// ---- comboBox1 ----
			comboBox1.setModel(new DefaultComboBoxModel(new String[] {
					"Varrock East", "Varrock West", "Falador West" }));

			// ---- label2 ----
			label2.setText("Location:");

			// ---- button1 ----
			button1.setText("Start!");
			button1.addActionListener(new ActionListener() {
				@Override
				public void actionPerformed(ActionEvent e) {
					button1ActionPerformed(e);
				}
			});

			GroupLayout contentPaneLayout = new GroupLayout(contentPane);
			contentPane.setLayout(contentPaneLayout);
			contentPaneLayout
					.setHorizontalGroup(contentPaneLayout
							.createParallelGroup()
							.addGroup(
									contentPaneLayout
											.createSequentialGroup()
											.addContainerGap()
											.addGroup(
													contentPaneLayout
															.createParallelGroup()
															.addComponent(
																	label1)
															.addGroup(
																	GroupLayout.Alignment.TRAILING,
																	contentPaneLayout
																			.createSequentialGroup()
																			.addGroup(
																					contentPaneLayout
																							.createParallelGroup(
																									GroupLayout.Alignment.TRAILING)
																							.addComponent(
																									button1,
																									GroupLayout.PREFERRED_SIZE,
																									94,
																									GroupLayout.PREFERRED_SIZE)
																							.addGroup(
																									contentPaneLayout
																											.createSequentialGroup()
																											.addComponent(
																													label2)
																											.addPreferredGap(
																													LayoutStyle.ComponentPlacement.RELATED,
																													GroupLayout.DEFAULT_SIZE,
																													Short.MAX_VALUE)
																											.addComponent(
																													comboBox1,
																													GroupLayout.PREFERRED_SIZE,
																													GroupLayout.DEFAULT_SIZE,
																													GroupLayout.PREFERRED_SIZE)))
																			.addGap(15,
																					15,
																					15)))
											.addGap(0, 0, 0)));
			contentPaneLayout
					.setVerticalGroup(contentPaneLayout
							.createParallelGroup()
							.addGroup(
									contentPaneLayout
											.createSequentialGroup()
											.addContainerGap()
											.addComponent(label1)
											.addGap(18, 18, 18)
											.addGroup(
													contentPaneLayout
															.createParallelGroup(
																	GroupLayout.Alignment.BASELINE)
															.addComponent(
																	comboBox1,
																	GroupLayout.PREFERRED_SIZE,
																	GroupLayout.DEFAULT_SIZE,
																	GroupLayout.PREFERRED_SIZE)
															.addComponent(
																	label2))
											.addGap(17, 17, 17)
											.addComponent(button1)
											.addContainerGap()));
			setSize(215, 155);
			setLocationRelativeTo(getOwner());
			// JFormDesigner - End of component initialization
			// //GEN-END:initComponents
		}

		// JFormDesigner - Variables declaration - DO NOT MODIFY
		// //GEN-BEGIN:variables
		// Generated using JFormDesigner Evaluation license - tom sharratt
		private JLabel label1;
		private JComboBox comboBox1;
		private JLabel label2;
		private JButton button1;
		// JFormDesigner - End of variables declaration //GEN-END:variables
	}

	private final Color color1 = new Color(0, 255, 102, 120);
	private final Color color2 = new Color(0, 0, 0);
	private final BasicStroke stroke1 = new BasicStroke(1);
	private final Font font1 = new Font("Verdana", 0, 21);
	private final Font font2 = new Font("Verdana", 0, 15);
	private final Font font3 = new Font("Verdana", 1, 9);

	public void onRepaint(Graphics g1) {
		Graphics2D g = (Graphics2D) g1;
		millis = System.currentTimeMillis() - startTime;
		hours = millis / (1000 * 60 * 60);
		millis -= hours * (1000 * 60 * 60);
		minutes = millis / (1000 * 60);
		millis -= minutes * (1000 * 60);
		seconds = millis / 1000;
		profit = wialIDPrice * vialsFilled * 28;

		g.setColor(color1);
		g.fillRect(297, 248, 217, 87);
		g.setColor(color2);
		g.setStroke(stroke1);
		g.drawRect(297, 248, 217, 87);
		g.setFont(font1);
		g.setColor(color2);
		g.drawString("UltimateVialFiller", 301, 273);
		g.setFont(font2);
		g.drawString("Run time:" + hours + ":" + minutes + ":" + seconds, 301,
				293);
		g.drawString("Money Gained:" + profit, 301, 311);
		g.drawString("Paint made by limu", 301, 330);
		g.setFont(font3);
		g.drawString("v1.2", 486, 273);
	}

	public void messageReceived1(MessageEvent e) {
		String y = e.getMessage().toLowerCase();
		if (y.contains("fill the vial.")) {
			vialsFilled++;
		}
	}

	@Override
	public void messageReceived(MessageEvent e) {
		String x = e.getMessage().toLowerCase();
		if (x.contains("fill the vial from the fountain.")) {
			vialsFilled++;
		}
	}
}

Save as: UltimateVialFiller.java



GUI:
Posted Image

Paint:
Posted Image


Proggys:
just to prove it works. (i will post a hour+ proggy after school)
Posted Image

Posted Image

© limu



#2
ItEatzMeh

ItEatzMeh
  • Members
  • 70 posts
  • Joined 05-March 11
Can you please post a good proggie, not 24 seconds worth.
Like atleast an hour or so.

thanks. c:

#3
fabiqui

fabiqui
  • Restricted
  • 774 posts
  • Joined 26-November 10
could someone verify it?

#4
Arene

Arene
  • Members
  • 14 posts
  • Joined 26-October 10
Unknown Paste ID! Link is broken.

#5
fartmasterf

fartmasterf
  • Members
  • 1005 posts
  • Joined 09-June 10
varrock east, fally west

#6
limu

limu
  • Members
  • 96 posts
  • Joined 26-February 11

ItEatzMeh said:

Can you please post a good proggie, not 24 seconds worth.
Like atleast an hour or so.

thanks. c:
people have used it before since its on my website but when i get back from school i'll get a 1 hour proggy for you.

fabiqui said:

could someone verify it?
if you find someone to verify it they can but i does work.

Arene said:

Unknown Paste ID! Link is broken.
i'll fix that now

fartmasterf said:

varrock east, fally west
ok, i have some other scripts on the go but i will try add them.

#7
Tally

Tally
  • Members
  • 256 posts
  • Joined 25-April 10
Varrock east is a must :)

#8
limu

limu
  • Members
  • 96 posts
  • Joined 26-February 11

Tally said:

Varrock east is a must :)
almost finished adding falador west then i'll do varrock east if i have time before school.

#9
Tally

Tally
  • Members
  • 256 posts
  • Joined 25-April 10

limu said:

almost finished adding falador west then i'll do varrock east if i have time before school.

Cheers!

Also if you do use a vial filler please up the prices as the prcies have dropped from 44gp to 39gp and going down more and more please up your prices! :)

#10
limu

limu
  • Members
  • 96 posts
  • Joined 26-February 11
Version 1.1 is out!

now supports falador west (best location to use)

I am not doing support for varrock east because varrock west is closer to a water supply so it would be a waste of time, unless there a hidden water supply which i don't know about. Please tell me if there is :S

#11
Tally

Tally
  • Members
  • 256 posts
  • Joined 25-April 10
If think you meen Varrock east bank, I cant see a water supply at west bank :s lol

#12
FlavouRz

FlavouRz
  • Members
  • 77 posts
  • Joined 14-March 11
beastly.

#13
ChopperFail

ChopperFail
  • Restricted
  • 103 posts
  • Joined 14-January 11
pastie = broke

#14
steeles

steeles
  • Members
  • 307 posts
  • Joined 26-February 11
Vials = crashing.

#15
Tally

Tally
  • Members
  • 256 posts
  • Joined 25-April 10

steeles said:

Vials = crashing.

agreed!, Vial scripts are now becoming pointless :(

#16
limu

limu
  • Members
  • 96 posts
  • Joined 26-February 11

Tally said:

agreed!, Vial scripts are now becoming pointless :(
well its there to start off a new account i suppose.

im thinking about making a soft clay script. Should i?

#17
Tally

Tally
  • Members
  • 256 posts
  • Joined 25-April 10

limu said:

well its there to start off a new account i suppose.

im thinking about making a soft clay script. Should i?

Ye im still using vial script now, soft clap would be a good idea but i was hoping prices may rise on vials

#18
limu

limu
  • Members
  • 96 posts
  • Joined 26-February 11

Tally said:

Ye im still using vial script now, soft clap would be a good idea but i was hoping prices may rise on vials

post a proggy when you finish using :)

#19
Wadie

Wadie
  • Members
  • 50 posts
  • Joined 15-September 10
east is faster there is a fountain north west of the bank (look on map for the water drop)

#20
hater1

hater1
  • Restricted
  • 129 posts
  • Joined 11-March 11
nice gl dude