- package com.overloadGDK;
- import java.awt.*;
- import java.awt.event.*;
- import javax.swing.*;
- @SuppressWarnings("serial")
- public class OverloadGUI extends JPanel{
- //MAIN TAB PANEL INSTANCE VARIABLES
- public static int foodType = 0;
- public static int number = 0;
- public JComboBox fishNumber;
- public JComboBox dragonLevel;
- String[] dragonLevelItems = {"Wilderness Level", "Level : 5", "Level : 13", "Level : 20","Level : 35"};
- static boolean levelFive = false;
- static boolean levelThirteen = false;
- static boolean levelTwenty = false;
- static boolean levelThirtyFive = false;
- public JComboBox foodTypeBox;
- public String[] foodTypeItems = {"Choose Food", "Trout", "Salmon", "Lobster", "Tuna", "Swordfish", "Monkfish", "Shark", "Rocktail"};
- public int[] foodIds = {0, 333, 329, 379, 361, 373, 7946, 385, 15272 };//
- public JTextField foodAmountTextBox;
- public int troutId = 333;
- public int salmonId = 329;
- public int lobsterId = 379;
- public int tunaId = 361;
- public int swordfishId = 373;
- public int monkfishId = 7946;
- public int sharkId = 385;
- public int rocktailId = 15272;
- public JComboBox bankingMethodBox;
- public String[] bankingMethodItems = {"Banking Method", "Walk to Edge","Amulet of Glory", "Ancient Home Teleport", "Varrack Tab" };
- static boolean walkToEdge = false;
- static boolean gloryTele = false;
- static boolean ancientTele = false;
- static boolean varrockTabTele = false;
- public int[] fishNumbers = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
- 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28 };
- public String[] numberOptions = { "Num of Fish", "1", "2", "3", "4",
- "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15",
- "16", "17", "18", "19", "20", "21", "22", "23", "24", "25",
- "26", "27", "28" };
- //END OF MAIN TAB PANEL INSTANCE VARIABLES
- //START OF LOOP PANEL INSTANCE VARIABLES
- public JCheckBox dragonBoneBox;
- public JCheckBox dHideBox;
- public JCheckBox aboveFiveBox;
- public JCheckBox herbBox;
- public JCheckBox effBox;
- public JCheckBox clueScrollBox;
- public JCheckBox crimsonCharmBox;
- public JCheckBox goldCharmBox;
- public JCheckBox blueCharmBox;
- public JCheckBox greenCharmBox;
- static boolean goldCharms = false;
- static boolean crimsonCharms = false;
- static boolean blueCharms = false;
- static boolean greenCharms = false;
- static boolean dragonBones = false;
- static boolean dHide = false;
- static boolean aboveFive = false;
- static boolean herbs = false;
- static boolean clueScrolls = false;
- static boolean effs = false;
- public int dragonSheild = 1540;
- public int dragonBoneId = 536;
- public int greenHideId = 1753;
- public int[] herbsIds = { 211, 217, 21626, 207, 3051, 12174, 3049, 219, 14836 };
- public int aboveFiveId = 1163;
- public int goldCharmsId = 12158;
- public int greenCharmsId = 12159;
- public int redCharmsId = 12160;
- public int blueCharmsId = 12163;
- public int[] effId = { 18778, 18779 };
- public int scrollsId[] = { 2677, 2678, 2679, 2680, 2681, 2682, 2683, 2684,
- 2685, 2686, 2687, 2688, 2689, 2690, 2691, 2692, 2693, 2694, 2695,
- 2696, 2697, 2698, 2699, 2700, 2701, 2702, 2703, 2704, 2705, 2706,
- 2707, 2708, 2709, 2710, 2711, 2712, 2713, 2716, 2719, 2722, 2723,
- 2725, 2727, 2729, 2731, 2733, 2735, 2737, 2739, 2741, 2743, 2745,
- 2747, 2773, 2774, 2776, 2778, 2780, 2782, 2783, 2785, 2786, 2788,
- 2790, 2792, 2793, 2794, 2796, 2797, 2799, 2801, 2803, 2805, 2807,
- 2809, 2811, 2813, 2815, 2817, 2819, 2821, 2823, 2825, 2827, 2829,
- 2831, 2833, 2835, 2837, 2839, 2841, 2843, 2845, 2847, 2848, 2849,
- 2851, 2853, 2855, 2856, 2857, 2858, 3490, 3491, 3492, 3493, 3494,
- 3495, 3496, 3497, 3498, 3499, 3500, 3501, 3502, 3503, 3504, 3505,
- 3506, 3507, 3508, 3509, 3510, 3512, 3513, 3514, 3515, 3516, 3518,
- 3520, 3522, 3524, 3525, 3526, 3528, 3530, 3532, 3534, 3536, 3538,
- 3540, 3542, 3544, 3546, 3548, 3550, 3552, 3554, 3556, 3558, 3560,
- 3562, 3564, 3566, 3568, 3570, 3572, 3573, 3574, 3575, 3577, 3579,
- 3580, 3582, 3584, 3586, 3588, 3590, 3592, 3594, 3596, 3598, 3599,
- 3601, 3602, 3604, 3605, 3607, 3609, 3610, 3611, 3612, 3613, 3614,
- 3615, 3616, 3617, 3618, 7236, 7238, 7239, 7241, 7243, 7245, 7247,
- 7248, 7249, 7250, 7251, 7252, 7253, 7254, 7255, 7256, 7258, 7260,
- 7262, 7264, 7266, 7268, 7270, 7272, 7274, 7276, 7278, 7280, 7282,
- 7284, 7286, 7288, 7290, 7292, 7294, 7296, 7298, 7300, 7301, 7303,
- 7304, 7305, 7307, 7309, 7311, 7313, 7315, 10180, 10182, 10184,
- 10186, 10188, 10190, 10192, 10194, 10196, 10198, 10200, 10202,
- 10204, 10206, 10208, 10210, 10212, 10214, 10216, 10218, 10220,
- 10222, 10224, 10226, 10228, 10230, 10232, 10234, 10236, 10238,
- 10240, 10242, 10244, 10246, 10248, 10250, 10252, 10254, 10256,
- 10258, 10260, 10262, 10264, 10266, 10268, 10270, 10272, 10274,
- 10276, 10278, 13010, 13012, 13014, 13016, 13018, 13020, 13022,
- 13024, 13026, 13028, 13030, 13032, 13034, 13036, 13038, 13040,
- 13041, 13042, 13044, 13046, 13048, 13049, 13050, 13051, 13053,
- 13055, 13056, 13058, 13060, 13061, 13063, 13065, 13067, 13068,
- 13069, 13070, 13071, 13072, 13074, 13075, 13076, 13078, 13079,
- 13080, 19043, 19044, 19045, 19046, 19047, 19048, 19049, 19050,
- 19051, 19052, 19053, 19054, 19055, 19056, 19057, 19058, 19059,
- 19060, 19061, 19062, 19063, 19064, 19626, };
- //END OF LOOP PANEL INSTANCE VARIABLES
- //START OF CREDIT PANEL INSTANCE VARIABLES
- public JTextArea creditsBox;
- public String credits = "Current Version 1.0!\nThanks to the people who helped me make this GDK, wouldn't be as good as it is without you! <3 \nLove to:\nKittens!!!!\nPrestige!!!\nand Nebula XD.\nPlease No Hate Meh GDK ane Enjoy bottin! :D";
- public OverloadGUI(){
- setLayout(new FlowLayout());
- bankingMethodBox = new JComboBox(bankingMethodItems);
- bankingMethodBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(bankingMethodBox.getSelectedIndex() == 1){
- walkToEdge = true;
- gloryTele = false;
- ancientTele = false;
- varrockTabTele = false;
- }else if(bankingMethodBox.getSelectedIndex() == 2){
- walkToEdge = false;
- gloryTele = true;
- ancientTele = false;
- varrockTabTele = false;
- }else if(bankingMethodBox.getSelectedIndex() == 3){
- walkToEdge = false;
- gloryTele = false;
- ancientTele = true;
- varrockTabTele = false;
- }else if(bankingMethodBox.getSelectedIndex() == 4){
- walkToEdge = false;
- gloryTele = false;
- ancientTele = false;
- varrockTabTele = true;
- }
- }
- }
- );
- fishNumber = new JComboBox(numberOptions);
- fishNumber.addItemListener(new ItemListener() {
- public void itemStateChanged(ItemEvent event) {
- number = fishNumbers[fishNumber.getSelectedIndex()];
- }
- });
- foodTypeBox = new JComboBox(foodTypeItems);
- foodTypeBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(foodTypeBox.getSelectedIndex() == 1){
- foodType = troutId;
- }
- else if(foodTypeBox.getSelectedIndex() == 2) {
- foodType = salmonId;
- }
- else if(foodTypeBox.getSelectedIndex() == 3) {
- foodType = lobsterId;
- }
- else if(foodTypeBox.getSelectedIndex() == 4) {
- foodType = tunaId;
- }
- else if(foodTypeBox.getSelectedIndex() == 5) {
- foodType = swordfishId;
- }
- else if(foodTypeBox.getSelectedIndex() == 6) {
- foodType = monkfishId;
- }
- else if(foodTypeBox.getSelectedIndex() == 7) {
- foodType = sharkId;
- }
- else if(foodTypeBox.getSelectedIndex() == 8) {
- foodType = rocktailId;
- }
- }
- }
- );
- dragonLevel = new JComboBox(dragonLevelItems);
- dragonLevel.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(dragonLevel.getSelectedIndex() == 1){
- levelFive = true;
- levelThirteen = false;
- levelTwenty = false;
- levelThirtyFive = false;
- }else if(dragonLevel.getSelectedIndex() == 2){
- levelFive = false;
- levelThirteen = true;
- levelTwenty = false;
- levelThirtyFive = false;
- }else if(dragonLevel.getSelectedIndex() == 3){
- levelFive = false;
- levelThirteen = false;
- levelTwenty = true;
- levelThirtyFive = false;
- }else if(dragonLevel.getSelectedIndex() == 4){
- levelFive = false;
- levelThirteen = false;
- levelTwenty = false;
- levelThirtyFive = true;
- }
- }
- }
- );
- //END OF MAIN TAB PANEL OBJECTS
- //START OF LOOT TAB PANEL OBJECTS
- dragonBoneBox = new JCheckBox("Take Dragonbones?");
- dragonBoneBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(dragonBoneBox.isSelected()){
- dragonBones = true;
- }else{
- dragonBones = false;
- }
- }
- }
- );
- dHideBox = new JCheckBox("Take D'hide?");
- dHideBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(dHideBox.isSelected()){
- dHide = true;
- }else{
- dHide = false;
- }
- }
- }
- );
- aboveFiveBox = new JCheckBox("Above 5k?");
- aboveFiveBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(aboveFiveBox.isSelected()){
- aboveFive = true;
- }else{
- aboveFive = false;
- }
- }
- }
- );
- effBox = new JCheckBox("Take Effigies?");
- effBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(effBox.isSelected()){
- effs = true;
- }else{
- effs = false;
- }
- }
- }
- );
- herbBox = new JCheckBox("Take Herbs?");
- herbBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(herbBox.isSelected()){
- herbs = true;
- }else{
- herbs = false;
- }
- }
- }
- );
- clueScrollBox = new JCheckBox("Take Clue scrolls?");
- clueScrollBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(clueScrollBox.isSelected()){
- clueScrolls = true;
- }else{
- clueScrolls = false;
- }
- }
- }
- );
- blueCharmBox = new JCheckBox("Take Blue Charms?");
- blueCharmBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(blueCharmBox.isSelected()){
- blueCharms = true;
- }else{
- blueCharms = false;
- }
- }
- }
- );
- greenCharmBox = new JCheckBox("Take Green Charms?");
- greenCharmBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(greenCharmBox.isSelected()){
- greenCharms = true;
- }else{
- greenCharms = false;
- }
- }
- }
- );
- goldCharmBox = new JCheckBox("Take Gold Charms?");
- goldCharmBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(goldCharmBox.isSelected()){
- goldCharms = true;
- }else{
- goldCharms = false;
- }
- }
- }
- );
- crimsonCharmBox = new JCheckBox("Take Chrimson Charms?");
- crimsonCharmBox.addItemListener(
- new ItemListener(){
- public void itemStateChanged(ItemEvent event){
- if(crimsonCharmBox.isSelected()){
- crimsonCharms = true;
- }else{
- crimsonCharms = false;
- }
- }
- }
- );
- //END OF LOOT TAB PANEL OBJECTS
- //START OF CREDIT TAB PANEL OBJECTS
- creditsBox = new JTextArea(credits);
- creditsBox.setSize(400,140);
- creditsBox.setEditable(false);
- creditsBox.setLineWrap(true);
- //END OF CREDIT TAB PANEL OBJECTS
- JTabbedPane tabbedPane = new JTabbedPane();
- add(tabbedPane);
- JComponent main = mainPanel();
- main.setPreferredSize(new Dimension(410,150));
- tabbedPane.addTab("Main", main);
- JComponent loot = lootPanel();
- loot.setPreferredSize(new Dimension(410,150));
- tabbedPane.addTab("Loot", loot);
- JComponent credit = creditPanel();
- credit.setPreferredSize(new Dimension(410,150));
- tabbedPane.addTab("Credits", credit);
- }
- JComponent mainPanel(){
- JPanel panel = new JPanel();
- panel.add(dragonLevel);
- panel.add(foodTypeBox);
- panel.add(fishNumber);
- panel.add(bankingMethodBox);
- return panel;
- }
- JComponent lootPanel(){
- JPanel panel = new JPanel();
- panel.add(dragonBoneBox);
- panel.add(dHideBox);
- panel.add(clueScrollBox);
- panel.add(effBox);
- panel.add(herbBox);
- panel.add(crimsonCharmBox);
- panel.add(greenCharmBox);
- panel.add(goldCharmBox);
- panel.add(blueCharmBox);
- panel.add(aboveFiveBox);
- return panel;
- }
- JComponent creditPanel(){
- JPanel panel = new JPanel();
- panel.add(new JScrollPane(creditsBox));
- return panel;
- }
- }
- @SuppressWarnings("serial")
- class mainFrame extends JFrame{
- public JLabel pic;
- public OverloadGUI gui;
- public JLabel icon;
- public JButton startButton;
- public int fishNumber = 0;
- public mainFrame(){
- super("GDK Settings");
- setSize(500,450);
- setLocation(410,225);
- setResizable(false);
- gui = new OverloadGUI();
- icon = new JLabel("<html><img src=\"http://i614.photobucket.com/albums/tt222/Ecosrage/OvlGdkLOGO.png\"></img></html>\n");
- startButton = new JButton("Start Overload GDK");
- startButton.addActionListener(
- new ActionListener(){
- public void actionPerformed(ActionEvent event){
- if(gui.dragonLevel.getSelectedIndex() != 0 && gui.foodTypeBox.getSelectedIndex() != 0 && gui.bankingMethodBox.getSelectedIndex() != 0){
- dispose();
- }else{
- JOptionPane.showMessageDialog(null, "You Missed Something!", "Error", JOptionPane.ERROR_MESSAGE);
- }
- }
- }
- );
- add(icon, BorderLayout.NORTH);
- add(gui, BorderLayout.CENTER);
- add(startButton, BorderLayout.SOUTH);
- }
- }