Advertisement
Rudie221

MultiMiner V 2.2

Jul 8th, 2011
2,057
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 49.16 KB | None | 0 0
  1. //////////////
  2. ///Imports///
  3. ////////////
  4. import java.awt.*;
  5. import java.io.IOException;
  6. import java.net.URL;
  7. import java.util.LinkedList;
  8. import java.awt.event.ActionEvent;
  9. import java.awt.event.ActionListener;
  10. import java.awt.event.MouseEvent;
  11. import java.awt.event.MouseListener;
  12.  
  13. import javax.imageio.ImageIO;
  14. import javax.swing.DefaultComboBoxModel;
  15. import javax.swing.GroupLayout;
  16. import javax.swing.JButton;
  17. import javax.swing.JComboBox;
  18. import javax.swing.JFrame;
  19. import javax.swing.JLabel;
  20. import javax.swing.JPanel;
  21. import javax.swing.JTabbedPane;
  22. import javax.swing.JTextField;
  23. import javax.swing.LayoutStyle;
  24. import javax.swing.SwingUtilities;
  25.  
  26. import org.rsbot.event.events.MessageEvent;
  27. import org.rsbot.event.listeners.MessageListener;
  28. import org.rsbot.event.listeners.PaintListener;
  29. import org.rsbot.script.Script;
  30. import org.rsbot.script.ScriptManifest;
  31. import org.rsbot.script.methods.Skills;
  32. import org.rsbot.script.wrappers.RSComponent;
  33. import org.rsbot.script.wrappers.RSObject;
  34. import org.rsbot.script.wrappers.RSTile;
  35. import org.rsbot.script.wrappers.RSTilePath;
  36.  
  37.  
  38. @ScriptManifest(
  39.         authors = {"Rudie"},
  40.         version = 2.2,
  41.         keywords = ("miner, mining, rudie, worldminer"),
  42.         description = "Mines and banks ores at different locations more info is in the thread",
  43.         name = "MultiMiner"
  44. )
  45. public class MultiMiner extends Script implements PaintListener, MessageListener, MouseListener {
  46.    
  47.     ////////////////
  48.     ///Variables///
  49.     //////////////
  50.     private final static int[] boothID = {36788, 26972, 11402, 2213, 34752, 11758, 2213, 35647, 782, 2012, 2015, 2019};
  51.     private final static int[] coal_ID = {11931, 11932, 11930, 2096, 2097, 5770, 5771, 5772};
  52.     private final static int[] iron_ID = {37307, 37308, 37309, 9717, 9718, 9719, 11954, 11956, 2092, 2093};
  53.     private final static int[] gold_ID = {9722, 9720, 37310, 37312};
  54.     private final static int[] copper_ID = {9708, 9709, 11960, 11962};
  55.     private final static int[] tin_ID = {9714, 9716, 11959, 11958, 11957, 11935, 11933};
  56.     private final static int[] clay_ID = {15504, 10579};
  57.     private final static int[] silver_ID = {11948, 11949, 11950};
  58.     private final static int[] pickID = {1265, 1267, 1269, 1271, 1273, 1275};
  59.     private final static int dstairID = 2113;
  60.     private final static int ustairID = 6226;
  61.    
  62.     private static final int coal_ORE = 453;
  63.     private static final int iron_ORE = 440;
  64.     private static final int gold_ORE = 444;
  65.     private static final int copper_ORE = 436;
  66.     private static final int tin_ORE = 438;
  67.     private static final int clay_ORE = 434;
  68.     private static final int silver_ORE = 442;
  69.    
  70.     ////////////
  71.     ///Tiles///
  72.     //////////
  73.     RSTile[] barbarian = {new RSTile(3084, 3423), new RSTile(3089, 3436),
  74.             new RSTile(3090, 3449), new RSTile(3087, 3461), new RSTile(3079, 3471), new RSTile(3079, 3484),
  75.             new RSTile(3085, 3489), new RSTile(3092, 3491)};
  76.     RSTilePath barbarianVillage;
  77.        
  78.     RSTile[] barbarianC = {new RSTile(3082, 3400), new RSTile(3081, 3414)};
  79.     RSTilePath barbarianVillageC;
  80.    
  81.     RSTile[] draynorv = {new RSTile(3141, 3317), new RSTile(3134, 3305),
  82.             new RSTile(3125, 3297), new RSTile(3113, 3293), new RSTile(3109, 3283), new RSTile(3104, 3274),
  83.             new RSTile(3104, 3263), new RSTile(3104, 3250), new RSTile(3094, 3248),
  84.             new RSTile(3092, 3243)};
  85.     RSTilePath draynor;
  86.    
  87.     RSTile[] ardy = {new RSTile(2693, 3334), new RSTile(2697, 3322),
  88.             new RSTile(2692, 3312), new RSTile(2681, 3305), new RSTile(2667, 3304), new RSTile(2656, 3299),
  89.             new RSTile(2649, 3293), new RSTile(2644, 3284), new RSTile(2652, 3285)};
  90.     RSTilePath ardougne;
  91.    
  92.     RSTile[] ALK = {new RSTile(3299, 3293), new RSTile(3298, 3285),
  93.             new RSTile(3297, 3275), new RSTile(3295, 3266),
  94.             new RSTile(3293, 3255), new RSTile(3291, 3246), new RSTile(3287, 3237),
  95.             new RSTile(3283, 3229), new RSTile(3279, 3221), new RSTile(3277, 3211),
  96.             new RSTile(3281, 3201), new RSTile(3281, 3191), new RSTile(3281, 3183),
  97.             new RSTile(3276, 3175), new RSTile(3269, 3168)};
  98.     RSTilePath alKharid;
  99.    
  100.     RSTile[] port = {new RSTile(2626, 3151), new RSTile(2623, 3142),
  101.             new RSTile(2620, 3131), new RSTile(2619, 3119), new RSTile(2617, 3109),
  102.             new RSTile(2608, 3100), new RSTile(2611, 3093)};
  103.     RSTilePath khazard;
  104.    
  105.     RSTile[] varrock = {new RSTile(3182, 3372), new RSTile(3182, 3376),
  106.             new RSTile(3176, 3387),new RSTile(3169, 3399),
  107.             new RSTile(3168, 3411), new RSTile(3169, 3423),
  108.             new RSTile(3178, 3429), new RSTile(3183, 3438)};
  109.     RSTilePath varrockw;
  110.    
  111.     RSTile[] fromBankToStairs = {new RSTile(3015, 3355)};
  112.     RSTilePath bankToStairs;
  113.    
  114.     RSTile[] fromStairsToBank = {new RSTile(3019, 3342)};
  115.     RSTilePath stairsToBank;
  116.    
  117.     RSTile[] MiningAreaE = {new RSTile(3027, 9739), new RSTile(3034, 9738),
  118.             new RSTile(3044, 9738)};
  119.     RSTilePath MiningArea;
  120.  
  121.      long startTime;
  122.    
  123.     private static final Color MOUSE_COLOR = new Color(255, 0, 0),
  124.     MOUSE_BORDER_COLOR = new Color(255, 0, 0),
  125.     MOUSE_CENTER_COLOR = new Color(0, 0, 0);
  126.     private boolean pressed = false;
  127.          
  128.     int expGained = 0;
  129.     int startExp = 0;
  130.     int oresMined = 0;
  131.     int gemsMined = 0;
  132.     int gainedLvl = 0;
  133.     public boolean showPaint = true ;
  134.     Point p;
  135.     Point p2;
  136.     private final LinkedList<MousePathPoint> mousePath = new LinkedList<MousePathPoint>();
  137.     private int[] oresToMine;
  138.     public int oreID = 0;
  139.    
  140.     GUI g;
  141.    
  142.     private boolean guiWait = true;
  143.    
  144.     private String Status = "Loading...";
  145.  
  146.      ////////////////////
  147.     ///OnStart method///
  148.     ///////////////////
  149.     public boolean onStart() {
  150.         bankToStairs = walking.newTilePath(fromBankToStairs);
  151.         stairsToBank = walking.newTilePath(fromStairsToBank);
  152.         MiningArea = walking.newTilePath(MiningAreaE);
  153.         barbarianVillage = walking.newTilePath(barbarian);
  154.         barbarianVillageC = walking.newTilePath(barbarianC);
  155.         varrockw = walking.newTilePath(varrock);
  156.         draynor = walking.newTilePath(draynorv);
  157.         ardougne = walking.newTilePath(ardy);
  158.         khazard = walking.newTilePath(port);
  159.         alKharid = walking.newTilePath(ALK);
  160.         startTime = System.currentTimeMillis();
  161.         mouse.setSpeed(random(3, 5));
  162.         startExp = skills.getCurrentExp(Skills.MINING);
  163.         log(new Color (30, 144, 255), "Welcome to MultiMiner V 2.2!");
  164.         log(Color.RED, "PLEASE READ:");
  165.         log(new Color (30, 144, 255), "Please check the thread every day for new updates.");
  166.         log(new Color (30, 144, 255), "V 2.1 has been released 8-7-11.");
  167.         log(new Color (30, 144, 255), "MultiMiner ®   © 2011 ");
  168.         log(Color.RED, "Happy botting!");
  169.        
  170.         try {
  171.             SwingUtilities.invokeAndWait(new Runnable() {
  172.  
  173.                 public void run() {
  174.                     g = new GUI();
  175.                     g.setVisible(true);
  176.                 }
  177.             });
  178.         } catch (Throwable e) {
  179.             log("Fail.");
  180.         }
  181.        
  182.         while(guiWait) sleep(500);
  183.        
  184.         return true;
  185.     }
  186.    
  187.     ///////////
  188.     ///Loop///
  189.     /////////
  190.     @Override
  191.     public int loop() {
  192.         if(inventory.isFull()) {
  193.             if(atBank()) {
  194.                 doBank();
  195.             } else if(atBank()) {
  196.                 doBankk();
  197.             } else if(atUp()) {
  198.                 goUp();
  199.             } else {   
  200.                 BarbarianVillage();
  201.                 BarbarianVillageC();
  202.                 varrock();
  203.                 draynor();
  204.                 ardy();
  205.                 BtS();
  206.                 StB();
  207.                 MiningPlace();
  208.                 khazard();
  209.                 kharid();
  210.             }
  211.         } else {
  212.             if(atMine()) {
  213.                 mineOres();
  214.             } else if(atDown()) {
  215.                 goDown();
  216.             } else {
  217.                 barbarianVillage();
  218.                 barbarianVillageC();
  219.                 varrockwest();
  220.                 draynorvillage();
  221.                 ardougne();
  222.                 BtSS();
  223.                 StBB();
  224.                 MiningPlacee();
  225.                 portKhazard();
  226.                 alKharid();
  227.             }
  228.         }
  229.         return random(600, 800);
  230.     }
  231.    
  232.     //////////////
  233.     ///Methods///
  234.     ////////////
  235.     private void mineOres() {
  236.         RSObject rock = objects.getNearest(oresToMine);
  237.         if (rock != null && getMyPlayer().getAnimation() == -1) {
  238.             rock.interact("Mine");
  239.             AntiBan();
  240.             AntiBanCamera();
  241.             Status = "Mining.";
  242.         }
  243.     }
  244.    
  245.     private void goDown() {
  246.         RSObject ladder = objects.getNearest(dstairID);
  247.         if (ladder != null && getMyPlayer().getAnimation() == -1) {
  248.             ladder.doAction("Climb-down");
  249.             Status = "Going down.";
  250.             AntiBan();
  251.             AntiBanCamera();
  252.         }
  253.         sleep(3000, 4500);
  254.     }
  255.    
  256.     private void goUp() {
  257.         RSObject ladder = objects.getNearest(ustairID);
  258.         if (ladder != null && getMyPlayer().getAnimation() == -1) {
  259.             ladder.doAction("Climb-up");
  260.             Status = "Going up.";
  261.             AntiBan();
  262.             AntiBanCamera();
  263.         }
  264.         sleep(5000, 6500);
  265.     }
  266.    
  267.     private void barbarianVillage() {
  268.         barbarianVillage.reverse();
  269.         barbarianVillage.traverse();
  270.         barbarianVillage.reverse();
  271.         Status = "Walking to mine.";
  272.     }
  273.  
  274.     private void BarbarianVillage() {
  275.         barbarianVillage.traverse();
  276.         AntiBanCamera();
  277.         Status = "Walking to bank.";
  278.     }
  279.    
  280.     private void barbarianVillageC() {
  281.         barbarianVillageC.reverse();
  282.         barbarianVillageC.traverse();
  283.         barbarianVillageC.reverse();
  284.         Status = "Walking to mine.";
  285.     }
  286.  
  287.     private void BarbarianVillageC() {
  288.         barbarianVillageC.traverse();
  289.         AntiBanCamera();
  290.         Status = "Walking to bank.";
  291.     }
  292.    
  293.     private void varrockwest() {
  294.         varrockw.reverse();
  295.         varrockw.traverse();
  296.         varrockw.reverse();
  297.         Status = "Walking to mine.";
  298.     }
  299.  
  300.     private void varrock() {
  301.         varrockw.traverse();
  302.         AntiBanCamera();
  303.         Status = "Walking to bank.";
  304.     }
  305.    
  306.     private void BtS() {
  307.         bankToStairs.reverse();
  308.         bankToStairs.traverse();
  309.         bankToStairs.reverse();
  310.         AntiBanCamera();
  311.         Status = "Walking to mine.";
  312.     }
  313.  
  314.     private void BtSS() {
  315.         bankToStairs.traverse();
  316.         AntiBanCamera();
  317.         Status = "Walking to mine.";
  318.     }
  319.    
  320.     private void StB() {
  321.         stairsToBank.reverse();
  322.         stairsToBank.traverse();
  323.         stairsToBank.reverse();
  324.         AntiBanCamera();
  325.         Status = "Walking to bank.";
  326.     }
  327.  
  328.     private void StBB() {
  329.         stairsToBank.traverse();
  330.         AntiBanCamera();
  331.         Status = "Walking to bank.";
  332.     }
  333.    
  334.     private void MiningPlace() {
  335.         MiningArea.reverse();
  336.         MiningArea.traverse();
  337.         MiningArea.reverse();
  338.         AntiBanCamera();
  339.         Status = "Walking to bank.";
  340.     }
  341.  
  342.     private void MiningPlacee() {
  343.         MiningArea.traverse();
  344.         AntiBanCamera();
  345.         Status = "Walking to mine.";
  346.     }
  347.    
  348.     private void draynorvillage() {
  349.         draynor.reverse();
  350.         draynor.traverse();
  351.         draynor.reverse();
  352.         Status = "Walking to mine.";
  353.     }
  354.  
  355.     private void draynor() {
  356.         draynor.traverse();
  357.         AntiBanCamera();
  358.         Status = "Walking to bank.";
  359.     }
  360.    
  361.     private void ardougne() {
  362.         ardougne.reverse();
  363.         ardougne.traverse();
  364.         ardougne.reverse();
  365.         Status = "Walking to mine.";
  366.     }
  367.  
  368.     private void ardy() {
  369.         ardougne.traverse();
  370.         AntiBanCamera();
  371.         Status = "Walking to bank.";
  372.     }
  373.    
  374.     private void portKhazard() {
  375.         khazard.reverse();
  376.         khazard.traverse();
  377.         khazard.reverse();
  378.         Status = "Walking to mine.";
  379.     }
  380.  
  381.     private void khazard() {
  382.         khazard.traverse();
  383.         AntiBanCamera();
  384.         Status = "Walking to bank.";
  385.     }
  386.    
  387.     private void alKharid() {
  388.         alKharid.reverse();
  389.         alKharid.traverse();
  390.         alKharid.reverse();
  391.         Status = "Walking to mine.";
  392.     }
  393.  
  394.     private void kharid() {
  395.         alKharid.traverse();
  396.         AntiBanCamera();
  397.         Status = "Walking to bank.";
  398.     }
  399.    
  400.     public void mouseClicked(MouseEvent e) {
  401.         RSComponent inter = interfaces.get(137).getComponent(0);
  402.         if (inter.getArea().contains(e.getPoint())) {
  403.             showPaint = !showPaint;
  404.         }
  405.     }
  406.    
  407.     private void drawMouse(Graphics g) {
  408.         ((Graphics2D) g).setRenderingHints(new RenderingHints(
  409.                 RenderingHints.KEY_ANTIALIASING,
  410.                 RenderingHints.VALUE_ANTIALIAS_ON));
  411.         Point p = mouse.getLocation();
  412.         Graphics2D spinG = (Graphics2D) g.create();
  413.         Graphics2D spinGRev = (Graphics2D) g.create();
  414.         Graphics2D spinG2 = (Graphics2D) g.create();
  415.         spinG.setColor(MOUSE_BORDER_COLOR);
  416.         spinGRev.setColor(MOUSE_COLOR);
  417.         spinG.rotate(System.currentTimeMillis() % 2000d / 2000d * (360d) * 2
  418.                 * Math.PI / 180.0, p.x, p.y);
  419.         spinGRev.rotate(System.currentTimeMillis() % 2000d / 2000d * (-360d)
  420.                 * 2 * Math.PI / 180.0, p.x, p.y);
  421.         final int outerSize = 20;
  422.         final int innerSize = 12;
  423.         spinG.setStroke(new BasicStroke(1.0f, BasicStroke.CAP_ROUND,
  424.                 BasicStroke.JOIN_ROUND));
  425.         spinGRev.setStroke(new BasicStroke(1.0f, BasicStroke.CAP_ROUND,
  426.                 BasicStroke.JOIN_ROUND));
  427.         spinG.drawArc(p.x - (outerSize / 2), p.y - (outerSize / 2), outerSize,
  428.                 outerSize, 100, 75);
  429.         spinG.drawArc(p.x - (outerSize / 2), p.y - (outerSize / 2), outerSize,
  430.                 outerSize, -100, 75);
  431.         spinGRev.drawArc(p.x - (innerSize / 2), p.y - (innerSize / 2),
  432.                 innerSize, innerSize, 100, 75);
  433.         spinGRev.drawArc(p.x - (innerSize / 2), p.y - (innerSize / 2),
  434.                 innerSize, innerSize, -100, 75);
  435.         g.setColor(MOUSE_CENTER_COLOR);
  436.         g.fillOval(p.x, p.y, 2, 2);
  437.         spinG2.setColor(MOUSE_CENTER_COLOR);
  438.         spinG2.rotate(System.currentTimeMillis() % 2000d / 2000d * 360d
  439.                 * Math.PI / 180.0, p.x, p.y);
  440.         spinG2.setStroke(new BasicStroke(1.0f, BasicStroke.CAP_ROUND,
  441.                 BasicStroke.JOIN_ROUND));
  442.         spinG2.drawLine(p.x - 5, p.y, p.x + 5, p.y);
  443.         spinG2.drawLine(p.x, p.y - 5, p.x, p.y + 5);
  444.     }
  445.    
  446.     @SuppressWarnings("serial")
  447.     private class MousePathPoint extends Point { // credits to Enfilade
  448.         private int toColor(double d) {
  449.             return Math.min(255, Math.max(0, (int) d));
  450.         }
  451.  
  452.         private long finishTime;
  453.         private double lastingTime;
  454.  
  455.         public MousePathPoint(int x, int y, int lastingTime) {
  456.             super(x, y);
  457.             this.lastingTime = lastingTime;
  458.             finishTime = System.currentTimeMillis() + lastingTime;
  459.         }
  460.  
  461.         public boolean isUp() {
  462.             return System.currentTimeMillis() > finishTime;
  463.         }
  464.  
  465.         public Color getColor() {
  466.             return new Color(
  467.                     0,
  468.                     0,
  469.                     0,
  470.                     toColor(256 * ((finishTime - System.currentTimeMillis()) / lastingTime)));
  471.         }
  472.     }
  473.  
  474. private final RenderingHints antialiasing = new RenderingHints(
  475.             RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
  476.    
  477.     //////////////////////
  478.     ///OnFinish Method///
  479.     ////////////////////
  480.     public void onFinish() {
  481.         log(new Color (30, 144, 255), "Ty for using MultiMiner by Rudie.");
  482.         env.saveScreenshot(true);
  483.     }
  484.      ///////////////////
  485.     ///Other Methods///
  486.     //////////////////
  487.     private boolean atBank() {
  488.         RSObject bank = objects.getNearest(boothID);
  489.         if(bank != null) {
  490.             if(bank.isOnScreen()) {
  491.                 return true;
  492.             }
  493.         }
  494.         return false;
  495.     }
  496.    
  497.     private boolean atDown() {
  498.         RSObject ladder = objects.getNearest(dstairID);
  499.         AntiBan();
  500.         AntiBanCamera();
  501.         if(ladder != null) {
  502.             if(ladder.isOnScreen()) {
  503.                 return true;
  504.             }
  505.         }
  506.         return false;
  507. }
  508.    
  509.     private boolean atUp() {
  510.         RSObject ladder = objects.getNearest(ustairID);
  511.         AntiBan();
  512.         AntiBanCamera();
  513.         if(ladder != null) {
  514.             if(ladder.isOnScreen()) {
  515.                 return true;
  516.             }
  517.         }
  518.         return false;
  519. }
  520.    
  521.     private void doBank() {
  522.         if(bank.isOpen()) {
  523.             bank.depositAllExcept(pickID);
  524.             sleep(800, 1200);
  525.             Status = "Banking.";
  526.         } else {
  527.             bank.open();
  528.             Status = "Banking.";
  529.             sleep(1800, 2200);
  530.         }
  531.     }
  532.    
  533.     private void doBankk() {
  534.         if(bank.isDepositOpen()) {
  535.             bank.depositAllExcept(pickID);
  536.             sleep(800, 1200);
  537.             Status = "Banking.";
  538.         } else {
  539.             bank.open();
  540.             Status = "Banking.";
  541.             sleep(1800, 2200);
  542.         }
  543.     }
  544.    
  545.     private boolean atMine() {
  546.         RSObject ore = objects.getNearest(oresToMine);
  547.         AntiBan();
  548.         AntiBanCamera();
  549.         if(ore != null) {
  550.             if(ore.isOnScreen()) {
  551.                 return true;
  552.             }
  553.         }
  554.         return false;
  555. }
  556.    
  557.     ////////////
  558.     ///Paint///
  559.     //////////
  560.     private Image getImage(String url) {
  561.         try {
  562.             return ImageIO.read(new URL(url));
  563.         } catch(IOException e) {
  564.             return null;
  565.         }
  566.     }
  567.  
  568.     private final Color color1 = new Color(51, 51, 51);
  569.     private final Color color2 = new Color(255, 0, 0);
  570.     private final Color color3 = new Color(255, 255, 255);
  571.     private final Color color4 = new Color(0, 0, 0);
  572.  
  573.     private final BasicStroke stroke1 = new BasicStroke(1);
  574.  
  575.     private final Font font1 = new Font("Comic Sans MS", 2, 15);
  576.     private final Font font2 = new Font("Comic Sans MS", 0, 32);
  577.     private final Font font3 = new Font("Arial", 3, 15);
  578.     private final Font font4 = new Font("Arial", 0, 13);
  579.  
  580.     private final Image img1 = getImage("http://i52.tinypic.com/2aahqgp.png");
  581.  
  582.    
  583.     @Override
  584.     public void onRepaint(Graphics g) {
  585.         drawModel(g, objects.getNearest(coal_ID), Color.BLACK, "", Color.GREEN);
  586.         drawModel(g, objects.getNearest(tin_ID), Color.GRAY, "", Color.GREEN);
  587.         drawModel(g, objects.getNearest(copper_ID), Color.ORANGE, "", Color.GREEN);
  588.         drawModel(g, objects.getNearest(gold_ID), Color.YELLOW, "", Color.GREEN);
  589.         drawModel(g, objects.getNearest(silver_ID), Color.LIGHT_GRAY, "", Color.GREEN);
  590.         drawModel(g, objects.getNearest(iron_ID), Color.RED, "", Color.GREEN);
  591.         drawModel(g, objects.getNearest(clay_ID), Color.DARK_GRAY, "", Color.GREEN);
  592.         drawModel(g, objects.getNearest(boothID), Color.GREEN, "", Color.GREEN);
  593.        
  594.        
  595.  
  596.        
  597. expGained = skills.getCurrentExp(Skills.MINING) - startExp;
  598.        
  599.         long millis = System.currentTimeMillis() - startTime;
  600.         long hours = millis / (1000 * 60 * 60);
  601.         millis -= hours * (1000 * 60 * 60);
  602.         long minutes = millis / (1000 * 60);
  603.         millis -= minutes * (1000 * 60);
  604.         long seconds = millis / 1000;
  605.        
  606.         float xpsec = 0;
  607.         if((minutes > 0 || hours > 0 || seconds > 0)&& expGained > 0) {
  608.             xpsec = ((float) expGained)/(float)(seconds + (minutes*60) + (hours*60*60));
  609.         }
  610.         float xpmin = xpsec * 60;
  611.         float xphour = xpmin * 60;
  612.        
  613.         float oresec = 0;
  614.         if((minutes > 0 || hours > 0 || seconds > 0)&& oresMined > 0) {
  615.             oresec = ((float) oresMined)/(float)(seconds + (minutes*60) + (hours*60*60));
  616.         }
  617.         float oremin = oresec * 60;
  618.         float orehour = oremin * 60;
  619.            
  620.         Graphics2D g1 = (Graphics2D)g;
  621.         g1.setColor(color4);
  622.         g1.fillRect(396, 459, 98, 12);
  623.         g1.setColor(color2);
  624.         g1.drawRect(396, 459, 98, 12);
  625.         g1.setColor(color3);
  626.         g1.setFont(font4);
  627.         g1.drawString("Hide/Show Paint.", 396, 470);
  628.         drawMouse(g1);
  629.        
  630.         Point p = mouse.getLocation();
  631.         while (!mousePath.isEmpty() && mousePath.peek().isUp())
  632.             mousePath.remove();
  633.         Point clientCursor = mouse.getLocation();
  634.         MousePathPoint mpp = new MousePathPoint(clientCursor.x,
  635.                 clientCursor.y, 3000);
  636.         if (mousePath.isEmpty() || !mousePath.getLast().equals(mpp))
  637.             mousePath.add(mpp);
  638.         MousePathPoint lastPoint = null;
  639.         for (MousePathPoint a : mousePath) {
  640.             if (lastPoint != null) {
  641.                 g1.setColor(a.getColor());
  642.                 g1.drawLine(a.x, a.y, lastPoint.x, lastPoint.y);
  643.             }
  644.             lastPoint = a;
  645.         }
  646.     g1.fillRect(p.x - 5, p.y, 12, 2);
  647.     g1.fillRect(p.x, p.y - 5, 2, 12);
  648.         if(showPaint){
  649.         g1.setColor(color1);
  650.         g1.fillRoundRect(8, 345, 488, 112, 16, 16);
  651.         g1.setColor(color2);
  652.         g1.setStroke(stroke1);
  653.         g1.drawRoundRect(8, 345, 488, 112, 16, 16);
  654.         g1.drawLine(7, 362, 494, 362);
  655.         g1.drawImage(img1, 435, 269, null);
  656.         g1.setFont(font1);
  657.         g1.setColor(color3);
  658.         g1.drawString("More human then you", 253, 338);
  659.         g1.setFont(font2);
  660.         g1.setColor(color2);
  661.         g1.drawString("MultiMiner", 75, 338);
  662.         g1.setFont(font3);
  663.         g1.setColor(color3);
  664.         g1.drawString("Status: " + Status, 12, 361);
  665.         g1.drawString("RunTime: "  + hours + ":" + minutes + ":" + seconds, 17, 390);
  666.         g1.drawString("Current Lvl: " + skills.getCurrentLevel(Skills.MINING), 17, 405);
  667.         g1.drawString("Lvl's Gained: " + gainedLvl, 17, 420);
  668.         g1.drawString("XP/TNL: " + skills.getExpToNextLevel(Skills.MINING), 17, 435);
  669.         g1.drawString("Ores Mined: " + oresMined, 250, 390);
  670.         g1.drawString("Ores/H: " + (int) orehour, 250, 405);
  671.         g1.setColor(color4);
  672.         g1.fillRect(8, 459, 98, 12);
  673.         g1.setColor(color2);
  674.         g1.drawRect(8, 459, 98, 12);
  675.         g1.setColor(color4);
  676.         g1.fillRect(396, 459, 98, 12);
  677.         g1.setColor(color2);
  678.         g1.drawRect(396, 459, 98, 12);
  679.         g1.setColor(color3);
  680.         g1.drawString("XP/H: " + (int) xphour, 250, 435);
  681.         g1.drawString("Gems Found: " + gemsMined, 250, 450);
  682.         g1.drawString("%/TNL: " + skills.getPercentToNextLevel(Skills.MINING) + "%", 17, 450);
  683.         g1.drawString("XP Gained: " + expGained, 250, 420);
  684.         g1.setFont(font4);
  685.         g1.drawString("Hide/Show Paint.", 396, 470);
  686.     }
  687.     }
  688.    
  689.     public void drawModel(Graphics g, RSObject o, Color c, String s, Color tc)  {
  690.         if(o != null) {
  691.             Polygon[] model = o.getModel().getTriangles();
  692.                     Point point = calc.tileToScreen(o.getLocation());
  693.             for(Polygon p : model)  {
  694.                 g.setColor(c);
  695.                 g.fillPolygon(p);
  696.                             g.setColor(c.darker());
  697.                 g.drawPolygon(p);
  698.             }
  699.  
  700.             g.setColor(tc);
  701.             g.drawString(s, point.x - 75, point.y - 35);
  702.             }
  703.             }
  704.             public RSTile[] reversePath(RSTile[] other) {
  705.                     RSTile[] t = new RSTile[other.length];
  706.                     for (int i = 0; i < t.length; i++) {
  707.                             t[i] = other[other.length - i - 1];
  708.                     }
  709.                     return t;
  710.             }
  711.            
  712.             @Override
  713.             public void mouseEntered(MouseEvent e) {
  714.                 // TODO Auto-generated method stub
  715.                
  716.             }
  717.  
  718.             @Override
  719.             public void mouseExited(MouseEvent e) {
  720.                 // TODO Auto-generated method stub
  721.                
  722.             }
  723.  
  724.             @Override
  725.             public void mousePressed(MouseEvent e) {
  726.                 // TODO Auto-generated method stub
  727.                
  728.             }
  729.  
  730.             @Override
  731.             public void mouseReleased(MouseEvent e) {
  732.                 // TODO Auto-generated method stub
  733.                
  734.             }
  735.  
  736.  
  737.         @Override
  738.     public void messageReceived(MessageEvent e) {
  739.         String txt = e.getMessage().toLowerCase();
  740.         if(txt.contains("you manage to mine some")) {
  741.             oresMined++;
  742.         }
  743.         if(txt.contains("just found")) {
  744.             gemsMined++;
  745.         }
  746.         if(txt.contains("mining level")) {
  747.             gainedLvl++;
  748.         }
  749.     }
  750.    
  751.         //////////////
  752.         ///AntiBan///
  753.         ////////////
  754.       @SuppressWarnings("deprecation")
  755.     private void AntiBan() {
  756.             int randomProd = random(1, 60);
  757.             if (randomProd == 1) {
  758.               int randomMore = random(1, 5);
  759.               if (randomMore == 1) {
  760.                 if (game.getCurrentTab() != 2) {
  761.                   game.openTab(2);
  762.                   Status = "Checking Mining XP + Level.";
  763.                   sleep(350, 500);
  764.                   mouse.move(random(678, 728), random(213, 232));
  765.                   sleep(2000, 3500);
  766.                 } else {
  767.                   mouse.move(random(678, 728), random(213, 232));
  768.                   sleep(2000, 3500);
  769.                 }
  770.               } else {
  771.                 sleep(1200, 2500);
  772.               }
  773.             }
  774.             if (randomProd == 2 || randomProd == 3 || randomProd == 4) {
  775.               sleep(1000, 2500);
  776.             }
  777.             if (randomProd >= 52) {
  778.               mouse.moveRandomly(65, 350);
  779.             } else
  780.               sleep(10, 30);
  781.           }
  782.  
  783.           private void AntiBanCamera() {
  784.             int randomNum = random(1, 50);
  785.             if (randomNum == 1 || randomNum == 2 || randomNum == 3) {
  786.               camera.moveRandomly(random(2000, 5500));
  787.             }
  788.             if (randomNum == 4 || randomNum == 5) {
  789.               camera.setAngle(random(10, 40));
  790.             }
  791.             if (randomNum == 6) {
  792.               camera.setPitch(random(40, 68));
  793.             }
  794.             if (randomNum == 7) {
  795.               camera.setPitch(random(20, 45));
  796.             }
  797.             if (randomNum == 8) {
  798.               camera.setPitch(random(68, 90));
  799.             } else
  800.               sleep(50, 70);
  801.           }
  802.    
  803.        
  804.           //////////
  805.           ///GUI///
  806.           ////////
  807.           class GUI extends JFrame {
  808.                 /**
  809.              *
  810.              */
  811.             private static final long serialVersionUID = 1L;
  812.                 public GUI() {
  813.                     initComponents();
  814.                 }
  815.  
  816.                 private void button1ActionPerformed(ActionEvent e) {
  817.                     String chosennn = comboBox3.getSelectedItem().toString();
  818.                     if(chosennn.equals("Coal")) {
  819.                         oreID = coal_ORE;
  820.                         oresToMine = coal_ID;
  821.                     }
  822.                     guiWait = false;
  823.                     g.dispose();
  824.                 }
  825.  
  826.                 private void button2ActionPerformed(ActionEvent e) {
  827.                     String chosennn = comboBox3.getSelectedItem().toString();
  828.                     if(chosennn.equals("Clay")) {
  829.                         oreID = clay_ORE;
  830.                         oresToMine = clay_ID;
  831.                     } else if(chosennn.equals("Tin")) {
  832.                         oreID = tin_ORE;
  833.                         oresToMine = tin_ID;
  834.                     } else if(chosennn.equals("Iron")) {
  835.                         oreID = iron_ORE;
  836.                         oresToMine = iron_ID;
  837.                     } else {
  838.                         oreID = silver_ORE;
  839.                         oresToMine = silver_ID;
  840.                     }
  841.                     guiWait = false;
  842.                     g.dispose();
  843.                 }
  844.  
  845.                 private void button3ActionPerformed(ActionEvent e) {
  846.                     String chosennn = comboBox3.getSelectedItem().toString();
  847.                     if(chosennn.equals("Clay")) {
  848.                         oreID = clay_ORE;
  849.                         oresToMine = clay_ID;
  850.                     } else if(chosennn.equals("Tin")) {
  851.                         oreID = tin_ORE;
  852.                         oresToMine = tin_ID;
  853.                     } else {
  854.                         oreID = coal_ORE;
  855.                         oresToMine = coal_ID;
  856.                     }
  857.                     guiWait = false;
  858.                     g.dispose();
  859.                 }
  860.  
  861.                 private void button5ActionPerformed(ActionEvent e) {
  862.                     String chosennn = comboBox3.getSelectedItem().toString();
  863.                     if(chosennn.equals("Coal")) {
  864.                         oreID = coal_ORE;
  865.                         oresToMine = coal_ID;
  866.                     } else if(chosennn.equals("Iron")) {
  867.                         oreID = iron_ORE;
  868.                         oresToMine = iron_ID;
  869.                     } else {
  870.                         oreID = gold_ORE;
  871.                         oresToMine = gold_ID;
  872.                     }
  873.                     guiWait = false;
  874.                     g.dispose();
  875.                 }
  876.  
  877.                 private void button4ActionPerformed(ActionEvent e) {
  878.                     String chosennn = comboBox3.getSelectedItem().toString();
  879.                     if(chosennn.equals("Coal")) {
  880.                         oreID = coal_ORE;
  881.                         oresToMine = coal_ID;
  882.                     } else {
  883.                         oreID = iron_ORE;
  884.                         oresToMine = iron_ID;
  885.                     }
  886.                     guiWait = false;
  887.                     g.dispose();
  888.                 }
  889.  
  890.                 private void button6ActionPerformed(ActionEvent e) {
  891.                     String chosennn = comboBox3.getSelectedItem().toString();
  892.                     if(chosennn.equals("Clay")) {
  893.                         oreID = clay_ORE;
  894.                         oresToMine = clay_ID;
  895.                     }
  896.                     guiWait = false;
  897.                     g.dispose();
  898.                 }
  899.  
  900.                 private void button7ActionPerformed(ActionEvent e) {
  901.                     String chosennn = comboBox3.getSelectedItem().toString();
  902.                     if(chosennn.equals("Iron")) {
  903.                         oreID = iron_ORE;
  904.                         oresToMine = iron_ID;
  905.                     }
  906.                     guiWait = false;
  907.                     g.dispose();
  908.                 }
  909.  
  910.                 private void initComponents() {
  911.                     // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
  912.                     // Generated using JFormDesigner Evaluation license - Jaap Strampel
  913.                     tabbedPane1 = new JTabbedPane();
  914.                     panel1 = new JPanel();
  915.                     label5 = new JLabel();
  916.                     comboBox1 = new JComboBox();
  917.                     button1 = new JButton();
  918.                     panel2 = new JPanel();
  919.                     label6 = new JLabel();
  920.                     comboBox2 = new JComboBox();
  921.                     button2 = new JButton();
  922.                     panel3 = new JPanel();
  923.                     label7 = new JLabel();
  924.                     comboBox3 = new JComboBox();
  925.                     button3 = new JButton();
  926.                     panel4 = new JPanel();
  927.                     label9 = new JLabel();
  928.                     comboBox5 = new JComboBox();
  929.                     button5 = new JButton();
  930.                     panel5 = new JPanel();
  931.                     label8 = new JLabel();
  932.                     comboBox4 = new JComboBox();
  933.                     button4 = new JButton();
  934.                     panel6 = new JPanel();
  935.                     label10 = new JLabel();
  936.                     comboBox6 = new JComboBox();
  937.                     button6 = new JButton();
  938.                     panel7 = new JPanel();
  939.                     label11 = new JLabel();
  940.                     comboBox7 = new JComboBox();
  941.                     button7 = new JButton();
  942.                     panel8 = new JPanel();
  943.                     label12 = new JLabel();
  944.                     label14 = new JLabel();
  945.                     textField1 = new JTextField();
  946.                     label1 = new JLabel();
  947.                     label2 = new JLabel();
  948.                     label3 = new JLabel();
  949.                     label4 = new JLabel();
  950.  
  951.                     //======== this ========
  952.                     setTitle("MultiMiner GUI");
  953.                     Container contentPane = getContentPane();
  954.  
  955.                     //======== tabbedPane1 ========
  956.                     {
  957.  
  958.                         //======== panel1 ========
  959.                         {
  960.  
  961.                             //---- label5 ----
  962.                             label5.setText("Ores To Mine:");
  963.                             label5.setFont(label5.getFont().deriveFont(label5.getFont().getSize() + 3f));
  964.  
  965.                             //---- comboBox1 ----
  966.                             comboBox1.setFont(comboBox1.getFont().deriveFont(comboBox1.getFont().getSize() + 3f));
  967.                             comboBox1.setModel(new DefaultComboBoxModel(new String[] {
  968.                                 "Coal"
  969.                             }));
  970.  
  971.                             //---- button1 ----
  972.                             button1.setText("Start Botting");
  973.                             button1.setFont(button1.getFont().deriveFont(button1.getFont().getSize() + 3f));
  974.                             button1.addActionListener(new ActionListener() {
  975.                                 public void actionPerformed(ActionEvent e) {
  976.                                     button1ActionPerformed(e);
  977.                                 }
  978.                             });
  979.  
  980.                             GroupLayout panel1Layout = new GroupLayout(panel1);
  981.                             panel1.setLayout(panel1Layout);
  982.                             panel1Layout.setHorizontalGroup(
  983.                                 panel1Layout.createParallelGroup()
  984.                                     .addGroup(panel1Layout.createParallelGroup()
  985.                                         .addGroup(panel1Layout.createSequentialGroup()
  986.                                             .addGap(0, 164, Short.MAX_VALUE)
  987.                                             .addGroup(panel1Layout.createParallelGroup()
  988.                                                 .addGroup(panel1Layout.createSequentialGroup()
  989.                                                     .addGap(41, 41, 41)
  990.                                                     .addComponent(label5))
  991.                                                 .addComponent(comboBox1, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE)
  992.                                                 .addComponent(button1, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE))
  993.                                             .addGap(0, 164, Short.MAX_VALUE)))
  994.                                     .addGap(0, 503, Short.MAX_VALUE)
  995.                             );
  996.                             panel1Layout.setVerticalGroup(
  997.                                 panel1Layout.createParallelGroup()
  998.                                     .addGroup(panel1Layout.createParallelGroup()
  999.                                         .addGroup(panel1Layout.createSequentialGroup()
  1000.                                             .addGap(0, 14, Short.MAX_VALUE)
  1001.                                             .addComponent(label5)
  1002.                                             .addGap(6, 6, 6)
  1003.                                             .addComponent(comboBox1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
  1004.                                             .addGap(18, 18, 18)
  1005.                                             .addComponent(button1, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)
  1006.                                             .addGap(0, 14, Short.MAX_VALUE)))
  1007.                                     .addGap(0, 133, Short.MAX_VALUE)
  1008.                             );
  1009.                         }
  1010.                         tabbedPane1.addTab("Mining Guild", panel1);
  1011.  
  1012.  
  1013.                         //======== panel2 ========
  1014.                         {
  1015.  
  1016.                             //---- label6 ----
  1017.                             label6.setText("Ores To Mine:");
  1018.                             label6.setFont(label6.getFont().deriveFont(label6.getFont().getSize() + 3f));
  1019.  
  1020.                             //---- comboBox2 ----
  1021.                             comboBox2.setFont(comboBox2.getFont().deriveFont(comboBox2.getFont().getSize() + 3f));
  1022.                             comboBox2.setModel(new DefaultComboBoxModel(new String[] {
  1023.                                 "Clay",
  1024.                                 "Tin",
  1025.                                 "Iron",
  1026.                                 "Silver"
  1027.                             }));
  1028.  
  1029.                             //---- button2 ----
  1030.                             button2.setText("Start Botting");
  1031.                             button2.setFont(button2.getFont().deriveFont(button2.getFont().getSize() + 3f));
  1032.                             button2.addActionListener(new ActionListener() {
  1033.                                 public void actionPerformed(ActionEvent e) {
  1034.                                     button2ActionPerformed(e);
  1035.                                 }
  1036.                             });
  1037.  
  1038.                             GroupLayout panel2Layout = new GroupLayout(panel2);
  1039.                             panel2.setLayout(panel2Layout);
  1040.                             panel2Layout.setHorizontalGroup(
  1041.                                 panel2Layout.createParallelGroup()
  1042.                                     .addGroup(panel2Layout.createParallelGroup()
  1043.                                         .addGroup(panel2Layout.createSequentialGroup()
  1044.                                             .addGap(0, 164, Short.MAX_VALUE)
  1045.                                             .addGroup(panel2Layout.createParallelGroup()
  1046.                                                 .addGroup(panel2Layout.createSequentialGroup()
  1047.                                                     .addGap(41, 41, 41)
  1048.                                                     .addComponent(label6))
  1049.                                                 .addComponent(comboBox2, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE)
  1050.                                                 .addComponent(button2, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE))
  1051.                                             .addGap(0, 164, Short.MAX_VALUE)))
  1052.                                     .addGap(0, 503, Short.MAX_VALUE)
  1053.                             );
  1054.                             panel2Layout.setVerticalGroup(
  1055.                                 panel2Layout.createParallelGroup()
  1056.                                     .addGroup(panel2Layout.createParallelGroup()
  1057.                                         .addGroup(panel2Layout.createSequentialGroup()
  1058.                                             .addGap(0, 14, Short.MAX_VALUE)
  1059.                                             .addComponent(label6)
  1060.                                             .addGap(6, 6, 6)
  1061.                                             .addComponent(comboBox2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
  1062.                                             .addGap(18, 18, 18)
  1063.                                             .addComponent(button2, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)
  1064.                                             .addGap(0, 14, Short.MAX_VALUE)))
  1065.                                     .addGap(0, 133, Short.MAX_VALUE)
  1066.                             );
  1067.                         }
  1068.                         tabbedPane1.addTab("Varrock West", panel2);
  1069.  
  1070.  
  1071.                         //======== panel3 ========
  1072.                         {
  1073.  
  1074.                             //---- label7 ----
  1075.                             label7.setText("Ores To Mine:");
  1076.                             label7.setFont(label7.getFont().deriveFont(label7.getFont().getSize() + 3f));
  1077.  
  1078.                             //---- comboBox3 ----
  1079.                             comboBox3.setFont(comboBox3.getFont().deriveFont(comboBox3.getFont().getSize() + 3f));
  1080.                             comboBox3.setModel(new DefaultComboBoxModel(new String[] {
  1081.                                 "Coal",
  1082.                                 "Tin",
  1083.                                 "Clay"
  1084.                             }));
  1085.  
  1086.                             //---- button3 ----
  1087.                             button3.setText("Start Botting");
  1088.                             button3.setFont(button3.getFont().deriveFont(button3.getFont().getSize() + 3f));
  1089.                             button3.addActionListener(new ActionListener() {
  1090.                                 public void actionPerformed(ActionEvent e) {
  1091.                                     button3ActionPerformed(e);
  1092.                                 }
  1093.                             });
  1094.  
  1095.                             GroupLayout panel3Layout = new GroupLayout(panel3);
  1096.                             panel3.setLayout(panel3Layout);
  1097.                             panel3Layout.setHorizontalGroup(
  1098.                                 panel3Layout.createParallelGroup()
  1099.                                     .addGroup(panel3Layout.createParallelGroup()
  1100.                                         .addGroup(panel3Layout.createSequentialGroup()
  1101.                                             .addGap(0, 164, Short.MAX_VALUE)
  1102.                                             .addGroup(panel3Layout.createParallelGroup()
  1103.                                                 .addGroup(panel3Layout.createSequentialGroup()
  1104.                                                     .addGap(41, 41, 41)
  1105.                                                     .addComponent(label7))
  1106.                                                 .addComponent(comboBox3, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE)
  1107.                                                 .addComponent(button3, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE))
  1108.                                             .addGap(0, 164, Short.MAX_VALUE)))
  1109.                                     .addGap(0, 503, Short.MAX_VALUE)
  1110.                             );
  1111.                             panel3Layout.setVerticalGroup(
  1112.                                 panel3Layout.createParallelGroup()
  1113.                                     .addGroup(panel3Layout.createParallelGroup()
  1114.                                         .addGroup(panel3Layout.createSequentialGroup()
  1115.                                             .addGap(0, 14, Short.MAX_VALUE)
  1116.                                             .addComponent(label7)
  1117.                                             .addGap(6, 6, 6)
  1118.                                             .addComponent(comboBox3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
  1119.                                             .addGap(18, 18, 18)
  1120.                                             .addComponent(button3, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)
  1121.                                             .addGap(0, 14, Short.MAX_VALUE)))
  1122.                                     .addGap(0, 133, Short.MAX_VALUE)
  1123.                             );
  1124.                         }
  1125.                         tabbedPane1.addTab("Barbarian Village", panel3);
  1126.  
  1127.  
  1128.                         //======== panel4 ========
  1129.                         {
  1130.  
  1131.                             //---- label9 ----
  1132.                             label9.setText("Ores To Mine:");
  1133.                             label9.setFont(label9.getFont().deriveFont(label9.getFont().getSize() + 3f));
  1134.  
  1135.                             //---- comboBox5 ----
  1136.                             comboBox5.setFont(comboBox5.getFont().deriveFont(comboBox5.getFont().getSize() + 3f));
  1137.                             comboBox5.setModel(new DefaultComboBoxModel(new String[] {
  1138.                                 "Coal",
  1139.                                 "Iron",
  1140.                                 "Gold"
  1141.                             }));
  1142.  
  1143.                             //---- button5 ----
  1144.                             button5.setText("Start Botting");
  1145.                             button5.setFont(button5.getFont().deriveFont(button5.getFont().getSize() + 3f));
  1146.                             button5.addActionListener(new ActionListener() {
  1147.                                 public void actionPerformed(ActionEvent e) {
  1148.                                     button5ActionPerformed(e);
  1149.                                 }
  1150.                             });
  1151.  
  1152.                             GroupLayout panel4Layout = new GroupLayout(panel4);
  1153.                             panel4.setLayout(panel4Layout);
  1154.                             panel4Layout.setHorizontalGroup(
  1155.                                 panel4Layout.createParallelGroup()
  1156.                                     .addGroup(panel4Layout.createParallelGroup()
  1157.                                         .addGroup(panel4Layout.createSequentialGroup()
  1158.                                             .addGap(0, 164, Short.MAX_VALUE)
  1159.                                             .addGroup(panel4Layout.createParallelGroup()
  1160.                                                 .addGroup(panel4Layout.createSequentialGroup()
  1161.                                                     .addGap(41, 41, 41)
  1162.                                                     .addComponent(label9))
  1163.                                                 .addComponent(comboBox5, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE)
  1164.                                                 .addComponent(button5, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE))
  1165.                                             .addGap(0, 164, Short.MAX_VALUE)))
  1166.                                     .addGap(0, 503, Short.MAX_VALUE)
  1167.                             );
  1168.                             panel4Layout.setVerticalGroup(
  1169.                                 panel4Layout.createParallelGroup()
  1170.                                     .addGroup(panel4Layout.createParallelGroup()
  1171.                                         .addGroup(panel4Layout.createSequentialGroup()
  1172.                                             .addGap(0, 14, Short.MAX_VALUE)
  1173.                                             .addComponent(label9)
  1174.                                             .addGap(6, 6, 6)
  1175.                                             .addComponent(comboBox5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
  1176.                                             .addGap(18, 18, 18)
  1177.                                             .addComponent(button5, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)
  1178.                                             .addGap(0, 14, Short.MAX_VALUE)))
  1179.                                     .addGap(0, 133, Short.MAX_VALUE)
  1180.                             );
  1181.                         }
  1182.                         tabbedPane1.addTab("Al Kharid", panel4);
  1183.  
  1184.  
  1185.                         //======== panel5 ========
  1186.                         {
  1187.  
  1188.                             //---- label8 ----
  1189.                             label8.setText("Ores To Mine:");
  1190.                             label8.setFont(label8.getFont().deriveFont(label8.getFont().getSize() + 3f));
  1191.  
  1192.                             //---- comboBox4 ----
  1193.                             comboBox4.setFont(comboBox4.getFont().deriveFont(comboBox4.getFont().getSize() + 3f));
  1194.                             comboBox4.setModel(new DefaultComboBoxModel(new String[] {
  1195.                                 "Coal",
  1196.                                 "Iron"
  1197.                             }));
  1198.  
  1199.                             //---- button4 ----
  1200.                             button4.setText("Start Botting");
  1201.                             button4.setFont(button4.getFont().deriveFont(button4.getFont().getSize() + 3f));
  1202.                             button4.addActionListener(new ActionListener() {
  1203.                                 public void actionPerformed(ActionEvent e) {
  1204.                                     button4ActionPerformed(e);
  1205.                                 }
  1206.                             });
  1207.  
  1208.                             GroupLayout panel5Layout = new GroupLayout(panel5);
  1209.                             panel5.setLayout(panel5Layout);
  1210.                             panel5Layout.setHorizontalGroup(
  1211.                                 panel5Layout.createParallelGroup()
  1212.                                     .addGroup(panel5Layout.createParallelGroup()
  1213.                                         .addGroup(panel5Layout.createSequentialGroup()
  1214.                                             .addGap(0, 164, Short.MAX_VALUE)
  1215.                                             .addGroup(panel5Layout.createParallelGroup()
  1216.                                                 .addGroup(panel5Layout.createSequentialGroup()
  1217.                                                     .addGap(41, 41, 41)
  1218.                                                     .addComponent(label8))
  1219.                                                 .addComponent(comboBox4, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE)
  1220.                                                 .addComponent(button4, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE))
  1221.                                             .addGap(0, 164, Short.MAX_VALUE)))
  1222.                                     .addGap(0, 503, Short.MAX_VALUE)
  1223.                             );
  1224.                             panel5Layout.setVerticalGroup(
  1225.                                 panel5Layout.createParallelGroup()
  1226.                                     .addGroup(panel5Layout.createParallelGroup()
  1227.                                         .addGroup(panel5Layout.createSequentialGroup()
  1228.                                             .addGap(0, 14, Short.MAX_VALUE)
  1229.                                             .addComponent(label8)
  1230.                                             .addGap(6, 6, 6)
  1231.                                             .addComponent(comboBox4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
  1232.                                             .addGap(18, 18, 18)
  1233.                                             .addComponent(button4, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)
  1234.                                             .addGap(0, 14, Short.MAX_VALUE)))
  1235.                                     .addGap(0, 133, Short.MAX_VALUE)
  1236.                             );
  1237.                         }
  1238.                         tabbedPane1.addTab("Ardougne", panel5);
  1239.  
  1240.  
  1241.                         //======== panel6 ========
  1242.                         {
  1243.  
  1244.                             //---- label10 ----
  1245.                             label10.setText("Ores To Mine:");
  1246.                             label10.setFont(label10.getFont().deriveFont(label10.getFont().getSize() + 3f));
  1247.  
  1248.                             //---- comboBox6 ----
  1249.                             comboBox6.setFont(comboBox6.getFont().deriveFont(comboBox6.getFont().getSize() + 3f));
  1250.                             comboBox6.setModel(new DefaultComboBoxModel(new String[] {
  1251.                                 "Clay"
  1252.                             }));
  1253.  
  1254.                             //---- button6 ----
  1255.                             button6.setText("Start Botting");
  1256.                             button6.setFont(button6.getFont().deriveFont(button6.getFont().getSize() + 3f));
  1257.                             button6.addActionListener(new ActionListener() {
  1258.                                 public void actionPerformed(ActionEvent e) {
  1259.                                     button6ActionPerformed(e);
  1260.                                 }
  1261.                             });
  1262.  
  1263.                             GroupLayout panel6Layout = new GroupLayout(panel6);
  1264.                             panel6.setLayout(panel6Layout);
  1265.                             panel6Layout.setHorizontalGroup(
  1266.                                 panel6Layout.createParallelGroup()
  1267.                                     .addGroup(panel6Layout.createParallelGroup()
  1268.                                         .addGroup(panel6Layout.createSequentialGroup()
  1269.                                             .addGap(0, 164, Short.MAX_VALUE)
  1270.                                             .addGroup(panel6Layout.createParallelGroup()
  1271.                                                 .addGroup(panel6Layout.createSequentialGroup()
  1272.                                                     .addGap(41, 41, 41)
  1273.                                                     .addComponent(label10))
  1274.                                                 .addComponent(comboBox6, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE)
  1275.                                                 .addComponent(button6, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE))
  1276.                                             .addGap(0, 164, Short.MAX_VALUE)))
  1277.                                     .addGap(0, 503, Short.MAX_VALUE)
  1278.                             );
  1279.                             panel6Layout.setVerticalGroup(
  1280.                                 panel6Layout.createParallelGroup()
  1281.                                     .addGroup(panel6Layout.createParallelGroup()
  1282.                                         .addGroup(panel6Layout.createSequentialGroup()
  1283.                                             .addGap(0, 14, Short.MAX_VALUE)
  1284.                                             .addComponent(label10)
  1285.                                             .addGap(6, 6, 6)
  1286.                                             .addComponent(comboBox6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
  1287.                                             .addGap(18, 18, 18)
  1288.                                             .addComponent(button6, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)
  1289.                                             .addGap(0, 14, Short.MAX_VALUE)))
  1290.                                     .addGap(0, 133, Short.MAX_VALUE)
  1291.                             );
  1292.                         }
  1293.                         tabbedPane1.addTab("Draynor Village", panel6);
  1294.  
  1295.  
  1296.                         //======== panel7 ========
  1297.                         {
  1298.  
  1299.                             //---- label11 ----
  1300.                             label11.setText("Ores To Mine:");
  1301.                             label11.setFont(label11.getFont().deriveFont(label11.getFont().getSize() + 3f));
  1302.  
  1303.                             //---- comboBox7 ----
  1304.                             comboBox7.setFont(comboBox7.getFont().deriveFont(comboBox7.getFont().getSize() + 3f));
  1305.                             comboBox7.setModel(new DefaultComboBoxModel(new String[] {
  1306.                                 "Iron"
  1307.                             }));
  1308.  
  1309.                             //---- button7 ----
  1310.                             button7.setText("Start Botting");
  1311.                             button7.setFont(button7.getFont().deriveFont(button7.getFont().getSize() + 3f));
  1312.                             button7.addActionListener(new ActionListener() {
  1313.                                 public void actionPerformed(ActionEvent e) {
  1314.                                     button7ActionPerformed(e);
  1315.                                 }
  1316.                             });
  1317.  
  1318.                             GroupLayout panel7Layout = new GroupLayout(panel7);
  1319.                             panel7.setLayout(panel7Layout);
  1320.                             panel7Layout.setHorizontalGroup(
  1321.                                 panel7Layout.createParallelGroup()
  1322.                                     .addGroup(panel7Layout.createParallelGroup()
  1323.                                         .addGroup(panel7Layout.createSequentialGroup()
  1324.                                             .addGap(0, 164, Short.MAX_VALUE)
  1325.                                             .addGroup(panel7Layout.createParallelGroup()
  1326.                                                 .addGroup(panel7Layout.createSequentialGroup()
  1327.                                                     .addGap(41, 41, 41)
  1328.                                                     .addComponent(label11))
  1329.                                                 .addComponent(comboBox7, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE)
  1330.                                                 .addComponent(button7, GroupLayout.PREFERRED_SIZE, 175, GroupLayout.PREFERRED_SIZE))
  1331.                                             .addGap(0, 164, Short.MAX_VALUE)))
  1332.                                     .addGap(0, 503, Short.MAX_VALUE)
  1333.                             );
  1334.                             panel7Layout.setVerticalGroup(
  1335.                                 panel7Layout.createParallelGroup()
  1336.                                     .addGroup(panel7Layout.createParallelGroup()
  1337.                                         .addGroup(panel7Layout.createSequentialGroup()
  1338.                                             .addGap(0, 14, Short.MAX_VALUE)
  1339.                                             .addComponent(label11)
  1340.                                             .addGap(6, 6, 6)
  1341.                                             .addComponent(comboBox7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
  1342.                                             .addGap(18, 18, 18)
  1343.                                             .addComponent(button7, GroupLayout.PREFERRED_SIZE, 41, GroupLayout.PREFERRED_SIZE)
  1344.                                             .addGap(0, 14, Short.MAX_VALUE)))
  1345.                                     .addGap(0, 133, Short.MAX_VALUE)
  1346.                             );
  1347.                         }
  1348.                         tabbedPane1.addTab("Yanille", panel7);
  1349.  
  1350.  
  1351.                         //======== panel8 ========
  1352.                         {
  1353.  
  1354.                             //---- label12 ----
  1355.                             label12.setText("More info is in the powerbot thread");
  1356.                             label12.setFont(label12.getFont().deriveFont(label12.getFont().getSize() + 3f));
  1357.  
  1358.                             //---- label14 ----
  1359.                             label14.setText("Copy and paste this into your browser");
  1360.                             label14.setFont(label14.getFont().deriveFont(label14.getFont().getSize() + 1f));
  1361.  
  1362.                             //---- textField1 ----
  1363.                             textField1.setText("http://www.powerbot.org/community/topic/438062-multiminer-mines-at-many-mining-spots-fast-flawless-always-banks/");
  1364.                             textField1.setFont(textField1.getFont().deriveFont(textField1.getFont().getSize() - 2f));
  1365.  
  1366.                             GroupLayout panel8Layout = new GroupLayout(panel8);
  1367.                             panel8.setLayout(panel8Layout);
  1368.                             panel8Layout.setHorizontalGroup(
  1369.                                 panel8Layout.createParallelGroup()
  1370.                                     .addGroup(panel8Layout.createSequentialGroup()
  1371.                                         .addGroup(panel8Layout.createParallelGroup()
  1372.                                             .addGroup(panel8Layout.createSequentialGroup()
  1373.                                                 .addGap(140, 140, 140)
  1374.                                                 .addGroup(panel8Layout.createParallelGroup(GroupLayout.Alignment.TRAILING, false)
  1375.                                                     .addComponent(label14, GroupLayout.Alignment.LEADING, 0, 0, Short.MAX_VALUE)
  1376.                                                     .addComponent(label12, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
  1377.                                             .addComponent(textField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
  1378.                                         .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  1379.                             );
  1380.                             panel8Layout.setVerticalGroup(
  1381.                                 panel8Layout.createParallelGroup()
  1382.                                     .addGroup(panel8Layout.createSequentialGroup()
  1383.                                         .addContainerGap()
  1384.                                         .addComponent(label12)
  1385.                                         .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
  1386.                                         .addComponent(textField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
  1387.                                         .addGap(15, 15, 15)
  1388.                                         .addComponent(label14)
  1389.                                         .addContainerGap(52, Short.MAX_VALUE))
  1390.                             );
  1391.                         }
  1392.                         tabbedPane1.addTab("Info", panel8);
  1393.  
  1394.                     }
  1395.  
  1396.                     //---- label1 ----
  1397.                     label1.setText("MultiMiner");
  1398.                     label1.setFont(new Font("Comic Sans MS", Font.ITALIC, 48));
  1399.                     label1.setForeground(Color.red);
  1400.  
  1401.                     //---- label2 ----
  1402.                     label2.setText("V 2.0");
  1403.  
  1404.                     //---- label3 ----
  1405.                     label3.setText("By Rudie");
  1406.                     label3.setForeground(Color.lightGray);
  1407.                     label3.setFont(new Font("Tahoma", Font.PLAIN, 36));
  1408.  
  1409.                     //---- label4 ----
  1410.                     label4.setText("\u00a9 2011");
  1411.  
  1412.                     GroupLayout contentPaneLayout = new GroupLayout(contentPane);
  1413.                     contentPane.setLayout(contentPaneLayout);
  1414.                     contentPaneLayout.setHorizontalGroup(
  1415.                         contentPaneLayout.createParallelGroup()
  1416.                             .addGroup(contentPaneLayout.createSequentialGroup()
  1417.                                 .addGroup(contentPaneLayout.createParallelGroup()
  1418.                                     .addGroup(contentPaneLayout.createSequentialGroup()
  1419.                                         .addGap(6, 6, 6)
  1420.                                         .addComponent(label1, GroupLayout.PREFERRED_SIZE, 259, GroupLayout.PREFERRED_SIZE)
  1421.                                         .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
  1422.                                         .addComponent(label2)
  1423.                                         .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
  1424.                                         .addComponent(label3)
  1425.                                         .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
  1426.                                         .addComponent(label4))
  1427.                                     .addComponent(tabbedPane1, GroupLayout.PREFERRED_SIZE, 508, GroupLayout.PREFERRED_SIZE))
  1428.                                 .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  1429.                     );
  1430.                     contentPaneLayout.setVerticalGroup(
  1431.                         contentPaneLayout.createParallelGroup()
  1432.                             .addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
  1433.                                 .addComponent(tabbedPane1, GroupLayout.PREFERRED_SIZE, 161, GroupLayout.PREFERRED_SIZE)
  1434.                                 .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)
  1435.                                 .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
  1436.                                     .addComponent(label1)
  1437.                                     .addComponent(label2, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE)
  1438.                                     .addComponent(label3)
  1439.                                     .addComponent(label4))
  1440.                                 .addContainerGap())
  1441.                     );
  1442.                     setSize(515, 285);
  1443.                     setLocationRelativeTo(getOwner());
  1444.                     // JFormDesigner - End of component initialization  //GEN-END:initComponents
  1445.                 }
  1446.  
  1447.                 // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
  1448.                 // Generated using JFormDesigner Evaluation license - Jaap Strampel
  1449.                 private JTabbedPane tabbedPane1;
  1450.                 private JPanel panel1;
  1451.                 private JLabel label5;
  1452.                 private JComboBox comboBox1;
  1453.                 private JButton button1;
  1454.                 private JPanel panel2;
  1455.                 private JLabel label6;
  1456.                 private JComboBox comboBox2;
  1457.                 private JButton button2;
  1458.                 private JPanel panel3;
  1459.                 private JLabel label7;
  1460.                 private JComboBox comboBox3;
  1461.                 private JButton button3;
  1462.                 private JPanel panel4;
  1463.                 private JLabel label9;
  1464.                 private JComboBox comboBox5;
  1465.                 private JButton button5;
  1466.                 private JPanel panel5;
  1467.                 private JLabel label8;
  1468.                 private JComboBox comboBox4;
  1469.                 private JButton button4;
  1470.                 private JPanel panel6;
  1471.                 private JLabel label10;
  1472.                 private JComboBox comboBox6;
  1473.                 private JButton button6;
  1474.                 private JPanel panel7;
  1475.                 private JLabel label11;
  1476.                 private JComboBox comboBox7;
  1477.                 private JButton button7;
  1478.                 private JPanel panel8;
  1479.                 private JLabel label12;
  1480.                 private JLabel label14;
  1481.                 private JTextField textField1;
  1482.                 private JLabel label1;
  1483.                 private JLabel label2;
  1484.                 private JLabel label3;
  1485.                 private JLabel label4;
  1486.                 // JFormDesigner - End of variables declaration  //GEN-END:variables
  1487.             }
  1488. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement