Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average
Thread Closed 


Ctrl+V Game filter_list
Author
Message
RE: Ctrl+V Game #91
Add my new skype: legitrazor


RE: Ctrl+V Game #92
(This post was last modified: 05-27-2013, 09:20 PM by Provenance.)


RE: Ctrl+V Game #93
Code:
import java.awt.Color;
import java.awt.Container;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.Point;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;

import javax.imageio.ImageIO;
import javax.swing.GroupLayout;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.LayoutStyle;
import javax.swing.SwingUtilities;

import org.powerbot.core.event.events.MessageEvent;
import org.powerbot.core.event.listeners.MessageListener;
import org.powerbot.core.event.listeners.PaintListener;
import org.powerbot.core.script.ActiveScript;
import org.powerbot.core.script.job.Task;
import org.powerbot.game.api.Manifest;
import org.powerbot.game.api.methods.Walking;
import org.powerbot.game.api.methods.Widgets;
import org.powerbot.game.api.methods.input.Mouse;
import org.powerbot.game.api.methods.node.SceneEntities;
import org.powerbot.game.api.methods.tab.Inventory;
import org.powerbot.game.api.methods.tab.Skills;
import org.powerbot.game.api.methods.widget.Bank;
import org.powerbot.game.api.wrappers.Locatable;
import org.powerbot.game.api.wrappers.node.SceneObject;

@Manifest(authors = { "Mmaaikel" }, name = "[COOKING] Mmaaikel AIO Cooker", description = "Currently only cooking at Al Kharid")

public class MaaikelCooker extends ActiveScript implements PaintListener, MessageListener {
    
    boolean GUI_SELECTED = false;
    boolean GUI_SELECTED2 = false;
    public static boolean STARTED = false;
    boolean STARTCOOKING = false;
    
    int CURRENT_COOKING_XP;
    int START_COOKING_XP;
    
    public long currentTime;
    public long runTime;
    public long Hour;
    public long Minute;
    public long Second;
    public long startTime;
    
    //GUI
    public static GUI gui = new GUI();
    public static boolean guiWait = true;
    
    int BONFIRE[] = {70755, 70756, 70757, 70758};
    int COOKED = 0;
    int FOOD;
    int RAW_FOOD;    
    int COOKING_RANGE;    
    int BANK;
    String FOODNAME = "Not selected..";
    String LOCATION = "Not selected..";
    
    public void onStart() {
        try {
            SwingUtilities.invokeAndWait(new Runnable() {
                public void run() {
                    gui = new GUI();
                    gui.setVisible(true);

                }
            });
        } catch (InterruptedException e) {
        } catch (InvocationTargetException e) {
        }
        while (gui.isVisible()) {
            Task.sleep(100);
        }
        startTime = System.currentTimeMillis();
        START_COOKING_XP  = Skills.getExperience(Skills.COOKING);
    }
    
    @Override
    public int loop() {
        if (STARTED == false) {
            if (gui.comboBox1.getSelectedItem().toString().contains("Bonfire")) {
                LOCATION = "Bonfire";
                COOKING_RANGE = 70755;
                BANK = 48012;    
                GUI_SELECTED = true;            
            }
            if (gui.comboBox1.getSelectedItem().toString().contains("Al Kharid")) {
                LOCATION = "Al Kharid";
                COOKING_RANGE = 76295;
                BANK = 76274;    
                GUI_SELECTED = true;            
            }
            
            if (gui.comboBox2.getSelectedItem().toString().contains("Crayfish")) {
                FOODNAME = "Crayfish";
                FOOD = 13433;
                RAW_FOOD = 13435;
                GUI_SELECTED2 = true;
            }
            if (gui.comboBox2.getSelectedItem().toString().contains("Shrimp")) {
                FOODNAME = "Shrimp";
                FOOD = 315;
                RAW_FOOD = 317;
                GUI_SELECTED2 = true;
            }
            if (gui.comboBox2.getSelectedItem().toString().contains("Sardine")) {
                FOODNAME = "Sardine";
                FOOD = 325;
                RAW_FOOD = 327;
                GUI_SELECTED2 = true;
            }
            if (gui.comboBox2.getSelectedItem().toString().contains("Anchovy")) {
                FOODNAME = "Anchovy";
                FOOD = 319;
                RAW_FOOD = 321;
                GUI_SELECTED2 = true;
            }
            if (gui.comboBox2.getSelectedItem().toString().contains("Herring")) {
                FOODNAME = "Herring";
                FOOD = 347;
                RAW_FOOD = 345;
                GUI_SELECTED2 = true;
            }
            if (gui.comboBox2.getSelectedItem().toString().contains("Trout")) {
                FOODNAME = "Trout";
                FOOD = 333;
                RAW_FOOD = 335;
                GUI_SELECTED2 = true;
            }
            if (gui.comboBox2.getSelectedItem().toString().contains("Pike")) {
                FOODNAME = "Pike";
                FOOD = 349;
                RAW_FOOD = 351;
                GUI_SELECTED2 = true;
            }
            if (gui.comboBox2.getSelectedItem().toString().contains("Salmon")) {
                FOODNAME = "Salmon";
                FOOD = 329;
                RAW_FOOD = 331;
                GUI_SELECTED2 = true;
            }
            if (gui.comboBox2.getSelectedItem().toString().contains("Tuna")) {
                FOODNAME = "Tuna";
                FOOD = 361;
                RAW_FOOD = 359;
                GUI_SELECTED2 = true;
            }
            if (gui.comboBox2.getSelectedItem().toString().contains("Lobster")) {
                FOODNAME = "Lobster";
                FOOD = 379;
                RAW_FOOD = 377;
                GUI_SELECTED2 = true;
            }
            if (gui.comboBox2.getSelectedItem().toString().contains("Swordfish")) {
                FOODNAME = "Swordfish";
                FOOD = 373;
                RAW_FOOD = 371;
                GUI_SELECTED2 = true;
            }
        }        

        try {
        
        if (STARTED == true) {
            CURRENT_COOKING_XP = Skills.getExperience(Skills.COOKING);
            
            final SceneObject BANKBOOTH = SceneEntities.getNearest(BANK);
            final SceneObject RANGE = SceneEntities.getNearest(COOKING_RANGE);
            
            
            if (Bank.isOpen()) {
                if (Inventory.getCount(FOOD) > 0) {
                    Bank.depositInventory();
                    STARTCOOKING = false;
                }
                if (Inventory.getCount(FOOD) == 0) {
                    if (Inventory.getCount(RAW_FOOD) == 0) {
                        if (Bank.getItemCount(RAW_FOOD) > 0) {
                            Bank.withdraw(RAW_FOOD, 0);
                        }
                        if (Bank.getItemCount(RAW_FOOD) == 0) {
                            stop();
                        }
                    }
                    if (Inventory.getCount(RAW_FOOD) > 0) {
                        Bank.close();
                    }
                }
            }
            
            if (!Bank.isOpen()) {
                if (Inventory.getCount(FOOD) > 0) {
                    if (Inventory.getCount(RAW_FOOD) == 0) {
                        if (BANKBOOTH.isOnScreen()) {
                            Bank.open();
                        } else {
                            if (Walking.getEnergy() > 40) {
                                if (!Walking.isRunEnabled()) {
                                    Walking.setRun(true);
                                }
                            }
                            Walking.walk(BANKBOOTH);
                            Task.sleep(2500);
                        }
                    }
                }
                if (STARTCOOKING == false) {
                    if (Inventory.getCount(FOOD) == 0) {
                        STARTCOOKING = true;
                        if (Inventory.getCount(RAW_FOOD) == 0) {
                            if (BANKBOOTH.isOnScreen()) {
                                Bank.open();
                            } else {
                                if (Walking.getEnergy() > 40) {
                                    if (!Walking.isRunEnabled()) {
                                        Walking.setRun(true);
                                    }
                                }
                                Walking.walk(BANKBOOTH);
                                Task.sleep(2500);
                            }
                        }
                    }
                }
                if (STARTCOOKING == true) {
                    if (Inventory.getCount(RAW_FOOD) > 0) {                    
                        if (!RANGE.isOnScreen()) {
                            Walking.walk(RANGE);    
                            Task.sleep(3000);
                        }                
                        if (RANGE.isOnScreen()) {
                            if (!Widgets.get(1251, 48).visible()) {
                                if (!Inventory.isItemSelected()) {
                                    Inventory.selectItem(RAW_FOOD);
                                }
                                if (Inventory.isItemSelected()) {
                                    if (gui.comboBox1.getSelectedItem().toString().contains("Bonfire")) {
                                        RANGE.interact("Use", "Fire");
                                        Task.sleep(1000);
                                    }
                                    if (gui.comboBox1.getSelectedItem().toString().contains("Al Kharid")) {
                                        RANGE.interact("Use", "Range");
                                        Task.sleep(1000);
                                    }
                                }
                                if (Widgets.get(1370, 38).visible()) {
                                    Widgets.get(1370, 38).interact("Make");
                                    Task.sleep(1500);
                                }
                            }
                        }                    
                    }
                }
            }    
        }
        }catch (final NullPointerException e) {
        }
        return 10;
    }
    
    public void messageReceived(org.powerbot.core.event.events.MessageEvent arg0) {
        String msg = arg0.getMessage();
        if (msg.contains("You roast")) {
            COOKED++;
        }
    }
        

    private Image getImage(String url) {
        try {
            return ImageIO.read(new URL(url));
        } catch(IOException e) {
            return null;
        }
    }
    
    public static String getTime(long millis) {
        long time = millis / 1000;
        String seconds = Integer.toString((int) (time % 60));
        String minutes = Integer.toString((int) ((time % 3600) / 60));
        String hours = Integer.toString((int) (time / 3600));
        for (int i = 0; i < 2; i++) {
                if (seconds.length() < 2) {
                        seconds = "0" + seconds;
                }
                if (minutes.length() < 2) {
                        minutes = "0" + minutes;
                }
                if (hours.length() < 2) {
                        hours = "0" + hours;
                }
        }
        return hours + ":" + minutes + ":" + seconds + "";
   }
    
    private final Image cursor1 = getImage("http://s7.postimage.org/660fz6gon/m_OUSEE.png");
    private final Image Paint = getImage("http://i.imgur.com/iKxpJ.png");
    
    @Override
    public void onRepaint(Graphics g) {
        g.drawImage(Paint, 0, 0, null);
        g.setColor(Color.WHITE);
        g.setFont(Font.getFont("Arial"));
        
        if (cursor1 != null) {
            final Point mouse = Mouse.getLocation();
            g.drawImage(cursor1, mouse.x-5, mouse.y-33, null);
        }
        
           g.drawString("" + getTime(System.currentTimeMillis() - startTime) , 68, 45);
        
        g.drawString("Location: " + LOCATION , 200, 22);
        g.drawString("Food: " + FOODNAME , 200, 39);
        
        g.drawString("Exp gained: " + (CURRENT_COOKING_XP - START_COOKING_XP) , 385, 22);
        g.drawString("Exp gained/hr: " + ((CURRENT_COOKING_XP - START_COOKING_XP) * 3600000l) / (System.currentTimeMillis() - startTime) , 385, 39);
        
        g.drawString("Food cooked: " + COOKED , 570, 22);
        g.drawString("Food cooked/hr: " + (COOKED* 3600000l) / (System.currentTimeMillis() - startTime) , 570, 39);
        
        
       /* g.setColor(Color.RED); {
             g.drawString("" + getTime(System.currentTimeMillis() - startTime) , 74, 47);
        }*/
    }
    

    /**
     * @author Maikel Secret
     */
    public static class GUI extends JFrame {
        public GUI() {
            initComponents();
        }
    
        private void initComponents() {
            // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
            // Generated using JFormDesigner Evaluation license - Maikel Secret
            textField1 = new JTextField();
            comboBox1 = new JComboBox();
            comboBox2 = new JComboBox();
            button1 = new JButton();
            textField2 = new JTextField();
            textField3 = new JTextField();
            textField4 = new JTextField();
    
            //======== this ========
            Container contentPane = getContentPane();
    
            //---- textField1 ----
            textField1.setText("Thank you for using Mmaaikel AIO Cooker");
    
            //---- comboBox1 ----
            String[] arrayOfString1 = { "Set location", /*"Bonfire",*/ "Al Kharid" };
            comboBox1 = new JComboBox(arrayOfString1);
            comboBox1.setToolTipText("Location");
            
            //---- comboBox2 ----
            String[] arrayOfString2 = { "Set food type", "Crayfish", "Shrimp", "Sardine",
                    "Anchovy", "Herring", "Trout", "Pike", "Salmon", "Tuna", "Lobster" ,
                    "Swordfish" };
            comboBox2 = new JComboBox(arrayOfString2);
            comboBox2.setToolTipText("Food type");
    
            //---- button1 ----
            button1.setText("Start now!");
            button1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    button1ActionPerformed(evt);
                }
            });
    
            //---- textField2 ----
            textField2.setText("Must have enough raw food in bank");
    
            //---- textField3 ----
            textField3.setText("");
    
            //---- textField4 ----
            textField4.setText("Start in the bank of the selected place");
    
            GroupLayout contentPaneLayout = new GroupLayout(contentPane);
            contentPane.setLayout(contentPaneLayout);
            contentPaneLayout.setHorizontalGroup(
                contentPaneLayout.createParallelGroup()
                    .addGroup(contentPaneLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(contentPaneLayout.createParallelGroup()
                            .addComponent(textField1, GroupLayout.DEFAULT_SIZE, 364, Short.MAX_VALUE)
                            .addComponent(comboBox1, GroupLayout.DEFAULT_SIZE, 364, Short.MAX_VALUE)
                            .addComponent(comboBox2, GroupLayout.DEFAULT_SIZE, 364, Short.MAX_VALUE)
                            .addGroup(GroupLayout.Alignment.TRAILING, contentPaneLayout.createSequentialGroup()
                                .addGroup(contentPaneLayout.createParallelGroup()
                                    .addComponent(textField2, GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE)
                                    .addComponent(textField3, GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE)
                                    .addComponent(textField4, GroupLayout.DEFAULT_SIZE, 248, Short.MAX_VALUE))
                                .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(button1, GroupLayout.PREFERRED_SIZE, 106, GroupLayout.PREFERRED_SIZE)))
                        .addContainerGap())
            );
            contentPaneLayout.setVerticalGroup(
                contentPaneLayout.createParallelGroup()
                    .addGroup(contentPaneLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(textField1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(comboBox1, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE)
                        .addComponent(comboBox2, GroupLayout.PREFERRED_SIZE, 32, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.LEADING, false)
                            .addGroup(contentPaneLayout.createSequentialGroup()
                                .addComponent(textField2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textField3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(textField4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
                            .addComponent(button1, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addContainerGap(5, Short.MAX_VALUE))
            );
            pack();
            setLocationRelativeTo(getOwner());
            // JFormDesigner - End of component initialization  //GEN-END:initComponents
        }
        
        private void button1ActionPerformed(java.awt.event.ActionEvent evt) {
            guiWait = false;
            gui.dispose();
            STARTED = true;
        }
    
        // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
        // Generated using JFormDesigner Evaluation license - Maikel Secret
        private JTextField textField1;
        public JComboBox comboBox1;
        public JComboBox comboBox2;
        private JButton button1;
        private JTextField textField2;
        private JTextField textField3;
        private JTextField textField4;
        // JFormDesigner - End of variables declaration  //GEN-END:variables
    }

}
[Image: greyn.png]


RE: Ctrl+V Game #94
http://www.discussionzone.net/Thread-Upd...ented-Beta

lol


RE: Ctrl+V Game #95
this can't be downloaded without a Rapidgator premium membership.
[Image: U2JKI5T.png]


RE: Ctrl+V Game #96
http://www.lolking.net/summoner/euw/19777116#profile
[Image: U2JKI5T.png]


RE: Ctrl+V Game #97
Spoiler:
Name: thatusername / Aksel
Age: I am 13 years old.
Gender: Male
Religion: Atheist
State/Country: Den Norske Stat/Norway
Time Zone: (UTC+01:00)Amsterdam, Berlin, Bern, Oslo, Roma, Wien

Explain, with detailed examples, where some of your skills lie:
  • Cause Grief to MC Servers - I am most active in the griefing section and was first brought to HF by a griefing team named Team Avolition. (Krysk)
  • Gaming - I play alot of video games.
  • Communication - I can join help desks.
  • Helping - I can help with computer related problems/recommend a build.
  • 4 years of forum activity - I've been on internet forums since I was 9 years old.
  • Decent grammar - I think I have pretty decent grammar.


Which section are you most active in and why? I am most active in the 'Griefing' section, and I hope I still stand a chance at being accepted into Empire even tough the griefing section isn't the section with a huge amount of quality members.

Why do you want to join The Empire in particular?: I want to join the empire because I have seen how amazing the group members are and how much the care to help! And I want to be one of those members I want to join helping, I want to give prizes to the giveaways!
And with 4 years of forum activity I think I stand a chance upgraded or not. I hope I can come home from school one day and see myself in The Empire. Tough getting into The Empire isn't easy, I just hope that I am still going to watch those amazing threads and contributions from The Empire, Long Live The Empire In It's Pure Glory.

Why do you personally feel you deserve to and should be accepted into The Empire?:

In one to three paragraphs, tell us a little bit about yourself personally or possibly something quite memorable that happened in your life, or an explanation of what makes you who you are and who are you:

Where do your priorities in life lie? What is most important to you?

What caused you to stay active and be part of the community on Hackforums after first joining?

Anything else you would like to say:
hello


RE: Ctrl+V Game #98
cause there's some road

I have no idea what I was typing about.


RE: Ctrl+V Game #99
http://www.sunjournal.com/news/maine-bus...er/1369941
Get creative: Makestation
Make some money: RevenueHerald.com


RE: Ctrl+V Game #100
https://www.google.com
(This post was last modified: 05-31-2013, 12:56 AM by pandaa.)








Users browsing this thread: 2 Guest(s)