Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 73.13 KB | None | 0 0
  1. import impsoft.bots.ColorBot;
  2. import impsoft.bots.input.MouseCommand;
  3. import impsoft.bots.reflection.Interface;
  4. import impsoft.bots.reflection.NPC;
  5. import impsoft.bots.reflection.NPCIterator;
  6. import impsoft.bots.reflection.PhysicalObject;
  7. import impsoft.scripting.ibot.builtin.itemrec.ItemSlot;
  8. import impsoft.scripting.ibot.builtin.tabs.TabSkelton;
  9. import impsoft.scripting.ibot.clusters.HeatCluster;
  10. import impsoft.scripting.ibot.enums.Skill;
  11. import impsoft.scripting.ibot.interfaces.AutoPaint;
  12. import impsoft.scripting.ibot.interfaces.ChatListener;
  13. import impsoft.scripting.ibot.itemrec.ItemCondition;
  14. import impsoft.scripting.ibot.itemrec.ItemIdExact;
  15. import impsoft.scripting.ibot.itemrec.ItemNameExact;
  16. import impsoft.scripting.ibot.structs.AryanTile;
  17. import impsoft.scripting.ibot.structs.AryanTileZone;
  18. import impsoft.scripting.ibot.structs.XY;
  19. import impsoft.scripting.types.ColorScript;
  20. import impsoft.scripting.types.parallel.scriptjobs.ScriptJob;
  21. import impsoft.utils.general.Timer;
  22. import impsoft.utils.ibot.RandomGenerator;
  23. import impsoft.utils.uber.UberClickOptions;
  24. import impsoft.utils.uber.UberScriptUtils;
  25. import impsoft.values.constant.Areas;
  26. import impsoft.values.constant.SC;
  27.  
  28. import java.awt.Color;
  29. import java.awt.Font;
  30. import java.awt.Graphics;
  31. import java.awt.Rectangle;
  32. import java.awt.event.KeyEvent;
  33. import java.io.IOException;
  34. import java.net.URL;
  35. import java.util.ArrayList;
  36. import java.util.EnumSet;
  37. import java.util.HashMap;
  38. import java.util.List;
  39. import java.util.regex.Pattern;
  40.  
  41. import javax.imageio.ImageIO;
  42. import javax.swing.JFrame;
  43. import javax.swing.JOptionPane;
  44. import javax.swing.UIManager;
  45.  
  46. import java.awt.*;
  47. import java.text.DecimalFormat;
  48. import impsoft.scripting.types.parallel.scriptjobs.WorldObjectClickingScriptJobV2;
  49.  
  50.  
  51.  
  52. import bergCoder.BergUtils;
  53. import bergCoder.Object3D;
  54.  
  55. public class ZAIOCrafter extends ColorScript implements AutoPaint {
  56.  
  57.     public ZAIOCrafter(ColorBot c) {
  58.         super(c);
  59.     }
  60.  
  61.    
  62.    
  63.      
  64.        
  65.     public static String author = "zbubblez";
  66.     public static String description = "AIO Crafter";
  67.     public static double version = 1;
  68.    
  69.     boolean StartScript = false;   
  70.    
  71.     String Item1;
  72.     String Item2;
  73.     String Item3;
  74.     String SpinArea;
  75.     String TanItem;
  76.     String Jewel;
  77.     String WeaveItem;
  78.     String TypeOfSmelt;//Jewel
  79.     String ItemToSmelt;// Ring / necklace / bracelet
  80.     String ItemForPottery;
  81.     String Armour;
  82.     String AColor;
  83.     String SpinItem;
  84.     String Status = "[Starting script]";
  85.     String Action = "[None]";
  86.    
  87.    
  88.     int StartLvl = 0;
  89.     int CurrentLvl = 0;
  90.     int StartXP = 0;
  91.     int CurrentXP = 0;
  92.     int Item1Count = 0;
  93.     int Item2Count = 0;
  94.     int Item3Count = 0;
  95.     int a = 0;
  96.     int b = 0;
  97.    
  98.     AryanTileZone HomeZone;
  99.     AryanTileZone SpinZone;
  100.     AryanTileZone LumbySpinZone = new AryanTileZone(new AryanTile(103210,103213),new AryanTile(103209,103215));
  101.     AryanTileZone CammySpinZone = new AryanTileZone(new AryanTile(102711,103471),new AryanTile(102714,103471));
  102.     AryanTileZone TanZone = new AryanTileZone(new AryanTile(3276,3193),new AryanTile(3277,3191));
  103.     AryanTileZone SmeltZone = new AryanTileZone(new AryanTile(3275,3188),new AryanTile(3279,3185));
  104.     AryanTileZone CraftZone = new AryanTileZone(new AryanTile(3084,3411),new AryanTile(3086,3410));
  105.     AryanTileZone WeavingZone = new AryanTileZone(new AryanTile(3038,3292),new AryanTile(3039,3290));
  106.    
  107.    
  108.     Timer Time = new Timer(0);
  109.     Timer f = new Timer((random(15, 54)) * (1000 * 60));
  110.     long scriptStartTIME = System.currentTimeMillis();
  111.     Timer t2 = new Timer(10000L);
  112.     Timer KyattTimer = new Timer((random(35, 45)) * (1000 * 60));
  113.     Timer Tabs = new Timer((random(4, 25)) * (1000 * 60));
  114.    
  115.     boolean DoPottery = false;
  116.     boolean DoArmour = false;
  117.     boolean DoSmelting = false;
  118.     boolean DoSpinning = false;
  119.     boolean DoTanning = false;
  120.     boolean Weaving = false;
  121.     boolean DoJewels = false;
  122.     boolean GoldRing = false;
  123.     boolean Go = false;
  124.    
  125.     Rectangle vamb;
  126.     Rectangle body;
  127.     Rectangle chap;
  128.    
  129.    
  130.     boolean Saphire = false;
  131.     boolean Emerald = false;
  132.     boolean Ruby = false;
  133.     boolean Diamond = false;
  134.     boolean Onyx = false;
  135.     boolean Dragonstone = false;
  136.    
  137.    
  138.     public void script() throws InterruptedException, Exception {
  139.         PaintThread.start();
  140.         CheckThread.start();
  141.         XpThread.start();
  142.         TabThread.start();
  143.         AntiBan.start();
  144.         while(!isLoggedIn())
  145.         {
  146.             sleep(1000);
  147.             log("Login = False");
  148.         }
  149.         StartXP = theTabs.Statistics.getStatExperience(Skill.CRAFTING);
  150.         StartLvl = theTabs.Statistics.getStatBottom(Skill.CRAFTING);
  151.         sleep(2000, 2500); 
  152.         log("******************************");
  153.         log("!~ Welcome to ZAIOCrafter V1.00 ~!");
  154.         log("Script Version = 1.00");
  155.         log("Last update = 10/5/2010 (7:15 PM)");
  156.         log("Script Author = zbubblez");
  157.         log("Contact Me = zbubblez@hotmail.com (email/MSN)");
  158.         log("Skype = zbubblez99");
  159.         log("!~ Thanks for purchasing ZAIOCrafter ~!");
  160.         log("******************************");         
  161.         sleep(5000, 7000);
  162.         JFrame Settings = new GUI();
  163.         Settings.setVisible(true);
  164.         while (StartScript != true)
  165.             sleep(100, 200);
  166.         StartScript = false;
  167.         Settings.setVisible(false);
  168.        
  169.         if(DoSpinning == true)
  170.         {
  171.             log("Action = Spin()");
  172.             Action = "Spin()";
  173.             Spin();
  174.         }
  175.         else if(DoArmour == true)
  176.         {
  177.             log("Action = MakeArmour()");
  178.             Action = "MakeArmour()";
  179.             MakeArmour();
  180.         }
  181.         else if(DoPottery == true)
  182.         {
  183.             log("Action = DoPottery()");
  184.             Action = "DoPottery()";
  185.             DoPottery();
  186.         }
  187.         else if(DoSmelting == true)
  188.         {
  189.             log("Action = DoSmelt()");
  190.             Action = "DoSmelt()";
  191.             DoSmelt();
  192.         }
  193.         else if(DoJewels == true)
  194.         {
  195.             log("Action = CuttingJewels()");
  196.             Action = "CuttingJewels()";
  197.             CutJewels();
  198.         }
  199.         else if(DoTanning == true)
  200.         {
  201.             log("Action = Tan()");
  202.             Action = "Tan()";
  203.             Tan();
  204.         }
  205.         else if(Weaving == true)
  206.         {
  207.             log("Action = Weaving()");
  208.             Weaving();     
  209.         }
  210.         else
  211.         {
  212.             log("Action = [NOT CHOSEN]");          
  213.         }
  214.     }
  215.    
  216.    
  217.    
  218.     public void Weaving() throws InterruptedException, Exception {
  219.         if(WeaveItem.contains("Cloth"))
  220.         {
  221.             Item1 = "Ball of wool";        
  222.         }
  223.         else if(WeaveItem.contains("Vegetable Stack"))
  224.         {
  225.             Item1 = "jute fibre";
  226.         }
  227.         else if(WeaveItem.contains("Fruit basket"))
  228.         {
  229.             Item1 = "willow branches";
  230.         }
  231.         else if(WeaveItem.contains("Seaweed Net"))
  232.         {
  233.             Item1 = "Flax";
  234.             Item2 = "Bronze wire";
  235.         }
  236.         if(Item1 == "Flax")
  237.         {
  238.             log("Item to use = Flax");
  239.             log("Second Item to use = Bronze wire");
  240.             if(theTabs.Inventory.count("Flax") == 0 || theTabs.Inventory.count("Bronze wire") == 0)
  241.             {
  242.                 log("Flax = "+theTabs.Inventory.count("Flax"));
  243.                 log("Bronze wire = "+theTabs.Inventory.count("Bronze wire"));
  244.                 theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  245.                 while(getMyPlayer().isMoving())
  246.                 {
  247.                     sleep(300, 700);
  248.                 }
  249.                 theBank.open();
  250.                 theBank.doDepositAll();
  251.                 while(theTabs.Inventory.count("Flax") < 5)
  252.                 {
  253.                     if(theBank.count("Flax") < 5)
  254.                     {
  255.                         log("Flax in bank < 5");
  256.                     }
  257.                     theBank.doWithDrawX(Item1, 13);
  258.                     sleep(2000, 3000);
  259.                 }
  260.                 while(theTabs.Inventory.count("Bronze wire") == 0)
  261.                 {
  262.                     if(theBank.count("Bronze wire") == 0)
  263.                     {
  264.                         log("Bronze wire in bank = 0");
  265.                     }
  266.                     theBank.doWithDrawX(Item2, 13);
  267.                     sleep(2000, 3000);
  268.                 }
  269.             }
  270.         }
  271.         else
  272.         {
  273.             log("Item to use = "+Item1);
  274.             if(theTabs.Inventory.count(Item1) < 6)
  275.             {
  276.                 log(Item1+" = 0");             
  277.                 theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  278.                 while(getMyPlayer().isMoving())
  279.                 {
  280.                     sleep(300, 700);
  281.                 }
  282.                 theBank.open();
  283.                 theBank.doDepositAll();
  284.                 while(theTabs.Inventory.count(Item1) < 6)
  285.                 {
  286.                     if(theBank.count(Item1) < 6)
  287.                     {
  288.                         log(Item1+" in bank < 6");
  289.                     }
  290.                     theBank.doWithDrawAll(Item1, false);
  291.                     sleep(2000, 3000);
  292.                 }          
  293.             }
  294.         }
  295.         while(isLoggedIn())
  296.         {
  297.             PhysicalObject Loom = this.getInteractiveObject(8717);
  298.             PhysicalObject Door = this.getInteractiveObject(8695);
  299.             fasdfasdf
  300.         while(theTabs.Inventory.count(Item1) >= 4)
  301.         {
  302.            
  303.             while(!this.isInterfaceNotNullAndValid(513, 3))
  304.             {
  305.                 this.theParallelWorldObjectActions.clickWorldObject(Loom, "Loom", "Weave");
  306.                 sleep(3000, 4000);
  307.             }
  308.             if(this.isInterfaceNotNullAndValid(513, 3))
  309.             {
  310.                 log("Interface != null");
  311.                 if(WeaveItem.contains("Cloth"))
  312.                 {              
  313.                     mouseClickRight(new Rectangle(296,431,39, -38));
  314.                     theMenuFinder.doMenu("X");
  315.                     sleep(500, 1000);
  316.                     this.SendText(Integer.toString((random(28, 3465))));
  317.                     SendKey(10);
  318.                     sleep(1000, 2000);
  319.                 }
  320.                 else if(WeaveItem.contains("Vegetable Stack"))
  321.                 {
  322.                     mouseClickRight(new Rectangle(55,436,43, -52));
  323.                     theMenuFinder.doMenu("X");
  324.                     sleep(500, 1000);
  325.                     this.SendText(Integer.toString((random(28, 3465))));
  326.                     SendKey(10);
  327.                     sleep(1000, 2000);
  328.                 }
  329.                 else if(WeaveItem.contains("Fruit basket"))
  330.                 {
  331.                     mouseClickRight(new Rectangle(181,439,35, -52));
  332.                     theMenuFinder.doMenu("X");
  333.                     sleep(500, 1000);
  334.                     this.SendText(Integer.toString((random(28, 3465))));
  335.                     SendKey(10);
  336.                     sleep(1000, 2000);
  337.                 }
  338.                 else if(WeaveItem.contains("Seaweed Net"))
  339.                 {                  
  340.                     mouseClickRight(new Rectangle(414,433,43, -43));
  341.                     theMenuFinder.doMenu("X");
  342.                     sleep(500, 1000);
  343.                     this.SendText(Integer.toString((random(28, 3465))));
  344.                     SendKey(10);
  345.                     sleep(1000, 2000);
  346.                 }  
  347.                 Go = false;
  348.             }
  349.             while(Go == false)
  350.             {
  351.                 a = theTabs.Inventory.count(Item1);
  352.                 sleep(3000, 6000);
  353.                 if(theTabs.Inventory.count(Item1) == a)
  354.                 {
  355.                     log("DoingAction = false");                        
  356.                     Go = true;
  357.                 }
  358.                
  359.             }          
  360.            
  361.         }//END OF INVENTORY LOOP   
  362.         theWorldMap.walkToBank();
  363.         theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  364.         while(getMyPlayer().isMoving())
  365.         {
  366.             sleep(300, 700);
  367.         }
  368.         theBank.open();
  369.         theBank.doDepositAll();
  370.         if(WeaveItem.contains("Flax"))
  371.         {
  372.             while(theTabs.Inventory.count("Flax") < 5)
  373.             {
  374.                 if(theBank.count("Flax") < 5)
  375.                 {
  376.                     log("Flax in bank < 5");
  377.                 }
  378.                 theBank.doWithDrawX(Item1, 13);
  379.                 sleep(2000, 3000);
  380.             }
  381.             while(theTabs.Inventory.count("Bronze wire") == 0)
  382.             {
  383.                 if(theBank.count("Bronze wire") == 0)
  384.                 {
  385.                     log("Bronze wire in bank = 0");
  386.                 }
  387.                 theBank.doWithDrawX(Item2, 13);
  388.                 sleep(2000, 3000);
  389.             }
  390.         }
  391.         else
  392.         {
  393.             while(theTabs.Inventory.count(Item1) < 6)
  394.             {
  395.                 if(theBank.count(Item1) < 6)
  396.                 {
  397.                     log(Item1+" in bank < 6");
  398.                 }
  399.                 theBank.doWithDrawAll(Item1, false);
  400.                 sleep(2000, 3000);
  401.             }
  402.         }      
  403.            
  404.         }
  405.        
  406.     }
  407.    
  408.     public void MakeArmour() throws InterruptedException, Exception {
  409.         if(AColor.contains("Green"))
  410.         {
  411.             Item1 = "Green dragon leather";
  412.         }
  413.         else if (AColor.contains("Blue"))
  414.         {
  415.             Item1 = "Blue dragon leather";
  416.         }
  417.         else if (AColor.contains("Red"))
  418.         {
  419.             Item1 = "Red dragon leather";
  420.         }
  421.         log("Item to use = "+Item1);
  422.         if(Armour.contains("Chap"))
  423.         {
  424.             log("Item to make = Chaps");
  425.             chap =  new Rectangle(396,435,17, -50);
  426.         }
  427.         else if(Armour.contains("Body"))
  428.         {
  429.             log("Item to make = Body");
  430.             body = new Rectangle(91,435,30, -42);
  431.         }
  432.         else if(Armour.contains("Vamb"))
  433.         {
  434.             log("Item to make = vambrace");
  435.             vamb = new Rectangle(231,430,48, -41);
  436.         }
  437.         if(theTabs.Inventory.count("Needle") == 0)
  438.         {
  439.             log("Needle = 0");
  440.             log("Thread = "+theTabs.Inventory.count("Thread"));
  441.             theWorldMap.walkToBank();
  442.             theBank.open();
  443.             while(theTabs.Inventory.count("Thread") == 0 || theTabs.Inventory.count("Needle") == 0)
  444.             {
  445.                 if(theBank.count("Thread") == 0)
  446.                 {
  447.                     log("Thread in bank = 0");                 
  448.                 }
  449.                 if(theBank.count("Needle") == 0)
  450.                 {
  451.                     log("Needle in bank = 0");
  452.                 }
  453.             if(theTabs.Inventory.count("Thread") == 0)
  454.             {
  455.                 theBank.doWithDrawAll(new ItemNameExact("Thread"), false);
  456.             }
  457.             theBank.doWithDraw1("Needle", false);
  458.             sleep(1000, 2000);
  459.             }
  460.             theBank.exit();
  461.            
  462.         }
  463.         while(isLoggedIn())
  464.         {
  465.             if(theTabs.Inventory.count(Item1) == 0)
  466.             {
  467.                
  468.                 log(Item1+" = 0");
  469.                 theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  470.                 while(getMyPlayer().isMoving())
  471.                 {
  472.                     sleep(300, 700);
  473.                 }
  474.                 theBank.open();
  475.                 while(theTabs.Inventory.count(Item1) == 0)
  476.                 {
  477.                     if(theBank.count(Item1) == 0)
  478.                     {
  479.                         log(Item1+" in bank = 0");
  480.                     }
  481.                 theBank.doDepositAllBut(new String[] {"Needle" , "Thread"});
  482.                 theBank.doWithDrawAll(Item1, false);
  483.                 sleep(1000, 2000);
  484.                 }
  485.                
  486.             }
  487.             while(theTabs.Inventory.count(new ItemNameExact(Item1)) != 0)
  488.             {
  489.                 while(!this.isInterfaceNotNullAndValid(137, 10))
  490.                 {
  491.                 switch(random(0 ,5))
  492.                 {
  493.                 case 0:
  494.                     theTabs.Inventory.doAction("Needle", null, 1, false);
  495.                     log("Random Item = Needle");
  496.                 case 1:
  497.                     theTabs.Inventory.doAction("Thread", null, 1, false);
  498.                     log("Random Item = Thread");
  499.                 case 2:
  500.                     theTabs.Inventory.doAction("Needle", null, 1, false);
  501.                     log("Random Item = Needle");
  502.                 case 3:
  503.                     theTabs.Inventory.doAction("Thread", null, 1, false);
  504.                     log("Random Item = Thread");
  505.                 case 4:
  506.                     theTabs.Inventory.doAction("Needle", null, 1, false);
  507.                     log("Random Item = Needle");
  508.                 case 5:
  509.                     theTabs.Inventory.doAction("Thread", null, 1, false);
  510.                     log("Random Item = Thread");
  511.                 }
  512.                 theTabs.Inventory.doAction(Item1, null, 1, false);
  513.                 sleep(2000, 3000);             
  514.                 }
  515.                 if(this.isInterfaceNotNullAndValid(137, 10))
  516.                 {
  517.                     log("Interface != null");
  518.                     if(Armour.contains("Chap"))
  519.                     {
  520.                         mouseClickRight(chap);
  521.                         theMenuFinder.doMenu("All");
  522.                     }
  523.                     else if(Armour.contains("Body"))
  524.                     {
  525.                         mouseClickRight(body);
  526.                         theMenuFinder.doMenu("All");
  527.                     }
  528.                     else if(Armour.contains("Vamb"))
  529.                     {
  530.                         mouseClickRight(vamb);
  531.                         theMenuFinder.doMenu("All");
  532.                     }
  533.                     Go = false;            
  534.                 }
  535.                
  536.                 while(Go == false)
  537.                 {
  538.                     a = theTabs.Inventory.count(Item1);
  539.                     sleep(3000, 6000);
  540.                     if(theTabs.Inventory.count(Item1) == a)
  541.                     {
  542.                         log("DoingAction = false");                        
  543.                         Go = true;
  544.                     }
  545.                 }              
  546.                
  547.             }//END OF INVENTORY LOOP           
  548.         }      
  549.        
  550.     }
  551.    
  552.     public void DoPottery() throws InterruptedException, Exception {
  553.         Item1 = "Soft clay";
  554.         log("Item to Pottisserize = Soft clay");
  555.         if(theTabs.Inventory.count(Item1) == 0)
  556.         {
  557.             GetFromBankAll(Item1 , true , true);
  558.         }
  559.         PhysicalObject PotterWheel = this.getInteractiveObject(2642);
  560.         theWorldMap.walkTo(CraftZone.random() , theWorldMap.RETURN_WHILE_MOVING);
  561.         while(PotterWheel == null)
  562.         {
  563.             sleep(300, 700);
  564.         }          
  565.         while(isLoggedIn())
  566.         {
  567.         while(theTabs.Inventory.count(Item1) != 0)
  568.         {
  569.             while(!this.isInterfaceNotNullAndValid(513, 2))
  570.             {
  571.             if(PotterWheel != null)
  572.             {
  573.             theTabs.Inventory.doAction(Item1, null, 1, false);
  574.             this.theParallelWorldObjectActions.clickWorldObject(PotterWheel, "Potter's wheel", "Use");
  575.             sleep(2000, 5000);
  576.             }
  577.             }
  578.             if(this.isInterfaceNotNullAndValid(513, 2))
  579.             {
  580.                 log("Interface != null");
  581.                 if(ItemForPottery.contains("Pot"))
  582.                 {
  583.                     mouseClickRight(new Rectangle(58,434,34, -42));
  584.                     theMenuFinder.doMenu("X");
  585.                     sleep(500, 1000);
  586.                     this.SendText(Integer.toString((random(28, 3465))));
  587.                     SendKey(10);                   
  588.                     sleep(1000, 2000);
  589.                 }
  590.                 else if(ItemForPottery.contains("Pie "))
  591.                 {
  592.                     mouseClickRight(new Rectangle(172,429,50, -42));
  593.                     theMenuFinder.doMenu("X");
  594.                     sleep(500, 1000);
  595.                     this.SendText(Integer.toString((random(28, 3465))));
  596.                     SendKey(10);
  597.                     sleep(1000, 2000);
  598.                 }
  599.                 else if(ItemForPottery.contains("Bowl"))
  600.                 {
  601.                     mouseClickRight(new Rectangle(292,431,47, -43));
  602.                     theMenuFinder.doMenu("X");
  603.                     sleep(500, 1000);
  604.                     this.SendText(Integer.toString((random(28, 3465))));
  605.                     SendKey(10);
  606.                     sleep(1000, 2000);
  607.                 }
  608.                 else if(ItemForPottery.contains("Plant"))
  609.                 {
  610.                     mouseClickRight(new Rectangle(414,441,50, -63));
  611.                     theMenuFinder.doMenu("X");
  612.                     sleep(500, 1000);
  613.                     this.SendText(Integer.toString((random(28, 3465))));
  614.                     SendKey(10);
  615.                     sleep(1000, 2000);
  616.                 }  
  617.                 Go = false;
  618.                
  619.             }
  620.             while(Go == false)
  621.             {
  622.                 a = theTabs.Inventory.count("Soft clay");
  623.                 sleep(5000, 8000);
  624.                 if(theTabs.Inventory.count("Soft clay") == a)
  625.                 {
  626.                     log("DoingAction = false");                        
  627.                     Go = true;
  628.                 }
  629.             }
  630.     }// END OF INVENTORY LOOP 1
  631.         log("Action = Oven()");
  632.         while(theTabs.Inventory.count("Unfired ") != 0)
  633.         {
  634.             PhysicalObject Oven = this.getInteractiveObject(11601,11602);
  635.             while(!this.isInterfaceNotNullAndValid(513, 2))
  636.             {
  637.                 if(Oven != null)
  638.                 {
  639.                     this.theParallelWorldObjectActions.clickWorldObject(Oven, "Pottery oven", "Fire");
  640.                     sleep(4000, 5000);
  641.                 }
  642.             }
  643.             if(this.isInterfaceNotNullAndValid(513, 2))
  644.             {
  645.                 log("interface != null");
  646.                 if(ItemForPottery.contains("Pot"))
  647.                 {
  648.                     mouseClickRight(new Rectangle(58,434,34, -42));
  649.                     theMenuFinder.doMenu("X");
  650.                     sleep(500, 1000);
  651.                     this.SendText(Integer.toString((random(28, 3465))));
  652.                     SendKey(10);
  653.                     sleep(1000, 2000);
  654.                 }
  655.                 else if(ItemForPottery.contains("Pie "))
  656.                 {
  657.                     mouseClickRight(new Rectangle(172,429,50, -42));
  658.                     theMenuFinder.doMenu("X");
  659.                     sleep(500, 1000);
  660.                     this.SendText(Integer.toString((random(28, 3465))));
  661.                     SendKey(10);
  662.                     sleep(1000, 2000);
  663.                 }
  664.                 else if(ItemForPottery.contains("Bowl"))
  665.                 {
  666.                     mouseClickRight(new Rectangle(292,431,47, -43));
  667.                     theMenuFinder.doMenu("X");
  668.                     sleep(500, 1000);
  669.                     this.SendText(Integer.toString((random(28, 3465))));
  670.                     SendKey(10);
  671.                     sleep(1000, 2000);
  672.                 }
  673.                 else if(ItemForPottery.contains("Plant"))
  674.                 {
  675.                     mouseClickRight(new Rectangle(414,441,50, -63));
  676.                     theMenuFinder.doMenu("X");
  677.                     sleep(500, 1000);
  678.                     this.SendText(Integer.toString((random(28, 3465))));
  679.                     SendKey(10);
  680.                     sleep(1000, 2000);
  681.                 }  
  682.                 Go = false;
  683.             }
  684.             while(Go == false)
  685.             {
  686.                 a = theTabs.Inventory.count("Unfired ");
  687.                 sleep(4000, 6000);
  688.                 if(theTabs.Inventory.count("Unfired ") == a)
  689.                 {
  690.                     log("DoingAction = false");                        
  691.                     Go = true;
  692.                 }
  693.             }
  694.         }
  695.         GetFromBankAll(Item1 , true , true);
  696.         theWorldMap.walkTo(CraftZone.random());
  697.         theWorldMap.walkTo(CraftZone.random() , theWorldMap.RETURN_WHILE_MOVING);
  698.         while(PotterWheel == null)
  699.         {
  700.             sleep(300, 700);
  701.         }      
  702.         }
  703.     }
  704.    
  705.     public void DoSmelt() throws InterruptedException, Exception {
  706.         if(TypeOfSmelt.contains("Gold"))
  707.         {
  708.             Item1 = "nothing";         
  709.         }
  710.         else if(TypeOfSmelt.contains("Opal"))
  711.         {
  712.             Item1 = "Opal";        
  713.         }
  714.         else if(TypeOfSmelt.contains("Jade"))
  715.         {
  716.             Item1 = "Jade";        
  717.         }
  718.         else if(TypeOfSmelt.contains("Red Topaz"))
  719.         {
  720.             Item1 = "Red Topaz";           
  721.         }
  722.         else if(TypeOfSmelt.contains("Saphire"))
  723.         {
  724.             Item1 = "Sapphire";        
  725.         }
  726.         else if(TypeOfSmelt.contains("Emerald"))
  727.         {
  728.             Item1 = "Emerald";         
  729.         }
  730.         else if(TypeOfSmelt.contains("Ruby"))
  731.         {
  732.             Item1 = "Ruby";        
  733.         }
  734.         else if(TypeOfSmelt.contains("Diamond"))
  735.         {
  736.             Item1 = "Diamond";         
  737.         }
  738.         else if(TypeOfSmelt.contains("Onyx"))
  739.         {
  740.             Item1 = "Onyx";        
  741.         }
  742.         else if(TypeOfSmelt.contains("Dragonstone"))
  743.         {
  744.             Item1 = "Dragonstone";         
  745.         }
  746.         if(Item1 == "nothing")
  747.         {
  748.             log("Item smelting = Gold ring");
  749.             GoldRing = true;
  750.         }
  751.         else
  752.         {
  753.             log("Item smelting = "+Item1);
  754.         }
  755.         if(theTabs.Inventory.count("Ring mould") == 0 && theTabs.Inventory.count("Necklace mould") == 0)
  756.         {
  757.             log("Ring mould = "+theTabs.Inventory.count("Ring mould"));
  758.             log("Necklace mould = "+theTabs.Inventory.count("Necklace mould"));
  759.             if(ItemToSmelt.contains("Ring"))
  760.             {
  761.                 theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  762.                 while(getMyPlayer().isMoving())
  763.                 {
  764.                     sleep(300, 700);
  765.                 }      
  766.             theBank.open();
  767.             theBank.doDepositAll();
  768.             theBank.doWithDraw1("Ring mould", false);
  769.             theBank.exit();
  770.             }
  771.             else if(ItemToSmelt.contains("Necklace"))
  772.             {
  773.                 theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  774.                 while(getMyPlayer().isMoving())
  775.                 {
  776.                     sleep(300, 700);
  777.                 }  
  778.                 theBank.open();
  779.                 theBank.doDepositAll();
  780.                 theBank.doWithDraw1("Necklace", false);
  781.                 theBank.exit();
  782.             }
  783.         }
  784.         while(isLoggedIn())
  785.         {
  786.             if(theTabs.Inventory.count(Item1) == 0 && GoldRing == false)
  787.             {
  788.                 theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  789.                 while(getMyPlayer().isMoving())
  790.                 {
  791.                     sleep(300, 700);
  792.                 }  
  793.                 theBank.open();
  794.                 theBank.doDepositAllBut(new String[] {"Ring mould" , "Necklace mould"});
  795.                 theBank.doWithDrawX(Item1, 13);
  796.                 theBank.doWithDrawX(new ItemIdExact(2357), 13);
  797.                 theBank.exit();            
  798.             }
  799.             else if(GoldRing == true && theTabs.Inventory.count(new ItemIdExact(2357)) == 0)
  800.             {
  801.                 theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  802.                 while(getMyPlayer().isMoving())
  803.                 {
  804.                     sleep(300, 700);
  805.                 }  
  806.                 theBank.open();
  807.                 theBank.doDepositAllBut(new String[] {"Ring mould" , "Necklace mould"});               
  808.                 theBank.doWithDrawAll(new ItemIdExact(2357), false);
  809.                 theBank.exit();
  810.             }  
  811.             PhysicalObject Furnace = this.getInteractiveObject(11666);
  812.             theWorldMap.walkTo(SmeltZone.random() , theWorldMap.RETURN_WHILE_MOVING);
  813.             while(Furnace == null)
  814.             {
  815.                 sleep(300, 700);
  816.             }  
  817.             while(theTabs.Inventory.count(new ItemIdExact(2357)) != 0)
  818.             {
  819.             while(!this.isInterfaceNotNullAndValid(446, 13))
  820.             {
  821.                
  822.                 if(Furnace != null)
  823.                 {
  824.                     theTabs.Inventory.doAction("Gold bar", null, 1, false);
  825.                     this.theParallelWorldObjectActions.clickWorldObject(Furnace , "Furnace", "Use");
  826.                     sleep(5000, 7000);
  827.                 }
  828.             }
  829.                 if(this.isInterfaceNotNullAndValid(446, 13))
  830.                 {
  831.                     log("Interface != null");
  832.                     if(ItemToSmelt.contains("Ring"))
  833.                     {
  834.                         if(GoldRing == true)
  835.                         {
  836.                             mouseClickRight(new Rectangle(107,98,17, 13));
  837.                             theMenuFinder.doMenu("All");
  838.                             sleep(1000, 2000);
  839.                         }      
  840.                         else if(Saphire == true)
  841.                         {
  842.                             mouseClickRight(new Rectangle(152,93,23, 17));
  843.                             theMenuFinder.doMenu("All");
  844.                             sleep(1000, 2000);
  845.                         }
  846.                         else if(Emerald == true)
  847.                         {
  848.                             mouseClickRight(new Rectangle(200,94,22, 19));
  849.                             theMenuFinder.doMenu("All");
  850.                             sleep(1000, 2000);
  851.                         }
  852.                         else if(Ruby == true)
  853.                         {
  854.                             mouseClickRight(new Rectangle(245,91,21, 20));
  855.                             theMenuFinder.doMenu("All");
  856.                             sleep(1000, 2000);
  857.                         }
  858.                         else if(Diamond == true)
  859.                         {
  860.                             mouseClickRight(new Rectangle(291,91,18, 20));
  861.                             theMenuFinder.doMenu("All");
  862.                             sleep(1000, 2000);
  863.                         }
  864.                         else if(Dragonstone == true)
  865.                         {
  866.                             mouseClickRight(new Rectangle(337,92,18, 18));
  867.                             theMenuFinder.doMenu("All");
  868.                             sleep(1000, 2000);
  869.                         }
  870.                         else if(Onyx == true)
  871.                         {
  872.                             mouseClickRight(new Rectangle(381,92,18, 20));
  873.                             theMenuFinder.doMenu("All");
  874.                             sleep(1000, 2000);
  875.                         }
  876.                        
  877.                     }
  878.                     else if(ItemToSmelt.contains("Neck"))
  879.                     {  
  880.                         if(GoldRing == true)//Dont worry
  881.                         {
  882.                             mouseClickRight(new Rectangle(117,153,24, 27));
  883.                             theMenuFinder.doMenu("All");
  884.                             sleep(1000, 2000);
  885.                         }      
  886.                         else if(Saphire == true)
  887.                         {
  888.                             mouseClickRight(new Rectangle(170,178,25, -21));
  889.                             theMenuFinder.doMenu("All");
  890.                             sleep(1000, 2000);
  891.                         }
  892.                         else if(Emerald == true)
  893.                         {
  894.                             mouseClickRight(new Rectangle(217,177,30, -22));
  895.                             theMenuFinder.doMenu("All");
  896.                             sleep(1000, 2000);
  897.                         }
  898.                         else if(Ruby == true)
  899.                         {
  900.                             mouseClickRight(new Rectangle(269,178,27, -19));
  901.                             theMenuFinder.doMenu("All");
  902.                             sleep(1000, 2000);
  903.                         }
  904.                         else if(Diamond == true)
  905.                         {
  906.                             mouseClickRight(new Rectangle(321,180,23, -23));
  907.                             theMenuFinder.doMenu("All");
  908.                             sleep(1000, 2000);
  909.                         }
  910.                         else if(Dragonstone == true)
  911.                         {
  912.                             mouseClickRight(new Rectangle(367,176,25, -20));
  913.                             theMenuFinder.doMenu("All");
  914.                             sleep(1000, 2000);
  915.                         }
  916.                         else if(Onyx == true)
  917.                         {
  918.                             mouseClickRight( new Rectangle(418,177,24, -21));
  919.                             theMenuFinder.doMenu("All");
  920.                             sleep(1000, 2000);
  921.                         }                      
  922.                     }
  923.                    
  924.                 }  
  925.                 Go = false;
  926.                 while(Go == false)
  927.                 {
  928.                     a = theTabs.Inventory.count(new ItemIdExact(2357));
  929.                     sleep(9000, 11000);
  930.                     if(theTabs.Inventory.count(new ItemIdExact(2357)) == a)
  931.                     {
  932.                         log("DoingAction = false");                        
  933.                         Go = true;
  934.                     }
  935.                 }
  936.             }
  937.            
  938.            
  939.             }
  940.            
  941.         }      
  942.    
  943.    
  944.     public void Tan() throws InterruptedException, Exception {
  945.         if(TanItem.toString().contains("Soft leather"))
  946.         {
  947.             Item1 = "Cowhide";
  948.         }
  949.         else if(TanItem.toString().contains("Hard leather"))
  950.         {
  951.             Item1 = "Cowhide";
  952.         }
  953.         else if(TanItem.toString().contains("Dark Green"))
  954.         {
  955.             Item1 = "Snakeskin";
  956.         }
  957.         else if(TanItem.toString().contains("Light Green"))
  958.         {
  959.             Item1 = "Snakeskin";
  960.         }
  961.         else if(TanItem.toString().contains("Green D'hide"))
  962.         {
  963.             Item1 = "Green dragonhide";
  964.         }
  965.         else if(TanItem.toString().contains("Blue D'hide"))
  966.         {
  967.             Item1 = "Blue dragonhide";
  968.         }
  969.         else if(TanItem.toString().contains("Red D'hide"))
  970.         {
  971.             Item1 = " dragonhide";
  972.         }
  973.         else if(TanItem.toString().contains("Black D'hide"))
  974.         {
  975.             Item1 = "Black dragonhide";
  976.         }
  977.         log("Item to tan = "+Item1);
  978.         while(isLoggedIn())
  979.         {
  980.             if(theTabs.Inventory.count(Item1) == 0)
  981.             {
  982.                 theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  983.                 while(getMyPlayer().isMoving())
  984.                 {
  985.                     sleep(300, 700);
  986.                 }  
  987.                 theBank.open();
  988.                 while(theTabs.Inventory.count(Item1) == 0)
  989.                 {
  990.                     if(theBank.count(Item1) == 0)
  991.                     {
  992.                         log("You have no "+Item1+"s");
  993.                         getHandler().threadSafeTurnScriptOff();
  994.                     }
  995.                     theBank.doDepositAllBut(new String[] {"Coins"});
  996.                     theBank.doWithDrawAll(Item1, false);
  997.                     sleep(600, 1500);
  998.                 }
  999.             }
  1000.             NPC Ellis = this.theWorldObjectFinder.findNPC("Ellis");
  1001.             theWorldMap.walkTo(TanZone.random() , theWorldMap.RETURN_WHILE_MOVING);
  1002.             while(Ellis == null)
  1003.             {
  1004.                 sleep(300, 700);
  1005.             }  
  1006.             while(!this.isInterfaceNotNullAndValid(324, 9))
  1007.             {              
  1008.                
  1009.                 if(Ellis != null)
  1010.                 {
  1011.                     this.theParallelWorldObjectActions.clickWorldObject(Ellis, "Ellis", "Trade");
  1012.                     while(getMyPlayer().isMoving())
  1013.                     {
  1014.                        
  1015.                     }
  1016.                     sleep(2000, 3000);
  1017.                 }
  1018.             }
  1019.             if(this.isInterfaceNotNullAndValid(324, 9))
  1020.             {
  1021.                 log("Interface != null");
  1022.                 if(TanItem.toString().contains("Soft leather"))
  1023.                 {
  1024.                     mouseClickRight(new Rectangle(64,80,53, 51));
  1025.                     theMenuFinder.doMenu("All");
  1026.                 }
  1027.                 else if(TanItem.toString().contains("Hard leather"))
  1028.                 {
  1029.                     mouseClickRight(new Rectangle(175,86,57, 44));
  1030.                     theMenuFinder.doMenu("All");
  1031.                 }
  1032.                 else if(TanItem.toString().contains("Dark Green"))
  1033.                 {
  1034.                     mouseClickRight( new Rectangle(281,77,60, 55));
  1035.                     theMenuFinder.doMenu("All");
  1036.                 }
  1037.                 else if(TanItem.toString().contains("Light Green"))
  1038.                 {
  1039.                     mouseClickRight(new Rectangle(390,75,67, 58));
  1040.                     theMenuFinder.doMenu("All");
  1041.                 }
  1042.                 else if(TanItem.toString().contains("Green D'hide"))
  1043.                 {
  1044.                     mouseClickRight( new Rectangle(67,205,48, 48));
  1045.                     theMenuFinder.doMenu("All");
  1046.                 }
  1047.                 else if(TanItem.toString().contains("Blue D'hide"))
  1048.                 {
  1049.                     mouseClickRight(new Rectangle(176,209,54, 44));
  1050.                     theMenuFinder.doMenu("All");
  1051.                 }
  1052.                 else if(TanItem.toString().contains("Red D'hide"))
  1053.                 {
  1054.                     mouseClickRight( new Rectangle(285,205,59, 52));
  1055.                     theMenuFinder.doMenu("All");
  1056.                 }
  1057.                 else if(TanItem.toString().contains("Black D'hide"))
  1058.                 {
  1059.                     mouseClickRight(new Rectangle(396,206,59, 48));
  1060.                     theMenuFinder.doMenu("All");
  1061.                 }
  1062.             }
  1063.             while(theTabs.Inventory.count(Item1) != 0)
  1064.             {
  1065.                 sleep(300, 600);
  1066.             }          
  1067.         }
  1068.        
  1069.        
  1070.            
  1071.        
  1072.        
  1073.     }
  1074.    
  1075.    
  1076.    
  1077.     public void Spin() throws InterruptedException, Exception {        
  1078.         if(SpinItem.toString().contains("Flax"))
  1079.         {
  1080.             Item1 = "Flax";
  1081.         }  
  1082.         else if(SpinItem.toString().contains("Wool"))
  1083.         {
  1084.             Item1 = "Wool";
  1085.         }      
  1086.         else if(SpinItem.toString().contains("Magic"))
  1087.         {
  1088.             Item1 = "Magic tree roots";
  1089.         }
  1090.         else if(SpinItem.toString().contains("Yak"))
  1091.         {
  1092.             Item1 = "Yak hair";
  1093.         }
  1094.         log("Item to spin = "+Item1);
  1095.         if(theTabs.Inventory.count(Item1) == 0)
  1096.         {
  1097.             log(Item1+" = 0");
  1098.             GetFromBankAll(Item1 , true, true);
  1099.         }
  1100.         if(SpinArea != null)
  1101.         {
  1102.         if(SpinArea.toString().contains("Camelot"))
  1103.         {
  1104.             log("Spining Location = Camelot");
  1105.             SpinZone = CammySpinZone;
  1106.             theWorldMap.walkTo(SpinZone.random());
  1107.             while(getMyPlayer().isMoving())
  1108.             {
  1109.                 sleep(500, 700);
  1110.             }
  1111.         }
  1112.         else if(SpinArea.toString().contains("Lumb"))
  1113.         {
  1114.             log("Spinning Location = Lumby");
  1115.             SpinZone = LumbySpinZone;
  1116.             theWorldMap.walkTo(SpinZone.random());
  1117.             while(getMyPlayer().isMoving())
  1118.             {
  1119.                 sleep(300, 600);
  1120.             }
  1121.         }
  1122.         }
  1123.         else
  1124.         {
  1125.         log("SpinArea == null [GUI Filled in incorrectly]");
  1126.         log("Going to defualt location [Cammy]");
  1127.         SpinZone = CammySpinZone;
  1128.         theWorldMap.walkTo(SpinZone.random());     
  1129.         while(getMyPlayer().isMoving())
  1130.         {
  1131.             sleep(300, 700);
  1132.         }  
  1133.         }
  1134.         while(isLoggedIn())
  1135.         {
  1136.             if(theTabs.Inventory.count(Item1) == 0)
  1137.             {
  1138.                 log(Item1+" = 0");
  1139.                 GetFromBankAll(Item1 , true, true);
  1140.             }
  1141.             PhysicalObject Spinner = this.getInteractiveObject(3697,25824);
  1142.             theWorldMap.walkTo(SpinZone.random() , theWorldMap.RETURN_WHILE_MOVING);
  1143.             while(Spinner == null)
  1144.             {
  1145.                 sleep(300, 700);
  1146.             }  
  1147.             while(theTabs.Inventory.count(Item1) != 0)
  1148.             {              
  1149.                
  1150.                 if(theTabs.Inventory.count(Item1) != 0)
  1151.                 {  
  1152.                     while(!this.isInterfaceNotNullAndValid(459, 13))
  1153.                     {
  1154.                     this.theParallelWorldObjectActions.clickWorldObject(Spinner, "Spinning wheel", "Spin");
  1155.                     sleep(2000, 3000);
  1156.                     }
  1157.                     if(this.isInterfaceNotNullAndValid(459, 13))
  1158.                     {
  1159.                         log("Interface != null");
  1160.                         if(Item1 == "Wool")
  1161.                         {
  1162.                             mouseClickRight(new Rectangle(104,89,52, 45));
  1163.                         }
  1164.                         else if(Item1 == "Flax")
  1165.                         {
  1166.                             mouseClickRight(new Rectangle(242,91,44, 41));
  1167.                         }
  1168.                         else if(Item1 == "Magic tree roots")
  1169.                         {
  1170.                             mouseClickRight(new Rectangle(361,91,51, 45));
  1171.                         }
  1172.                         else if(Item1 == "Yak hair")
  1173.                         {
  1174.                             mouseClickRight(new Rectangle(360,210,55, 40));
  1175.                         }                  
  1176.                         theMenuFinder.doMenu("All");
  1177.                         Go = false;
  1178.                     }  
  1179.                     while(Go == false)
  1180.                     {
  1181.                         a = theTabs.Inventory.count(Item1);
  1182.                         sleep(4000, 5000);
  1183.                         if(theTabs.Inventory.count(Item1) == a)
  1184.                         {
  1185.                             log("DoingAction = false");                        
  1186.                             Go = true;
  1187.                         }
  1188.                     }
  1189.                                        
  1190.                 }  
  1191.            
  1192.             }                  
  1193.         }
  1194.     }
  1195.    
  1196.    
  1197.    
  1198.     public void CutJewels() throws InterruptedException, Exception {
  1199.         if(Jewel.toString().contains("Opal"))
  1200.         {
  1201.             Item1 = "opal";
  1202.         }
  1203.         else if(Jewel.toString().contains("Topaz"))
  1204.         {
  1205.             Item1 = "red topaz";
  1206.         }
  1207.         else if(Jewel.toString().contains("Saphire"))
  1208.         {
  1209.             Item1 = "sapphire";
  1210.         }
  1211.         else if(Jewel.toString().contains("Emerald"))
  1212.         {
  1213.             Item1 = "emerald";
  1214.         }
  1215.         else if(Jewel.toString().contains("Jade"))
  1216.         {
  1217.             Item1 = "jade";
  1218.         }
  1219.         else if(Jewel.toString().contains("Ruby"))
  1220.         {
  1221.             Item1 = "ruby";
  1222.         }
  1223.         else if(Jewel.toString().contains("Diamond"))
  1224.         {
  1225.             Item1 = "diamond";
  1226.         }
  1227.         else if(Jewel.toString().contains("Onyx"))
  1228.         {
  1229.             Item1 = "onyx";
  1230.         }
  1231.         else if(Jewel.toString().contains("Dragonstone"))
  1232.         {
  1233.             Item1 = "dragonstone";
  1234.         }
  1235.         log("Cutting Item = "+"Uncut "+Item1);
  1236.         if(theTabs.Inventory.count("Chisel") == 0)
  1237.         {
  1238.             log("Chisels = 0");
  1239.             GetFromBank1("Chisel" , true , true);          
  1240.         }
  1241.         if(theTabs.Inventory.count("Uncut "+Item1) == 0)
  1242.         {
  1243.             log(Item1+" = 0");
  1244.             GetFromBankAll("Uncut "+Item1 , false, false);
  1245.         }
  1246.         while(isLoggedIn())
  1247.         {
  1248.             while(theTabs.Inventory.count("Uncut ") != 0)
  1249.             {
  1250.                 theTabs.Inventory.doAction("Chisel", null, 1, false);
  1251.                 theTabs.Inventory.doAction("Uncut "+Item1, null, 1, false);
  1252.                 sleep(885, 2000);
  1253.                 mouseClickRight(new Rectangle(232,389,48, 42));
  1254.                 theMenuFinder.doMenu("All");
  1255.                 Go = false;
  1256.                 while(Go == false)
  1257.                 {
  1258.                     a = theTabs.Inventory.count(Item1);
  1259.                     sleep(4000, 5000);
  1260.                     if(theTabs.Inventory.count(Item1) == a)
  1261.                     {
  1262.                         log("DoingAction = false");                        
  1263.                         Go = true;
  1264.                     }
  1265.                 }
  1266.             }
  1267.             theBank.open();
  1268.             theBank.doDepositAll(Item1);
  1269.             GetFromBankAll(Item1 , false, false);
  1270.         }
  1271.        
  1272.     }
  1273.    
  1274.    
  1275.    
  1276.     public void GetFromBankAll(String itemname, boolean walk, boolean depoall) throws InterruptedException, Exception {
  1277.         if(walk == true)
  1278.         {
  1279.             theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  1280.             while(getMyPlayer().isMoving())
  1281.             {
  1282.                 sleep(300, 700);
  1283.             }  
  1284.         }
  1285.         theBank.open();
  1286.         if(depoall == true)
  1287.         {
  1288.         theBank.doDepositAll();
  1289.         }
  1290.         while(theTabs.Inventory.count(itemname) == 0)
  1291.         {
  1292.             if(theBank.count(itemname) == 0)
  1293.             {
  1294.                 log("You have no "+itemname+"s");
  1295.                 getHandler().threadSafeTurnScriptOff();
  1296.             }
  1297.             theBank.doWithDrawAll(itemname, false);
  1298.             sleep(1000, 2000);
  1299.         }
  1300.         theBank.exit();    
  1301.     }  
  1302.     public void GetFromBankX(String itemname, boolean walk, int amount, boolean depoall) throws InterruptedException, Exception {
  1303.         if(walk == true)
  1304.         {
  1305.             theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  1306.             while(getMyPlayer().isMoving())
  1307.             {
  1308.                 sleep(300, 700);
  1309.             }  
  1310.         }
  1311.         theBank.open();
  1312.         if(depoall == true)
  1313.         {
  1314.         theBank.doDepositAll();
  1315.         }
  1316.         while(theTabs.Inventory.count(itemname) == 0)
  1317.         {
  1318.             if(theBank.count(itemname) == 0)
  1319.             {
  1320.                 log("You have no "+itemname+"s");
  1321.                 getHandler().threadSafeTurnScriptOff();
  1322.             }
  1323.             theBank.doWithDrawX(itemname, amount);
  1324.             sleep(1000, 2000);
  1325.         }
  1326.         theBank.exit();    
  1327.     }  
  1328.     public void GetFromBank1(String itemname, boolean walk, boolean depoall) throws InterruptedException, Exception {
  1329.         if(walk == true)
  1330.         {
  1331.             theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
  1332.             while(getMyPlayer().isMoving())
  1333.             {
  1334.                 sleep(300, 700);
  1335.             }  
  1336.         }
  1337.         theBank.open();
  1338.         if(depoall == true)
  1339.         {
  1340.         theBank.doDepositAll();
  1341.         }
  1342.         while(theTabs.Inventory.count(itemname) == 0)
  1343.         {
  1344.             if(theBank.count(itemname) == 0)
  1345.             {
  1346.                 log("You have no "+itemname+"s");
  1347.                 getHandler().threadSafeTurnScriptOff();
  1348.             }
  1349.             theBank.doWithDraw1(new ItemNameExact(itemname), false);
  1350.             sleep(1000, 2000);
  1351.         }
  1352.         theBank.exit();    
  1353.     }
  1354.    
  1355.    
  1356.    
  1357.    
  1358.     public PhysicalObject getInteractiveObject(int... id) {
  1359.         return getPhysicalObject(id, null, false, 50, false);
  1360.     }
  1361.    
  1362.     public PhysicalObject getPhysicalObject(int[] ids, AryanTile tile, boolean thisTileOnly, int maxDistance, boolean boundary) {
  1363.         PhysicalObject closest = null;
  1364.         double closestDistance = 1000;
  1365.         AryanTile center = tile;
  1366.         if (tile == null)
  1367.             center = this.getLocation();
  1368.         PhysicalObject[] objs = null;
  1369.         if (boundary)
  1370.             objs = this.getAllBoundaryPhysicalObjects();
  1371.         else
  1372.             objs = this.getAllInteractivePhysicalObjects();
  1373.         for (PhysicalObject obj : objs) {
  1374.             for (int id : ids) {
  1375.                 if (obj.getID() == id) {
  1376.                     double distance = obj.getLocation().distanceToPrecise(center);
  1377.                     if (distance < closestDistance && distance <= maxDistance) {
  1378.                         closest = obj;
  1379.                         closestDistance = distance;
  1380.                         if (thisTileOnly && tile.equals(closest.getLocation()))
  1381.                             return closest;
  1382.                     }
  1383.                 }
  1384.             }
  1385.         }
  1386.         if (closest == null)
  1387.             return null;
  1388.         if (!thisTileOnly || tile.equals(closest.getLocation()))
  1389.             return closest;
  1390.         else
  1391.             return null;
  1392.     }
  1393.    
  1394.    
  1395.    
  1396.    
  1397.     Thread PaintThread = new Thread() {
  1398.         public void run() {
  1399.             log("Paint Thread Started!");
  1400.             while (getHandler().isScriptRunning()) {
  1401.                 try {
  1402.                     ZAIOCrafter.this.paintPoint(getCurrentMouseXY(), new Color((random(5, 250)), (random(5, 250)), (random(5, 250)), 221), 2000, (random(1, 8)));                  
  1403.                         sleep(5);
  1404.                     } catch (InterruptedException e) {
  1405.                         // TODO Auto-generated catch block
  1406.                         e.printStackTrace();
  1407.                     }
  1408.             }
  1409.         }
  1410.     };
  1411.    
  1412.     Thread XpThread = new Thread() {
  1413.         public void run() {
  1414.             log("Paint Thread Started!");
  1415.             while (getHandler().isScriptRunning()) {
  1416.                 try {
  1417.                     CurrentXP = theTabs.Statistics.getStatExperience(Skill.CRAFTING);
  1418.                     CurrentLvl = theTabs.Statistics.getStatBottom(Skill.CRAFTING);
  1419.                     sleep(700);
  1420.                     } catch (InterruptedException e) {
  1421.                         // TODO Auto-generated catch block
  1422.                         e.printStackTrace();
  1423.                     }
  1424.             }
  1425.         }
  1426.     }; 
  1427.    
  1428.    
  1429.    
  1430.     Thread CheckThread = new Thread() {
  1431.         public void run() {
  1432.             log("Item Thread Started!");
  1433.             while (getHandler().isScriptRunning()) {
  1434.                 try {
  1435.                     if(!theTabs.Inventory.isSelected())
  1436.                     {
  1437.                         theTabs.Inventory.click();
  1438.                     }
  1439.                     sleep(7000, 15000);
  1440.                     } catch (InterruptedException e) {
  1441.                         // TODO Auto-generated catch block
  1442.                         e.printStackTrace();
  1443.                     }
  1444.             }
  1445.         }
  1446.     }; 
  1447.    
  1448.     Thread TabThread = new Thread() {
  1449.         public void run() {
  1450.             log("Tab Thread Started!");
  1451.             while (getHandler().isScriptRunning()) {
  1452.  
  1453.                 try {
  1454.                     if(Tabs.isUp())
  1455.                     {
  1456.                         switch(random(0 ,5))
  1457.                         {
  1458.                         case 0:
  1459.                             mouseClickLeft(new Rectangle(525,171,233, 30));
  1460.                             break;
  1461.                         case 1:
  1462.                             mouseClickLeft(new Rectangle(526,469,234, 29));
  1463.                             break;
  1464.                         case 2:
  1465.                             mouseClickLeft(new Rectangle(525,171,233, 30));
  1466.                             break;
  1467.                         case 3:
  1468.                             mouseClickLeft(new Rectangle(526,469,234, 29));
  1469.                             break;
  1470.                         case 4:
  1471.                             mouseClickLeft(new Rectangle(525,171,233, 30));
  1472.                             break;
  1473.                         case 5:
  1474.                             mouseClickLeft(new Rectangle(526,469,234, 29));
  1475.                             break;
  1476.                         }
  1477.                         Tabs.reset();
  1478.                         log("[TabThread] Random Tab Selected, Tab Timer Reset");
  1479.                     }
  1480.                     else
  1481.                     {
  1482.  
  1483.                     }
  1484.                     sleep(random(3000, 6000));
  1485.                 } catch (InterruptedException e) {
  1486.                     // TODO Auto-generated catch block
  1487.                     e.printStackTrace();
  1488.                 }
  1489.             }
  1490.         }
  1491.     };
  1492.    
  1493.  
  1494.  
  1495.  
  1496.  
  1497.     Thread AntiBan = new Thread() {
  1498.         public void run() {
  1499.             log("AntiBan Thread Started!");
  1500.             while (getHandler().isScriptRunning()) {
  1501.  
  1502.                 try {
  1503.                     switch (random(0, 200)) {
  1504.                     case 12:
  1505.                         mouseMove(Areas.GAME);
  1506.                         break;
  1507.                     case 25:
  1508.                         theCamera.setYawRandom();
  1509.                         break;
  1510.                     case 29:
  1511.                         theCamera.setYawRandom();
  1512.                         break;
  1513.                     case 36:
  1514.                         mouseMove(Areas.ENTIRE);
  1515.                         break;
  1516.                     case 44:
  1517.                         switch (random(1, 5)) {
  1518.                         case 1:
  1519.                             theTabs.Friends.click();
  1520.                             break;
  1521.                         case 2:
  1522.                             theTabs.Statistics.click();
  1523.                             break;
  1524.                         case 3:
  1525.                             theTabs.Attack.click();
  1526.                             break;
  1527.                         case 4:
  1528.                             theTabs.Options.click();
  1529.                             break;
  1530.                         case 5:
  1531.                             break;
  1532.  
  1533.                         }
  1534.                         break;
  1535.                     case 58:
  1536.                         theCamera.setYawRandomNormal();
  1537.                         break;
  1538.                     case 63:
  1539.                         theCamera.setYawRandom();
  1540.                         break;
  1541.                     case 77:
  1542.                         mouseMove(Areas.ENTIRE);
  1543.                         break;
  1544.                     case 91:
  1545.                         theCamera.setYawRandom();
  1546.                         break;
  1547.                     case 114:
  1548.                         mouseMove(Areas.ENTIRE);
  1549.                         break;
  1550.                     case 133:
  1551.                         theCamera.setYawRandom();
  1552.                         break;
  1553.                     case 145:
  1554.                         theCamera.setYawRandom();
  1555.                         break;
  1556.                     case 166:
  1557.                         theCamera.setYawRandom();
  1558.                         break;
  1559.                     case 178:
  1560.                         theCamera.setYawRandom();
  1561.                         break;
  1562.                     case 184:
  1563.                         theCamera.setYawRandom();
  1564.                         break;
  1565.                     case 200:
  1566.                         theCamera.setYawRandom();
  1567.                         break;
  1568.  
  1569.                     }
  1570.                     sleep(1000, 6000);
  1571.  
  1572.                 } catch (InterruptedException e) {
  1573.                     // TODO Auto-generated catch block
  1574.                     e.printStackTrace();
  1575.                 }
  1576.             }
  1577.         }
  1578.     };
  1579.    
  1580.    
  1581.    
  1582.    
  1583.     // #############################################   PAINT + GUI FROM HERE DOWN   #################################################################
  1584.     public void paint(Graphics g) {
  1585.         final StringBuilder gg = new StringBuilder();
  1586.         final long runtime = Time.timePassed();
  1587.         final long TotalSec = runtime / 1000;
  1588.         final long TotalMin = TotalSec / 60;
  1589.         final long TotalHour = TotalMin / 60;
  1590.         final int second = (int) TotalSec % 60;
  1591.         final int minute = (int) TotalMin % 60;
  1592.         final int hour = (int) TotalHour % 60;
  1593.  
  1594.         long runTime = 0;
  1595.         runTime = System.currentTimeMillis() - scriptStartTIME;
  1596.         int mPerHour = 0;
  1597.         if ((runTime / 1000) > 0) {
  1598.             mPerHour = (int) ((3600000.0 / (double) runTime) * (0));
  1599.         }
  1600.         int PerHour = 0;
  1601.         if ((runTime / 1000) > 0) {
  1602.             PerHour = (int) ((3600000.0 / (double) runTime) * ((CurrentXP - StartXP)));
  1603.         }
  1604.  
  1605.         if (hour < 10)
  1606.             gg.append("0");
  1607.         gg.append(hour);
  1608.         gg.append(" : ");
  1609.         if (minute < 10)
  1610.             gg.append("0");
  1611.         gg.append(minute);
  1612.         gg.append(" : ");
  1613.         if (second < 10)
  1614.             gg.append("0");
  1615.         gg.append(second);
  1616.        
  1617.         int Y = 253;
  1618.        
  1619.         g.setColor(new Color(0, 0, 0, 197));
  1620.         g.fillRect(274, 236, 239, 100);
  1621.         g.setColor(new Color(255, 255, 255));
  1622.         g.drawRect(276, 238, 234, 95);
  1623.         g.setColor(new Color(0, 0, 0, 183));
  1624.         g.fillRect(274, 201, 238, 31);
  1625.         g.setColor(new Color(255, 255, 255));
  1626.         g.drawRect(276, 203, 232, 25);
  1627.         g.setFont(new Font("Vijaya", 0, 25));
  1628.         g.setColor(new Color(255, 255, 255));
  1629.         g.drawString("ZAIOCrafter", 281, 222);
  1630.         g.setFont(new Font("Vijaya", 0, 17));
  1631.         g.setColor(new Color(255, 255, 255));
  1632.         g.drawString("Time running: "+String.valueOf(gg.toString()), 281, Y);
  1633.         g.drawString("XP Gained: "+(CurrentXP - StartXP)+"   ("+PerHour+"/H)", 281, Y+15);
  1634.         g.drawString("Level: "+CurrentLvl+"/"+StartLvl, 281, Y+30);
  1635.         g.drawString("Status: "+Status, 281, Y+45);
  1636.         g.drawString("Action: "+Action, 281, Y+60);
  1637.        
  1638.        
  1639.        
  1640.        
  1641.         g.setFont(new Font("Vijaya", 0, 25));
  1642.         g.setColor(new Color(255, 255, 255));
  1643.         g.drawString("V1.00", 456, 222);
  1644.         g.setFont(new Font("Vijaya", 0, 15));
  1645.         g.setColor(new Color(0, 0, 0, 100));
  1646.         g.drawString("ZbubbleZ   -   zbubblez@hotmail.com", 553, 466);
  1647.         g.setColor(new Color(255, 255, 255));
  1648.         g.drawString("ZbubbleZ   -   zbubblez@hotmail.com", 553, 463);
  1649.    
  1650.        
  1651.        
  1652.     }
  1653.    
  1654.    
  1655.    
  1656.    
  1657.    
  1658.    
  1659.    
  1660.     //#################################################################################################################
  1661.     //#################################################################################################################
  1662.     //#################################################################################################################
  1663.     //#################################################################################################################
  1664.     //#################################################################################################################
  1665.     //#################################################################################################################
  1666.     // BIG GUI!!
  1667.     //#################################################################################################################
  1668.     //#################################################################################################################
  1669.     //#################################################################################################################
  1670.     //#################################################################################################################
  1671.     //#################################################################################################################
  1672.     /*
  1673.      * To change this template, choose Tools | Templates
  1674.      * and open the template in the editor.
  1675.      */
  1676.  
  1677.     /*
  1678.      * GUI.java
  1679.      *
  1680.      * Created on Sep 29, 2010, 8:31:44 PM
  1681.      */
  1682.  
  1683.     /**
  1684.      *
  1685.      * @author Dan
  1686.      */
  1687.     public class GUI extends javax.swing.JFrame {
  1688.  
  1689.         /** Creates new form GUI */
  1690.         public GUI() {
  1691.             initComponents();
  1692.         }
  1693.  
  1694.        
  1695.        
  1696.        
  1697.         /** This method is called from within the constructor to
  1698.          * initialize the form.
  1699.          * WARNING: Do NOT modify this code. The content of this method is
  1700.          * always regenerated by the Form Editor.
  1701.          */
  1702.         @SuppressWarnings("unchecked")
  1703.         // <editor-fold defaultstate="collapsed" desc="Generated Code">
  1704.         private void initComponents() {
  1705.  
  1706.               try
  1707.               {          
  1708.                     UIManager.setLookAndFeel(
  1709.                                        "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
  1710.                     } catch (Exception e) {
  1711.                                e.printStackTrace();
  1712.                     }
  1713.            
  1714.             jLabel1 = new javax.swing.JLabel();
  1715.             jSeparator1 = new javax.swing.JSeparator();
  1716.             STARTBUTTON = new javax.swing.JButton();
  1717.             jTabbedPane1 = new javax.swing.JTabbedPane();
  1718.             jPanel1 = new javax.swing.JPanel();
  1719.             AreWeSpinning = new javax.swing.JRadioButton();
  1720.             WhatToSpin = new javax.swing.JComboBox();
  1721.             WhereToSpin = new javax.swing.JComboBox();
  1722.             jPanel2 = new javax.swing.JPanel();
  1723.             AreWeWeaving = new javax.swing.JRadioButton();
  1724.             WhatToWeave = new javax.swing.JComboBox();
  1725.             jPanel3 = new javax.swing.JPanel();
  1726.             AreWeMakingArmour = new javax.swing.JRadioButton();
  1727.             ArmourColor = new javax.swing.JComboBox();
  1728.             ArmourItem = new javax.swing.JComboBox();
  1729.             jPanel4 = new javax.swing.JPanel();
  1730.             AreWeDoingPottery = new javax.swing.JRadioButton();
  1731.             PotteryItem = new javax.swing.JComboBox();
  1732.             jLabel2 = new javax.swing.JLabel();
  1733.             jPanel5 = new javax.swing.JPanel();
  1734.             jTabbedPane2 = new javax.swing.JTabbedPane();
  1735.             jPanel6 = new javax.swing.JPanel();
  1736.             SmeltType = new javax.swing.JComboBox();
  1737.             SmeltItem = new javax.swing.JComboBox();
  1738.             AreWeSmelting = new javax.swing.JRadioButton();
  1739.             jLabel3 = new javax.swing.JLabel();
  1740.             jPanel7 = new javax.swing.JPanel();
  1741.             JewelType = new javax.swing.JComboBox();
  1742.             AreWeCuttingJewels = new javax.swing.JRadioButton();
  1743.             jPanel8 = new javax.swing.JPanel();
  1744.             AreWeTanning = new javax.swing.JRadioButton();
  1745.             ItemToTan = new javax.swing.JComboBox();
  1746.             jLabel4 = new javax.swing.JLabel();
  1747.  
  1748.             setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
  1749.            
  1750.             jLabel1.setFont(new java.awt.Font("LilyUPC", 3, 36)); // NOI18N
  1751.             jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
  1752.             jLabel1.setText("ZAIOCrafter");
  1753.            
  1754.  
  1755.             STARTBUTTON.setText("Start");
  1756.             STARTBUTTON.addActionListener(new java.awt.event.ActionListener() {
  1757.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1758.                     STARTBUTTONActionPerformed(evt);
  1759.                 }
  1760.             });
  1761.  
  1762.             AreWeSpinning.setText("Spinning?");
  1763.             AreWeSpinning.addActionListener(new java.awt.event.ActionListener() {
  1764.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1765.                     AreWeSpinningActionPerformed(evt);
  1766.                 }
  1767.             });
  1768.  
  1769.             WhatToSpin.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Wool", "Flax", "Magic tree roots", "Yak Hair" }));
  1770.             WhatToSpin.addActionListener(new java.awt.event.ActionListener() {
  1771.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1772.                     WhatToSpinActionPerformed(evt);
  1773.                 }
  1774.             });
  1775.  
  1776.             WhereToSpin.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Camelot", "Lumbridge" }));
  1777.             WhereToSpin.addActionListener(new java.awt.event.ActionListener() {
  1778.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1779.                     WhereToSpinActionPerformed(evt);
  1780.                 }
  1781.             });
  1782.  
  1783.             javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
  1784.             jPanel1.setLayout(jPanel1Layout);
  1785.             jPanel1Layout.setHorizontalGroup(
  1786.                 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1787.                 .addGroup(jPanel1Layout.createSequentialGroup()
  1788.                     .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1789.                         .addGroup(jPanel1Layout.createSequentialGroup()
  1790.                             .addContainerGap()
  1791.                             .addComponent(AreWeSpinning))
  1792.                         .addGroup(jPanel1Layout.createSequentialGroup()
  1793.                             .addGap(156, 156, 156)
  1794.                             .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  1795.                                 .addComponent(WhereToSpin, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  1796.                                 .addComponent(WhatToSpin, 0, 184, Short.MAX_VALUE))))
  1797.                     .addContainerGap(173, Short.MAX_VALUE))
  1798.             );
  1799.             jPanel1Layout.setVerticalGroup(
  1800.                 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1801.                 .addGroup(jPanel1Layout.createSequentialGroup()
  1802.                     .addContainerGap()
  1803.                     .addComponent(AreWeSpinning)
  1804.                     .addGap(18, 18, 18)
  1805.                     .addComponent(WhatToSpin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  1806.                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  1807.                     .addComponent(WhereToSpin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  1808.                     .addContainerGap(192, Short.MAX_VALUE))
  1809.             );
  1810.  
  1811.             jTabbedPane1.addTab("Spinning", jPanel1);
  1812.  
  1813.             AreWeWeaving.setText("Weaving?");
  1814.             AreWeWeaving.addActionListener(new java.awt.event.ActionListener() {
  1815.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1816.                     AreWeWeavingActionPerformed(evt);
  1817.                 }
  1818.             });
  1819.  
  1820.             WhatToWeave.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Cloth", "Vegetable Stack", "Fruit basket", "Seaweed Net" }));
  1821.             WhatToWeave.addActionListener(new java.awt.event.ActionListener() {
  1822.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1823.                     WhatToWeaveActionPerformed(evt);
  1824.                 }
  1825.             });
  1826.  
  1827.             javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
  1828.             jPanel2.setLayout(jPanel2Layout);
  1829.             jPanel2Layout.setHorizontalGroup(
  1830.                 jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1831.                 .addGroup(jPanel2Layout.createSequentialGroup()
  1832.                     .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1833.                         .addGroup(jPanel2Layout.createSequentialGroup()
  1834.                             .addContainerGap()
  1835.                             .addComponent(AreWeWeaving))
  1836.                         .addGroup(jPanel2Layout.createSequentialGroup()
  1837.                             .addGap(158, 158, 158)
  1838.                             .addComponent(WhatToWeave, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)))
  1839.                     .addContainerGap(166, Short.MAX_VALUE))
  1840.             );
  1841.             jPanel2Layout.setVerticalGroup(
  1842.                 jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1843.                 .addGroup(jPanel2Layout.createSequentialGroup()
  1844.                     .addContainerGap()
  1845.                     .addComponent(AreWeWeaving)
  1846.                     .addGap(31, 31, 31)
  1847.                     .addComponent(WhatToWeave, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  1848.                     .addContainerGap(205, Short.MAX_VALUE))
  1849.             );
  1850.  
  1851.             jTabbedPane1.addTab("Weaving", jPanel2);
  1852.  
  1853.             AreWeMakingArmour.setText("Making Armour?");
  1854.             AreWeMakingArmour.addActionListener(new java.awt.event.ActionListener() {
  1855.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1856.                     AreWeMakingArmourActionPerformed(evt);
  1857.                 }
  1858.             });
  1859.  
  1860.             ArmourColor.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Green", "Blue", "Black" }));
  1861.             ArmourColor.addActionListener(new java.awt.event.ActionListener() {
  1862.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1863.                     ArmourColorActionPerformed(evt);
  1864.                 }
  1865.             });
  1866.  
  1867.             ArmourItem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Vambraces", "Body", "Chaps" }));
  1868.             ArmourItem.addActionListener(new java.awt.event.ActionListener() {
  1869.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1870.                     ArmourItemActionPerformed(evt);
  1871.                 }
  1872.             });
  1873.  
  1874.             javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
  1875.             jPanel3.setLayout(jPanel3Layout);
  1876.             jPanel3Layout.setHorizontalGroup(
  1877.                 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1878.                 .addGroup(jPanel3Layout.createSequentialGroup()
  1879.                     .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1880.                         .addGroup(jPanel3Layout.createSequentialGroup()
  1881.                             .addContainerGap()
  1882.                             .addComponent(AreWeMakingArmour))
  1883.                         .addGroup(jPanel3Layout.createSequentialGroup()
  1884.                             .addGap(152, 152, 152)
  1885.                             .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  1886.                                 .addComponent(ArmourItem, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  1887.                                 .addComponent(ArmourColor, 0, 181, Short.MAX_VALUE))))
  1888.                     .addContainerGap(180, Short.MAX_VALUE))
  1889.             );
  1890.             jPanel3Layout.setVerticalGroup(
  1891.                 jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1892.                 .addGroup(jPanel3Layout.createSequentialGroup()
  1893.                     .addContainerGap()
  1894.                     .addComponent(AreWeMakingArmour)
  1895.                     .addGap(37, 37, 37)
  1896.                     .addComponent(ArmourColor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  1897.                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  1898.                     .addComponent(ArmourItem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  1899.                     .addContainerGap(173, Short.MAX_VALUE))
  1900.             );
  1901.  
  1902.             jTabbedPane1.addTab("Armour", jPanel3);
  1903.  
  1904.             AreWeDoingPottery.setText("Pottery?");
  1905.             AreWeDoingPottery.addActionListener(new java.awt.event.ActionListener() {
  1906.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1907.                     AreWeDoingPotteryActionPerformed(evt);
  1908.                 }
  1909.             });
  1910.  
  1911.             PotteryItem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Pot", "Pie dish", "Bowl", "Plant pot"}));
  1912.             PotteryItem.addActionListener(new java.awt.event.ActionListener() {
  1913.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1914.                     PotteryItemActionPerformed(evt);
  1915.                 }
  1916.             });
  1917.  
  1918.             jLabel2.setText("Start at Edgeville Bank");
  1919.  
  1920.             javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
  1921.             jPanel4.setLayout(jPanel4Layout);
  1922.             jPanel4Layout.setHorizontalGroup(
  1923.                 jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1924.                 .addGroup(jPanel4Layout.createSequentialGroup()
  1925.                     .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1926.                         .addGroup(jPanel4Layout.createSequentialGroup()
  1927.                             .addContainerGap()
  1928.                             .addComponent(AreWeDoingPottery))
  1929.                         .addGroup(jPanel4Layout.createSequentialGroup()
  1930.                             .addGap(138, 138, 138)
  1931.                             .addComponent(PotteryItem, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))
  1932.                         .addGroup(jPanel4Layout.createSequentialGroup()
  1933.                             .addGap(175, 175, 175)
  1934.                             .addComponent(jLabel2)))
  1935.                     .addContainerGap(191, Short.MAX_VALUE))
  1936.             );
  1937.             jPanel4Layout.setVerticalGroup(
  1938.                 jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1939.                 .addGroup(jPanel4Layout.createSequentialGroup()
  1940.                     .addContainerGap()
  1941.                     .addComponent(AreWeDoingPottery)
  1942.                     .addGap(46, 46, 46)
  1943.                     .addComponent(PotteryItem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  1944.                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  1945.                     .addComponent(jLabel2)
  1946.                     .addContainerGap(165, Short.MAX_VALUE))
  1947.             );
  1948.  
  1949.             jTabbedPane1.addTab("Pottery", jPanel4);
  1950.  
  1951.             SmeltType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Gold", "Opal", "Jade", "Red Topaz", "Saphire", "Emerald", "Ruby", "Diamond", "Onyx", "Dragonstone" }));
  1952.             SmeltType.addActionListener(new java.awt.event.ActionListener() {
  1953.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1954.                     SmeltTypeActionPerformed(evt);
  1955.                 }
  1956.             });
  1957.  
  1958.             SmeltItem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ring", "Necklace" }));
  1959.             SmeltItem.addActionListener(new java.awt.event.ActionListener() {
  1960.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1961.                     SmeltItemActionPerformed(evt);
  1962.                 }
  1963.             });
  1964.  
  1965.             AreWeSmelting.setText("Smelting?");
  1966.             AreWeSmelting.addActionListener(new java.awt.event.ActionListener() {
  1967.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  1968.                     AreWeSmeltingActionPerformed(evt);
  1969.                 }
  1970.             });
  1971.  
  1972.             jLabel3.setText("Start at Al-Kharid Bank");
  1973.  
  1974.             javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
  1975.             jPanel6.setLayout(jPanel6Layout);
  1976.             jPanel6Layout.setHorizontalGroup(
  1977.                 jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1978.                 .addGroup(jPanel6Layout.createSequentialGroup()
  1979.                     .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1980.                         .addGroup(jPanel6Layout.createSequentialGroup()
  1981.                             .addGap(111, 111, 111)
  1982.                             .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
  1983.                                 .addComponent(SmeltItem, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  1984.                                 .addComponent(SmeltType, javax.swing.GroupLayout.Alignment.LEADING, 0, 230, Short.MAX_VALUE)))
  1985.                         .addGroup(jPanel6Layout.createSequentialGroup()
  1986.                             .addContainerGap()
  1987.                             .addComponent(AreWeSmelting))
  1988.                         .addGroup(jPanel6Layout.createSequentialGroup()
  1989.                             .addGap(164, 164, 164)
  1990.                             .addComponent(jLabel3)))
  1991.                     .addContainerGap(147, Short.MAX_VALUE))
  1992.             );
  1993.             jPanel6Layout.setVerticalGroup(
  1994.                 jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1995.                 .addGroup(jPanel6Layout.createSequentialGroup()
  1996.                     .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  1997.                         .addGroup(jPanel6Layout.createSequentialGroup()
  1998.                             .addGap(30, 30, 30)
  1999.                             .addComponent(SmeltType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  2000.                             .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  2001.                             .addComponent(SmeltItem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  2002.                         .addGroup(jPanel6Layout.createSequentialGroup()
  2003.                             .addContainerGap()
  2004.                             .addComponent(AreWeSmelting)))
  2005.                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  2006.                     .addComponent(jLabel3)
  2007.                     .addContainerGap(135, Short.MAX_VALUE))
  2008.             );
  2009.  
  2010.             jTabbedPane2.addTab("Smelting", jPanel6);
  2011.  
  2012.             JewelType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Opal", "Jade", "Red Topaz", "Saphire", "Emerald", "Ruby", "Diamond", "Onyx", "Dragonstone" }));
  2013.             JewelType.addActionListener(new java.awt.event.ActionListener() {
  2014.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  2015.                     JewelTypeActionPerformed(evt);
  2016.                 }
  2017.             });
  2018.  
  2019.             AreWeCuttingJewels.setText("Jewel Cutting?");
  2020.             AreWeCuttingJewels.addActionListener(new java.awt.event.ActionListener() {
  2021.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  2022.                     AreWeCuttingJewelsActionPerformed(evt);
  2023.                 }
  2024.             });
  2025.  
  2026.             javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
  2027.             jPanel7.setLayout(jPanel7Layout);
  2028.             jPanel7Layout.setHorizontalGroup(
  2029.                 jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  2030.                 .addGroup(jPanel7Layout.createSequentialGroup()
  2031.                     .addGap(114, 114, 114)
  2032.                     .addComponent(JewelType, 0, 230, Short.MAX_VALUE)
  2033.                     .addGap(152, 152, 152))
  2034.                 .addGroup(jPanel7Layout.createSequentialGroup()
  2035.                     .addContainerGap()
  2036.                     .addComponent(AreWeCuttingJewels)
  2037.                     .addContainerGap(387, Short.MAX_VALUE))
  2038.             );
  2039.             jPanel7Layout.setVerticalGroup(
  2040.                 jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  2041.                 .addGroup(jPanel7Layout.createSequentialGroup()
  2042.                     .addContainerGap()
  2043.                     .addComponent(AreWeCuttingJewels)
  2044.                     .addGap(39, 39, 39)
  2045.                     .addComponent(JewelType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  2046.                     .addContainerGap(147, Short.MAX_VALUE))
  2047.             );
  2048.  
  2049.             jTabbedPane2.addTab("Jewel Cutting", jPanel7);
  2050.  
  2051.             javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
  2052.             jPanel5.setLayout(jPanel5Layout);
  2053.             jPanel5Layout.setHorizontalGroup(
  2054.                 jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  2055.                 .addGroup(jPanel5Layout.createSequentialGroup()
  2056.                     .addContainerGap()
  2057.                     .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 493, Short.MAX_VALUE)
  2058.                     .addContainerGap())
  2059.             );
  2060.             jPanel5Layout.setVerticalGroup(
  2061.                 jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  2062.                 .addGroup(jPanel5Layout.createSequentialGroup()
  2063.                     .addContainerGap()
  2064.                     .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE)
  2065.                     .addContainerGap())
  2066.             );
  2067.  
  2068.             jTabbedPane1.addTab("Jewerly", jPanel5);
  2069.  
  2070.             AreWeTanning.setText("Tanning?");
  2071.             AreWeTanning.addActionListener(new java.awt.event.ActionListener() {
  2072.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  2073.                     AreWeTanningActionPerformed(evt);
  2074.                 }
  2075.             });
  2076.  
  2077.             ItemToTan.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Soft leather", "Hard leather", "Snakeskin (Dark Green)", "Snakeskin (Light Green)", "Green D'hide","Green D'hide","Blue D'hide", "Red D'hide", "Black D'hide" }));
  2078.             ItemToTan.addActionListener(new java.awt.event.ActionListener() {
  2079.                 public void actionPerformed(java.awt.event.ActionEvent evt) {
  2080.                     ItemToTanActionPerformed(evt);
  2081.                 }
  2082.             });
  2083.  
  2084.             javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
  2085.             jPanel8.setLayout(jPanel8Layout);
  2086.             jPanel8Layout.setHorizontalGroup(
  2087.                 jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  2088.                 .addGroup(jPanel8Layout.createSequentialGroup()
  2089.                     .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  2090.                         .addGroup(jPanel8Layout.createSequentialGroup()
  2091.                             .addContainerGap()
  2092.                             .addComponent(AreWeTanning))
  2093.                         .addGroup(jPanel8Layout.createSequentialGroup()
  2094.                             .addGap(116, 116, 116)
  2095.                             .addComponent(ItemToTan, javax.swing.GroupLayout.PREFERRED_SIZE, 259, javax.swing.GroupLayout.PREFERRED_SIZE)))
  2096.                     .addContainerGap(138, Short.MAX_VALUE))
  2097.             );
  2098.             jPanel8Layout.setVerticalGroup(
  2099.                 jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  2100.                 .addGroup(jPanel8Layout.createSequentialGroup()
  2101.                     .addContainerGap()
  2102.                     .addComponent(AreWeTanning)
  2103.                     .addGap(38, 38, 38)
  2104.                     .addComponent(ItemToTan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  2105.                     .addContainerGap(198, Short.MAX_VALUE))
  2106.             );
  2107.  
  2108.             jTabbedPane1.addTab("Tanning", jPanel8);
  2109.  
  2110.             jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
  2111.             jLabel4.setText("Premium Script from zbubblez  ||  Contact: zbubblez@hotmail.com  ||  Fill GUI fully for script to work properly");
  2112.  
  2113.             javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  2114.             getContentPane().setLayout(layout);
  2115.             layout.setHorizontalGroup(
  2116.                 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  2117.                 .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
  2118.                 .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
  2119.                 .addComponent(STARTBUTTON, javax.swing.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
  2120.                 .addGroup(layout.createSequentialGroup()
  2121.                     .addContainerGap()
  2122.                     .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 518, Short.MAX_VALUE)
  2123.                     .addContainerGap())
  2124.                 .addGroup(layout.createSequentialGroup()
  2125.                     .addContainerGap()
  2126.                     .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  2127.                     .addContainerGap())
  2128.             );
  2129.             layout.setVerticalGroup(
  2130.                 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  2131.                 .addGroup(layout.createSequentialGroup()
  2132.                     .addComponent(jLabel1)
  2133.                     .addGap(18, 18, 18)
  2134.                     .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
  2135.                     .addGap(18, 18, 18)
  2136.                     .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 314, javax.swing.GroupLayout.PREFERRED_SIZE)
  2137.                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
  2138.                     .addComponent(jLabel4)
  2139.                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  2140.                     .addComponent(STARTBUTTON, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
  2141.             );
  2142.  
  2143.             pack();
  2144.         }// </editor-fold>
  2145.  
  2146.         private void AreWeSpinningActionPerformed(java.awt.event.ActionEvent evt) {
  2147.             if(AreWeSpinning.isSelected())
  2148.             {
  2149.                 DoSpinning = true;
  2150.             }
  2151.         }
  2152.  
  2153.         private void WhatToSpinActionPerformed(java.awt.event.ActionEvent evt) {
  2154.             SpinItem = WhatToSpin.toString();
  2155.         }
  2156.  
  2157.         private void WhereToSpinActionPerformed(java.awt.event.ActionEvent evt) {
  2158.             SpinArea = WhereToSpin.toString();
  2159.         }
  2160.  
  2161.         private void STARTBUTTONActionPerformed(java.awt.event.ActionEvent evt) {
  2162.             StartScript = true;
  2163.             if(AreWeSpinning.isSelected())
  2164.             {
  2165.                 DoSpinning = true;
  2166.             }
  2167.             SpinItem = WhatToSpin.toString();
  2168.             SpinArea = WhereToSpin.toString();
  2169.             if(AreWeWeaving.isSelected())
  2170.                {
  2171.                    Weaving = true;
  2172.                }
  2173.             WeaveItem = WhatToWeave.toString();
  2174.             if(AreWeMakingArmour.isSelected())
  2175.             {
  2176.                 DoArmour = true;
  2177.             }
  2178.             AColor = ArmourColor.toString();
  2179.             Armour = ArmourItem.toString();  
  2180.             if(AreWeDoingPottery.isSelected())
  2181.                {
  2182.                    DoPottery = true;
  2183.                }
  2184.             ItemForPottery = PotteryItem.toString();
  2185.             if(AreWeSmelting.isSelected())
  2186.             {
  2187.                 DoSmelting = true;
  2188.             }
  2189.             ItemToSmelt = SmeltItem.toString();
  2190.             TypeOfSmelt = SmeltType.toString();
  2191.             if(AreWeCuttingJewels.isSelected())
  2192.             {
  2193.                 DoJewels = true;
  2194.             }
  2195.             Jewel = JewelType.toString();
  2196.             if(AreWeTanning.isSelected())
  2197.                {
  2198.                    DoTanning = true;
  2199.                }
  2200.             TanItem = ItemToTan.toString();
  2201.         }
  2202.  
  2203.         private void AreWeWeavingActionPerformed(java.awt.event.ActionEvent evt) {
  2204.            if(AreWeWeaving.isSelected())
  2205.            {
  2206.                Weaving = true;
  2207.            }
  2208.         }
  2209.  
  2210.         private void WhatToWeaveActionPerformed(java.awt.event.ActionEvent evt) {
  2211.            WeaveItem = WhatToWeave.toString();
  2212.         }
  2213.  
  2214.         private void AreWeMakingArmourActionPerformed(java.awt.event.ActionEvent evt) {
  2215.             if(AreWeMakingArmour.isSelected())
  2216.             {
  2217.                 DoArmour = true;
  2218.             }
  2219.         }
  2220.  
  2221.         private void ArmourColorActionPerformed(java.awt.event.ActionEvent evt) {
  2222.             AColor = ArmourColor.toString();
  2223.         }
  2224.  
  2225.         private void ArmourItemActionPerformed(java.awt.event.ActionEvent evt) {
  2226.            Armour = ArmourItem.toString();         
  2227.         }
  2228.  
  2229.         private void AreWeDoingPotteryActionPerformed(java.awt.event.ActionEvent evt) {
  2230.            if(AreWeDoingPottery.isSelected())
  2231.            {
  2232.                DoPottery = true;
  2233.            }
  2234.         }
  2235.  
  2236.         private void PotteryItemActionPerformed(java.awt.event.ActionEvent evt) {
  2237.            ItemForPottery = PotteryItem.toString();        
  2238.         }
  2239.  
  2240.         private void AreWeSmeltingActionPerformed(java.awt.event.ActionEvent evt) {
  2241.             if(AreWeSmelting.isSelected())
  2242.             {
  2243.                 DoSmelting = true;
  2244.             }
  2245.         }
  2246.  
  2247.         private void SmeltTypeActionPerformed(java.awt.event.ActionEvent evt) {
  2248.              TypeOfSmelt = SmeltType.toString();
  2249.         }
  2250.  
  2251.         private void SmeltItemActionPerformed(java.awt.event.ActionEvent evt) {
  2252.              ItemToSmelt = SmeltItem.toString();
  2253.         }
  2254.  
  2255.         private void AreWeCuttingJewelsActionPerformed(java.awt.event.ActionEvent evt) {
  2256.             if(AreWeCuttingJewels.isSelected())
  2257.             {
  2258.                 DoJewels = true;
  2259.             }
  2260.         }
  2261.  
  2262.         private void JewelTypeActionPerformed(java.awt.event.ActionEvent evt) {
  2263.             Jewel = JewelType.toString();
  2264.         }
  2265.  
  2266.         private void AreWeTanningActionPerformed(java.awt.event.ActionEvent evt) {
  2267.            if(AreWeTanning.isSelected())
  2268.            {
  2269.                DoTanning = true;
  2270.            }
  2271.         }
  2272.  
  2273.         private void ItemToTanActionPerformed(java.awt.event.ActionEvent evt) {
  2274.            TanItem = ItemToTan.toString();
  2275.         }
  2276.  
  2277.         /**
  2278.         * @param args the command line arguments
  2279.         */
  2280.         public void main(String args[]) {
  2281.             java.awt.EventQueue.invokeLater(new Runnable() {
  2282.                 public void run() {
  2283.                     new GUI().setVisible(true);
  2284.                 }
  2285.             });
  2286.         }
  2287.  
  2288.         // Variables declaration - do not modify
  2289.         private javax.swing.JRadioButton AreWeCuttingJewels;
  2290.         private javax.swing.JRadioButton AreWeDoingPottery;
  2291.         private javax.swing.JRadioButton AreWeMakingArmour;
  2292.         private javax.swing.JRadioButton AreWeSmelting;
  2293.         private javax.swing.JRadioButton AreWeSpinning;
  2294.         private javax.swing.JRadioButton AreWeTanning;
  2295.         private javax.swing.JRadioButton AreWeWeaving;
  2296.         private javax.swing.JComboBox ArmourColor;
  2297.         private javax.swing.JComboBox ArmourItem;
  2298.         private javax.swing.JComboBox ItemToTan;
  2299.         private javax.swing.JComboBox JewelType;
  2300.         private javax.swing.JComboBox PotteryItem;
  2301.         private javax.swing.JButton STARTBUTTON;
  2302.         private javax.swing.JComboBox SmeltItem;
  2303.         private javax.swing.JComboBox SmeltType;
  2304.         private javax.swing.JComboBox WhatToSpin;
  2305.         private javax.swing.JComboBox WhatToWeave;
  2306.         private javax.swing.JComboBox WhereToSpin;
  2307.         private javax.swing.JLabel jLabel1;
  2308.         private javax.swing.JLabel jLabel2;
  2309.         private javax.swing.JLabel jLabel3;
  2310.         private javax.swing.JLabel jLabel4;
  2311.         private javax.swing.JPanel jPanel1;
  2312.         private javax.swing.JPanel jPanel2;
  2313.         private javax.swing.JPanel jPanel3;
  2314.         private javax.swing.JPanel jPanel4;
  2315.         private javax.swing.JPanel jPanel5;
  2316.         private javax.swing.JPanel jPanel6;
  2317.         private javax.swing.JPanel jPanel7;
  2318.         private javax.swing.JPanel jPanel8;
  2319.         private javax.swing.JSeparator jSeparator1;
  2320.         private javax.swing.JTabbedPane jTabbedPane1;
  2321.         private javax.swing.JTabbedPane jTabbedPane2;
  2322.         // End of variables declaration
  2323.  
  2324.     }
  2325.  
  2326.    
  2327.    
  2328.    
  2329. }//END OF AIO CRAFTER!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement