Jump to content
Sign in to follow this  
Milette

CTRL + V

Recommended Posts

import interfaces.Painter;

import java.awt.BasicStroke;

import java.awt.Color;

import java.awt.Font;

import java.awt.GradientPaint;

import java.awt.Graphics;

import java.awt.Graphics2D;

import java.awt.Point;

import java.awt.RenderingHints;

import java.awt.geom.Line2D;

import java.util.ArrayList;

import java.util.Random;

import com.parabot.input.Mouse;

import com.parabot.methods.Bank;

import com.parabot.methods.Camera;

import com.parabot.methods.GameObjects;

import com.parabot.methods.Inventory;

import com.parabot.methods.NPCs;

import com.parabot.methods.Players;

import com.parabot.methods.Skills;

import com.parabot.methods.Tabs;

import com.parabot.methods.Walking;

import com.parabot.scripts.Script;

import com.parabot.scripts.ScriptFormat;

import com.parabot.scripts.Strategy;

import com.parabot.utils.Timer;

import com.parabot.utils.Utils;

import com.parabot.wrappers.GameObject;

import com.parabot.wrappers.NPC;

import com.parabot.wrappers.Path;

import com.parabot.wrappers.RSItem;

import com.parabot.wrappers.Tile;

@ScriptFormat(author = "Animeking120", description = "A rune essence miner.", name = "DesoEssMiner", category = "Mining", version = 0.7)

public class DesoEssenceMiner extends Script implements Painter {

private Timer timer = new Timer();

ArrayList<Strategy> strategies = new ArrayList<Strategy>();

private static final Tile BANK_TILE = new Tile(3253, 3420);

private static final Tile NORTHEAST_PORTAL_TILE = new Tile(2931, 4854);

private static final Tile NORTHWEST_PORTAL_TILE = new Tile(2885, 4849);

private static final Tile NORTHEAST_MINE_TILE = new Tile(2926, 4847);

private static final Tile NORTHWEST_MINE_TILE = new Tile(2893, 4845);

private static final Tile AUBURY_TILE = new Tile(3253, 3401);

private static final Tile TELEPORT_TILE = new Tile(2911, 4832);

private static final Tile[] BANK_TO_TELEPORT = new Tile[] {

new Tile(3258, 3408), new Tile(3254, 3402, 0) };

private static final Tile[] TELEPORT_TO_BANK = new Tile[] {

new Tile(3258, 3408, 0), new Tile(3262, 3416, 0),

new Tile(3260, 3428), new Tile(3255, 3420) };

private static final Tile[] NORTHEAST_TELEPORT_TO_MINE = new Tile[] {

new Tile(2914, 4838, 0), new Tile(2920, 4842, 0),

new Tile(2925, 4847) };

private static final Tile[] NORTHWEST_TELEPORT_TO_MINE = new Tile[] {

new Tile(2906, 4838, 0), new Tile(2899, 4843, 0),

new Tile(2893, 4846, 0) };

public static int[] PICKAXES = { 1265, 1266, 1267, 1268, 1269, 1270, 1271,

1272, 1273, 1274, 1275, 1276, 1277 };

private ArrayList<Integer> exceptions = new ArrayList<Integer>();

private static final int ESSENCE_ID = 2491;

private static final int[] BANK_BOOTH = { 2213 };

private static final int RUNE_PICKAXE = 1276;

private static final int PORTAL = 2492;

private static final int NPC = 553, PURE_ESS_ID = 7937;

private int miningSleepTimer = 100, walkingSleepTimer = 100,

bankingSleepTimer = 100, pathTaken, currentLevel = Skills

.getLevel(Skills.MINING), newLevel;

private int invCount = Inventory.getCount();

private int mined;

private boolean playerSetRun;

private String Status;

private static final long START_TIME = System.currentTimeMillis();

private int determineLevelsGained() {

newLevel = Skills.getLevel(Skills.MINING);

return newLevel -= currentLevel;

}

/**

* Checks if the player is mining or not

*

* @return returns the players animation

*/

private boolean playerIsMining() {

return Players.getMyPlayer().getAnimation() != -1;

}

/**

* Actions taken upon startup of script

*/

@Override

public boolean onExecute() {

for (int i : PICKAXES) {

exceptions.add(i);

}

timer.start();

strategies.add(new HandleMining());

strategies.add(new HandleBanking());

strategies.add(new HandleWalking());

strategies.add(new HandleRunToggle());

provide(strategies);

Status = "Added strategies";

return true;

}

/**

* Draws the paint on the screen

*/

private final RenderingHints antialiasing = new RenderingHints(

RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);

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

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

private final Color color3 = new Color(255, 255, 255);

private final BasicStroke stroke1 = new BasicStroke(1);

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

private final Font font2 = new Font("Arial", 1, 18);

@Override

public void paint(Graphics g1) {

int count;

if ((count = Inventory.getCount()) > invCount) {

mined += Inventory.getCount() - invCount;

invCount = count;

} else if (Inventory.getCount() < invCount) {

invCount = count;

}

Graphics2D g = (Graphics2D) g1;

g.setRenderingHints(antialiasing);

g.setColor(color1);

g.fillRect(5, 172, 158, 164);

g.setColor(color2);

g.setStroke(stroke1);

g.drawRect(5, 172, 158, 164);

g.setFont(font1);

g.setColor(color3);

g.drawString("Status: " + Status, 10, 235);

g.drawString("Time Running: " + timer.getElapsedTime(), 10, 255);

g.drawString("Levels Gained: " + determineLevelsGained(), 10, 315);

g.drawString("Amount Mined: " + mined, 10, 295);

int perHour = (int) ((mined) * 3600000D / (System.currentTimeMillis() - START_TIME));

g.drawString("Mined P/H: " + perHour, 10, 275);

g.setFont(font2);

g.drawString("DesoEssMiner", 10, 200);

g.setColor(Color.GREEN);

if (Tabs.INVENTORY.isOpen()) {

for (RSItem i : Inventory.getItems()) {

if (Integer.valueOf(i.getId()) == PURE_ESS_ID) {

g.drawRect((int) i.getScreenLocation().getX() - 11,

(int) i.getScreenLocation().getY() - 15, 30, 30);

}

}

}

g.setColor(Color.RED);

g.drawRect(15, 437, 100, 15);

g.fillRect(15, 437, 100, 15);

g.setColor(new Color(255,255,255,150));

g.fillOval(Mouse.getX()-5,Mouse.getY()-5, 10, 10);

g.setColor(new Color(255,255,255,150));

g.fillOval(Mouse.getX()-5,Mouse.getY()-5, 10, 10);

g.fillRect(Mouse.getX()-3, Mouse.getY()-3,6 , 6);

g.setColor(Color.BLACK);

g.drawRect(Mouse.getX()-3, Mouse.getY()-3,6 , 6);

g.drawOval(Mouse.getX()-5, Mouse.getY()-5,10 , 10);

/* GradientPaint goldGradientm1 = new GradientPaint(Mouse.getX(),0, new Color(255,220,0,0), Mouse.getX(), Mouse.getY()-6 ,new Color(20,0,0));

GradientPaint goldGradientm2 = new GradientPaint(Mouse.getX(),Mouse.getY()+6,new Color(20,0,0), Mouse.getX(), 501,new Color(255,220,50,0));

GradientPaint goldGradientm3 = new GradientPaint(0,Mouse.getY(), new Color(255,220,0,0),Mouse.getX()-6, Mouse.getY() ,new Color(20,0,0));

GradientPaint goldGradientm4 = new GradientPaint(Mouse.getX()+6,Mouse.getY(), new Color(20,0,0),763, Mouse.getX(), new Color(255,220,50,0));

g.setPaint(goldGradientm1);

g.draw(new Line2D.Double(Mouse.getX(),0, Mouse.getX(), Mouse.getY()-6));

g.setPaint(goldGradientm2);

g.draw(new Line2D.Double(Mouse.getX(),Mouse.getY()+6, Mouse.getX(), 501));

g.setPaint(goldGradientm3);

g.draw(new Line2D.Double(0,Mouse.getY(), Mouse.getX()-6, Mouse.getY()));

g.setPaint(goldGradientm4);

g.draw(new Line2D.Double(Mouse.getX()+6,Mouse.getY(), 763,Mouse.getY()));

GradientPaint goldGradient1 = new GradientPaint(3,308, new Color(150,150,150,180), 76, 268 ,new Color(30,30,30,180));

GradientPaint goldGradient2 = new GradientPaint(410,308, new Color(150,150,150,180), 515, 268 ,new Color(30,30,30,180));*/

}

/**

* Class entitled to handling mining

*

* @author animeking120

*

*/

public class HandleMining extends Strategy {

@Override

public String getStatus() {

return "Mining";

}

@Override

public boolean isValid() {

if (NORTHEAST_MINE_TILE.getDistance() < 15

|| NORTHWEST_MINE_TILE.getDistance() < 15) {

if (!playerIsMining() && !Inventory.isFull() && playerSetRun)

return true;

}

return false;

}

@Override

public void run() {

miningSleepTimer = 1000;

if (NORTHEAST_MINE_TILE.getDistance() < 15) {

if (!Inventory.isFull()) {

GameObject essence = GameObjects.getNearest(

NORTHEAST_MINE_TILE, ESSENCE_ID);

if (!playerIsMining()) {

if (essence.getInstance() != null) {

if (essence.isOnScreen()) {

essence.interact("Mine");

Status = "Mining";

pathTaken = -1;

miningSleepTimer = 1000;

} else {

Camera.turnTo(essence);

}

}

}

}

} else {

Walking.walkMM(NORTHEAST_MINE_TILE);

}

if (NORTHWEST_MINE_TILE.getDistance() < 15) {

if (!Inventory.isFull()) {

GameObject essence = GameObjects.getNearest(

NORTHWEST_MINE_TILE, ESSENCE_ID);

if (!playerIsMining()) {

if (essence.getInstance() != null) {

if (essence.isOnScreen()) {

essence.interact("Mine");

Status = "Mining";

pathTaken = -1;

miningSleepTimer = 1000;

} else {

Camera.turnTo(essence);

}

}

}

}

} else {

Walking.walkMM(NORTHWEST_MINE_TILE);

}

int count;

if ((count = Inventory.getCount()) > invCount) {

mined += Inventory.getCount() - invCount;

invCount = count;

} else if (Inventory.getCount() < invCount) {

invCount = count;

}

Utils.sleep(miningSleepTimer);

}

}

/**

* Class entitled to handling banking

*

* @author animeking120

*

*/

public class HandleBanking extends Strategy {

@Override

public String getStatus() {

return "Banking";

}

@Override

public boolean isValid() {

if (BANK_TILE.getDistance() < 7 && Inventory.isFull()

&& playerSetRun)

return true;

return false;

}

@Override

public void run() {

bankingSleepTimer = 1200;

if (Inventory.isFull()) {

if (!Bank.isOpen()) {

GameObject bankBooth = GameObjects.getNearest(BANK_BOOTH);

if (bankBooth.getInstance() == null) {

System.out.println("null bank booth");

}

Bank.open(bankBooth);

Status = "Opening Bank";

bankingSleepTimer = 1200;

} else {

for (int s : exceptions) {

int item = s;

Bank.depositAllExcept(item);

}

Status = "Despositing";

bankingSleepTimer = 1200;

}

}

Utils.sleep(bankingSleepTimer);

}

}

/**

* Class entitled to handling walking

*

* @author animeking120

*

*/

public class HandleWalking extends Strategy {

private Random random = new Random();

@Override

public String getStatus() {

return "Walking";

}

@Override

public boolean isValid() {

if (!playerIsMining() && playerSetRun)

return true;

return false;

}

@Override

public void run() {

if (pathTaken > -1) {

walkingSleepTimer = pathTaken;

} else {

walkingSleepTimer = 100;

}

if (BANK_TILE.getDistance() < 6) {

if (!Inventory.isFull()) {

Path path = Walking.getPath(BANK_TO_TELEPORT);

while (!path.isFinished()) {

path.walk();

Status = "Walking to aubury";

walkingSleepTimer = 1800;

}

}

}

if (NORTHWEST_PORTAL_TILE.getDistance() < 5) {

GameObject object = GameObjects.getNearest(

NORTHWEST_PORTAL_TILE, PORTAL);

if (object.getInstance() != null) {

if (object.isOnScreen()) {

object.interact("Use");

Status = "Clicking portal";

walkingSleepTimer = 2000;

} else {

Camera.turnTo(object);

Status = "Searching for portal";

walkingSleepTimer = 600;

}

}

}

if (NORTHEAST_PORTAL_TILE.getDistance() < 5) {

GameObject object = GameObjects.getNearest(

NORTHEAST_PORTAL_TILE, PORTAL);

if (object.getInstance() != null) {

if (object.isOnScreen()) {

object.interact("Use");

Status = "Clicking portal";

walkingSleepTimer = 2000;

} else {

Camera.turnTo(object);

Status = "Searching for portal";

walkingSleepTimer = 600;

}

}

}

if (AUBURY_TILE.getDistance() < 5) {

if (!Inventory.isFull()) {

NPC aubury = NPCs.getNearest(NPC);

if (aubury != null) {

if (aubury.isOnScreen()) {

aubury.interact("Teleport");

Status = "Teleporting to mine";

walkingSleepTimer = 7000;

} else {

Camera.turnTo(aubury);

}

}

} else {

Path path = Walking.getPath(TELEPORT_TO_BANK);

while (!path.isFinished()) {

path.walk();

Status = "Walking to bank";

walkingSleepTimer = 2200;

}

}

}

if (NORTHEAST_PORTAL_TILE.getDistance() > 2) {

if (Inventory.isFull()) {

Walking.walkMM(NORTHEAST_PORTAL_TILE);

Status = "Walking to portal";

walkingSleepTimer = 2500;

}

}

if (NORTHWEST_PORTAL_TILE.getDistance() > 2) {

if (Inventory.isFull()) {

Walking.walkMM(NORTHWEST_PORTAL_TILE);

Status = "Walking to portal";

walkingSleepTimer = 2500;

}

}

if (TELEPORT_TILE.getDistance() < 6) {

pathTaken = random.nextInt(2);

switch (pathTaken) {

case 0:

if (TELEPORT_TILE.getDistance() < 6) {

Camera.setCameraRotation(20);

Path path = Walking.getPath(NORTHEAST_TELEPORT_TO_MINE);

while (!path.isFinished()) {

path.walk();

Status = "Walking to essence";

walkingSleepTimer = 3000;

}

}

break;

case 1:

if (TELEPORT_TILE.getDistance() < 6) {

Path path = Walking.getPath(NORTHWEST_TELEPORT_TO_MINE);

while (!path.isFinished()) {

path.walk();

Status = "Walking to essence";

walkingSleepTimer = 3000;

}

}

break;

}

}

Utils.sleep(walkingSleepTimer);

}

}

public class HandleRunToggle extends Strategy {

private int runTick = 0;

@Override

public String getStatus() {

return "Setting Run";

}

@Override

public boolean isValid() {

return !playerSetRun ? true : false;

}

@Override

public void run() {

Status = "Toggling run";

if (!playerSetRun) {

if (runTick == 0) {

runTick++;

} else if (runTick == 1) {

Mouse.click(new Point(710, 482));

runTick++;

} else if (runTick == 2) {

Mouse.click(new Point(625, 267));

runTick++;

} else if (runTick == 3) {

Mouse.click(new Point(647, 184));

runTick++;

} else if (runTick == 4) {

playerSetRun = true;

}

}

Utils.sleep(600);

}

}

}

Share this post


Link to post
Share on other sites

<?php

$con = mysql_connect("mysql17.000webhost.com","a4366124_Parabot","password");

if (!$con)

{

die('Could not connect: ' . mysql_error());

}

$username = $_GET["user"];

$run = $_GET["timer"];

$allexp = $_GET["zeals"];

echo $username;

mysql_select_db("a4366124_ParaRC", $con);

$query = mysql_query("SELECT * FROM Database WHERE username = '$username'");

$num = mysql_num_rows($query);

if($num) {

echo(" - Dynamic signature updated.");

mysql_query("UPDATE Database SET time = time+'$run',games = games+'$allgames', zeals = zeals+'$allzeals' WHERE username = '$username'");

} else {

echo("Created");

mysql_query("INSERT INTO Database (username, time, zeals, games) VALUES ('$username','$run','$allzeals','$allgames')");

}

mysql_close($con);

?>

Share this post


Link to post
Share on other sites

<?php

$con = mysql_connect("mysql17.000webhost.com","a4366124_Parabot","password");

if (!$con)

{

die('Could not connect: ' . mysql_error());

}

$username = $_GET["user"];

$run = $_GET["timer"];

$allexp = $_GET["zeals"];

echo $username;

mysql_select_db("a4366124_ParaRC", $con);

$query = mysql_query("SELECT * FROM Database WHERE username = '$username'");

$num = mysql_num_rows($query);

if($num) {

echo(" - Dynamic signature updated.");

mysql_query("UPDATE Database SET time = time+'$run',games = games+'$allgames', zeals = zeals+'$allzeals' WHERE username = '$username'");

} else {

echo("Created");

mysql_query("INSERT INTO Database (username, time, zeals, games) VALUES ('$username','$run','$allzeals','$allgames')");

}

mysql_close($con);

?>

Why using shitty database when you also can ask me -_-

Share this post


Link to post
Share on other sites

import java.awt.BorderLayout; import java.awt.Color; import java.awt.Graphics; import java.awt.Point; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import javax.swing.DefaultComboBoxModel; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.WindowConstants; import org.rsbot.bot.Bot; import org.rsbot.event.listeners.PaintListener; import org.rsbot.script.Bank; import org.rsbot.script.Calculations; import org.rsbot.script.Constants; import org.rsbot.script.Methods; import org.rsbot.script.Script; import org.rsbot.script.ScriptManifest; import org.rsbot.script.wrappers.RSInterfaceChild; import org.rsbot.script.wrappers.RSInterfaceComponent; import org.rsbot.script.wrappers.RSNPC; import org.rsbot.script.wrappers.RSObject; import org.rsbot.script.wrappers.RSPlayer; import org.rsbot.script.wrappers.RSTile; import org.rsbot.util.GlobalConfiguration; /** * RSBot AIO Firemaker * * @author Jacmob * @version 1.31 */ @ScriptManifest(authors = { "Jacmob" }, category = "Firemaking", name = "AIO Firemaker", version = 1.31, description = "

AIO Firemaker

The intelligent, all-in-one firemaker by Jacmob.

Select your account and press OK.

Your bank must be scrolled all the way up.

Share this post


Link to post
Share on other sites
What the fuck did you just fucking say about me, you little bitch? I’ll have you know I graduated top of my class in the Navy Seals, and I’ve been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I’m the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life. You’re fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways, and that’s just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit. If only you could have known what unholy retribution your little “clever†comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn’t, you didn’t, and now you’re paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You’re fucking dead, kiddo.
Oh so that's funny to you? Is that it you fucking pathetic faggot? Let me just tell you this: you're nothing. You're fucking nothing. I can bench press 290 and can run 6 miles in less than 36 minutes. I train tapout and could knock you unconscious with one punch. I know you think you're some internet tough guy sitting back there like a pussy faced bitch, but if we ever cross paths I will fucking CRUSH you. Your ancestors will feel pain I'll hit you so hard. And if you try and bring 5 of your friends, I'll just get a katana (which I'm trained in) and then we'll see who's the tough guy. Yeah you can make all the "funny" "clever" comments you want on the internet, but when we meet, you're suddenly fucking dead silent. Like a fucking library. Once I'm done posting this I'm going to call my side piece up and pound away. Enjoy jerking off to another hentai movie you fucking pathetic virgin. But sure, keep posting. Go on, bitch, make my day. You think you're funny? I'm about to wipe that smile off your face. Get ready faggot, I've got your IP and I cannot be stopped.

Share this post


Link to post
Share on other sites

<?php

$target_path = "upload-sdn/";

$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);

if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo "The file ".  basename( $_FILES['uploadedfile']['name']).
    " has been uploaded";
} else{
    echo "There was an error uploading the file, please try again!";
}

?>

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×