Ok I detied the stuff it said to and downloade Jmacro 1.84 and now i need to no how to run it. The script is below just took my username and pass out. Please do help me. msn= [email protected]
import java.util.Random;
import java.awt.Dimension;
public class GuildMiner
{
/*------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------CONFIG VARIABLES------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------*/
//What ever is set to -2 will be asked at script startup
private static String username = "username";
private static String password = "password";
//How long would you like to wait when using antiban to log in?
private static int waitTime = 3; //In Minutes
//How many loads before using antiban?
private static int maxLoads = 199;
//How long does it take you to mine coal/mith?
private static double rockTime = 6.5; //In Seconds
//true = you will bank
//false = you will powermine
private static boolean bank = true;
//Would you like to mine mith(true or false)
private static boolean mineMith = true;
/*------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------DON'T TOUCH THIS CODE!---------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------*/
private static int currentLoads = 0;
private static Random r = new Random();
//Ore
//old coal color - 57, 57, 39
private static JColor coal = new JColor(61, 61, 42);
private static JColor mith = new JColor(80, 81, 119);
private static JColor stairs = new JColor(111, 82, 40);
private static JColor upStairs = new JColor(69, 51, 24);
//Randoms
private static JColor genie = new JColor(91, 166, 251);
private static JColor lamp = new JColor(176, 175, 21);
private static JColor capHook = new JColor(73, 49, 34);
private static JColor blackSuitGuy = new JColor(6, 37, 48);
private static JColor mysteryBox = new JColor(78, 72, 72);
private static JColor clickHereToContinue = new JColor(107, 28, 9);
//Routes To Guild
private static JTile[] bankToGuild = new JTile[] { new JTile(3015, 3355), new JTile(3022, 3361),new JTile(3033, 3356),new JTile(3031, 3344),new JTile(3023, 3337) };
private static JTile[] bankToGuild2 = new JTile[] { new JTile(3015, 3355), new JTile(3024, 3351), new JTile(3023, 3337) };
private static JTile[] bankToGuild3 = new JTile[] { new JTile(3015, 3355), new JTile(3025, 3364),new JTile(3035, 3359),new JTile(3032, 3348), new JTile(3023, 3337) };
//Routes To Rocks
private static JTile[] stairsToRocks = new JTile[] { new JTile(3026, 9738),new JTile(3038, 9742),new JTile(3050, 9742) };
private static JTile[] stairsToRocks2 = new JTile[] { new JTile(3022, 9739), new JTile(3026, 9738),new JTile(3040, 9736),new JTile(3050, 9742) };
private static JTile[] randomPathToGuild()
{
int use = r.nextInt(2);
JTile[] result;
switch(use)
{
case 0:
result = bankToGuild;
break;
case 1:
result = bankToGuild2;
break;
case 2:
result = bankToGuild3;
break;
default:
result = bankToGuild;
}
return result;
}
private static JTile[] randomPathToRocks()
{
int use = r.nextInt(1);
JTile[] result;
switch(use)
{
case 0:
result = stairsToRocks;
break;
case 1:
result = stairsToRocks2;
break;
default:
result = stairsToRocks;
}
return result;
}
public static void compassSouth()
{
//Point All The Way Up
Bot.keyboard.pressDPad(1, (1000 + r.nextInt(100)));
//Point Compass South
Bot.keyboard.pressDPad((3 + r.nextInt(2)), 1850);
Bot.log("Compass is now pointing south");
}
public static void requestInfo()
{
Bot.log("\n\n--------------------------------------------------------------------------" +
"\n GuildMiner - Banks/Powermines in Falador East Bank" +
"\n Made By: Da-man9191" +
"\n--------------------------------------------------------------------------\n");
Bot.log("Starting Script...");
Bot.sleep(r.nextInt(500));
}
public static void antiBan()
{
Bot.mouse.moveSmooth(755, 15);
Bot.mouse.leftClick(0, 0);
Bot.sleep(1000);
Bot.mouse.moveSmooth(640, 375);
Bot.mouse.leftClick(0, 0);
login(true);
}
public static void login(boolean antiban)
{
Bot.sleep(3500);
Bot.mouse.moveSmooth(470, 290);
Bot.mouse.leftClick(0, 0);
Bot.sleep(1000);
Bot.mouse.moveSmooth(350, 260);
Bot.mouse.leftClick(0, 0);
Bot.sleep(500);
Bot.keyboard.sendKeyString(username);
Bot.sleep(1000 + r.nextInt(2500));
Bot.keyboard.sendKeyString(password);
if(antiban) { Bot.sleep(r.nextInt(500) + (60000 * waitTime)); /*Waits a minimum of One minute*/ }
Bot.mouse.moveSmooth(300, 325);
Bot.mouse.leftClick(0, 0);
while(!Bot.color.findColor(clickHereToContinue, 1, 1, false))
{
Bot.sleep(1000 + r.nextInt(500));
}
Bot.color.findColor(clickHereToContinue, 1, 1, true); //Clicks here to continue
Bot.mouse.leftClick(0, 0);
Bot.sleep(3000 + r.nextInt(1500));
if(antiban) { Bot.log("You just used anti-ban"); }
else { Bot.log("You have been logged in"); }
}
public static void mine()
{
Bot.log("minning..");
while(!(Bot.image.findImage("scripts/images/GuildMiner/mith.png", new Dimension(685, 430), new Dimension(730, 465), 3, false) ||
Bot.image.findImage("scripts/images/GuildMiner/coal.png", new Dimension(685, 430), new Dimension(730, 465), 3, false)))
{
Bot.color.findColorDimension(coal, new Dimension(0, 0), new Dimension(515, 210), 3, 3, true);
if(mineMith)
{ Bot.color.findColorDimension(mith, new Dimension(0, 0), new Dimension(515, 210), 7, 3, true); }
Bot.mouse.leftClick(0, 0);
while(Bot.tiles.isMoving())
{
Bot.sleep(2500 + r.nextInt(500));
}
checkRandoms();
Bot.sleep((int)(rockTime * 1000));
}
Bot.log("Your inventory is full");
}
public static void drop()
{
Bot.log("Dropping ore...");
for(byte ore = 2; ore <= 28; ore++)
{
Bot.theInventory.goToSlot(ore);
Bot.mouse.rightClick(0, 0);
Bot.sleep(500 + r.nextInt(1500));
Bot.image.findImage("scripts/images/autoyew/drop.png", new Dimension(515, 210), new Dimension(757, 500), 10, true);
Bot.mouse.leftClick(0, 0);
//Bot.mouse.leftClick(Bot.mouse.getMouseX(), (Bot.mouse.getMouseY() + 42));
Bot.sleep(500 + r.nextInt(2500));
}
Bot.log("All ore has been dropped");
}
public static void jbot()
{
requestInfo();
login(false);
compassSouth();
while(true)
{
if(bank)
{
JTilePath p = new JTilePath(randomPathToGuild());
JTilePath p2 = new JTilePath(randomPathToRocks());
p.walkToEnd();
//Search for stairs
while(Bot.tiles.getTileY() < 4000)
{
Bot.color.findColor(stairs, 4, 4, true);
Bot.mouse.leftClick(0, 0);
while(Bot.tiles.isMoving())
{
Bot.sleep(1000 + r.nextInt(101));
}
}
//Walk to final destination
p2.walkToEnd();
}
mine();
if(bank)
{
//Walk Back To Stairs
int x = Bot.tiles.getTileX();
if(x > 3041) { Bot.tiles.goToTile(new JTile(3041, 9741)); }
if(x > 3029) { Bot.tiles.goToTile(new JTile(3029, 9737)); }
Bot.tiles.goToTile(new JTile(3022, 9739));
//Find stairs
while(Bot.tiles.getTileY() > 4000) //Just in case it does not find color...
{
Bot.color.findColorDimension(upStairs, new Dimension(310, 110), new Dimension(490, 230), 5, 4, true);
Bot.mouse.leftClick(0, 0);
while(Bot.tiles.isMoving())
{
Bot.sleep(1000 + r.nextInt(101));
}
}
//Walk To Bank
JTilePath p = new JTilePath(randomPathToGuild());
p.walkToStart();
//openBank
}
else { drop(); }
currentLoads++;
if(currentLoads >= maxLoads)
{
currentLoads = 0; //Reset
antiBan();
compassSouth();
}
}
}
//Randoms
public static void checkRandoms()
{
checkBlackSuitGuy();
checkCapHook();
checkMysteryBox();
checkGenie();
checkPic();
}
public static void checkBlackSuitGuy()
{
if(Bot.color.findColor(blackSuitGuy, 3, 1, false))
{
Bot.color.findColor(blackSuitGuy, 3, 1, true);
Bot.mouse.leftClick(0, 0);
Bot.sleep(500);
Bot.mouse.leftClick(250, 445);
}
}
public static void checkCapHook()
{
if(Bot.color.findColor(capHook, 1, 1, false))
{
Bot.color.findColor(capHook, 1, 1, true);
Bot.mouse.leftClick(0, 0);
Bot.sleep(500);
Bot.mouse.leftClick(250, 445);
}
}
public static void checkMysteryBox()
{
if(Bot.color.findColor(mysteryBox, 1, 1, false))
{
Bot.mouse.moveSmooth(755, 15);
Bot.mouse.leftClick(0, 0);
Bot.sleep(1000);
Bot.mouse.moveSmooth(640, 375);
Bot.mouse.leftClick(0, 0);
Bot.stop(); //End of script, no solution to this problem...
}
}
public static void checkGenie()
{
if(Bot.color.findColor(genie, 1, 1, false))
{
Bot.color.findColor(genie, 1, 1, true);
Bot.mouse.leftClick(0, 0);
Bot.sleep(500);
Bot.color.findColor(lamp, 3, 1, true);
Bot.mouse.leftClick(0, 0);
Bot.sleep(1000);
Bot.mouse.leftClick(245,225); //Clicks Woodcutting
}
}
public static void checkPic()
{
if(!Bot.image.findImage("scripts/images/GuildMiner/pic.png", new Dimension(515, 210), new Dimension(757, 500), 15, false))
{
Bot.log("You are going to bank for another pic");
JTilePath p = new JTilePath(randomPathToGuild());
p.walkToStart();
//openBank
Bot.mouse.moveSmooth(95, 75);
Bot.mouse.leftClick(0, 0);
Bot.sleep(500 + r.nextInt(2500));
p.walkToEnd();
}
}
}
import java.util.Random;
import java.awt.Dimension;
public class GuildMiner
{
/*------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------CONFIG VARIABLES------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------*/
//What ever is set to -2 will be asked at script startup
private static String username = "username";
private static String password = "password";
//How long would you like to wait when using antiban to log in?
private static int waitTime = 3; //In Minutes
//How many loads before using antiban?
private static int maxLoads = 199;
//How long does it take you to mine coal/mith?
private static double rockTime = 6.5; //In Seconds
//true = you will bank
//false = you will powermine
private static boolean bank = true;
//Would you like to mine mith(true or false)
private static boolean mineMith = true;
/*------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------DON'T TOUCH THIS CODE!---------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------------------------*/
private static int currentLoads = 0;
private static Random r = new Random();
//Ore
//old coal color - 57, 57, 39
private static JColor coal = new JColor(61, 61, 42);
private static JColor mith = new JColor(80, 81, 119);
private static JColor stairs = new JColor(111, 82, 40);
private static JColor upStairs = new JColor(69, 51, 24);
//Randoms
private static JColor genie = new JColor(91, 166, 251);
private static JColor lamp = new JColor(176, 175, 21);
private static JColor capHook = new JColor(73, 49, 34);
private static JColor blackSuitGuy = new JColor(6, 37, 48);
private static JColor mysteryBox = new JColor(78, 72, 72);
private static JColor clickHereToContinue = new JColor(107, 28, 9);
//Routes To Guild
private static JTile[] bankToGuild = new JTile[] { new JTile(3015, 3355), new JTile(3022, 3361),new JTile(3033, 3356),new JTile(3031, 3344),new JTile(3023, 3337) };
private static JTile[] bankToGuild2 = new JTile[] { new JTile(3015, 3355), new JTile(3024, 3351), new JTile(3023, 3337) };
private static JTile[] bankToGuild3 = new JTile[] { new JTile(3015, 3355), new JTile(3025, 3364),new JTile(3035, 3359),new JTile(3032, 3348), new JTile(3023, 3337) };
//Routes To Rocks
private static JTile[] stairsToRocks = new JTile[] { new JTile(3026, 9738),new JTile(3038, 9742),new JTile(3050, 9742) };
private static JTile[] stairsToRocks2 = new JTile[] { new JTile(3022, 9739), new JTile(3026, 9738),new JTile(3040, 9736),new JTile(3050, 9742) };
private static JTile[] randomPathToGuild()
{
int use = r.nextInt(2);
JTile[] result;
switch(use)
{
case 0:
result = bankToGuild;
break;
case 1:
result = bankToGuild2;
break;
case 2:
result = bankToGuild3;
break;
default:
result = bankToGuild;
}
return result;
}
private static JTile[] randomPathToRocks()
{
int use = r.nextInt(1);
JTile[] result;
switch(use)
{
case 0:
result = stairsToRocks;
break;
case 1:
result = stairsToRocks2;
break;
default:
result = stairsToRocks;
}
return result;
}
public static void compassSouth()
{
//Point All The Way Up
Bot.keyboard.pressDPad(1, (1000 + r.nextInt(100)));
//Point Compass South
Bot.keyboard.pressDPad((3 + r.nextInt(2)), 1850);
Bot.log("Compass is now pointing south");
}
public static void requestInfo()
{
Bot.log("\n\n--------------------------------------------------------------------------" +
"\n GuildMiner - Banks/Powermines in Falador East Bank" +
"\n Made By: Da-man9191" +
"\n--------------------------------------------------------------------------\n");
Bot.log("Starting Script...");
Bot.sleep(r.nextInt(500));
}
public static void antiBan()
{
Bot.mouse.moveSmooth(755, 15);
Bot.mouse.leftClick(0, 0);
Bot.sleep(1000);
Bot.mouse.moveSmooth(640, 375);
Bot.mouse.leftClick(0, 0);
login(true);
}
public static void login(boolean antiban)
{
Bot.sleep(3500);
Bot.mouse.moveSmooth(470, 290);
Bot.mouse.leftClick(0, 0);
Bot.sleep(1000);
Bot.mouse.moveSmooth(350, 260);
Bot.mouse.leftClick(0, 0);
Bot.sleep(500);
Bot.keyboard.sendKeyString(username);
Bot.sleep(1000 + r.nextInt(2500));
Bot.keyboard.sendKeyString(password);
if(antiban) { Bot.sleep(r.nextInt(500) + (60000 * waitTime)); /*Waits a minimum of One minute*/ }
Bot.mouse.moveSmooth(300, 325);
Bot.mouse.leftClick(0, 0);
while(!Bot.color.findColor(clickHereToContinue, 1, 1, false))
{
Bot.sleep(1000 + r.nextInt(500));
}
Bot.color.findColor(clickHereToContinue, 1, 1, true); //Clicks here to continue
Bot.mouse.leftClick(0, 0);
Bot.sleep(3000 + r.nextInt(1500));
if(antiban) { Bot.log("You just used anti-ban"); }
else { Bot.log("You have been logged in"); }
}
public static void mine()
{
Bot.log("minning..");
while(!(Bot.image.findImage("scripts/images/GuildMiner/mith.png", new Dimension(685, 430), new Dimension(730, 465), 3, false) ||
Bot.image.findImage("scripts/images/GuildMiner/coal.png", new Dimension(685, 430), new Dimension(730, 465), 3, false)))
{
Bot.color.findColorDimension(coal, new Dimension(0, 0), new Dimension(515, 210), 3, 3, true);
if(mineMith)
{ Bot.color.findColorDimension(mith, new Dimension(0, 0), new Dimension(515, 210), 7, 3, true); }
Bot.mouse.leftClick(0, 0);
while(Bot.tiles.isMoving())
{
Bot.sleep(2500 + r.nextInt(500));
}
checkRandoms();
Bot.sleep((int)(rockTime * 1000));
}
Bot.log("Your inventory is full");
}
public static void drop()
{
Bot.log("Dropping ore...");
for(byte ore = 2; ore <= 28; ore++)
{
Bot.theInventory.goToSlot(ore);
Bot.mouse.rightClick(0, 0);
Bot.sleep(500 + r.nextInt(1500));
Bot.image.findImage("scripts/images/autoyew/drop.png", new Dimension(515, 210), new Dimension(757, 500), 10, true);
Bot.mouse.leftClick(0, 0);
//Bot.mouse.leftClick(Bot.mouse.getMouseX(), (Bot.mouse.getMouseY() + 42));
Bot.sleep(500 + r.nextInt(2500));
}
Bot.log("All ore has been dropped");
}
public static void jbot()
{
requestInfo();
login(false);
compassSouth();
while(true)
{
if(bank)
{
JTilePath p = new JTilePath(randomPathToGuild());
JTilePath p2 = new JTilePath(randomPathToRocks());
p.walkToEnd();
//Search for stairs
while(Bot.tiles.getTileY() < 4000)
{
Bot.color.findColor(stairs, 4, 4, true);
Bot.mouse.leftClick(0, 0);
while(Bot.tiles.isMoving())
{
Bot.sleep(1000 + r.nextInt(101));
}
}
//Walk to final destination
p2.walkToEnd();
}
mine();
if(bank)
{
//Walk Back To Stairs
int x = Bot.tiles.getTileX();
if(x > 3041) { Bot.tiles.goToTile(new JTile(3041, 9741)); }
if(x > 3029) { Bot.tiles.goToTile(new JTile(3029, 9737)); }
Bot.tiles.goToTile(new JTile(3022, 9739));
//Find stairs
while(Bot.tiles.getTileY() > 4000) //Just in case it does not find color...
{
Bot.color.findColorDimension(upStairs, new Dimension(310, 110), new Dimension(490, 230), 5, 4, true);
Bot.mouse.leftClick(0, 0);
while(Bot.tiles.isMoving())
{
Bot.sleep(1000 + r.nextInt(101));
}
}
//Walk To Bank
JTilePath p = new JTilePath(randomPathToGuild());
p.walkToStart();
//openBank
}
else { drop(); }
currentLoads++;
if(currentLoads >= maxLoads)
{
currentLoads = 0; //Reset
antiBan();
compassSouth();
}
}
}
//Randoms
public static void checkRandoms()
{
checkBlackSuitGuy();
checkCapHook();
checkMysteryBox();
checkGenie();
checkPic();
}
public static void checkBlackSuitGuy()
{
if(Bot.color.findColor(blackSuitGuy, 3, 1, false))
{
Bot.color.findColor(blackSuitGuy, 3, 1, true);
Bot.mouse.leftClick(0, 0);
Bot.sleep(500);
Bot.mouse.leftClick(250, 445);
}
}
public static void checkCapHook()
{
if(Bot.color.findColor(capHook, 1, 1, false))
{
Bot.color.findColor(capHook, 1, 1, true);
Bot.mouse.leftClick(0, 0);
Bot.sleep(500);
Bot.mouse.leftClick(250, 445);
}
}
public static void checkMysteryBox()
{
if(Bot.color.findColor(mysteryBox, 1, 1, false))
{
Bot.mouse.moveSmooth(755, 15);
Bot.mouse.leftClick(0, 0);
Bot.sleep(1000);
Bot.mouse.moveSmooth(640, 375);
Bot.mouse.leftClick(0, 0);
Bot.stop(); //End of script, no solution to this problem...
}
}
public static void checkGenie()
{
if(Bot.color.findColor(genie, 1, 1, false))
{
Bot.color.findColor(genie, 1, 1, true);
Bot.mouse.leftClick(0, 0);
Bot.sleep(500);
Bot.color.findColor(lamp, 3, 1, true);
Bot.mouse.leftClick(0, 0);
Bot.sleep(1000);
Bot.mouse.leftClick(245,225); //Clicks Woodcutting
}
}
public static void checkPic()
{
if(!Bot.image.findImage("scripts/images/GuildMiner/pic.png", new Dimension(515, 210), new Dimension(757, 500), 15, false))
{
Bot.log("You are going to bank for another pic");
JTilePath p = new JTilePath(randomPathToGuild());
p.walkToStart();
//openBank
Bot.mouse.moveSmooth(95, 75);
Bot.mouse.leftClick(0, 0);
Bot.sleep(500 + r.nextInt(2500));
p.walkToEnd();
}
}
}
