Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.Script;
- import java.awt.*;
- import javax.imageio.ImageIO;
- import javax.swing.*;
- import java.io.IOException;
- import java.net.MalformedURLException;
- import java.net.URL;
- import org.rsbot.event.events.MessageEvent;
- import org.rsbot.event.listeners.MessageListener;
- import org.rsbot.event.listeners.MessageListener;
- import org.rsbot.event.listeners.PaintListener;
- import org.rsbot.script.methods.Skills;
- import org.rsbot.script.methods.Game;
- import org.rsbot.script.util.Filter;
- import org.rsbot.script.wrappers.RSArea;
- import org.rsbot.script.wrappers.RSGroundItem;
- import org.rsbot.script.wrappers.RSNPC;
- import org.rsbot.script.wrappers.RSObject;
- import org.rsbot.script.wrappers.RSTile;
- import org.rsbot.script.wrappers.RSTilePath;
- import org.rsbot.script.wrappers.RSWeb;
- import org.rsbot.script.methods.*;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.event.MouseEvent;
- import java.awt.event.MouseListener;
- import java.awt.event.MouseMotionListener;
- import java.awt.image.BufferedImage;
- @ScriptManifest(authors = {"eShade"}, keywords = {"woodcutting"}, name = "ShadeChop", description = "AIO woodcutter, multiple locations, banking and powerchopping!", version = 1.9)
- public class ShadeChop extends Script implements PaintListener, MessageListener, MouseListener, MouseMotionListener {
- //Paths to banks
- RSTile[] walkToBankTower = {
- new RSTile(2701, 3398), new RSTile(2700, 3391),
- new RSTile(2695, 3391), new RSTile(2690, 3392),
- new RSTile(2687, 3396), new RSTile(2687, 3401),
- new RSTile(2687, 3406), new RSTile(2687, 3411),
- new RSTile(2687, 3416), new RSTile(2691, 3420),
- new RSTile(2696, 3424), new RSTile(2700, 3427),
- new RSTile(2704, 3430), new RSTile(2709, 3432),
- new RSTile(2714, 3434), new RSTile(2719, 3434),
- new RSTile(2724, 3434), new RSTile(2728, 3437),
- new RSTile(2730, 3442), new RSTile(2732, 3447),
- new RSTile(2731, 3452), new RSTile(2729, 3457),
- new RSTile(2726, 3461), new RSTile(2724, 3466),
- new RSTile(2724, 3471), new RSTile(2725, 3476),
- new RSTile(2725, 3481), new RSTile(2725, 3486),
- new RSTile(2725, 3491)
- };
- RSTile[] walkToBankEastVarrock = {
- new RSTile(3279, 3415), new RSTile(3283, 3418),
- new RSTile(3284, 3423), new RSTile(3278, 3428),
- new RSTile(3273, 3429), new RSTile(3268, 3429),
- new RSTile(3263, 3429), new RSTile(3258, 3429),
- new RSTile(3253, 3429), new RSTile(3253, 3424),
- new RSTile(3252, 3421)
- };
- RSTile[] walkToBankRimmington = {
- new RSTile(2933, 3233), new RSTile(2938, 3233),
- new RSTile(2945, 3232), new RSTile(2950, 3231),
- new RSTile(2955, 3229), new RSTile(2959, 3226),
- new RSTile(2964, 3226), new RSTile(2969, 3225),
- new RSTile(2974, 3225), new RSTile(2979, 3223),
- new RSTile(2984, 3223), new RSTile(2989, 3224),
- new RSTile(2994, 3226), new RSTile(2997, 3230),
- new RSTile(2999, 3235), new RSTile(3002, 3239),
- new RSTile(3007, 3241), new RSTile(3012, 3241),
- new RSTile(3017, 3241), new RSTile(3022, 3241),
- new RSTile(3027, 3241), new RSTile(3028, 3236),
- new RSTile(3033, 3236), new RSTile(3038, 3236),
- new RSTile(3043, 3236)
- };
- RSTile[] walkToBankPortSarim = {
- new RSTile(3057, 3254), new RSTile(3051, 3254),
- new RSTile(3046, 3253), new RSTile(3043, 3249),
- new RSTile(3042, 3244), new RSTile(3041, 3239),
- new RSTile(3044, 3235)
- };
- RSTile[] walkToBankGE = {
- new RSTile(3209, 3501), new RSTile(3204, 3501),
- new RSTile(3199, 3501), new RSTile(3195, 3498),
- new RSTile(3194, 3493), new RSTile(3193, 3488),
- new RSTile(3188, 3486), new RSTile(3183, 3488),
- new RSTile(3178, 3488), new RSTile(3173, 3490),
- new RSTile(3168, 3490)
- };
- RSTile[] walkToBankIvyCastle = {
- new RSTile(3218, 3500), new RSTile(3213, 3501),
- new RSTile(3208, 3502), new RSTile(3203, 3502),
- new RSTile(3198, 3500), new RSTile(3196, 3495),
- new RSTile(3193, 3491), new RSTile(3190, 3487),
- new RSTile(3185, 3487), new RSTile(3180, 3488),
- new RSTile(3175, 3488), new RSTile(3170, 3489)
- };
- RSTile[] walkToBankGnome = {
- new RSTile(2487, 3399), new RSTile(2482, 3400),
- new RSTile(2477, 3401), new RSTile(2472, 3403),
- new RSTile(2466, 3404), new RSTile(2461, 3404),
- new RSTile(2456, 3405), new RSTile(2451, 3407),
- new RSTile(2448, 3411), new RSTile(2444, 3414)
- };
- RSTile[] walkToBankVarrockBank = {
- new RSTile(3157, 3456), new RSTile(3162, 3456),
- new RSTile(3167, 3456), new RSTile(3172, 3456),
- new RSTile(3177, 3454), new RSTile(3182, 3453),
- new RSTile(3186, 3450), new RSTile(3186, 3445),
- new RSTile(3186, 3440)
- };
- RSTile[] walkToBankDraynor = {
- new RSTile(3088, 3231), new RSTile(3087, 3236),
- new RSTile(3086, 3241), new RSTile(3085, 3246),
- new RSTile(3089, 3249), new RSTile(3091, 3244)
- };
- RSTile[] walkToBankFalador = {new RSTile(3003, 3317), new RSTile(3017, 3317), new RSTile(3005, 3330), new RSTile(3006, 3343), new RSTile (3012, 3355)};
- RSTile[] walkToBankSeersMaples = {new RSTile(2726, 3492)};
- RSTile[] walkToBankCatherby = {
- new RSTile(2758, 3431), new RSTile(2763, 3431),
- new RSTile(2768, 3431), new RSTile(2773, 3431),
- new RSTile(2778, 3431), new RSTile(2783, 3431),
- new RSTile(2788, 3433), new RSTile(2793, 3434),
- new RSTile(2798, 3432), new RSTile(2803, 3432),
- new RSTile(2808, 3434), new RSTile(2808, 3439)
- };
- RSTile[] walkToBankEdgeville = { new RSTile(3086, 3470), new RSTile(3091, 3469),
- new RSTile(3093, 3474), new RSTile(3094, 3479),
- new RSTile(3091, 3483), new RSTile(3088, 3487),
- new RSTile(3091, 3491)
- };
- RSTile[] walkToBankSeers = {new RSTile(2711, 3462), new RSTile(2720, 3467), new RSTile(2724, 3477), new RSTile(2725, 3490) };
- //Paths to trees
- RSTile[] walkToTreesIvyCastle = {
- new RSTile(3170, 3489), new RSTile(3175, 3489),
- new RSTile(3180, 3489), new RSTile(3185, 3489),
- new RSTile(3190, 3489), new RSTile(3195, 3489),
- new RSTile(3195, 3494), new RSTile(3197, 3499),
- new RSTile(3201, 3502), new RSTile(3206, 3502),
- new RSTile(3211, 3502), new RSTile(3216, 3501),
- new RSTile(3220, 3498)
- };
- RSTile[] walkToTreesRimmington = {
- new RSTile(3042, 3236), new RSTile(3037, 3236),
- new RSTile(3032, 3236), new RSTile(3027, 3236),
- new RSTile(3026, 3241), new RSTile(3022, 3244),
- new RSTile(3017, 3244), new RSTile(3012, 3242),
- new RSTile(3007, 3242), new RSTile(3002, 3243),
- new RSTile(2998, 3246), new RSTile(2994, 3249),
- new RSTile(2989, 3251), new RSTile(2986, 3255),
- new RSTile(2981, 3257), new RSTile(2976, 3257),
- new RSTile(2971, 3257), new RSTile(2966, 3257),
- new RSTile(2963, 3253), new RSTile(2962, 3248),
- new RSTile(2959, 3244), new RSTile(2954, 3243),
- new RSTile(2949, 3242), new RSTile(2946, 3238),
- new RSTile(2942, 3235), new RSTile(2937, 3233),
- new RSTile(2930, 3233)
- };
- RSTile[] walkToTreesGnome = {
- new RSTile(2444, 3414), new RSTile(2446, 3409),
- new RSTile(2451, 3407), new RSTile(2456, 3405),
- new RSTile(2461, 3405), new RSTile(2466, 3405),
- new RSTile(2471, 3404), new RSTile(2476, 3403),
- new RSTile(2481, 3401), new RSTile(2486, 3399)
- };
- RSTile[] walkToTreesPortSarim = {
- new RSTile(3047, 3236), new RSTile(3042, 3236),
- new RSTile(3042, 3241), new RSTile(3042, 3246),
- new RSTile(3047, 3247), new RSTile(3051, 3250),
- new RSTile(3055, 3253), new RSTile(3060, 3253)
- };
- RSTile[] walkToTreesEastVarrock = {
- new RSTile(3253, 3421), new RSTile(3253, 3426),
- new RSTile(3258, 3427), new RSTile(3263, 3428),
- new RSTile(3268, 3428), new RSTile(3273, 3428),
- new RSTile(3278, 3428), new RSTile(3283, 3426),
- new RSTile(3283, 3419), new RSTile(3280, 3415)
- };
- RSTile[] walkToTreesGE = {
- new RSTile(3168, 3489), new RSTile(3173, 3488),
- new RSTile(3178, 3487), new RSTile(3183, 3487),
- new RSTile(3188, 3487), new RSTile(3193, 3488),
- new RSTile(3195, 3493), new RSTile(3195, 3498),
- new RSTile(3199, 3501), new RSTile(3204, 3503), new RSTile(3212, 3502), new RSTile(3209, 3502)
- };
- RSTile[] walkToTreesVarrockBank = {
- new RSTile(3186, 3442), new RSTile(3186, 3447),
- new RSTile(3183, 3451), new RSTile(3178, 3451),
- new RSTile(3173, 3451), new RSTile(3168, 3451),
- new RSTile(3163, 3453), new RSTile(3158, 3455)
- };
- RSTile[] walkToTreesTower = {
- new RSTile(2725, 3490), new RSTile(2725, 3485),
- new RSTile(2724, 3480), new RSTile(2723, 3475),
- new RSTile(2722, 3470), new RSTile(2722, 3464),
- new RSTile(2722, 3459), new RSTile(2722, 3454),
- new RSTile(2722, 3449), new RSTile(2722, 3444),
- new RSTile(2722, 3439), new RSTile(2722, 3434),
- new RSTile(2722, 3429), new RSTile(2722, 3424),
- new RSTile(2722, 3419), new RSTile(2722, 3414),
- new RSTile(2722, 3409), new RSTile(2720, 3404),
- new RSTile(2717, 3400), new RSTile(2715, 3395),
- new RSTile(2712, 3391), new RSTile(2707, 3391),
- new RSTile(2702, 3393), new RSTile(2701, 3398)
- };
- RSTile[] walkToTreesDraynor = {new RSTile(3088, 3236)};
- RSTile[] walkToTreesFalador = {new RSTile (3012, 3355), new RSTile(3006, 3343), new RSTile(3005, 3330), new RSTile(3017, 3317), new RSTile(3003, 3317)};
- RSTile[] walkToTreesSeersMaples = {new RSTile(2728, 3500)};
- RSTile[] walkToTreesCatherby = {
- new RSTile(2809, 3440), new RSTile(2809, 3435),
- new RSTile(2803, 3434), new RSTile(2798, 3433),
- new RSTile(2793, 3433), new RSTile(2788, 3433),
- new RSTile(2783, 3432), new RSTile(2778, 3431),
- new RSTile(2773, 3430), new RSTile(2768, 3430),
- new RSTile(2763, 3430), new RSTile(2758, 3430)
- };
- RSTile[] walkToTreesEdgeville = {new RSTile(3094, 3490), new RSTile(3089, 3491),
- new RSTile(3091, 3486), new RSTile(3091, 3481),
- new RSTile(3094, 3477), new RSTile(3094, 3472),
- new RSTile(3089, 3470), new RSTile(3085, 3473)
- };
- RSTile[] walkToTreesSeers = {new RSTile(2725, 3490), new RSTile(2724, 3477), new RSTile(2720, 3467), new RSTile(2711, 3462) };
- // Tree ID's
- int[] yewTree = {1309, 38755, 40411, 38755, 38782, 38755};
- int[] mapleTree = {1307};
- int[] magicTree = {1306};
- int[] willowTree = {5551, 5552, 5553, 1308, 8481, 8482, 8483, 8484, 8485, 8486, 8487, 8488, 38627, 38616, 38627, 2210, 142, 2372, 139};
- int[] oakTree = {1281};
- int[] normalTree = {1278};
- int[] ivyTree = {46324, 46320, 46318, 46322};
- int[] teakTree = {9036};
- int[] mahoganyTree = {9034};
- //Log ID's
- int yewLog = 1515;
- int mapleLog = 1517;
- int magicLog = 1513;
- int willowLog = 1519;
- int oakLog = 1512;
- int normalLog = 1511;
- //RS Areas
- // Variables
- private int[] treeID;
- private int logID;
- private RSTile[] placeToCut;
- private RSTile[] placeToBank;
- private int bankerID;
- RSArea area;
- private int mousespeed1;
- public boolean ispowerchopping;
- public boolean antiban;
- public boolean showhide = true;
- public String treesChopping = "";
- public String location = "";
- public boolean gnomeTrees;
- private int hatchetID[] = { 1349, 1351, 1353, 1355, 1357, 1359, 1361, 6739, 13470 };
- private int depositBox = 36788;
- private int gnomeStairsUp = 1742;
- private int gnomeStairsDown = 1744;
- private int[] birdNestID = { 5070, 5071, 5072, 5073, 5074, 5075, 5076, 7413, 11966 };
- private String status = "Loading...";
- private String action = "Chop";
- private int gainedExp0;
- private int startExp;
- boolean showPaint = true;
- private int gnomeBankerID = 166;
- private int gainedLevel;
- int door = 21405;
- public int fexpHour = 0;
- private static final Color MOUSE_COLOR = new Color(168, 157, 113),
- MOUSE_BORDER_COLOR = new Color(168, 157, 113),
- MOUSE_CENTER_COLOR = new Color(168, 157, 113);
- private boolean pressed = false;
- private int absoluteY = 0;
- public long startTime = 0;
- public long millis = 0;
- public long hours = 0;
- public long minutes = 0;
- private Timer timer;
- int tab = 0;
- Point p;
- RSTilePath pathToTrees;
- RSTilePath pathToBank;
- public long seconds = 0;
- public long last = 0;
- private boolean guiWait = true;
- private static int profit = 0;
- private static int profitPerHour;
- private long runTime;
- private int startLevel;
- public String mode = "";
- private int lvlsGained;
- private int expGained;
- private int Percent;
- public int currLevel;
- public int expHour;
- int logPrice;
- private int logsChopped = 0;
- private int ivyChopped = 0;
- private int logsHour;
- Point m = new Point(-1,-1);
- gui g = new gui();
- BufferedImage normal = null;
- BufferedImage clicked = null;
- private final Image img1 = getImage("http://i.imgur.com/xYmW1.png");
- private final Image img2 = getImage("http://i.imgur.com/9VhkR.png");
- public boolean onStart() {
- g.setVisible(true);
- while(guiWait) sleep(500);
- log("Loading ShadeChop...");
- mouse.setSpeed(random(3, 4));
- startExp = skills.getCurrentExp(Skills.WOODCUTTING);
- startLevel = skills.getCurrentLevel(Skills.WOODCUTTING);
- startTime = System.currentTimeMillis();
- if(ispowerchopping == false){
- pathToTrees = walking.newTilePath(placeToCut);
- pathToBank = walking.newTilePath(placeToBank);
- }
- if(logID == 0){
- } else
- logPrice = grandExchange.lookup(logID).getGuidePrice();
- log.severe("Welcome to ShadeChop. The most advanced AIO Woodcutter...");
- log("Your favourite location not on here? Request on my thread!");
- return true;
- }
- private void bank() {
- camera.setPitch(true);
- status = "Banking...";
- openBank();
- depositLogs();
- closeBank();
- }
- private void openBank() {
- final RSNPC bank = npcs.getNearest(bankerID);
- bank.interact("Bank Banker");
- sleep(2000);
- }
- private void depositLogs() {
- bank.depositAllExcept(hatchetID);
- sleep(500);
- }
- private void closeBank() {
- if (!bank.isOpen()) {
- sleep(500);
- } else {
- walkToTrees();
- }
- }
- public boolean atBank() {
- if(bankerID != depositBox){
- RSNPC bank = npcs.getNearest(bankerID);
- if (bank != null) {
- if (bank.isOnScreen()) {
- return true;
- } else if(!bank.isOnScreen()) {
- status = "Finding banker...";
- RSNPC banker = npcs.getNearest(bankerID);
- camera.turnTo(banker.getLocation());
- while (calc.distanceTo(banker) >= 20) {
- walking.walkTileMM(banker.getLocation()); }
- }
- }
- } else if(bankerID == depositBox){
- RSObject bank = objects.getNearest(bankerID);
- if (bank != null) {
- if (bank.isOnScreen()) {
- return true;
- }
- }
- }
- return false;
- }
- public void onFinish() {
- log.severe("Please post proggies on my thread!");
- log("Logs Chopped: " + logsChopped);
- log("Money Gained: " + profit);
- log("~ eShade");
- env.saveScreenshot(true);
- }
- private void Chop() {
- if (objects.getNearest(treeID) != null & !inventory.isFull()) {
- RSObject tree = objects.getNearest(treeID);
- if (calc.tileOnScreen(tree.getLocation())) {
- if (getMyPlayer().getAnimation() == -1) {
- status = "Chopping...";
- tree.interact("Chop");
- sleep(900, 1200);
- }
- } else if (!tree.isOnScreen()) {
- status = "Finding tree...";
- objects.getNearest(treeID);
- camera.turnTo(tree.getLocation());
- while (calc.distanceTo(tree) >= 5) {
- walking.walkTileMM(tree.getLocation()); }
- }
- }
- sleep(900, 1200);
- }
- private void nest() {
- RSGroundItem nest = groundItems.getNearest(birdNestID);
- if(nest != null && !inventory.isFull()) {
- if(nest.isOnScreen()) {
- status = "Taking nest";
- nest.interact("Take");
- sleep(random(600,800));
- }
- }
- }
- private void bankLogs(){
- status = "Banking...";
- camera.setPitch(true);
- openBox();
- depositBox();
- closeBox();
- }
- private void openBox(){
- final RSObject bankDepositBox = objects.getNearest(bankerID);
- bankDepositBox.interact("Deposit");
- sleep(2000);
- }
- private void depositBox(){
- bank.depositAllExcept(hatchetID);
- sleep(1000);
- }
- private void closeBox() {
- if (!bank.isDepositOpen()) {
- sleep(750);
- } else {
- bank.close();
- }
- }
- public int loop() {
- checkRun();
- if (inventory.isFull()) {
- if(ispowerchopping == true){
- inventory.dropAllExcept(hatchetID);
- } else
- if (atBank()) {
- if(bankerID == depositBox){
- bankLogs();
- } else if(bankerID != depositBox) {
- bank();
- }
- } else {
- if(ispowerchopping == false){
- walkToBank();
- }
- }
- } else {
- if (atTrees()) {
- nest();
- Chop();
- if(antiban == true){
- if (random(1, 5) == 3) {
- antiBanList();
- }
- } else if(antiban == false) {
- }
- } else {
- if(ispowerchopping == false){
- walkToTrees();
- }
- }
- }
- return (random(800, 1300));
- }
- private void walkToBank() {
- status = "Going to bank...";
- pathToBank.traverse();
- }
- private void walkToTrees() {
- status = "Going to trees...";
- pathToTrees.traverse();
- }
- public boolean atTrees() {
- RSObject tree = objects.getNearest(treeID);
- if (tree != null) {
- if (!tree.isOnScreen()) {
- camera.turnTo(objects.getNearest(treeID));
- walking.walkTo(tree.getLocation());
- }
- if (tree.isOnScreen()) {
- return true;
- }
- }
- return false;
- }
- public void checkRun() {
- if (!walking.isRunEnabled()) {
- if (walking.getEnergy() > random(15, 100)) {
- walking.setRun(true);
- }
- }
- }
- public void depositBoxOpen() {
- status = "Banking...";
- RSObject object = objects.getNearest(36788);
- if (object != null) {
- if (object.isOnScreen()) {
- object.doClick();
- }
- }
- }
- public void depositBoxBank(){
- status = "Banking...";
- if(bank.isDepositOpen()) {
- bank.depositAllExcept(hatchetID);
- sleep(random(300,600));
- bank.close();
- sleep(random(200,400));
- }
- }
- public void superAntiMoveMouse() {
- switch (random(0, 10)) {
- case 0:
- mouse.setSpeed(random(6, 9));
- mouse.moveSlightly();
- mouse.moveSlightly();
- mouse.moveSlightly();
- break;
- case 1:
- mouse.setSpeed(random(6, 9));
- mouse.moveSlightly();
- mouse.moveSlightly();
- break;
- case 2:
- mouse.setSpeed(random(6, 9));
- mouse.moveSlightly();
- mouse.moveSlightly();
- mouse.moveSlightly();
- mouse.moveSlightly();
- mouse.moveSlightly();
- mouse.moveSlightly();
- break;
- }
- }
- public void randomtab() {
- switch (random(0, 12)) {
- case 0:
- game.openTab(Game.TAB_STATS);
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 1:
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 2:
- game.openTab(Game.TAB_CLAN);
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 3:
- game.openTab(Game.TAB_FRIENDS);
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 4:
- game.openTab(Game.TAB_CLAN);
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 5:
- game.openTab(Game.TAB_EQUIPMENT);
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 6:
- game.openTab(Game.TAB_MAGIC);
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 7:
- game.openTab(Game.TAB_QUESTS);
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 8:
- game.openTab(Game.TAB_FRIENDS_CHAT);
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 9:
- game.openTab(Game.TAB_NOTES);
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 10:
- game.openTab(Game.TAB_PRAYER);
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 11:
- game.openTab(Game.TAB_MUSIC);
- game.openTab(Game.TAB_INVENTORY);
- break;
- }
- }
- public void randomXPcheck() {
- game.openTab(Game.TAB_STATS);
- switch (random(0, 20)) {
- case 0:
- skills.doHover(Skills.INTERFACE_FISHING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 1:
- skills.doHover(Skills.INTERFACE_WOODCUTTING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 2:
- skills.doHover(Skills.INTERFACE_ATTACK);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 3:
- skills.doHover(Skills.INTERFACE_STRENGTH);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 4:
- skills.doHover(Skills.INTERFACE_COOKING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 5:
- skills.doHover(Skills.INTERFACE_RANGE);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 6:
- skills.doHover(Skills.INTERFACE_FIREMAKING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 7:
- skills.doHover(Skills.INTERFACE_CONSTRUCTION);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 8:
- skills.doHover(Skills.INTERFACE_RUNECRAFTING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 9:
- skills.doHover(Skills.INTERFACE_SUMMONING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 10:
- skills.doHover(Skills.INTERFACE_SLAYER);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 11:
- skills.doHover(Skills.INTERFACE_CRAFTING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 12:
- skills.doHover(Skills.INTERFACE_FARMING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 13:
- skills.doHover(Skills.INTERFACE_AGILITY);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 14:
- skills.doHover(Skills.INTERFACE_THIEVING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 15:
- skills.doHover(Skills.INTERFACE_HUNTER);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 16:
- skills.doHover(Skills.INTERFACE_MINING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 17:
- skills.doHover(Skills.INTERFACE_SMITHING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 18:
- skills.doHover(Skills.INTERFACE_MAGIC);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 19:
- skills.doHover(Skills.INTERFACE_FLETCHING);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- case 20:
- skills.doHover(Skills.INTERFACE_PRAYER);
- sleep(random(5000, 7000));
- game.openTab(Game.TAB_INVENTORY);
- break;
- }
- }
- public int antiBanList2() {
- switch (random(0, 17)) {
- case 8:
- superAntiMoveMouse();
- AntiBanCamera();
- break;
- case 9:
- break;
- case 10:
- AntiBanCamera();
- break;
- case 11:
- case 12:
- break;
- case 13:
- superAntiMoveMouse();
- AntiBanCamera();
- break;
- case 14:
- AntiBanCamera();
- break;
- case 15:
- case 16:
- case 17:
- break;
- default:
- break;
- }
- return 500;
- }
- public int antiBanList() {
- switch (random(0, 17)) {
- case 8:
- superAntiMoveMouse();
- AntiBanCamera();
- break;
- case 9:
- randomXPcheck();
- break;
- case 10:
- randomtab();
- AntiBanCamera();
- break;
- case 11:
- case 12:
- randomtab();
- break;
- case 13:
- superAntiMoveMouse();
- AntiBanCamera();
- break;
- case 14:
- randomXPcheck();
- AntiBanCamera();
- break;
- case 15:
- case 16:
- case 17:
- break;
- default:
- break;
- }
- return 500;
- }
- private void AntiBanCamera() {
- int randomNum = random(1, 50);
- if (randomNum == 1 || randomNum == 2 || randomNum == 3) {
- camera.moveRandomly(random(2000, 5500));
- }
- if (randomNum == 4 || randomNum == 5) {
- camera.setAngle(random(10, 40));
- }
- if (randomNum == 6) {
- camera.setPitch(random(40, 68));
- }
- if (randomNum == 7) {
- camera.setPitch(random(20, 45));
- }
- if (randomNum == 8) {
- camera.setPitch(random(68, 90));
- } else
- sleep(50, 70);
- }
- private Image getImage(String url) {
- try {
- return ImageIO.read(new URL(url));
- } catch (IOException e) {
- return null;
- }
- }
- private void drawMouse(Graphics g) {
- ((Graphics2D) g).setRenderingHints(new RenderingHints(
- RenderingHints.KEY_ANTIALIASING,
- RenderingHints.VALUE_ANTIALIAS_ON));
- Point p = mouse.getLocation();
- Graphics2D spinG = (Graphics2D) g.create();
- Graphics2D spinGRev = (Graphics2D) g.create();
- Graphics2D spinG2 = (Graphics2D) g.create();
- spinG.setColor(MOUSE_BORDER_COLOR);
- spinGRev.setColor(MOUSE_COLOR);
- spinG.rotate(System.currentTimeMillis() % 2000d / 2000d * (360d) * 2
- * Math.PI / 180.0, p.x, p.y);
- spinGRev.rotate(System.currentTimeMillis() % 2000d / 2000d * (-360d)
- * 2 * Math.PI / 180.0, p.x, p.y);
- final int outerSize = 20;
- final int innerSize = 12;
- spinG.setStroke(new BasicStroke(1.0f, BasicStroke.CAP_ROUND,
- BasicStroke.JOIN_ROUND));
- spinGRev.setStroke(new BasicStroke(1.0f, BasicStroke.CAP_ROUND,
- BasicStroke.JOIN_ROUND));
- spinG.drawArc(p.x - (outerSize / 2), p.y - (outerSize / 2), outerSize,
- outerSize, 100, 75);
- spinG.drawArc(p.x - (outerSize / 2), p.y - (outerSize / 2), outerSize,
- outerSize, -100, 75);
- spinGRev.drawArc(p.x - (innerSize / 2), p.y - (innerSize / 2),
- innerSize, innerSize, 100, 75);
- spinGRev.drawArc(p.x - (innerSize / 2), p.y - (innerSize / 2),
- innerSize, innerSize, -100, 75);
- g.setColor(MOUSE_CENTER_COLOR);
- g.fillOval(p.x, p.y, 2, 2);
- spinG2.setColor(MOUSE_CENTER_COLOR);
- spinG2.rotate(System.currentTimeMillis() % 2000d / 2000d * 360d
- * Math.PI / 180.0, p.x, p.y);
- spinG2.setStroke(new BasicStroke(1.0f, BasicStroke.CAP_ROUND,
- BasicStroke.JOIN_ROUND));
- spinG2.drawLine(p.x - 5, p.y, p.x + 5, p.y);
- spinG2.drawLine(p.x, p.y - 5, p.x, p.y + 5);
- }
- public String outputTTL(){
- long runTime = System.currentTimeMillis()-startTime;
- int xptl = skills.getExpToNextLevel(Skills.WOODCUTTING);
- long ttl = (long)(xptl * ((double)runTime/expGained));
- int ttlH = (int)(ttl/3600000D);
- int ttlM = (int)((ttl%3600000D)/60000D);
- int ttlS = (int)(((ttl%3600000D)%60000D)/1000D);
- return (ttlH+":"+ttlM+":"+ttlS);
- }
- private final Color color1 = new Color(242, 127, 178);
- private final Font font1 = new Font("Tahoma", 1, 11);
- private final Color color2 = new Color(255, 0, 0);
- private final Color color3 = new Color(0, 0, 0);
- private final Color color4 = new Color(168, 157, 113);
- private final Color color5 = new Color(242, 240, 242);
- private final BasicStroke stroke1 = new BasicStroke(2);
- public void onRepaint(Graphics g1) {
- Graphics2D g = (Graphics2D)g1;
- millis = System.currentTimeMillis() - startTime;
- hours = millis / (1000 * 60 * 60);
- millis -= hours * (1000 * 60 * 60);
- minutes = millis / (1000 * 60);
- millis -= minutes * (1000 * 60);
- seconds = millis / 1000;
- lvlsGained = currLevel - startLevel;
- expGained = skills.getCurrentExp(Skills.WOODCUTTING) - startExp;
- currLevel = skills.getCurrentLevel(skills.WOODCUTTING);
- expHour = (int) ((expGained) * 3600000D / (System.currentTimeMillis() - startTime));
- runTime = System.currentTimeMillis() - startTime;
- profit = (logsChopped * logPrice);
- profitPerHour = (int) ((profit) * 3600000D / runTime);
- logsHour = (int) ((logsChopped) * 3600000D / (System.currentTimeMillis() - startTime));
- final int percentBar = (int) (skills.getPercentToNextLevel(skills.WOODCUTTING)*5.16);
- drawMouse(g);
- if(showPaint){
- g.drawImage(img1, 7, 344, null);
- g.setFont(font1);
- g.setColor(color3);
- g.drawString(" " + hours + ":" + minutes + ":" + seconds, 102, 359);
- g.drawString(" " + logsChopped, 106, 402);
- g.drawString(" " + logsHour, 95, 417);
- g.drawString(" " + expGained, 92, 373);
- g.drawString(" " + expHour, 90, 387);
- g.drawString(" " + currLevel, 99, 431);
- g.drawString(" " + lvlsGained, 105, 446);
- g.drawString(" " + profit, 264, 359);
- g.drawString(" " + profitPerHour, 270, 374);
- g.drawString(" " + status, 236, 400);
- g.drawString(" " + treesChopping, 277, 414);
- g.drawString(" " + location, 248, 429);
- g.drawString(" " + +skills.getExpToNextLevel(skills.WOODCUTTING), 106, 461);
- g.setColor(color3);
- g.setStroke(stroke1);
- g.drawRoundRect(2, 3, 516, 16, 16, 16);
- g.setColor(color3);
- g.fillRoundRect(2, 3, 516, 16, 16, 16);
- g.setColor(color3);
- g.setStroke(stroke1);
- g.drawRoundRect(2, 3, 516, 16, 16, 16);
- g.setColor(color4);
- g.fillRoundRect(2, 3, percentBar, 16, 16, 16);
- g.setColor(color3);
- g.drawRoundRect(2, 3, percentBar, 16, 16, 16);
- g.setFont(font1);
- g.setColor(color5);
- g.drawString("" + skills.getPercentToNextLevel(Skills.WOODCUTTING) +"% To Level " + (skills.getCurrentLevel(Skills.WOODCUTTING)+1) + " (" + (skills.getCurrentLevel(Skills.WOODCUTTING) - startLevel) +")" + " || TTL: " + outputTTL(), 174, 16);
- }
- g.drawImage(img2, 317, 239, null);
- }
- public void mouseClicked(MouseEvent e) {
- int x = e.getX();
- int y = e.getY();
- if (x >= 317 && x < 317 + 200 && y >= 239 && y < 239 + 100) {
- showPaint = !showPaint;
- }
- }
- public void mouseEntered(MouseEvent e) {
- }
- public void mouseExited(MouseEvent e) {
- }
- public void mousePressed(MouseEvent arg0) {
- Point mp = arg0.getPoint();
- final Rectangle toggleRectangle = new Rectangle(493, absoluteY + 3, 16,
- 15);
- if (toggleRectangle.contains(mp)) {
- pressed = !pressed;
- }
- }
- public void mouseReleased(MouseEvent arg0) {
- }
- @Override
- public void messageReceived(MessageEvent e) {
- String txt = e.getMessage();
- if (txt.contains("You get some")) {
- logsChopped++;
- }
- if (txt.contains("You need a")) {
- stopScript();
- log.severe("Make sure you have the required equipment in your invent!");
- }
- if(txt.contains("nest")) {
- nest();
- }
- }
- class gui extends JFrame {
- public gui() {
- initComponents();
- }
- private void isBankingActionPerformed(ActionEvent e) {
- if (isBanking.isSelected()) {
- mode = "Banking";
- ispowerchopping = false;
- }
- }
- private void isPowerchoppingActionPerformed(ActionEvent e) {
- if (isPowerchopping.isSelected()) {
- ispowerchopping = true;
- mode = "Powerchopping";
- }
- }
- private void button1ActionPerformed(ActionEvent e) {
- String treesToCut = bankLocation.getSelectedItem().toString();
- if(treesToCut.equals("Yews | Catherby")) {
- placeToBank = walkToBankCatherby;
- placeToCut = walkToTreesCatherby;
- bankerID = 494;
- location = "Catherby";
- treeID = yewTree;
- treesChopping = "Yews";
- logID = yewLog;
- } else if(treesToCut.equals("Yews | GrandExchange")) {
- placeToBank = walkToBankGE;
- placeToCut = walkToTreesGE;
- bankerID = 6533;
- location = "GrandExchange";
- logID = yewLog;
- treeID = yewTree;
- treesChopping = "Yews";
- } else if(treesToCut.equals("Yews | Edgeville")) {
- placeToBank = walkToBankEdgeville;
- placeToCut = walkToTreesEdgeville;
- bankerID = 553;
- location = "Edgeville";
- logID = yewLog;
- treeID = yewTree;
- treesChopping = "Yews";
- } else if(treesToCut.equals("Yews | Seers Village")) {
- placeToBank = walkToBankSeers;
- treesChopping = "Yews";
- placeToCut = walkToTreesSeers;
- bankerID = 494;
- logID = yewLog;
- treeID = yewTree;
- location = "Seers Village";
- } else if(treesToCut.equals("Maples | Seers Village")) {
- placeToBank = walkToBankSeersMaples;
- placeToCut = walkToTreesSeersMaples;
- bankerID = 494;
- location = "Seers Village";
- logID = mapleLog;
- treesChopping = "Maples";
- treeID = mapleTree;
- } else if(treesToCut.equals("Yews | Falador")) {
- bankerID = 6200;
- location = "Falador";
- logID = yewLog;
- treeID = yewTree;
- placeToBank = walkToBankFalador;
- placeToCut = walkToTreesFalador;
- treesChopping = "Yews";
- } else if(treesToCut.equals("Willows | Draynor")) {
- placeToBank = walkToBankDraynor;
- placeToCut = walkToTreesDraynor;
- treeID = willowTree;
- logID = willowLog;
- location = "Draynor village";
- bankerID = 4458;
- treesChopping = "Willows";
- } else if(treesToCut.equals("Magics | SorcTower")) {
- placeToBank = walkToBankTower;
- placeToCut = walkToTreesTower;
- treeID = magicTree;
- logID = magicLog;
- bankerID = 494;
- location = "SorcTower";
- treesChopping = "Magics";
- } else if(treesToCut.equals("Willows | Port Sarim")) {
- placeToBank = walkToBankPortSarim;
- placeToCut = walkToTreesPortSarim;
- treeID = willowTree;
- logID = willowLog;
- location = "Port Sarim";
- treesChopping = "Willows";
- bankerID = depositBox;
- } else if(treesToCut.equals("Oaks | East-Varrock")) {
- placeToBank = walkToBankEastVarrock;
- placeToCut = walkToTreesEastVarrock;
- treeID = oakTree;
- logID = oakLog;
- location = "East Varrock Gate";
- treesChopping = "Oaks";
- bankerID = 553;
- } else if(treesToCut.equals("Yews | Rimmington")) {
- placeToBank = walkToBankRimmington;
- placeToCut = walkToTreesRimmington;
- treeID = yewTree;
- treesChopping = "Yews";
- logID = yewLog;
- location = "Rimmington";
- bankerID = depositBox;
- } else if(treesToCut.equals("Trees | Varrock west bank")) {
- placeToBank = walkToBankVarrockBank;
- treesChopping = "Normal";
- location = "Varrock west bank";
- placeToCut = walkToTreesVarrockBank;
- treeID = normalTree;
- logID = normalLog;
- bankerID = 553;
- }
- String treesToPowercut = powerchopping.getSelectedItem().toString();
- if(treesToPowercut.equals("Tree")) {
- treeID = normalTree;
- treesChopping = "Normal";
- location = "N/A";
- logID = 0;
- } if(treesToPowercut.equals("Oak")) {
- treeID = oakTree;
- treesChopping = "Oak";
- location = "N/A";
- logID = 0;
- } if(treesToPowercut.equals("Willow")) {
- treeID = willowTree;
- location = "N/A";
- treesChopping = "Willow";
- logID = 0;
- } if(treesToPowercut.equals("Maple")) {
- treeID = mapleTree;
- location = "N/A";
- treesChopping = "Maple";
- logID = 0;
- } if(treesToPowercut.equals("Teak")) {
- treeID = teakTree;
- treesChopping = "Teak";
- location = "N/A";
- logID = 0;
- } if(treesToPowercut.equals("Mahogany")) {
- treeID = mahoganyTree;
- treesChopping = "Mahogany";
- location = "N/A";
- logID = 0;
- }
- String antiban2 = antiban1.getSelectedItem().toString();
- if(antiban2.equals("Full Antiban")) {
- antiban = true;
- } if(antiban2.equals("No Antiban")) {
- antiban = false;
- }
- guiWait = false;
- g.dispose();
- }
- private void initComponents() {
- label1 = new JLabel();
- button1 = new JButton();
- tabbedPane1 = new JTabbedPane();
- panel1 = new JPanel();
- scrollPane1 = new JScrollPane();
- textArea1 = new JTextArea();
- panel2 = new JPanel();
- bankLocation = new JComboBox();
- label10 = new JLabel();
- isBanking = new JCheckBox();
- label11 = new JLabel();
- label12 = new JLabel();
- label13 = new JLabel();
- label14 = new JLabel();
- label15 = new JLabel();
- antiban1 = new JComboBox();
- label16 = new JLabel();
- label17 = new JLabel();
- panel3 = new JPanel();
- powerchopping = new JComboBox();
- label2 = new JLabel();
- label3 = new JLabel();
- label4 = new JLabel();
- isPowerchopping = new JCheckBox();
- label5 = new JLabel();
- label6 = new JLabel();
- label7 = new JLabel();
- label8 = new JLabel();
- antiban2 = new JComboBox();
- label9 = new JLabel();
- //======== this ========
- setForeground(Color.magenta);
- setBackground(Color.black);
- Container contentPane = getContentPane();
- //---- label1 ----
- label1.setText("ShadeChop GUI ~ developed by eShade");
- label1.setFont(label1.getFont().deriveFont(label1.getFont().getSize() + 9f));
- //---- isPowerChopping ----
- isPowerchopping.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- isPowerchoppingActionPerformed(e);
- }
- });
- //----isBanking ----
- isBanking.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- isBankingActionPerformed(e);
- }
- });
- //---- button1 ----
- button1.setText("Start Chopping!");
- button1.setFont(new Font("Calibri", Font.PLAIN, 26));
- button1.setBackground(new Color(204, 0, 204));
- button1.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- button1ActionPerformed(e);
- }
- });
- //======== tabbedPane1 ========
- {
- //======== panel1 ========
- {
- //======== scrollPane1 ========
- {
- //---- textArea1 ----
- textArea1.setText("ShadeChop is coded/developed by eShade. Please do\not use this script if you downloaded it from a\nsite other than powerbot.org.\n\nPlease do not copy/steal/modify and of this code,\nhowever, you may use tree/hatchet ID's.\n\nPlease select your settings and make sure you\nstart next to your chosen trees/bank.\n\nPlease report any bugs so I can fix them asap. \n\n~eShade");
- scrollPane1.setViewportView(textArea1);
- }
- GroupLayout panel1Layout = new GroupLayout(panel1);
- panel1.setLayout(panel1Layout);
- panel1Layout.setHorizontalGroup(
- panel1Layout.createParallelGroup()
- .addGroup(panel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(scrollPane1, GroupLayout.PREFERRED_SIZE, 409, GroupLayout.PREFERRED_SIZE)
- .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
- panel1Layout.setVerticalGroup(
- panel1Layout.createParallelGroup()
- .addGroup(panel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(scrollPane1, GroupLayout.DEFAULT_SIZE, 257, Short.MAX_VALUE)
- .addContainerGap())
- );
- }
- tabbedPane1.addTab("About ShadeChop/FAQ", panel1);
- //======== panel2 ========
- {
- //---- bankLocation ----
- bankLocation.setModel(new DefaultComboBoxModel(new String[] {
- "Select your location...",
- "Trees | Varrock west bank",
- "Oaks | East-Varrock",
- "Willows | Draynor",
- "Willows | Port Sarim",
- "Willows | Barbarian Outpost",
- "Maples | Seers Village",
- "Yews | Catherby",
- "Yews | Edgeville",
- "Yews | GrandExchange",
- "Yews | Seers Village",
- "Yews | Falador",
- "Yews | Rimmington",
- "Magics | SorcTower"
- }));
- //---- label10 ----
- label10.setText("Are you banking?");
- label10.setFont(label10.getFont().deriveFont(label10.getFont().getSize() + 5f));
- //---- label11 ----
- label11.setText("1)");
- label11.setFont(label11.getFont().deriveFont(label11.getFont().getSize() + 6f));
- //---- label12 ----
- label12.setText("Select your location...");
- //---- label13 ----
- label13.setText("2)");
- label13.setFont(label13.getFont().deriveFont(label13.getFont().getSize() + 6f));
- //---- label14 ----
- label14.setText("Choose your antiban...");
- //---- label15 ----
- //---- antiban1 ----
- antiban1.setModel(new DefaultComboBoxModel(new String[] {
- "Full Antiban",
- "No Antiban"
- }));
- //---- label16 ----
- label16.setText("Antiban:");
- //---- label17 ----
- label17.setText("Now click Start Chopping!");
- label17.setFont(label17.getFont().deriveFont(label17.getFont().getSize() + 9f));
- GroupLayout panel2Layout = new GroupLayout(panel2);
- panel2.setLayout(panel2Layout);
- panel2Layout.setHorizontalGroup(
- panel2Layout.createParallelGroup()
- .addGroup(panel2Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(panel2Layout.createParallelGroup()
- .addGroup(panel2Layout.createSequentialGroup()
- .addComponent(label10)
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(isBanking))
- .addGroup(panel2Layout.createSequentialGroup()
- .addComponent(label11)
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(panel2Layout.createParallelGroup()
- .addComponent(bankLocation, GroupLayout.PREFERRED_SIZE, 306, GroupLayout.PREFERRED_SIZE)
- .addComponent(label12)))
- .addGroup(panel2Layout.createSequentialGroup()
- .addComponent(label13)
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(panel2Layout.createParallelGroup()
- .addGroup(panel2Layout.createSequentialGroup()
- .addComponent(label16)
- .addGap(10, 10, 10)
- .addComponent(antiban1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
- .addComponent(label14)
- .addComponent(label17))))
- .addContainerGap(15, Short.MAX_VALUE))
- );
- panel2Layout.setVerticalGroup(
- panel2Layout.createParallelGroup()
- .addGroup(panel2Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(panel2Layout.createParallelGroup()
- .addComponent(label10)
- .addComponent(isBanking))
- .addGap(24, 24, 24)
- .addGroup(panel2Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
- .addComponent(label11)
- .addComponent(label12))
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(bankLocation, GroupLayout.PREFERRED_SIZE, 31, GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addGroup(panel2Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
- .addComponent(label13)
- .addComponent(label14))
- .addGap(9, 9, 9)
- .addGap(9, 9, 9)
- .addGroup(panel2Layout.createParallelGroup()
- .addGroup(panel2Layout.createSequentialGroup()
- .addGap(3, 3, 3)
- .addComponent(label16))
- .addComponent(antiban1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
- .addGap(18, 18, 18)
- .addComponent(label17)
- .addContainerGap(25, Short.MAX_VALUE))
- );
- }
- tabbedPane1.addTab("Banking Options...", panel2);
- //======== panel3 ========
- {
- //---- powerchopping ----
- powerchopping.setModel(new DefaultComboBoxModel(new String[] {
- "Choose your tree...",
- "Tree",
- "Oak",
- "Willow",
- "Maple",
- "Teak"
- }));
- //---- label2 ----
- label2.setText(" Are you powerchopping?");
- label2.setFont(label2.getFont().deriveFont(label2.getFont().getSize() + 5f));
- //---- label3 ----
- label3.setText("Choose your tree...");
- //---- label4 ----
- label4.setText("Choose your antiban...");
- //---- label5 ----
- label5.setText("1)");
- label5.setFont(label5.getFont().deriveFont(label5.getFont().getSize() + 6f));
- //---- label6 ----
- label6.setText("2)");
- label6.setFont(label6.getFont().deriveFont(label6.getFont().getSize() + 6f));
- //---- label8 ----
- label8.setText("Antiban:");
- //---- antiban2 ----
- antiban2.setModel(new DefaultComboBoxModel(new String[] {
- "Full Antiban",
- "No Antiban"
- }));
- //---- label9 ----
- label9.setText("Now click Start Chopping!");
- label9.setFont(label9.getFont().deriveFont(label9.getFont().getSize() + 9f));
- GroupLayout panel3Layout = new GroupLayout(panel3);
- panel3.setLayout(panel3Layout);
- panel3Layout.setHorizontalGroup(
- panel3Layout.createParallelGroup()
- .addGroup(panel3Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(panel3Layout.createParallelGroup()
- .addGroup(panel3Layout.createSequentialGroup()
- .addComponent(label2)
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(isPowerchopping))
- .addGroup(panel3Layout.createSequentialGroup()
- .addComponent(label5)
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(panel3Layout.createParallelGroup()
- .addComponent(powerchopping, GroupLayout.PREFERRED_SIZE, 312, GroupLayout.PREFERRED_SIZE)
- .addComponent(label3)))
- .addGroup(panel3Layout.createSequentialGroup()
- .addComponent(label6)
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(panel3Layout.createParallelGroup()
- .addComponent(label4)
- .addGroup(panel3Layout.createSequentialGroup()
- .addComponent(label8)
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(antiban2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
- .addComponent(label9))))
- .addContainerGap(19, Short.MAX_VALUE))
- );
- panel3Layout.setVerticalGroup(
- panel3Layout.createParallelGroup()
- .addGroup(panel3Layout.createSequentialGroup()
- .addContainerGap()
- .addGroup(panel3Layout.createParallelGroup()
- .addComponent(label2)
- .addGroup(panel3Layout.createSequentialGroup()
- .addComponent(isPowerchopping)
- .addGap(26, 26, 26)
- .addGroup(panel3Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
- .addComponent(label5)
- .addComponent(label3))
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(powerchopping, GroupLayout.PREFERRED_SIZE, 30, GroupLayout.PREFERRED_SIZE)
- .addGap(29, 29, 29)
- .addGroup(panel3Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
- .addComponent(label6)
- .addComponent(label4))
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
- .addGroup(panel3Layout.createParallelGroup(GroupLayout.Alignment.BASELINE)
- .addComponent(label8)
- .addComponent(antiban2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
- .addGap(18, 18, 18)
- .addComponent(label9)))
- .addContainerGap(14, Short.MAX_VALUE))
- );
- }
- tabbedPane1.addTab("PowerChopping Options...", panel3);
- }
- GroupLayout contentPaneLayout = new GroupLayout(contentPane);
- contentPane.setLayout(contentPaneLayout);
- contentPaneLayout.setHorizontalGroup(
- contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGroup(contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(20, 20, 20)
- .addComponent(label1))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addContainerGap()
- .addComponent(button1, GroupLayout.DEFAULT_SIZE, 432, Short.MAX_VALUE))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addContainerGap()
- .addComponent(tabbedPane1, GroupLayout.PREFERRED_SIZE, 431, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap())
- );
- contentPaneLayout.setVerticalGroup(
- contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addContainerGap()
- .addComponent(label1)
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(tabbedPane1, GroupLayout.PREFERRED_SIZE, 307, GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(button1, GroupLayout.DEFAULT_SIZE, 47, Short.MAX_VALUE)
- .addContainerGap())
- );
- pack();
- setLocationRelativeTo(getOwner());
- // JFormDesigner - End of component initialization //GEN-END:initComponents
- }
- // JFormDesigner - Variables declaration - DO NOT MODIFY //GEN-BEGIN:variables
- // Generated using JFormDesigner Evaluation license - Jack Daniel
- private JLabel label1;
- private JButton button1;
- private JTabbedPane tabbedPane1;
- private JPanel panel1;
- private JScrollPane scrollPane1;
- private JTextArea textArea1;
- private JPanel panel2;
- private JComboBox bankLocation;
- private JLabel label10;
- private JCheckBox isBanking;
- private JLabel label11;
- private JLabel label12;
- private JLabel label13;
- private JLabel label14;
- private JLabel label15;
- private JComboBox antiban1;
- private JLabel label16;
- private JLabel label17;
- private JPanel panel3;
- private JComboBox powerchopping;
- private JLabel label2;
- private JLabel label3;
- private JLabel label4;
- private JCheckBox isPowerchopping;
- private JLabel label5;
- private JLabel label6;
- private JLabel label7;
- private JLabel label8;
- private JComboBox antiban2;
- private JLabel label9;
- // JFormDesigner - End of variables declaration //GEN-END:variables
- }
- @Override
- public void mouseDragged(MouseEvent e) {
- // TODO Auto-generated method stub
- }
- @Override
- public void mouseMoved(MouseEvent e) {
- // TODO Auto-generated method stub
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement