• Log in or sign up for an account here: https://www.sythe.org/login

DarkzScriptz

Status
Not open for further replies.

caso60

Newcomer
Joined
Feb 12, 2009
Sythe Gold
0
Messages
17
Claims to be making new private scripts. He just renames scripts and sells you them. For example I bought a cannon ball smither script for 50 d stones. After I traded them all. He sent me a script named Cannon_Ball_Smelter.java. The script was actually a woodcutter. Hes a scammer.

Aim conversation. Doesnt really prove much. But he does log after he sends the fake script.

1-3.jpg


DarkzScriptz is offline and will receive your IMs when signing back in.
DarkzScriptz (4:50:24 PM): hello
DarkzScriptz (4:52:27 PM): you there?
DarkzScriptz went idle at 9:06:58 PM.
DarkzScriptz returned at 9:06:58 PM.
DarkzScriptz (6:51:15 PM): hello, your script has been completed
DarkzScriptz signed off at 9:06:58 PM.
Caso60 (9:07:08 PM): are u there
DarkzScriptz (9:34:44 PM): he
Caso60 (9:34:48 PM): hey
DarkzScriptz (9:34:53 PM):
Caso60 (9:34:56 PM): lol
DarkzScriptz (9:34:59 PM): yea you script is completed
Caso60 (9:35:05 PM): sweet
DarkzScriptz (9:35:07 PM): let me know when you wana buy it
Caso60 (9:35:13 PM): im down for buying it now
Caso60 (9:35:20 PM): have u tested in and everything?
DarkzScriptz (9:35:31 PM): i have tested it for an hour seems good
DarkzScriptz (9:35:36 PM): found 2 bugs
DarkzScriptz (9:35:39 PM): fixed though
DarkzScriptz (9:35:42 PM): so your good
Caso60 (9:35:59 PM): alright cool.
DarkzScriptz (9:36:07 PM): i made it for edgvill fally lum lol
DarkzScriptz (9:36:15 PM): need any other locations?
Caso60 (9:36:27 PM): that should be good
DarkzScriptz (9:36:41 PM): alright so it comes with anti bans
DarkzScriptz (9:36:43 PM): free updates
DarkzScriptz (9:36:49 PM): etc
Caso60 (9:36:55 PM): alrighty awesome.
DarkzScriptz (9:36:56 PM): you wanted advance right?
Caso60 (9:37:01 PM): yea
DarkzScriptz (9:37:06 PM): kk so its 2.3m
DarkzScriptz (9:37:13 PM): i added a few other things
DarkzScriptz (9:37:21 PM): and ill add in the frog random
DarkzScriptz (9:37:24 PM): sound good?
Caso60 (9:37:36 PM): yep that should be good
DarkzScriptz (9:37:46 PM): ok how do you wana transfer
Caso60 (9:38:08 PM): i really dont know how to transfer good so ur gonna have to explain
DarkzScriptz (9:38:18 PM): ok we so dragon stone method
Caso60 (9:38:28 PM): ok no idea on that one lol
DarkzScriptz (9:38:33 PM): ok ill explain
Caso60 (9:38:35 PM): k
DarkzScriptz (9:38:39 PM): go to g.e and buy 50 d stones
DarkzScriptz (9:38:44 PM): uncut!
DarkzScriptz (9:38:45 PM): lol
Caso60 (9:38:47 PM): ha ok.
DarkzScriptz (9:38:55 PM): buy 50 uncut dragon stones
DarkzScriptz (9:39:09 PM): that will be like 2.5m but im buying obby mauls so ima lose some money :p
Caso60 (9:39:16 PM): k
DarkzScriptz (9:39:30 PM): i know you will love this script
DarkzScriptz (9:39:39 PM): i also had 3 of my other freinds test it out
DarkzScriptz (9:39:46 PM): there testing it out atm
Caso60 (9:39:52 PM): really nice
DarkzScriptz (9:39:56 PM): so far they say its good
DarkzScriptz (9:40:01 PM): but like i said
Caso60 (9:40:02 PM): is it fast
Caso60 (9:40:09 PM): like a human
Caso60 (9:40:11 PM): lol..
DarkzScriptz (9:40:12 PM): have you changed yor speeds?
DarkzScriptz (9:40:16 PM): your mouse speed?
DarkzScriptz (9:40:23 PM): the rsbot mouse speed
Caso60 (9:40:29 PM): i dont know how to do that
Caso60 (9:40:32 PM): ha.
DarkzScriptz (9:40:34 PM): grr
DarkzScriptz (9:40:45 PM): theres a guide on rsbot but i think thats down atm
Caso60 (9:40:51 PM): ah.
DarkzScriptz (9:40:53 PM): once its up i can tell you
Caso60 (9:40:56 PM): ok cool.
DarkzScriptz (9:41:07 PM): but without it i would think it would be sorta humanish
DarkzScriptz (9:41:13 PM): but once you change speeds
DarkzScriptz (9:41:17 PM): your good to go
Caso60 (9:41:30 PM): alright cool
DarkzScriptz (9:41:35 PM): ok tell me when you buy the stones
Caso60 (9:41:37 PM): buying d stons atm
DarkzScriptz (9:41:39 PM): ok
DarkzScriptz (9:41:48 PM): ima let my freind buy off you for now ok
DarkzScriptz (9:41:55 PM): my pure is dead poor atm
Caso60 (9:41:59 PM): lol k.
DarkzScriptz (9:42:00 PM): he can transfer to me later
Caso60 (9:42:05 PM): i still dont know what im doin lol
DarkzScriptz (9:42:06 PM): i just bought ags on pure haha
Caso60 (9:42:11 PM): damn nice lol
DarkzScriptz (9:42:13 PM): hes dead poor
DarkzScriptz (9:42:25 PM): ok let me know once you get them all
Caso60 (9:42:45 PM): k got 50
DarkzScriptz (9:42:55 PM): ok add my freind
DarkzScriptz (9:42:59 PM): zzscorp
DarkzScriptz (9:43:03 PM): he should be on right now
DarkzScriptz (9:43:16 PM): let me know if he isnt
Caso60 (9:43:29 PM): he isnt
DarkzScriptz (9:43:36 PM): kk just told him to get on
DarkzScriptz (9:43:38 PM): were on ts
Caso60 (9:43:56 PM): k hes on
DarkzScriptz (9:44:08 PM): ok once sec ima explain to him how to do this
DarkzScriptz (9:44:13 PM): then to you sound good?
DarkzScriptz (9:44:20 PM): give me a minute
Caso60 (9:44:26 PM): yep. theres no chance of like messin this up is there?
Caso60 (9:44:31 PM): i dont wanna lose 2.5m lol..
DarkzScriptz (9:44:36 PM): nope ha
DarkzScriptz (9:44:43 PM): this method takes around 5 minutes
Caso60 (9:44:46 PM): k
DarkzScriptz (9:44:48 PM): so its good
DarkzScriptz (9:44:53 PM): sec
DarkzScriptz (9:45:20 PM): what other scripts did you request btw
DarkzScriptz (9:45:45 PM): working on alot of scripts atm
Caso60 (9:45:45 PM): same one as the other dude.
Caso60 (9:45:48 PM): um.. the miner one
DarkzScriptz (9:45:51 PM): ah ok the miner
DarkzScriptz (9:45:57 PM): im almost done with that one also ha
Caso60 (9:46:06 PM): k nice
DarkzScriptz (9:46:14 PM): im updating a private one i made months ago ha
Caso60 (9:46:31 PM): haha
DarkzScriptz (9:46:32 PM): most of the requested scripts are ones that i made months ago
DarkzScriptz (9:46:37 PM): i just update them
Caso60 (9:46:40 PM): ah sweet
DarkzScriptz (9:46:41 PM): and fix bugs if any
Caso60 (9:46:43 PM): saves time
DarkzScriptz (9:46:46 PM): yes
DarkzScriptz (9:46:47 PM): alot
DarkzScriptz (9:47:03 PM): ok he knows what to do
DarkzScriptz (9:47:08 PM): ok he can explain to you
DarkzScriptz (9:47:14 PM): or
DarkzScriptz (9:47:18 PM): ill jsut say
DarkzScriptz (9:47:21 PM): this is what you do
DarkzScriptz (9:47:27 PM): both of you go to the fight caves
DarkzScriptz (9:47:39 PM): he will buy obby mauls
DarkzScriptz (9:47:41 PM): like 2-3
DarkzScriptz (9:47:45 PM): to get tokul
DarkzScriptz (9:47:55 PM): and you will sell the uncut stones to the gem shop
DarkzScriptz (9:47:59 PM): 5-10 at a time
DarkzScriptz (9:48:06 PM): ill make sure he buys
DarkzScriptz (9:48:10 PM): then ill let you know to sell again
DarkzScriptz (9:48:18 PM): once he has a ful inv
DarkzScriptz (9:48:21 PM): ill let you know
DarkzScriptz (9:48:24 PM): he banks
DarkzScriptz (9:48:30 PM): etc
DarkzScriptz (9:48:33 PM): sound good?
Caso60 (9:48:39 PM): ok so sell 5 to the shop at a time
Caso60 (9:48:45 PM): are u gonna be there?
DarkzScriptz (9:48:48 PM): yea 10 if no one is there
Caso60 (9:48:50 PM): k
DarkzScriptz (9:48:58 PM): im currently making a script atm
Caso60 (9:49:01 PM): ah ok
DarkzScriptz (9:49:02 PM): busy ha
DarkzScriptz (9:49:09 PM): ok go to his world
Caso60 (9:49:17 PM): k one sec
DarkzScriptz (9:49:20 PM): message him so he can add you
Caso60 (9:50:17 PM): k i did.
DarkzScriptz (9:50:27 PM): kk
DarkzScriptz (9:51:34 PM): kk is he responding to you?
Caso60 (9:51:37 PM): yea.
DarkzScriptz (9:51:42 PM): ok cool
Caso60 (9:52:20 PM): ok while hes coming, how does this method actually work?
DarkzScriptz (9:52:34 PM): you just sell the stones to shop
DarkzScriptz (9:52:38 PM): he buys
DarkzScriptz (9:52:42 PM): he losees like 300k
DarkzScriptz (9:52:48 PM): gains 2.2m
DarkzScriptz (9:52:54 PM): fairly simple
Caso60 (9:53:02 PM): wheres the mauls come in?
DarkzScriptz (9:53:11 PM): he loses because he has to buy obby mauls to get tokul
DarkzScriptz (9:53:23 PM): he needs aroound 49k tokul
DarkzScriptz (9:53:35 PM): so he has to buy 2-3 obby mauls
Caso60 (9:53:36 PM): ah ok.
Caso60 (9:54:08 PM): do u have to do the karamja achiement diaryor somethin?
DarkzScriptz (9:54:24 PM): only the buyer does
DarkzScriptz (9:54:29 PM): so he can buy for cheaper
Caso60 (9:54:37 PM): ah ok gotcha.
Caso60 (9:54:53 PM): so i couldnt do this with noob acc
Caso60 (9:54:55 PM): lol
DarkzScriptz (9:55:14 PM): lol
DarkzScriptz (9:58:03 PM): he there yet?
Caso60 (9:58:12 PM): gotta go to ge to buymauls
DarkzScriptz (9:58:20 PM): ah ok
Caso60 (9:58:21 PM): ill be right nack
Caso60 (9:58:23 PM): back
DarkzScriptz (9:58:25 PM): k
Caso60 (10:00:40 PM): k
DarkzScriptz (10:00:50 PM): k
Caso60 (10:01:27 PM): lol do i get anykind of discount for buying 2 scripts? ha jk.
DarkzScriptz (10:01:37 PM): il see ha
Caso60 (10:01:46 PM): lol k thanks.
DarkzScriptz (10:02:05 PM): btw im working on the miner right now
DarkzScriptz (10:02:10 PM):
Caso60 (10:02:15 PM): haha ok cool
DarkzScriptz (10:03:02 PM): he there yet?
Caso60 (10:03:06 PM): yep
Caso60 (10:03:12 PM): went to bank
DarkzScriptz (10:03:20 PM): k
DarkzScriptz (10:04:52 PM): ok
DarkzScriptz (10:05:00 PM): trade gem shop
Caso60 (10:05:02 PM): ok
DarkzScriptz (10:05:09 PM): you ready
Caso60 (10:05:12 PM): yea
DarkzScriptz (10:05:12 PM): hes ready
DarkzScriptz (10:05:16 PM): ok sell 10
DarkzScriptz (10:05:26 PM): ok he got
Caso60 (10:05:27 PM): ok
DarkzScriptz (10:05:31 PM): again
DarkzScriptz (10:05:48 PM): wait
Caso60 (10:05:53 PM): someone elsehot?
Caso60 (10:05:55 PM): got*
DarkzScriptz (10:06:02 PM): no freind got
DarkzScriptz (10:06:10 PM): one sec he says there some1 there
Caso60 (10:06:13 PM): switch worlds? someone heres
DarkzScriptz (10:06:23 PM): yea go to 60
Caso60 (10:06:34 PM): scared me lol...
DarkzScriptz (10:06:37 PM): wait
Caso60 (10:06:37 PM): damn
DarkzScriptz (10:06:42 PM): did you sell 10 only?
DarkzScriptz (10:06:45 PM): or 20
Caso60 (10:06:49 PM): 20....
DarkzScriptz (10:06:52 PM): o rofl dude
Caso60 (10:07:01 PM): omg no way..
DarkzScriptz (10:07:06 PM): ill discount from your other script
DarkzScriptz (10:07:08 PM): dw
DarkzScriptz (10:07:15 PM): sound good?
DarkzScriptz (10:07:21 PM): wow ffs
Caso60 (10:07:26 PM): lol..
DarkzScriptz (10:07:51 PM): you think you can get 10 more?
DarkzScriptz (10:08:02 PM): wow.....
DarkzScriptz (10:08:07 PM): im very sorry
Caso60 (10:08:26 PM): why dont we just do the 40. then ill do another 50 on the other script
DarkzScriptz (10:08:36 PM): you can only sell 50 every 4 hours
DarkzScriptz (10:08:47 PM): and otherscript will cost same =/
DarkzScriptz (10:08:56 PM): unless you want it to be basic?
Caso60 (10:08:56 PM): ok so ill buy the other script tomorrow
DarkzScriptz (10:09:05 PM): um other script will cost 50
DarkzScriptz (10:09:12 PM): aswell
DarkzScriptz (10:09:22 PM): not gona be done tell like 2 days
DarkzScriptz (10:09:28 PM): got work tomarrow
DarkzScriptz (10:09:35 PM): had day off
DarkzScriptz (10:10:17 PM): ok so whats going on?
DarkzScriptz (10:10:25 PM): are you stil sellign to him
DarkzScriptz (10:10:34 PM): did he get the rest?
Caso60 (10:10:37 PM): not yet
DarkzScriptz (10:10:41 PM): oh
Caso60 (10:10:41 PM): switch worlds again
Caso60 (10:11:12 PM): omg theres people everywhere..
DarkzScriptz (10:11:16 PM): wow
Caso60 (10:11:24 PM): what world
DarkzScriptz (10:11:27 PM): ive never saw any1 before ha
DarkzScriptz (10:11:28 PM): um
DarkzScriptz (10:11:52 PM): 70
DarkzScriptz (10:14:25 PM): hows it going
DarkzScriptz (10:16:38 PM): ?
Caso60 (10:16:52 PM): ok idk. hes sayin he only got 5 or something
DarkzScriptz (10:17:11 PM): ok he got 30
Caso60 (10:17:20 PM): omg....
DarkzScriptz (10:17:20 PM): wow rofl?
DarkzScriptz (10:17:27 PM): omfg
Caso60 (10:17:30 PM): dude wtf. i thought this was safe..
DarkzScriptz (10:17:31 PM): dude........
DarkzScriptz (10:17:33 PM): it was
DarkzScriptz (10:17:38 PM): you have to sell on go
Caso60 (10:17:43 PM): i did.
DarkzScriptz (10:17:48 PM): aand look at mini map?
Caso60 (10:17:52 PM): theres other people that come in randomly
DarkzScriptz (10:17:56 PM): wow?
DarkzScriptz (10:18:16 PM): one sec
Caso60 (10:19:07 PM): k.
DarkzScriptz (10:19:17 PM): ok i can do this
DarkzScriptz (10:19:40 PM): can you buy 20 more and ill add in the chinchompa script or the school rnadom one
DarkzScriptz (10:19:46 PM): or both if you want
Caso60 (10:19:58 PM): i just want the smelter for now..
DarkzScriptz (10:19:59 PM): and ill sell you the mining script tomarrow
DarkzScriptz (10:20:18 PM): wow sec let me ask freinds
DarkzScriptz (10:20:22 PM): if they knwo any other way
DarkzScriptz (10:20:59 PM): ok
DarkzScriptz (10:21:14 PM): do you have any other acc?
DarkzScriptz (10:21:21 PM): that can give him some d stones?
DarkzScriptz (10:21:30 PM): and heres what i can do
DarkzScriptz (10:21:38 PM): ill give you the script right now
DarkzScriptz (10:21:48 PM): add the school random one free
DarkzScriptz (10:21:58 PM): and just sell you the mininger tomarrow for 40 stones
DarkzScriptz (10:22:02 PM): sound good?
DarkzScriptz (10:22:18 PM): you will get 3 scripts right now
DarkzScriptz (10:22:25 PM): one tomarrow
Caso60 (10:22:42 PM): Yea but i have no other accounts. and i already sold 50 on this acc
DarkzScriptz (10:22:48 PM): i know
DarkzScriptz (10:22:56 PM): uhm let me think
DarkzScriptz (10:23:38 PM): hmm
DarkzScriptz (10:23:45 PM): ok whats your email
DarkzScriptz (10:23:49 PM): so i cna send script first
Caso60 (10:23:52 PM): [email protected]
DarkzScriptz (10:23:55 PM): then we can sort this out
Caso60 (10:24:01 PM): ight thanks man.
DarkzScriptz (10:24:02 PM): ok one sec
Caso60 (10:24:46 PM): k
DarkzScriptz (10:29:50 PM): ok i sent
DarkzScriptz (10:29:53 PM): here brb
Caso60 (10:30:03 PM): k one sec
DarkzScriptz (10:30:22 PM): sec
DarkzScriptz signed off at 10:30:36 PM.
DarkzScriptz is offline and will receive your IMs when signing back in.


Fake Cannon_Ball_Smelter.java

Code:
import java.awt.*;
import java.util.Map;

import com.speljohan.rsbot.bot.Bot;
import com.speljohan.rsbot.script.Skills;
import com.speljohan.rsbot.script.wrappers.RSPlayer;
import com.speljohan.rsbot.script.Bank;
import com.speljohan.rsbot.script.*;
import com.speljohan.rsbot.script.wrappers.*;
import com.speljohan.rsbot.event.listeners.PaintListener;

public class Cannon_ball_smelter extends Script implements PaintListener {

public void onRepaint(Graphics g) 
{ 
if(isLoggedIn()) {
int Xbox = 227;
int Ybox = 345;
int Xprint = Xbox + 5;
int Yprint = Ybox + 15;
long millis = System.currentTimeMillis() - startTime1;
long hours = millis / (1000 * 60 * 60);
millis -= hours * (1000 * 60 * 60);
long minutes = millis / (1000 * 60);
millis -= minutes * (1000 * 60);
long seconds = millis / 1000; 
int XPChange = skills.getCurrentSkillExp(8) - startXP;
int LevelChange = skills.getCurrentSkillLevel(8) - startLevel;
float XPperSec = 0;
float XPperMin = XPperSec*60;
float XPperHour = XPperMin*60;
if ((minutes > 0 || hours > 0 || seconds > 0) && XPChange > 0) {
XPperSec = ((float) XPChange)/(float)(seconds + (minutes*60) + (hours*60*60));
} 
g.setColor(Color.red);
g.drawRoundRect(Xbox, Ybox, 270 - 1, 95 - 1,20,20);
g.setColor(new Color(255, 255, 255, 100));
g.fillRoundRect(Xbox + 1, Ybox + 1, 270 - 2, 95 - 2,20,20);


g.setColor(Color.black);
g.drawString("Banked " + Integer.toString(logsBanked) + " Willow Logs", Xprint, Yprint);
g.drawString("Runtime: " + hours + " hours " + minutes + " minutes " + seconds + " seconds.",
Xprint, Yprint+15);
g.drawString("Current: " + skills.getCurrentSkillLevel(8) + " levels and " + skills.getCurrentSkillExp(8) + " exp.", Xprint, Yprint+30);
g.drawString("Gained: " + LevelChange + " levels and " + XPChange + " exp.",
Xprint, Yprint+45);
g.drawString("Found: " + nestsFound + " nests", Xprint, Yprint+60);

g.drawString(skills.getXPToNextLevel(8) + " XP to next level, we are " + skills.getPercentToNextLevel(8) + "% to next level.", Xprint, Yprint+75);

}
}
public static final int WOODCUTTING_STAT = Skills.getStatIndex("Woodcutting");

public boolean FullInv = false;
public int DepoBox = 20228;
private final int[] nestIds = { 5075, 5074, 5073, 5072, 5071, 5070, 7413 };
private final int[] axeIDs = { 1349, 1351, 1353, 1355, 1357, 1359, 1361, 6739, 13661}; //// Inferno Adze now Supported
public static int[] willowTrees = { 1308, 5551, 5552, 5553, 8481, 8482, 8483, 8484, 8485, 8486, 8487, 8488 };
public static int willowLogs = 1519;
public int logcount;
int startLevel = 0;
int startXP = 0;
public int logsBanked = 0;
int State = 0;
int Door = 20195;
int nestsFound = 0;
int randomRun = random(20, 65);
int checkTime;
long startTime;
long lastCheck;
long startTime1 = System.currentTimeMillis();

public String getName() {
return "Barb Outpost Willow Depositer";
}

public double getVersion() {
return 1.2;
}

@Override
public String getScriptCategory() {
return "WoodCutting";
}

public String getAuthor() {
return "Slayer";
}

public String getScriptDescription() {
return "<html>\n" +
"<head></head>\n" +
"<body>\n" +
"<center>" +
"<h2>" + getName() + "</h2>" +
"</center>\n" +
"<b>Author:</b> " + getAuthor() + "<br />" +
"<b>Version:</b> " + getVersion() + "<br />" +

"<b>Features:</b>" +
"<ul><li>Start at Willows.</li></ul>" +
"<ul><li>No Args!</li></ul>" +

"</body>\n" +
"</html>";
}

public boolean onStart(String[] s) {
logcount = 0;
logsBanked = 0;
startTime1 = System.currentTimeMillis();
if(isLoggedIn()){ 
startLevel = skills.getCurrentSkillLevel(8);
startXP = skills.getCurrentSkillExp(8);
}
Bot.getEventManager().addListener(PaintListener.class, this);
log("Started Slayer's Outpost Chopper");
return true;
}

public void onFinish() {
Bot.getEventManager().removeListener(PaintListener.class, this);
}

public int loop() {
//log("State: " + State);
try{
switch(State)
{
case 0: 

if (ent()) {
walkTileMM(new RSTile(2520 + (random( -1, 2)), 3580 + (random(-1, 2))));
return chop();
}

if (busy()) {
RSItemTile nest = getGroundItemByID(nestIds);
if (nest != null) {
log("Found nest");
atTile(nest, "Take");
nestsFound++;
}
antiBan();
return random(800, 1000);
}

if(distanceTo(new RSTile(2535 + (random( -1, 1)), 3574 + (random(-1, 1)))) < 3) {
State = 2;
return random(750,1000); 
}


if (isInventoryFull()){ 
State = 1;
return random(750,1500);
}

if(distanceTo(new RSTile(2520 + (random( -1, 2)), 3580 + (random(-1, 2)))) > 7) {
State = 3;
return random(750,1000); 
}

return chop(); 
case 1:
return walkToBank();
case 2:
RSObject depositBox = findObject(DepoBox);
if(distanceTo(depositBox.getLocation()) > 5)
{
walkTileMM(depositBox.getLocation());
return random(500,750);
}
if (findObject(DepoBox) != null) {
if (!RSInterface.getInterface(INTERFACE_DEPOSITBOX).isValid()) {
atObject(findObject(DepoBox),"Deposit");
return random(1000, 1250);
}
}
if (RSInterface.getInterface(INTERFACE_DEPOSITBOX).isValid()) {
logsBanked += getInventoryCount(willowLogs);
depositAllDepositBoxExcept(axeIDs);
State++;
} 
if(inventoryContains(willowLogs)) { // if your full.
return random(1000, 1250);
}
case 3: 
return walkToCuttingSpot();

}
}catch(Exception e){ 
e.printStackTrace(); 
}
return random(500, 1000);

}


public int chop() {
RSObject Tree = findClosestObjectInRange(willowTrees, 8);
setCameraAltitude(true);
setCameraRotation(170);
try {
// System.out.println("Tree Location:" + Tree.getLocation().getX() +
// " - " + Tree.getLocation().getY());
// System.out.println("My Location:" +
// getMyPlayer().getLocation().getX() + " - " +
// getMyPlayer().getLocation().getY());
// atObject(Tree, "Chop down");

int treeX, treeY;
treeX = (int) Calculations.tileToScreen(Tree.getLocation()).getX();
treeY = (int) Calculations.tileToScreen(Tree.getLocation()).getY();
treeX = treeX + random(10, 20);
treeY = treeY - random(5, 10);
Point t = new Point(treeX, treeY);
moveMouse(t);
clickMouse(true);
State = 0;

} catch (NullPointerException NPE) {
NPE.printStackTrace();
} catch (Exception ex) {
ex.printStackTrace();
}
return(random(1000,2000));
}

public int walkToBank() {
if(getMyPlayer().isMoving()) return random(1500,2000);
if (distanceTo(new RSTile(2535 + (random( -1, 1)), 3574 + (random(-1, 1)))) < 7){
wait(random(750,1500));
State++;
return random(750,1500);

} else if (distanceTo(findObject(Door)) <= 30){
walkTileMM(new RSTile(2520 + random(-1,2), 3571 + random(-1,2)));
wait(random(4000,4500));
setCameraRotation(271);
atDoor(findObject(Door), "e", "Open");
wait(random(1500,2000));
} else {
walkTileMM(new RSTile(2535 + (random( -1, 1)), 3574 + (random(-1, 1))));
wait(random(750,1500));
}
return random(500,1500);
}

public int walkToCuttingSpot() {
if(getMyPlayer().isMoving()) return random(1500,2000);
if (distanceTo(new RSTile(2520 + (random( -1, 2)), 3580 + (random(-1, 2)))) < 7){
wait(random(750,1500));
State = 0;
return random(750,1500);

} else if (distanceTo(findObject(Door)) <= 30){
walkTileMM(new RSTile(2523 + random(-1,2), 3571 + random(-1,1)));
wait(random(3000,4000));
setCameraRotation(271);
atDoor(findObject(Door), "e", "Open");
wait(random(1500,2000));
} else {
walkTileMM(new RSTile(2523 + random(-1,2), 3571 + random(-1,1)));
wait(random(750,1250));
walkTileMM(new RSTile(2520 + (random( -1, 2)), 3580 + (random(-1, 2))));
wait(random(750,1500));
}
return random(500,1500);
}

public RSObject findClosestObjectInRange(int IDs[], int range) {
try {
int myX, myY, minX, minY, maxX, maxY, objX, objY;
RSObject temp;
RSObject output = null;
myX = getMyPlayer().getLocation().getX();
myY = getMyPlayer().getLocation().getY();
minX = range * -1;
minY = range * -1;
maxX = range;
maxY = range;
for (int x = minX; x < maxX; x++) {
for (int y = minY; y < maxY; y++) {
objX = myX + x;
objY = myY + y;
temp = getObjectAt(objX, objY);
if (temp == null) {
continue;
}
for (int ID : IDs) {
if (temp.getID() == ID) {
if (output == null) {
output = temp;
} else {
if (distanceTo(temp.getLocation()) < distanceTo(output
.getLocation())) {
output = temp;
}
}
}
}

}
}
return output;
}

catch (Exception e) {
e.printStackTrace();
}
return null;
}

public boolean busy() {
if (getMyPlayer().isInCombat()) {
runAway();
return true;
}
if (getMyPlayer().getAnimation() == 879
|| getMyPlayer().getAnimation() == 875
|| getMyPlayer().getAnimation() == 867
|| getMyPlayer().getAnimation() == 2846) {
return true;
}
if (getMyPlayer().isMoving()) {
return true;
}

return false;
}

public Point getDepositInventoryItemPoint(int invIndex) {
int col = (invIndex % 7);
int row = (invIndex / 7);
int x = 121 + (col * 48);
int y = 85 + (row * 50);
return new Point(x, y);
}

public boolean depositAllDepositBoxExcept(int...items) {
int inventoryCount = getInventoryCount();
for (int off = 0; off < getInventoryArray().length; off++) {
if (getInventoryArray()[off] == -1) {
continue;
}
boolean skip = false;
for (int item: items) {
if (getInventoryArray()[off] == item) {
skip = true;
break;
}
}
if (skip) {
continue;
}

for (int tries = 0; tries < 5; tries++) {
atDepositInventoryItem(getInventoryArray()[off], "Deposit-All");
wait(random(1000, 1500));
if(getInventoryCount() < inventoryCount) {
break;
}
}
if (getInventoryCount() >= inventoryCount) {
// equally, otherwise
// something realy weird
// happend 
return false;
}
inventoryCount = getInventoryCount(); 
}
return true;
}

public boolean atDepositInventoryItem(int itemID, String txt) {
if (!interfaceExists(INTERFACE_DEPOSITBOX) || !isLoggedIn()) {
return false;
}
for (int off = 0; off < getInventoryArray().length; off++) {
if (getInventoryArray()[off] == itemID) {
clickMouse(getDepositInventoryItemPoint(off), 3, 3, false);
wait(random(200,300));
return atMenu(txt);
}
}
return false;
}

public boolean runAway() {
RSTile a, b;
a = getMyPlayer().getLocation();
b = new RSTile(a.getX() + 10, a.getY() + 10);
walkTileMM(b);
wait(random(10000, 20000));
walkTileMM(a);
return true;
}

int antiBan() {
int p = Math.round(random(1, 11));
switch (p) {
case 1:
wait(random(1000, 1500));
return( random(500, 750) );

case 2:
int x = random(0, 750);
int y = random(0, 500);
moveMouse(0, 0, x, y);
return( random(1000, 1500) );

case 3:
// Is the current tab the inventory?
if ( getCurrentTab( ) != TAB_INVENTORY ) {
// No, so switch to the inventory tab.
openTab( TAB_INVENTORY );
return( random(500, 750) );
}
else {
// No, so return
return( random(500, 750) );
}

case 4:
int x1 = random(0, 750);
int y1 = random(0, 500);
moveMouse(0, 0, x1, y1);
return( random(1000, 1500) );

case 5:
if ( random(1, 8) == 2 ){
int angle = (getCameraAngle( ) + random(-90, 90));
if ( angle < 0) angle = 0;
if ( angle > 359) angle = 0;

setCameraRotation( angle );
}
return( random(500, 750) );

case 6:
int x2 = random(0, 750);
int y2 = random(0, 500);
moveMouse(0, 0, x2, y2);
return( random(1000, 1500) );
}
return (random(500, 700));
}

public boolean ent() {
RSNPC ent = getNearestNPCByName("Willow");
if (distanceTo(ent) <= 2) {
log("Found Ent changing Tree");
return true;
}
return false;
}
}
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top