- import org.rsbot.event.events.MessageEvent;
- import org.rsbot.event.listeners.MessageListener;
- import org.rsbot.event.listeners.PaintListener;
- import org.rsbot.script.Script;
- import org.rsbot.script.ScriptManifest;
- import org.rsbot.script.util.Timer;
- import org.rsbot.script.wrappers.RSArea;
- import org.rsbot.script.wrappers.RSComponent;
- import org.rsbot.script.wrappers.RSInterface;
- import org.rsbot.script.wrappers.RSObject;
- import org.rsbot.script.wrappers.RSTile;
- import org.rsbot.script.wrappers.RSWeb;
- import java.awt.*;
- import javax.imageio.ImageIO;
- import java.io.IOException;
- import java.net.URL;
- import java.awt.event.ActionEvent;
- import java.awt.event.ActionListener;
- import java.awt.event.MouseEvent;
- import java.awt.event.MouseListener;
- import java.awt.*;
- import java.awt.event.*;
- import java.awt.geom.Area;
- import org.rsbot.script.*;
- import org.rsbot.script.wrappers.*;
- import org.rsbot.event.events.*;
- import org.rsbot.script.methods.*;
- import java.awt.event.MouseMotionListener;
- import java.awt.image.BufferedImage;
- import java.net.MalformedURLException;
- import javax.swing.*;
- import javax.swing.event.*;
- import org.rsbot.script.methods.Game;
- @ScriptManifest(authors = "Munchkin", name = "Flaxer", version = 1, description = "Picks your flax at Seer's Village")
- public class FlaxerWithSpinning extends Script implements PaintListener, MessageListener, MouseListener {
- RSTile flaxArea = new RSTile(2740, 3449, 0);
- RSTile bankArea = new RSTile(2726,3491,0);
- RSTile house = new RSTile(2715, 3471, 0);
- RSTile doorPath = new RSTile(2716, 3472, 0);
- RSArea door = new RSArea (new RSTile(2716,3471,0), new RSTile(2715,3473,0));
- int flaxID = 2646;
- int boothID = 25808;
- int animation = -1;
- int ladderA = 25938;
- int ladderB = 25939;
- int spinnerID = 25824;
- int profit;
- int Flaxes = 0;
- int doorclosedID = 25819;
- long startTime;
- int flaxprice = 1779;
- int ItemPrice;
- private final Color color1 = new Color(195, 12, 62);
- private final Color color2 = new Color(51, 102, 0);
- private final Color color3 = new Color(0, 153, 153);
- private final BasicStroke stroke1 = new BasicStroke(4);
- private final Font font1 = new Font("Lucida Sans Unicode", 1, 25);
- private final Image img1 = getImage("http://www.rune-tips.net/misc/images/flax.gif");
- private final RenderingHints antialiasing = new RenderingHints(
- RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
- private static final Color MOUSE_COLOR = new Color(242, 240, 242),
- MOUSE_BORDER_COLOR = new Color(132, 198, 99),
- MOUSE_CENTER_COLOR = new Color(193, 4, 53);
- private boolean pressed = false;
- private int absoluteY = 0;
- public int loop() {
- AB.antiBanMethod();
- if (AB.AFKTimer.isRunning()){return 200;}
- if(inventory.isFull() && !atBank()){
- Doorpath();
- opendoorandclimb();
- spinFlax();
- downladder();
- bankArea();
- }
- if(inventory.isFull() && atBank()){
- doBank();
- }
- if(!inventory.isFull() && atBank()){
- flaxArea();
- }
- if(!inventory.isFull() && atflax()){
- pickingFlax();
- }
- return random(500,1000);
- }
- private void downladder(){
- RSObject laddertopfloor = objects.getNearest(ladderB);
- laddertopfloor.doAction("Climb-down");
- }
- private void climbladder(){
- RSObject Ladderbottomfloor = objects.getNearest(ladderA);
- Ladderbottomfloor.doAction("Climb-up");
- }
- public boolean DoorArea(){
- RSArea door = new RSArea (new RSTile(2716,3471,0), new RSTile(2715,3473,0));
- return door.contains(getMyPlayer().getLocation());
- }
- private void Doorpath(){
- RSWeb webToBank = web.getWeb(getMyPlayer().getLocation(), doorPath);
- webToBank.step();
- }
- private void opendoorandclimb(){
- sleep(random(1200, 1500));
- RSObject DoorC = objects.getNearest(doorclosedID);
- if(DoorC != null && door.contains(players.getMyPlayer().getLocation())) {
- DoorC.doAction("Open");
- if(!players.getMyPlayer().isMoving()) {
- climbladder();
- }
- }
- }
- private void spinFlax() {
- if(inventory.contains(flaxID) && objects.getNearest(spinnerID).isOnScreen()){
- RSObject SpinningWheel = objects.getNearest(36970);
- if(calc.distanceTo(SpinningWheel) <= 2){
- SpinningWheel.doClick();
- int fail = 0;
- while (fail++ < 10 && !interfaces.getComponent(905, 0).isValid())
- sleep(200);
- }
- RSInterface spinningwheel = interfaces.get(905);
- if(spinningwheel.isValid()){
- RSComponent flax = interfaces.getComponent(905, 16);
- flax.doClick();
- }
- Timer t = new Timer(3000);
- while(t.isRunning()){
- if(getMyPlayer().getAnimation() != -1){
- t.reset();
- if(interfaces.canContinue()){
- interfaces.clickContinue();
- }
- }
- sleep(100);
- }
- }
- }
- 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 void onRepaint(Graphics g1) {
- profit = Flaxes * ItemPrice;
- long millis = System.currentTimeMillis() - startTime;
- long hours = millis / (1000 * 60 * 60);
- millis -= hours * (1000 * 60 * 60);
- long minuites = millis / (1000 * 60);
- millis -= minuites * (1000 * 60);
- long seconds = millis / 1000;
- Graphics2D g = (Graphics2D)g1;
- g.setRenderingHints(antialiasing);
- g.setColor(color1);
- g.fillRect(6, 345, 506, 113);
- g.setColor(color2);
- g.setStroke(stroke1);
- g.drawRect(6, 345, 506, 113);
- g.drawImage(img1, 381, 380, null);
- g.drawImage(img1, 327, 370, null);
- g.drawImage(img1, 419, 373, null);
- g.drawImage(img1, 373, 352, null);
- g.setFont(font1);
- g.setColor(color3);
- g.drawString("Munchkin's Flax Picker ", 7, 451);
- g.drawString("Time Elapsed: " + hours + ":" + minuites + ":" + seconds, 20, 370);
- g.drawString("Profit: " + profit, 23, 392);
- if (AB.AFKTimer.isRunning()){
- g.setColor(new Color(51, 51, 51, 150));
- g.fillRect(2, 1, 516, 336);
- g.setColor(new Color(255, 255, 255));
- g.drawRect(2, 1, 516, 336);
- g.setFont(new Font("Arial", 0, 12));
- g.drawString("Time Left in AFK: " + AB.AFKTimer.toRemainingString(), 147, 176);
- }
- drawMouse(g);
- }
- private void bankArea() {
- RSWeb webToBank = web.getWeb(getMyPlayer().getLocation(), bankArea);
- webToBank.step();
- }
- private void flaxArea(){
- RSWeb webToMine = web.getWeb(getMyPlayer().getLocation(), flaxArea);
- webToMine.step();
- }
- private void pickingFlax(){
- RSObject flax = objects.getNearest(flaxID);
- if (getMyPlayer().getAnimation() == animation) {
- flax.doAction("Pick");
- sleep(500, 1000);
- while (players.getMyPlayer().isMoving()) {
- sleep(3500, 4000);
- }
- sleep(900, 1200);
- }
- }
- private void doBank(){
- if(!bank.isOpen()) {
- bank.open();
- sleep(400, 500);
- }
- bank.depositAll();
- sleep(400, 500);
- if(bank.isOpen())
- bank.close();
- }
- private boolean atBank() {
- RSObject bank = objects.getNearest(boothID);
- if(bank != null) {
- if (bank.isReachable()) {
- return true;
- }
- }
- return false;
- }
- private boolean atflax() {
- RSObject flax = objects.getNearest(flaxID);
- if(flax != null) {
- if(flax.isOnScreen()) {
- return true;
- }
- }
- return false;
- }
- public boolean onStart(){
- AB.setVisible(true);
- while(AB.isVisible()){
- sleep(200);
- }
- startTime = System.currentTimeMillis();
- ItemPrice = grandExchange.lookup(flaxprice).getGuidePrice();
- log("Welcome to Munchkin's Flax picker");
- return true;
- }
- public AntiBan AB = new AntiBan();
- class AntiBan extends JFrame {
- /*
- @Author Joe Titus
- @Date 5/8/2011
- */
- public Timer antiBanTimer = new Timer(0);
- public boolean customAB, AFK, Mouse, Camera, Tabs, LogOut, ABOn;
- public int ABFreq;
- public double ABFreqTime;
- Timer AFKTimer = new Timer (0);
- public void antiBanMethod(){
- if (ABOn){
- if (!antiBanTimer.isRunning() && !AFKTimer.isRunning()){
- antiBan();
- antiBanTimer.setEndIn((int)random(ABFreqTime * .33, ABFreqTime * 1.66));
- }
- }
- }
- public void antiBan(){
- int t = 0;
- if (Camera){t++;};
- if (Tabs){t++;};
- if (AFK){t++;};
- if (Mouse){t++;};
- t += 0;
- switch(random(1, t)){
- case 1:
- if (Camera){
- camera.turnTo(getMyPlayer().getLocation().randomize(5, 5), 5);
- sleep(random(500, 750));
- return;
- }
- case 2:
- if (Tabs){
- switch(random(1, 4)){
- case 1:
- game.openTab(Game.TAB_FRIENDS);
- mouse.move((585+random(-35, 35)), (330+random(-90, 90)));
- sleep(750, 3000);
- game.openTab(Game.TAB_INVENTORY);
- sleep(random(500, 750));
- return;
- case 2:
- game.openTab(Game.TAB_CLAN);
- mouse.move((585+random(-35, 35)), (330+random(-90, 90)));
- sleep(750, 1500);
- game.openTab(Game.TAB_INVENTORY);
- sleep(random(500, 750));
- return;
- default:
- game.openTab(game.TAB_STATS);
- mouse.moveRandomly(random(1, 300));
- sleep(750, 1500);
- game.openTab(Game.TAB_INVENTORY);
- sleep(random(500, 750));
- return;
- }
- }
- case 3:
- if (AFK){
- int r = random(1, 100);
- if (r < 75){
- AFKTimer.setEndIn(random(3000, 5000));
- } else if (r >= 70 && r < 90){
- AFKTimer.setEndIn(random(5000, 15000));
- } else {
- AFKTimer.setEndIn(random(10000, 30000));
- }
- return;
- }
- case 4:
- if (Mouse){
- int s = random(1, 4);
- switch(s){
- case 1:
- mouse.moveOffScreen();
- sleep(750, 1500);
- return;
- case 2:
- mouse.moveSlightly();
- sleep(500, 1000);
- return;
- case 3:
- mouse.moveRandomly(random(1, 300));
- sleep(750, 1500);
- return;
- default:
- return;
- }
- }
- default:
- return;
- }
- }
- public void setEnabled(boolean a, boolean b, boolean c, boolean d,
- boolean e, boolean f, boolean g, boolean h,
- boolean i, boolean j, boolean k, boolean l){
- ABFreqSlider.setEnabled(a);
- ABOnOff.setEnabled(b);
- customAntiBanButton.setEnabled(c);
- ABLevelOptions.setEnabled(d);
- separator1.setEnabled(e);
- ABFreqLabel.setEnabled(f);
- AFKCheck.setEnabled(g);
- mouseMoveCheck.setEnabled(h);
- camMoveCheck.setEnabled(i);
- logOutCheck.setEnabled(j);
- openTabsCheck.setEnabled(k);
- ABLevelLabel.setEnabled(l);
- }
- public void getSettings(){
- if (!ABOnOff.isSelected()){
- ABOn = true;
- if (customAntiBanButton.isSelected()){
- customAB = true;
- ABFreq = ABFreqSlider.getValue();
- AFK = AFKCheck.isSelected();
- Mouse = mouseMoveCheck.isSelected();
- Camera = camMoveCheck.isSelected();
- Tabs = openTabsCheck.isSelected();
- LogOut = logOutCheck.isSelected();
- } else {
- customAB = false;
- if (ABLevelOptions.getSelectedItem().toString().contains("Low")) {
- ABFreq = 20;
- LogOut = true;
- Camera = true;
- Mouse = true;
- } else if (ABLevelOptions.getSelectedItem().toString().contains("Medium")) {
- ABFreq = 40;
- Mouse = true;
- LogOut = true;
- Camera = true;
- AFK = true;
- } else if (ABLevelOptions.getSelectedItem().toString().contains("High")) {
- ABFreq = 60;
- LogOut = true;
- Camera = true;
- Tabs = true;
- AFK = true;
- Mouse = true;
- }
- }
- log("AntiBan on");
- ABFreqTime = ((double)(240 / ABFreq) * 15000);
- antiBanTimer = new Timer ((int)random(ABFreqTime * .5, ABFreqTime * 1.5));
- } else {
- log("AntiBan off");
- ABOn = false;
- }
- }
- public void ABToggle(){
- if ((ABOnOff.isSelected())){
- setEnabled(false, true, false, false, false, false, false, false, false, false, false, false);
- } else {
- if (customAntiBanButton.isSelected()){
- setEnabled(true, true, true, false, true, true, true, true, true, false, true, false);
- } else {
- setEnabled(false, true, true, true, true, false, false, false, false, false, false, true);
- }
- }
- }
- public void cantCont(){
- if ((customAntiBanButton.isSelected() && !AFKCheck.isSelected() && !mouseMoveCheck.isSelected()
- && !camMoveCheck.isSelected() && !openTabsCheck.isSelected()) || ABFreqSlider.getValue() == 0){
- contButton.setEnabled(false);
- } else {
- contButton.setEnabled(true);
- }
- }
- public AntiBan() {
- initComponents();
- }
- private void ABFreqSliderStateChanged(ChangeEvent e) {
- cantCont();
- }
- private void ABOnOffStateChanged(ChangeEvent e) {
- ABOnOff.setToolTipText("The AntiBan is currently: " + content());
- ABOnOff.setText("Turn AntiBan " + OPcontent());
- ABToggle();
- cantCont();
- }
- private void customAntiBanButtonStateChanged(ChangeEvent e) {
- ABToggle();
- cantCont();
- }
- private void AFKCheckStateChanged(ChangeEvent e) {
- cantCont();
- }
- private void mouseMoveCheckStateChanged(ChangeEvent e) {
- cantCont();
- }
- private void camMoveCheckStateChanged(ChangeEvent e) {
- cantCont();
- }
- private void logOutCheckStateChanged(ChangeEvent e) {
- cantCont();
- }
- private void openTabsCheckStateChanged(ChangeEvent e) {
- cantCont();
- }
- private void contButtonActionPerformed(ActionEvent e) {
- getSettings();
- setVisible(false);
- }
- String content(){
- if (ABOnOff.isSelected()){
- return "OFF";
- } else {
- return "ON";
- }
- }
- String OPcontent(){
- if (!ABOnOff.isSelected()){
- return "OFF";
- } else {
- return "ON";
- }
- }
- private void initComponents() {
- ABFreqSlider = new JSlider();
- ABOnOff = new JToggleButton();
- customAntiBanButton = new JRadioButton();
- ABLevelOptions = new JComboBox();
- separator1 = new JSeparator();
- ABFreqLabel = new JLabel();
- AFKCheck = new JRadioButton();
- mouseMoveCheck = new JRadioButton();
- camMoveCheck = new JRadioButton();
- logOutCheck = new JRadioButton();
- openTabsCheck = new JRadioButton();
- ABLevelLabel = new JLabel();
- contButton = new JButton();
- addWindowListener(new WindowAdapter() {
- public void windowClosing(WindowEvent e) {
- stopScript();
- }
- });
- //======== this ========
- setTitle("AntiBan");
- Container contentPane = getContentPane();
- //---- ABFreqSlider ----
- ABFreqSlider.setMajorTickSpacing(40);
- ABFreqSlider.setSnapToTicks(true);
- ABFreqSlider.setPaintTicks(true);
- ABFreqSlider.setBackground(new Color(238, 238, 238));
- ABFreqSlider.setEnabled(false);
- ABFreqSlider.setPaintLabels(true);
- ABFreqSlider.setMinorTickSpacing(8);
- ABFreqSlider.setMaximum(240);
- ABFreqSlider.setValue(60);
- ABFreqSlider.setToolTipText("Allows you to select the average amount of AntiBans per hour");
- ABFreqSlider.addChangeListener(new ChangeListener() {
- @Override
- public void stateChanged(ChangeEvent e) {
- ABFreqSliderStateChanged(e);
- }
- });
- //---- ABOnOff ----
- ABOnOff.setText("Turn AntiBan Off");
- ABOnOff.setToolTipText("The AntiBan is currently: ON");
- ABOnOff.addChangeListener(new ChangeListener() {
- @Override
- public void stateChanged(ChangeEvent e) {
- ABOnOffStateChanged(e);
- }
- });
- //---- customAntiBanButton ----
- customAntiBanButton.setText("Custumized AntiBan");
- customAntiBanButton.setToolTipText("Enables you to customize your AntiBan");
- customAntiBanButton.addChangeListener(new ChangeListener() {
- @Override
- public void stateChanged(ChangeEvent e) {
- customAntiBanButtonStateChanged(e);
- }
- });
- //---- ABLevelOptions ----
- ABLevelOptions.setModel(new DefaultComboBoxModel(new String[] {
- "Low",
- "Medium",
- "High"
- }));
- ABLevelOptions.setSelectedIndex(2);
- ABLevelOptions.setToolTipText("Selects the level of AntiBan");
- //---- separator1 ----
- separator1.setForeground(new Color(100, 100, 100));
- //---- ABFreqLabel ----
- ABFreqLabel.setText("Avg. AntiBans P/H");
- ABFreqLabel.setToolTipText("Average. AntiBans per hour");
- ABFreqLabel.setEnabled(false);
- //---- AFKCheck ----
- AFKCheck.setText("AFK's");
- AFKCheck.setEnabled(false);
- AFKCheck.setToolTipText("If checked, the AntiBan will perform AFK's");
- AFKCheck.addChangeListener(new ChangeListener() {
- @Override
- public void stateChanged(ChangeEvent e) {
- AFKCheckStateChanged(e);
- }
- });
- //---- mouseMoveCheck ----
- mouseMoveCheck.setText("Mouse MoveMents");
- mouseMoveCheck.setEnabled(false);
- mouseMoveCheck.setToolTipText("If checked, the AntiBan will move the mouse");
- mouseMoveCheck.addChangeListener(new ChangeListener() {
- @Override
- public void stateChanged(ChangeEvent e) {
- mouseMoveCheckStateChanged(e);
- }
- });
- //---- camMoveCheck ----
- camMoveCheck.setText("Camera Movements");
- camMoveCheck.setEnabled(false);
- camMoveCheck.setToolTipText("If checked, the AntiBan will move the camera");
- camMoveCheck.addChangeListener(new ChangeListener() {
- @Override
- public void stateChanged(ChangeEvent e) {
- camMoveCheckStateChanged(e);
- }
- });
- //---- logOutCheck ----
- logOutCheck.setText("Log Out if Innactive");
- logOutCheck.setEnabled(false);
- logOutCheck.setVisible(false);
- logOutCheck.setToolTipText("Currently under construction");
- logOutCheck.addChangeListener(new ChangeListener() {
- @Override
- public void stateChanged(ChangeEvent e) {
- logOutCheckStateChanged(e);
- }
- });
- //---- openTabsCheck ----
- openTabsCheck.setText("Open Tabs");
- openTabsCheck.setEnabled(false);
- openTabsCheck.setToolTipText("If checked, the AntiBan will open your friends list tab");
- openTabsCheck.addChangeListener(new ChangeListener() {
- @Override
- public void stateChanged(ChangeEvent e) {
- openTabsCheckStateChanged(e);
- }
- });
- //---- ABLevelLabel ----
- ABLevelLabel.setText("AntiBan Level");
- ABLevelLabel.setToolTipText("AntiBan Level");
- //---- contButton ----
- contButton.setText("Continue");
- contButton.setToolTipText("Starts the Script");
- contButton.addActionListener(new ActionListener() {
- @Override
- public void actionPerformed(ActionEvent e) {
- contButtonActionPerformed(e);
- }
- });
- GroupLayout contentPaneLayout = new GroupLayout(contentPane);
- contentPane.setLayout(contentPaneLayout);
- contentPaneLayout.setHorizontalGroup(
- contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGroup(contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(102, 102, 102)
- .addComponent(ABOnOff, GroupLayout.PREFERRED_SIZE, 182, GroupLayout.PREFERRED_SIZE))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addContainerGap()
- .addGroup(contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addComponent(ABFreqLabel)
- .addGap(12, 12, 12)
- .addComponent(ABFreqSlider, GroupLayout.PREFERRED_SIZE, 260, GroupLayout.PREFERRED_SIZE))
- .addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
- .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)
- .addComponent(ABLevelLabel)
- .addComponent(customAntiBanButton, GroupLayout.PREFERRED_SIZE, 159, GroupLayout.PREFERRED_SIZE))
- .addGroup(contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(18, 18, 18)
- .addComponent(separator1, GroupLayout.PREFERRED_SIZE, 164, GroupLayout.PREFERRED_SIZE))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(27, 27, 27)
- .addComponent(ABLevelOptions, GroupLayout.PREFERRED_SIZE, 140, GroupLayout.PREFERRED_SIZE)))
- .addGap(96, 96, 96))))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(20, 20, 20)
- .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.TRAILING, false)
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addComponent(mouseMoveCheck)
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(logOutCheck))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addComponent(openTabsCheck)
- .addGap(18, 18, 18)
- .addComponent(AFKCheck)
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(camMoveCheck))))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(109, 109, 109)
- .addComponent(contButton, GroupLayout.PREFERRED_SIZE, 167, GroupLayout.PREFERRED_SIZE)))
- .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
- );
- contentPaneLayout.setVerticalGroup(
- contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(10, 10, 10)
- .addComponent(ABOnOff)
- .addGap(18, 18, 18)
- .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
- .addComponent(ABLevelLabel)
- .addComponent(ABLevelOptions, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
- .addGroup(contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(18, 18, 18)
- .addComponent(customAntiBanButton, GroupLayout.PREFERRED_SIZE, 44, GroupLayout.PREFERRED_SIZE))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(35, 35, 35)
- .addComponent(separator1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))
- .addGroup(contentPaneLayout.createParallelGroup()
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(ABFreqSlider, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
- .addGroup(contentPaneLayout.createSequentialGroup()
- .addGap(26, 26, 26)
- .addComponent(ABFreqLabel)))
- .addGap(15, 15, 15)
- .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
- .addComponent(openTabsCheck)
- .addComponent(AFKCheck)
- .addComponent(camMoveCheck))
- .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
- .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
- .addComponent(logOutCheck)
- .addComponent(mouseMoveCheck))
- .addGap(18, 18, 18)
- .addComponent(contButton)
- .addContainerGap(12, Short.MAX_VALUE))
- );
- 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 - Joe Titus
- private JSlider ABFreqSlider;
- private JToggleButton ABOnOff;
- private JRadioButton customAntiBanButton;
- private JComboBox ABLevelOptions;
- private JSeparator separator1;
- private JLabel ABFreqLabel;
- private JRadioButton AFKCheck;
- private JRadioButton mouseMoveCheck;
- private JRadioButton camMoveCheck;
- private JRadioButton logOutCheck;
- private JRadioButton openTabsCheck;
- private JLabel ABLevelLabel;
- private JButton contButton;
- // JFormDesigner - End of variables declaration //GEN-END:variables
- }
- public void onFinish(){
- log("Good Bye");
- }
- @Override
- public void messageReceived(MessageEvent e) {
- String txt = e.getMessage();
- if (txt.contains("You pick some"))
- Flaxes++;
- }
- @Override
- public void mouseClicked(MouseEvent e) {
- }
- @Override
- public void mousePressed(MouseEvent e) {
- }
- @Override
- public void mouseReleased(MouseEvent e) {
- }
- @Override
- public void mouseEntered(MouseEvent e) {
- }
- @Override
- public void mouseExited(MouseEvent e) {
- }
- }