D
da-man9191
Guest
ORIGINALLY POSTED AT: http://www.cheatscene.com/forum/showthread.php?t=586
This script is for JMacro. Get your copy at http://www.cheatscene.com (Must register to download)
DaFreshOak
Ultimate Draynor Oak Script!
Yours truly,
Fresh Prince & Da-man9191
Features:
->Lets you pick if you wanna WC and drop, WC and bank, or WC and FM
->Shows you a status report
->Advanced WC code that makes it less detectable
->If you WC and bank it goes to random booth
Instructions:
1. Start in Draynor Bank!
2. Face Directly North!
3. Put in any pins before starting!
4. If you're planning to FM, place tinderbox in the first inventory slot!
5. If you're planning to just WC and/or bank, keep nothing in the inventory at start!
6. When you start, choose the correct number!
7. Weild your axe! It's only oaks, iron will do just fine.
*NOTE* Everyone can weild iron!
Remember, like all macros/scripts, Use At Your Own Risk
Here is the .class file and .java file:
DaFreshOak.zip
Credits:
Da-Man9191 and myself, Fresh Prince - For making the script
Speedster239 - For making JMacro of course!
Stonebot - He helped both Da-Man9191 and I, in different ways!
Ryan and Jay - Inspiration! How? Well it seems that they are releasing scripts together, now this has set a goal for me and Da-Man9191, and we shall PWN them!
Nubs (pronounced N-uhh-bb-s) - For being Nubs!
If you like this, please post your comments and atleast a Thank You!
PLEASE STAY ON TOPIC
This script is for JMacro. Get your copy at http://www.cheatscene.com (Must register to download)
DaFreshOak
Ultimate Draynor Oak Script!
Yours truly,
Fresh Prince & Da-man9191
Features:
->Lets you pick if you wanna WC and drop, WC and bank, or WC and FM
->Shows you a status report
->Advanced WC code that makes it less detectable
->If you WC and bank it goes to random booth
Instructions:
1. Start in Draynor Bank!
2. Face Directly North!
3. Put in any pins before starting!
4. If you're planning to FM, place tinderbox in the first inventory slot!
5. If you're planning to just WC and/or bank, keep nothing in the inventory at start!
6. When you start, choose the correct number!
7. Weild your axe! It's only oaks, iron will do just fine.
*NOTE* Everyone can weild iron!
Remember, like all macros/scripts, Use At Your Own Risk
Code:
package scripts;
import java.util.Random;
import java.awt.Dimension;
import javax.swing.JOptionPane;
import com.jmacro.methods.color.JColor;
import com.jmacro.methods.tiles.JTile;
import com.jmacro.methods.tiles.JTilePath;
import static com.jmacro.methods.image.image.*;
import static com.jmacro.methods.control.control.*;
import static com.jmacro.methods.tiles.tiles.*;
import static com.jmacro.methods.mouse.mouse.*;
import static com.jmacro.methods.keyboard.keyboard.*;
import static com.jmacro.methods.color.color.*;
public class DaFreshOak
{
/*----------------------------------------------------------------------------------------------------
------------------------------------------NO CONFIG VARIABLES!!------------------------------------
----------------------------------------------------------------------------------------------------*/
static JColor tree = new JColor(67, 75, 32);
static JTile fmTile[] = new JTile[] {new JTile(3101, 3243),new JTile(3098, 3248)};
static JTile cutbackTile[] = new JTile[] {new JTile(3078, 3249),new JTile(3085, 3249),new JTile(3091, 3249),new JTile(3095, 3249),new JTile(3098, 3247),new JTile(3101, 3243)};
static JTilePath fmPath = new JTilePath (fmTile); //place to start FM
static JTilePath cutbackPath = new JTilePath (cutbackTile); //Done FM and takes you back to the Oak Tree
private static Random r = new Random();
private static int iWantToDo = 0;
private static int count = 0; //Keeps track of how many logs have been banked
private static float xp = 0F; //Keeps track of how much xp gained
private static void cut()
{
while(!findImageFromString("14,7,-7048379,-7245756,-7245756,-7377342,-7377342,-7377342,-7574463,-7968706,-8363204,-8757447,-9151946,-9546445,-10006480,-10466771,-7377342,-7377342,-7377342,-7574463,-7968706,-8363204,-8757447,-9151946,-9546445,-9546445,-9349323,-9151946,-8954825,-8757447,-7574463,-10006480,-9809359,-9546445,-9349323,-9151946,-8954825,-8757447,-8560326,-8363204,-8165827,-7968706,-7771584,-7574463,-9349323,-9349323,-9151946,-8954825,-8757447,-8560326,-8363204,-8165827,-7968706,-7771584,-7574463,-7574463,-7574463,-7377342,-8363204,-8363204,-8560326,-8363204,-8165827,-7968706,-7771584,-7574463,-7574463,-7574463,-7574463,-7377342,-7377342,-7377342,-7771584,-7771584,-7771584,-7771584,-7771584,-7574463,-7574463,-7574463,-7574463,-7377342,-7377342,-7377342,-7245756,-7245756,-7245756,-7377342,-7377342,-7574463,-7574463,-7574463,-7574463,-7377342,-7377342,-7377342,-7377342,-7245756,-7245756,-7048379,", new Dimension(685, 430), new Dimension(725, 460), 5, false))
{
boolean b = false; //Will reintialize on each loop
if(findColorDimension(tree, new Dimension(275, 90), new Dimension(390, 185), 4, 1, true))
{
if(!findImageFromString("5,6,-3159039,-3159039,-3159039,-3159039,-16715536,-3159039,-16715536,-16715536,-3882240,-3882240,-3882240,-3882240,-3159039,-3159039,-3882240,-2566379,-16715536,-16715536,-3882240,-3882240,-3750395,-16715536,-16715536,-3159039,-3750395,-3750395,-3750395,-2500842,-2500842,-3750395,", new Dimension(0, 0), new Dimension(200, 25), 20, false))
leftClick(0, 0);
}
else
{
System.out.println("[DaFreshOak] - The oak is cut... waiting..");
waitForTree();
}
treeRandom();
treeGone();
int x, y;
x = getTileX();
y = getTileY();
//Axe repair cost - 427gp
if((x != 3101) && (y != 3243))
{
if(distanceToTile(new JTile(3101, 3243)) <= 15)
{
//Went out of area so it will reset now..
log("out of area...");
goToTile(new JTile(3101, 3243));
}
else if(distanceToTile(new JTile(3107, 3156)) <= 15)
{
//In tower
log("random");
goToTile(new JTile(3105, 3160));
//TODO: Add walk back
log("Random has not been made yet...");
}
/*else if()
{
//Lumbridge, deathroute
}
else
{
//Your Lost!! Tele to Lumby, deathroute
}*/
}
}
}
private static void treeRandom()
{
if(findImageFromString("5,6,-3159039,-3159039,-3159039,-3159039,-16715536,-3159039,-16715536,-16715536,-3882240,-3882240,-3882240,-3882240,-3159039,-3159039,-3882240,-2566379,-16715536,-16715536,-3882240,-3882240,-3750395,-16715536,-16715536,-3159039,-3750395,-3750395,-3750395,-2500842,-2500842,-3750395,", new Dimension(0, 0), new Dimension(200, 25), 20, false))
{
goToTile(getMyTile());
log("Tree Random... waiting..");
sleep(3500 + r.nextInt(500));
}
}
private static void waitForTree()
{
while(true) //Repeats until found
{
if(findColorDimension(tree, new Dimension(275, 90), new Dimension(390, 185), 4, 1, false))
break; //Ends the loop
sleep(50 + r.nextInt(440));
}
sleep(300 + r.nextInt(200));
clickTree();
}
private static void treeGone()
{
boolean check = false;
while(true)
{
for(int i = 0; i < 23;i++) //This will help keep char logged in
{
if(!findColorDimension(tree, new Dimension(275, 90), new Dimension(390, 185), 4, 1, false))
{
check = true;
break; //Ends loop
}
if(findImageFromString("14,7,-7048379,-7245756,-7245756,-7377342,-7377342,-7377342,-7574463,-7968706,-8363204,-8757447,-9151946,-9546445,-10006480,-10466771,-7377342,-7377342,-7377342,-7574463,-7968706,-8363204,-8757447,-9151946,-9546445,-9546445,-9349323,-9151946,-8954825,-8757447,-7574463,-10006480,-9809359,-9546445,-9349323,-9151946,-8954825,-8757447,-8560326,-8363204,-8165827,-7968706,-7771584,-7574463,-9349323,-9349323,-9151946,-8954825,-8757447,-8560326,-8363204,-8165827,-7968706,-7771584,-7574463,-7574463,-7574463,-7377342,-8363204,-8363204,-8560326,-8363204,-8165827,-7968706,-7771584,-7574463,-7574463,-7574463,-7574463,-7377342,-7377342,-7377342,-7771584,-7771584,-7771584,-7771584,-7771584,-7574463,-7574463,-7574463,-7574463,-7377342,-7377342,-7377342,-7245756,-7245756,-7245756,-7377342,-7377342,-7574463,-7574463,-7574463,-7574463,-7377342,-7377342,-7377342,-7377342,-7245756,-7245756,-7048379,", new Dimension(685, 430), new Dimension(725, 460), 5, false))
{
check = true;
break; //Ends loop if inventory is full
}
treeRandom();
sleep(300 + r.nextInt(200));
}
if(check)
break;
clickTree();
}
}
public static void clickTree()
{
if(findColorDimension(tree, new Dimension(275, 90), new Dimension(390, 185), 4, 1, true))
if(!findImageFromString("5,6,-3159039,-3159039,-3159039,-3159039,-16715536,-3159039,-16715536,-16715536,-3882240,-3882240,-3882240,-3882240,-3159039,-3159039,-3882240,-2566379,-16715536,-16715536,-3882240,-3882240,-3750395,-16715536,-16715536,-3159039,-3750395,-3750395,-3750395,-2500842,-2500842,-3750395,", new Dimension(0, 0), new Dimension(200, 25), 20, false))
leftClick(0, 0);
}
private static void drop()
{
while(findImageFromString("14,7,-7048379,-7245756,-7245756,-7377342,-7377342,-7377342,-7574463,-7968706,-8363204,-8757447,-9151946,-9546445,-10006480,-10466771,-7377342,-7377342,-7377342,-7574463,-7968706,-8363204,-8757447,-9151946,-9546445,-9546445,-9349323,-9151946,-8954825,-8757447,-7574463,-10006480,-9809359,-9546445,-9349323,-9151946,-8954825,-8757447,-8560326,-8363204,-8165827,-7968706,-7771584,-7574463,-9349323,-9349323,-9151946,-8954825,-8757447,-8560326,-8363204,-8165827,-7968706,-7771584,-7574463,-7574463,-7574463,-7377342,-8363204,-8363204,-8560326,-8363204,-8165827,-7968706,-7771584,-7574463,-7574463,-7574463,-7574463,-7377342,-7377342,-7377342,-7771584,-7771584,-7771584,-7771584,-7771584,-7574463,-7574463,-7574463,-7574463,-7377342,-7377342,-7377342,-7245756,-7245756,-7245756,-7377342,-7377342,-7574463,-7574463,-7574463,-7574463,-7377342,-7377342,-7377342,-7377342,-7245756,-7245756,-7048379,", new Dimension(550, 210), new Dimension(725, 460), 5, true))
{
rightClick(0, 0);
sleep(500 + r.nextInt(1000));
findImageFromString("12,6,-1,-1,-1,-1,-16715536,-16715536,-16715536,-1,-1,-1,-1,-16715536,-1,-1,-1,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-1,-1,-16715536,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-1,-1,-16715536,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-1,-1,-16715536,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-1,-1,-16715536,-16715536,-16715536,-16715536,-16715536,-1,-1,-1,-1,-16715536,", new Dimension(515, 205), new Dimension(764, 502), 19, true);
sleep(500 + r.nextInt(1000));
leftClick(0, 0);
sleep(650 + r.nextInt(850));
}
}
private static JTilePath getPath()
{
JTile[] jt = new JTile[] { getRandomBooth(), new JTile(3101, 3243) };
JTilePath jp = new JTilePath(jt);
return jp;
}
private static JTile getRandomBooth()
{
JTile jt;
int i1, i;
i1 = r.nextInt(2);
i = 3243 - r.nextInt(2);
if(i1 == 1)
{
jt = new JTile(3092, 3245);
}
else
{
jt = new JTile(3092, i);
}
//Skips 3242 by the use of i1
return jt;
}
private static void goToBankAndBack()
{
JColor booth = new JColor(95, 89, 83);
getPath().walkToStart();
sleep(500 + r.nextInt(1500));
boolean found = false;
while(!found)
{
if(findColorDimension(booth, new Dimension(185, 155), new Dimension(225, 195), 4, 1, true)) { found = true; }
sleep(100);
}
rightClick(0, 0);
sleep(500 + r.nextInt(850));
findImageFromString("6,8,-1,-1,-16715536,-16715536,-1,-1,-1,-1,-16715536,-16715536,-1,-1,-16715536,-1,-1,-16715536,-1,-1,-16715536,-16715536,-1,-1,-1,-1,-16715536,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-16715536,-16715536,-1,-1,", new Dimension(0, 0), new Dimension(255, 300), 20, true);
leftClick(0, 0);
sleep(3500 - r.nextInt(1000));
while(findImageFromString("15,7,-5666463,-8232656,-7114171,-7311292,-7442877,-7442877,-7311292,-7311292,-7114171,-7114171,-7114171,-7114171,-7114171,-7114171,-7114171,-5666463,-8035535,-6917049,-7114171,-7114171,-7114171,-7114171,-7114171,-7114171,-7114171,-7114171,-7114171,-7311292,-7639999,-8034497,-5666463,-5666463,-8035535,-6917049,-6917049,-7114171,-7114171,-7311292,-7311292,-7311292,-7442877,-7837120,-8231619,-8626117,-9020360,-5666463,-8035535,-7114171,-7114171,-7311292,-7311292,-7311292,-7442877,-7837120,-8231619,-8626117,-9020360,-9480395,-9480395,-9217738,-7838414,-8430033,-7311292,-7442877,-7442877,-9875151,-9677773,-9480395,-9217738,-9020360,-8823239,-8626117,-8428740,-8231619,-8034497,-8430033,-7442877,-9020360,-9020360,-9217738,-9217738,-9020360,-8823239,-8626117,-8428740,-8231619,-8034497,-7837120,-7639999,-7442877,-8890068,-9547224,-8231619,-8231619,-8231619,-8231619,-8428740,-8231619,-8034497,-7837120,-7639999,-7442877,-7442877,-7442877,-7442877,", new Dimension(515, 210), new Dimension(757, 500), 5, true))
{
rightClick(0, 0);
sleep(500 + r.nextInt(1000));
findImageFromString("13,10,-1,-1,-1,-16715536,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-1,-16715536,-1,-1,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-1,-1,-1,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,-16715536,-16715536,-1,-1,", new Dimension(515, 210), new Dimension(757, 500), 11, true);
leftClick(0, 0);
sleep(1500 + r.nextInt(1000));
}
sleep(500);
getPath().walkToEnd();
}
public void lightFire(int x, int y, int ra) {
randomLeftClick(581, 230, 5);
sleep(500 - r.nextInt(5));
randomLeftClick(x,y, ra);
sleep(5000 + r.nextInt(200));
}
public void FMprocess ()
{
lightFire(621, 230, 6);
lightFire(663, 231, 6);
lightFire(701, 227, 6);
lightFire(580, 264, 6);
lightFire(618, 266, 6);
lightFire(663, 267, 6);
lightFire(704, 262, 6);
lightFire(580, 300, 6);
lightFire(618, 302, 6);
lightFire(663, 300, 6);
lightFire(704, 301, 6);
lightFire(582, 336, 6);
lightFire(618, 337, 6);
lightFire(664, 335, 6);
lightFire(704, 336, 6);
lightFire(580, 374, 6);
lightFire(618, 376, 6);
lightFire(665, 379, 6);
lightFire(703, 375, 6);
lightFire(580, 410, 6);
lightFire(618, 414, 6);
lightFire(663, 409, 6);
lightFire(704, 412, 6);
lightFire(583, 446, 6);
lightFire(615, 448, 6);
lightFire(660, 443, 6);
lightFire(701, 445, 6);
}
public static void goFM()
{
fmPath.walkToEnd();
}
public static void gocut()
{
cutbackPath.walkToEnd();
}
private static void prompt()
{
while(true)
{
String s = JOptionPane.showInputDialog("Please Type The Number For What You Wanna Do\n" +
"1 = Drop 2 = Banker 3 = Fire Make");
try
{
iWantToDo = Integer.parseInt(s);
if((iWantToDo > 3) || (iWantToDo < 1)) //Not valid option
log("You did not type a valid option... please try again");
else
break; //If all is correct they can continue
}
catch(NumberFormatException e) //Did not enter a number
{
log("You did not type a valid option... please try again");
}
}
}
private static String getStatus()
{
String s = "";
count += 27;
xp = 37.5F * count;
if(iWantToDo == 1)
{
s = "\n[DaFreshOak] - Status Report\n" +
"[DaFreshOak] - Logs Droped: " + Integer.toString(count) + "\n" +
"[DaFreshOak] - XP Gained: " + Float.toString(xp) + "\n";
}
else if(iWantToDo == 2)
{
s = "\n[DaFreshOak] - Status Report\n" +
"[DaFreshOak] - Logs Gained: " + Integer.toString(count) + "\n" +
"[DaFreshOak] - XP Gained: " + Float.toString(xp) + "\n";
}
else if(iWantToDo == 3)
{
s = "\n[DaFreshOak] - Status Report\n" +
"[DaFreshOak] - Logs Burned: " + Integer.toString(count) + "\n" +
"[DaFreshOak] - XP Gained: " + Float.toString(xp) + "\n";
}
return s;
}
public void jbot()
{
log("\nDraynor Oak FM'er \nMade By: Da-man9191 & Fresh Prince");
log("Ultimate Draynor Oak Script!");
System.out.println(); //This make the DOS window look cleaner...
pressDPad(1, (1000 + r.nextInt(100))); //Makes compass go all da way up
if(!(distanceToTile(new JTile(3101, 3243)) == 0)) //Less suspecious;)
goToTile(new JTile(3101, 3243));
prompt(); //Prompt user for what they wanna do
while (true)
{
cut(); //Cut trees
if(iWantToDo == 1) //Depending on what they wanna do
{
drop();
}
else if(iWantToDo == 2)
{
goToBankAndBack();
}
else if(iWantToDo == 3)
{
goFM();
FMprocess();
gocut();
}
System.out.println(getStatus()); //Show the status report and update variables
}
}
}
DaFreshOak.zip
Credits:
Da-Man9191 and myself, Fresh Prince - For making the script
Speedster239 - For making JMacro of course!
Stonebot - He helped both Da-Man9191 and I, in different ways!
Ryan and Jay - Inspiration! How? Well it seems that they are releasing scripts together, now this has set a goal for me and Da-Man9191, and we shall PWN them!
Nubs (pronounced N-uhh-bb-s) - For being Nubs!
If you like this, please post your comments and atleast a Thank You!
PLEASE STAY ON TOPIC
