Jump to content











~ Flawless Script ~ SwampTarPRO ~


  • Please log in to reply
5 replies to this topic

#1
BlackWood

BlackWood
  • Contributors
  • 590 posts
  • Joined 09-February 11
Please message me of any errors, I have NONE what-so-ever. :D Try it out yourself!

Heres A Proggy! (Wait a little)

import org.rsbot.bot.*;

import java.awt.*;

import java.awt.event.*;

import javax.swing.*;

import java.util.*;

import java.io.*;

import java.net.*;

import javax.imageio.*;

import org.rsbot.script.*;

import org.rsbot.script.methods.*;

import org.rsbot.script.util.*;

import org.rsbot.script.wrappers.*;

import org.rsbot.event.listeners.*;

import org.rsbot.event.events.*;

import java.util.regex.*;

@ScriptManifest(authors = { "BlackWood" }, keywords = { "Money Maker"}, name = "SwampTarPRO", version = 1.0, description = "Collects Swamp Tar For Cash!") 

public class SwampTarPRO extends Script implements PaintListener { 

 public int TarID = 1939;

 public int TarCount = 0;

 

 RSGroundItem Tar;

 

 public long StartTime = System.currentTimeMillis();

 String hour, minute, second;

	 

 public int loop(){ 

  try {

   mouse.setSpeed(random(7,12));

   if (random(1,10) == 5) {

	camera.setAngle(random(90,180));

   }

   if (walking.getEnergy() >= 25 && !walking.isRunEnabled()) {

	walking.setRun(true);

   }

   RSGroundItem Tar = groundItems.getNearest(TarID);

   if (Tar != null && Tar.isOnScreen()) {

	Tar.doAction("Take Swamp tar");

   }

   if (getMyPlayer().getInteracting() == null && Tar != null && !Tar.isOnScreen()) {

	walking.walkTileMM(walking.getClosestTileOnMap(Tar.getLocation()));

   }

  } catch(Exception e) {

  }

		return 0; 

	} 

 

	private Image getImage(String url) {

		try {

			return ImageIO.read(new URL(url));

		} catch(IOException e) {

			return null;

		}

	}

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

	private final Font font1 = new Font("Vijaya", 1, 23);

	private final Image img1 = getImage("[URL]http://i52.tinypic.com/muv689.jpg[/URL]");

	public void onRepaint(Graphics g1) {

  TarCount = inventory.getCount(true, TarID); 

  long Millis = System.currentTimeMillis() - StartTime;

  long Hrs = Millis / (1000 * 60 * 60);

  Millis -= Hrs * (1000 * 60 * 60);

  long Mins = Millis / (1000 * 60);

  Millis -= Mins * (1000 * 60);

  long Secs = Millis / 1000;

		Graphics2D g = (Graphics2D)g1;

		g.drawImage(img1, 0, 341, null);

		g.setFont(font1);

		g.setColor(color1);

		g.drawString("Time Running: " + Hrs + ":" + Mins + ":" + Secs, 191, 363);

		g.drawString("Tar Collected: " + TarCount, 193, 385);

	}

 

}  


#2
mook403

mook403
  • Members
  • 6 posts
  • Joined 16-October 11
Excuse me for being a complete idiot, but Whats Swamp Tar, Where do you get it, And why Would I want it?

#3
serretta

serretta
  • Members
  • 13 posts
  • Joined 25-December 10
ill check it out blackwood last script of urs i used i cant remember wat it was but i remember enjoying

Quote

Excuse me for being a complete idiot, but Whats Swamp Tar, Where do you get it, And why Would I want it?



its a P2p item and u can sell it for a about 100k an hour last time i collected it (years ago)

yea i got 45 errors when compiling i presume u call it
SwampTarPRO.java

Edited by serretta, 20 October 2011 - 08:49 AM.


#4
zorphlak

zorphlak
  • Members
  • 87 posts
  • Joined 06-July 10
You should add details for people who don't know.

Location
skills required
gp/ph
prereqs needed

:) helps the nubs out

#5
Swipe

Swipe
  • Contributors

  • 3194 posts
  • Joined 04-June 09
This is an old script: change doaction to interact

#6
Excliper

Excliper
  • Members
  • 89 posts
  • Joined 13-January 12
fankyou heeeps ahaha (: