Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import impsoft.bots.ColorBot;
- import impsoft.bots.input.MouseCommand;
- import impsoft.bots.reflection.Interface;
- import impsoft.bots.reflection.NPC;
- import impsoft.bots.reflection.NPCIterator;
- import impsoft.bots.reflection.PhysicalObject;
- import impsoft.scripting.ibot.builtin.itemrec.ItemSlot;
- import impsoft.scripting.ibot.builtin.tabs.TabSkelton;
- import impsoft.scripting.ibot.clusters.HeatCluster;
- import impsoft.scripting.ibot.enums.Skill;
- import impsoft.scripting.ibot.interfaces.AutoPaint;
- import impsoft.scripting.ibot.interfaces.ChatListener;
- import impsoft.scripting.ibot.itemrec.ItemCondition;
- import impsoft.scripting.ibot.itemrec.ItemIdExact;
- import impsoft.scripting.ibot.itemrec.ItemNameExact;
- import impsoft.scripting.ibot.structs.AryanTile;
- import impsoft.scripting.ibot.structs.AryanTileZone;
- import impsoft.scripting.ibot.structs.XY;
- import impsoft.scripting.types.ColorScript;
- import impsoft.scripting.types.parallel.scriptjobs.ScriptJob;
- import impsoft.utils.general.Timer;
- import impsoft.utils.ibot.RandomGenerator;
- import impsoft.utils.uber.UberClickOptions;
- import impsoft.utils.uber.UberScriptUtils;
- import impsoft.values.constant.Areas;
- import impsoft.values.constant.SC;
- import java.awt.Color;
- import java.awt.Font;
- import java.awt.Graphics;
- import java.awt.Rectangle;
- import java.awt.event.KeyEvent;
- import java.io.IOException;
- import java.net.URL;
- import java.util.ArrayList;
- import java.util.EnumSet;
- import java.util.HashMap;
- import java.util.List;
- import java.util.regex.Pattern;
- import javax.imageio.ImageIO;
- import javax.swing.JFrame;
- import javax.swing.JOptionPane;
- import javax.swing.UIManager;
- import java.awt.*;
- import java.text.DecimalFormat;
- import impsoft.scripting.types.parallel.scriptjobs.WorldObjectClickingScriptJobV2;
- import bergCoder.BergUtils;
- import bergCoder.Object3D;
- public class ZAIOCrafter extends ColorScript implements AutoPaint {
- public ZAIOCrafter(ColorBot c) {
- super(c);
- }
- public static String author = "zbubblez";
- public static String description = "AIO Crafter";
- public static double version = 1;
- boolean StartScript = false;
- String Item1;
- String Item2;
- String Item3;
- String SpinArea;
- String TanItem;
- String Jewel;
- String WeaveItem;
- String TypeOfSmelt;//Jewel
- String ItemToSmelt;// Ring / necklace / bracelet
- String ItemForPottery;
- String Armour;
- String AColor;
- String SpinItem;
- String Status = "[Starting script]";
- String Action = "[None]";
- int StartLvl = 0;
- int CurrentLvl = 0;
- int StartXP = 0;
- int CurrentXP = 0;
- int Item1Count = 0;
- int Item2Count = 0;
- int Item3Count = 0;
- int a = 0;
- int b = 0;
- AryanTileZone HomeZone;
- AryanTileZone SpinZone;
- AryanTileZone LumbySpinZone = new AryanTileZone(new AryanTile(103210,103213),new AryanTile(103209,103215));
- AryanTileZone CammySpinZone = new AryanTileZone(new AryanTile(102711,103471),new AryanTile(102714,103471));
- AryanTileZone TanZone = new AryanTileZone(new AryanTile(3276,3193),new AryanTile(3277,3191));
- AryanTileZone SmeltZone = new AryanTileZone(new AryanTile(3275,3188),new AryanTile(3279,3185));
- AryanTileZone CraftZone = new AryanTileZone(new AryanTile(3084,3411),new AryanTile(3086,3410));
- AryanTileZone WeavingZone = new AryanTileZone(new AryanTile(3038,3292),new AryanTile(3039,3290));
- Timer Time = new Timer(0);
- Timer f = new Timer((random(15, 54)) * (1000 * 60));
- long scriptStartTIME = System.currentTimeMillis();
- Timer t2 = new Timer(10000L);
- Timer KyattTimer = new Timer((random(35, 45)) * (1000 * 60));
- Timer Tabs = new Timer((random(4, 25)) * (1000 * 60));
- boolean DoPottery = false;
- boolean DoArmour = false;
- boolean DoSmelting = false;
- boolean DoSpinning = false;
- boolean DoTanning = false;
- boolean Weaving = false;
- boolean DoJewels = false;
- boolean GoldRing = false;
- boolean Go = false;
- Rectangle vamb;
- Rectangle body;
- Rectangle chap;
- boolean Saphire = false;
- boolean Emerald = false;
- boolean Ruby = false;
- boolean Diamond = false;
- boolean Onyx = false;
- boolean Dragonstone = false;
- public void script() throws InterruptedException, Exception {
- PaintThread.start();
- CheckThread.start();
- XpThread.start();
- TabThread.start();
- AntiBan.start();
- while(!isLoggedIn())
- {
- sleep(1000);
- log("Login = False");
- }
- StartXP = theTabs.Statistics.getStatExperience(Skill.CRAFTING);
- StartLvl = theTabs.Statistics.getStatBottom(Skill.CRAFTING);
- sleep(2000, 2500);
- log("******************************");
- log("!~ Welcome to ZAIOCrafter V1.00 ~!");
- log("Script Version = 1.00");
- log("Last update = 10/5/2010 (7:15 PM)");
- log("Script Author = zbubblez");
- log("Contact Me = zbubblez@hotmail.com (email/MSN)");
- log("Skype = zbubblez99");
- log("!~ Thanks for purchasing ZAIOCrafter ~!");
- log("******************************");
- sleep(5000, 7000);
- JFrame Settings = new GUI();
- Settings.setVisible(true);
- while (StartScript != true)
- sleep(100, 200);
- StartScript = false;
- Settings.setVisible(false);
- if(DoSpinning == true)
- {
- log("Action = Spin()");
- Action = "Spin()";
- Spin();
- }
- else if(DoArmour == true)
- {
- log("Action = MakeArmour()");
- Action = "MakeArmour()";
- MakeArmour();
- }
- else if(DoPottery == true)
- {
- log("Action = DoPottery()");
- Action = "DoPottery()";
- DoPottery();
- }
- else if(DoSmelting == true)
- {
- log("Action = DoSmelt()");
- Action = "DoSmelt()";
- DoSmelt();
- }
- else if(DoJewels == true)
- {
- log("Action = CuttingJewels()");
- Action = "CuttingJewels()";
- CutJewels();
- }
- else if(DoTanning == true)
- {
- log("Action = Tan()");
- Action = "Tan()";
- Tan();
- }
- else if(Weaving == true)
- {
- log("Action = Weaving()");
- Weaving();
- }
- else
- {
- log("Action = [NOT CHOSEN]");
- }
- }
- public void Weaving() throws InterruptedException, Exception {
- if(WeaveItem.contains("Cloth"))
- {
- Item1 = "Ball of wool";
- }
- else if(WeaveItem.contains("Vegetable Stack"))
- {
- Item1 = "jute fibre";
- }
- else if(WeaveItem.contains("Fruit basket"))
- {
- Item1 = "willow branches";
- }
- else if(WeaveItem.contains("Seaweed Net"))
- {
- Item1 = "Flax";
- Item2 = "Bronze wire";
- }
- if(Item1 == "Flax")
- {
- log("Item to use = Flax");
- log("Second Item to use = Bronze wire");
- if(theTabs.Inventory.count("Flax") == 0 || theTabs.Inventory.count("Bronze wire") == 0)
- {
- log("Flax = "+theTabs.Inventory.count("Flax"));
- log("Bronze wire = "+theTabs.Inventory.count("Bronze wire"));
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- theBank.open();
- theBank.doDepositAll();
- while(theTabs.Inventory.count("Flax") < 5)
- {
- if(theBank.count("Flax") < 5)
- {
- log("Flax in bank < 5");
- }
- theBank.doWithDrawX(Item1, 13);
- sleep(2000, 3000);
- }
- while(theTabs.Inventory.count("Bronze wire") == 0)
- {
- if(theBank.count("Bronze wire") == 0)
- {
- log("Bronze wire in bank = 0");
- }
- theBank.doWithDrawX(Item2, 13);
- sleep(2000, 3000);
- }
- }
- }
- else
- {
- log("Item to use = "+Item1);
- if(theTabs.Inventory.count(Item1) < 6)
- {
- log(Item1+" = 0");
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- theBank.open();
- theBank.doDepositAll();
- while(theTabs.Inventory.count(Item1) < 6)
- {
- if(theBank.count(Item1) < 6)
- {
- log(Item1+" in bank < 6");
- }
- theBank.doWithDrawAll(Item1, false);
- sleep(2000, 3000);
- }
- }
- }
- while(isLoggedIn())
- {
- PhysicalObject Loom = this.getInteractiveObject(8717);
- PhysicalObject Door = this.getInteractiveObject(8695);
- fasdfasdf
- while(theTabs.Inventory.count(Item1) >= 4)
- {
- while(!this.isInterfaceNotNullAndValid(513, 3))
- {
- this.theParallelWorldObjectActions.clickWorldObject(Loom, "Loom", "Weave");
- sleep(3000, 4000);
- }
- if(this.isInterfaceNotNullAndValid(513, 3))
- {
- log("Interface != null");
- if(WeaveItem.contains("Cloth"))
- {
- mouseClickRight(new Rectangle(296,431,39, -38));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- else if(WeaveItem.contains("Vegetable Stack"))
- {
- mouseClickRight(new Rectangle(55,436,43, -52));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- else if(WeaveItem.contains("Fruit basket"))
- {
- mouseClickRight(new Rectangle(181,439,35, -52));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- else if(WeaveItem.contains("Seaweed Net"))
- {
- mouseClickRight(new Rectangle(414,433,43, -43));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- Go = false;
- }
- while(Go == false)
- {
- a = theTabs.Inventory.count(Item1);
- sleep(3000, 6000);
- if(theTabs.Inventory.count(Item1) == a)
- {
- log("DoingAction = false");
- Go = true;
- }
- }
- }//END OF INVENTORY LOOP
- theWorldMap.walkToBank();
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- theBank.open();
- theBank.doDepositAll();
- if(WeaveItem.contains("Flax"))
- {
- while(theTabs.Inventory.count("Flax") < 5)
- {
- if(theBank.count("Flax") < 5)
- {
- log("Flax in bank < 5");
- }
- theBank.doWithDrawX(Item1, 13);
- sleep(2000, 3000);
- }
- while(theTabs.Inventory.count("Bronze wire") == 0)
- {
- if(theBank.count("Bronze wire") == 0)
- {
- log("Bronze wire in bank = 0");
- }
- theBank.doWithDrawX(Item2, 13);
- sleep(2000, 3000);
- }
- }
- else
- {
- while(theTabs.Inventory.count(Item1) < 6)
- {
- if(theBank.count(Item1) < 6)
- {
- log(Item1+" in bank < 6");
- }
- theBank.doWithDrawAll(Item1, false);
- sleep(2000, 3000);
- }
- }
- }
- }
- public void MakeArmour() throws InterruptedException, Exception {
- if(AColor.contains("Green"))
- {
- Item1 = "Green dragon leather";
- }
- else if (AColor.contains("Blue"))
- {
- Item1 = "Blue dragon leather";
- }
- else if (AColor.contains("Red"))
- {
- Item1 = "Red dragon leather";
- }
- log("Item to use = "+Item1);
- if(Armour.contains("Chap"))
- {
- log("Item to make = Chaps");
- chap = new Rectangle(396,435,17, -50);
- }
- else if(Armour.contains("Body"))
- {
- log("Item to make = Body");
- body = new Rectangle(91,435,30, -42);
- }
- else if(Armour.contains("Vamb"))
- {
- log("Item to make = vambrace");
- vamb = new Rectangle(231,430,48, -41);
- }
- if(theTabs.Inventory.count("Needle") == 0)
- {
- log("Needle = 0");
- log("Thread = "+theTabs.Inventory.count("Thread"));
- theWorldMap.walkToBank();
- theBank.open();
- while(theTabs.Inventory.count("Thread") == 0 || theTabs.Inventory.count("Needle") == 0)
- {
- if(theBank.count("Thread") == 0)
- {
- log("Thread in bank = 0");
- }
- if(theBank.count("Needle") == 0)
- {
- log("Needle in bank = 0");
- }
- if(theTabs.Inventory.count("Thread") == 0)
- {
- theBank.doWithDrawAll(new ItemNameExact("Thread"), false);
- }
- theBank.doWithDraw1("Needle", false);
- sleep(1000, 2000);
- }
- theBank.exit();
- }
- while(isLoggedIn())
- {
- if(theTabs.Inventory.count(Item1) == 0)
- {
- log(Item1+" = 0");
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- theBank.open();
- while(theTabs.Inventory.count(Item1) == 0)
- {
- if(theBank.count(Item1) == 0)
- {
- log(Item1+" in bank = 0");
- }
- theBank.doDepositAllBut(new String[] {"Needle" , "Thread"});
- theBank.doWithDrawAll(Item1, false);
- sleep(1000, 2000);
- }
- }
- while(theTabs.Inventory.count(new ItemNameExact(Item1)) != 0)
- {
- while(!this.isInterfaceNotNullAndValid(137, 10))
- {
- switch(random(0 ,5))
- {
- case 0:
- theTabs.Inventory.doAction("Needle", null, 1, false);
- log("Random Item = Needle");
- case 1:
- theTabs.Inventory.doAction("Thread", null, 1, false);
- log("Random Item = Thread");
- case 2:
- theTabs.Inventory.doAction("Needle", null, 1, false);
- log("Random Item = Needle");
- case 3:
- theTabs.Inventory.doAction("Thread", null, 1, false);
- log("Random Item = Thread");
- case 4:
- theTabs.Inventory.doAction("Needle", null, 1, false);
- log("Random Item = Needle");
- case 5:
- theTabs.Inventory.doAction("Thread", null, 1, false);
- log("Random Item = Thread");
- }
- theTabs.Inventory.doAction(Item1, null, 1, false);
- sleep(2000, 3000);
- }
- if(this.isInterfaceNotNullAndValid(137, 10))
- {
- log("Interface != null");
- if(Armour.contains("Chap"))
- {
- mouseClickRight(chap);
- theMenuFinder.doMenu("All");
- }
- else if(Armour.contains("Body"))
- {
- mouseClickRight(body);
- theMenuFinder.doMenu("All");
- }
- else if(Armour.contains("Vamb"))
- {
- mouseClickRight(vamb);
- theMenuFinder.doMenu("All");
- }
- Go = false;
- }
- while(Go == false)
- {
- a = theTabs.Inventory.count(Item1);
- sleep(3000, 6000);
- if(theTabs.Inventory.count(Item1) == a)
- {
- log("DoingAction = false");
- Go = true;
- }
- }
- }//END OF INVENTORY LOOP
- }
- }
- public void DoPottery() throws InterruptedException, Exception {
- Item1 = "Soft clay";
- log("Item to Pottisserize = Soft clay");
- if(theTabs.Inventory.count(Item1) == 0)
- {
- GetFromBankAll(Item1 , true , true);
- }
- PhysicalObject PotterWheel = this.getInteractiveObject(2642);
- theWorldMap.walkTo(CraftZone.random() , theWorldMap.RETURN_WHILE_MOVING);
- while(PotterWheel == null)
- {
- sleep(300, 700);
- }
- while(isLoggedIn())
- {
- while(theTabs.Inventory.count(Item1) != 0)
- {
- while(!this.isInterfaceNotNullAndValid(513, 2))
- {
- if(PotterWheel != null)
- {
- theTabs.Inventory.doAction(Item1, null, 1, false);
- this.theParallelWorldObjectActions.clickWorldObject(PotterWheel, "Potter's wheel", "Use");
- sleep(2000, 5000);
- }
- }
- if(this.isInterfaceNotNullAndValid(513, 2))
- {
- log("Interface != null");
- if(ItemForPottery.contains("Pot"))
- {
- mouseClickRight(new Rectangle(58,434,34, -42));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- else if(ItemForPottery.contains("Pie "))
- {
- mouseClickRight(new Rectangle(172,429,50, -42));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- else if(ItemForPottery.contains("Bowl"))
- {
- mouseClickRight(new Rectangle(292,431,47, -43));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- else if(ItemForPottery.contains("Plant"))
- {
- mouseClickRight(new Rectangle(414,441,50, -63));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- Go = false;
- }
- while(Go == false)
- {
- a = theTabs.Inventory.count("Soft clay");
- sleep(5000, 8000);
- if(theTabs.Inventory.count("Soft clay") == a)
- {
- log("DoingAction = false");
- Go = true;
- }
- }
- }// END OF INVENTORY LOOP 1
- log("Action = Oven()");
- while(theTabs.Inventory.count("Unfired ") != 0)
- {
- PhysicalObject Oven = this.getInteractiveObject(11601,11602);
- while(!this.isInterfaceNotNullAndValid(513, 2))
- {
- if(Oven != null)
- {
- this.theParallelWorldObjectActions.clickWorldObject(Oven, "Pottery oven", "Fire");
- sleep(4000, 5000);
- }
- }
- if(this.isInterfaceNotNullAndValid(513, 2))
- {
- log("interface != null");
- if(ItemForPottery.contains("Pot"))
- {
- mouseClickRight(new Rectangle(58,434,34, -42));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- else if(ItemForPottery.contains("Pie "))
- {
- mouseClickRight(new Rectangle(172,429,50, -42));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- else if(ItemForPottery.contains("Bowl"))
- {
- mouseClickRight(new Rectangle(292,431,47, -43));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- else if(ItemForPottery.contains("Plant"))
- {
- mouseClickRight(new Rectangle(414,441,50, -63));
- theMenuFinder.doMenu("X");
- sleep(500, 1000);
- this.SendText(Integer.toString((random(28, 3465))));
- SendKey(10);
- sleep(1000, 2000);
- }
- Go = false;
- }
- while(Go == false)
- {
- a = theTabs.Inventory.count("Unfired ");
- sleep(4000, 6000);
- if(theTabs.Inventory.count("Unfired ") == a)
- {
- log("DoingAction = false");
- Go = true;
- }
- }
- }
- GetFromBankAll(Item1 , true , true);
- theWorldMap.walkTo(CraftZone.random());
- theWorldMap.walkTo(CraftZone.random() , theWorldMap.RETURN_WHILE_MOVING);
- while(PotterWheel == null)
- {
- sleep(300, 700);
- }
- }
- }
- public void DoSmelt() throws InterruptedException, Exception {
- if(TypeOfSmelt.contains("Gold"))
- {
- Item1 = "nothing";
- }
- else if(TypeOfSmelt.contains("Opal"))
- {
- Item1 = "Opal";
- }
- else if(TypeOfSmelt.contains("Jade"))
- {
- Item1 = "Jade";
- }
- else if(TypeOfSmelt.contains("Red Topaz"))
- {
- Item1 = "Red Topaz";
- }
- else if(TypeOfSmelt.contains("Saphire"))
- {
- Item1 = "Sapphire";
- }
- else if(TypeOfSmelt.contains("Emerald"))
- {
- Item1 = "Emerald";
- }
- else if(TypeOfSmelt.contains("Ruby"))
- {
- Item1 = "Ruby";
- }
- else if(TypeOfSmelt.contains("Diamond"))
- {
- Item1 = "Diamond";
- }
- else if(TypeOfSmelt.contains("Onyx"))
- {
- Item1 = "Onyx";
- }
- else if(TypeOfSmelt.contains("Dragonstone"))
- {
- Item1 = "Dragonstone";
- }
- if(Item1 == "nothing")
- {
- log("Item smelting = Gold ring");
- GoldRing = true;
- }
- else
- {
- log("Item smelting = "+Item1);
- }
- if(theTabs.Inventory.count("Ring mould") == 0 && theTabs.Inventory.count("Necklace mould") == 0)
- {
- log("Ring mould = "+theTabs.Inventory.count("Ring mould"));
- log("Necklace mould = "+theTabs.Inventory.count("Necklace mould"));
- if(ItemToSmelt.contains("Ring"))
- {
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- theBank.open();
- theBank.doDepositAll();
- theBank.doWithDraw1("Ring mould", false);
- theBank.exit();
- }
- else if(ItemToSmelt.contains("Necklace"))
- {
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- theBank.open();
- theBank.doDepositAll();
- theBank.doWithDraw1("Necklace", false);
- theBank.exit();
- }
- }
- while(isLoggedIn())
- {
- if(theTabs.Inventory.count(Item1) == 0 && GoldRing == false)
- {
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- theBank.open();
- theBank.doDepositAllBut(new String[] {"Ring mould" , "Necklace mould"});
- theBank.doWithDrawX(Item1, 13);
- theBank.doWithDrawX(new ItemIdExact(2357), 13);
- theBank.exit();
- }
- else if(GoldRing == true && theTabs.Inventory.count(new ItemIdExact(2357)) == 0)
- {
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- theBank.open();
- theBank.doDepositAllBut(new String[] {"Ring mould" , "Necklace mould"});
- theBank.doWithDrawAll(new ItemIdExact(2357), false);
- theBank.exit();
- }
- PhysicalObject Furnace = this.getInteractiveObject(11666);
- theWorldMap.walkTo(SmeltZone.random() , theWorldMap.RETURN_WHILE_MOVING);
- while(Furnace == null)
- {
- sleep(300, 700);
- }
- while(theTabs.Inventory.count(new ItemIdExact(2357)) != 0)
- {
- while(!this.isInterfaceNotNullAndValid(446, 13))
- {
- if(Furnace != null)
- {
- theTabs.Inventory.doAction("Gold bar", null, 1, false);
- this.theParallelWorldObjectActions.clickWorldObject(Furnace , "Furnace", "Use");
- sleep(5000, 7000);
- }
- }
- if(this.isInterfaceNotNullAndValid(446, 13))
- {
- log("Interface != null");
- if(ItemToSmelt.contains("Ring"))
- {
- if(GoldRing == true)
- {
- mouseClickRight(new Rectangle(107,98,17, 13));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Saphire == true)
- {
- mouseClickRight(new Rectangle(152,93,23, 17));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Emerald == true)
- {
- mouseClickRight(new Rectangle(200,94,22, 19));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Ruby == true)
- {
- mouseClickRight(new Rectangle(245,91,21, 20));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Diamond == true)
- {
- mouseClickRight(new Rectangle(291,91,18, 20));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Dragonstone == true)
- {
- mouseClickRight(new Rectangle(337,92,18, 18));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Onyx == true)
- {
- mouseClickRight(new Rectangle(381,92,18, 20));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- }
- else if(ItemToSmelt.contains("Neck"))
- {
- if(GoldRing == true)//Dont worry
- {
- mouseClickRight(new Rectangle(117,153,24, 27));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Saphire == true)
- {
- mouseClickRight(new Rectangle(170,178,25, -21));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Emerald == true)
- {
- mouseClickRight(new Rectangle(217,177,30, -22));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Ruby == true)
- {
- mouseClickRight(new Rectangle(269,178,27, -19));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Diamond == true)
- {
- mouseClickRight(new Rectangle(321,180,23, -23));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Dragonstone == true)
- {
- mouseClickRight(new Rectangle(367,176,25, -20));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- else if(Onyx == true)
- {
- mouseClickRight( new Rectangle(418,177,24, -21));
- theMenuFinder.doMenu("All");
- sleep(1000, 2000);
- }
- }
- }
- Go = false;
- while(Go == false)
- {
- a = theTabs.Inventory.count(new ItemIdExact(2357));
- sleep(9000, 11000);
- if(theTabs.Inventory.count(new ItemIdExact(2357)) == a)
- {
- log("DoingAction = false");
- Go = true;
- }
- }
- }
- }
- }
- public void Tan() throws InterruptedException, Exception {
- if(TanItem.toString().contains("Soft leather"))
- {
- Item1 = "Cowhide";
- }
- else if(TanItem.toString().contains("Hard leather"))
- {
- Item1 = "Cowhide";
- }
- else if(TanItem.toString().contains("Dark Green"))
- {
- Item1 = "Snakeskin";
- }
- else if(TanItem.toString().contains("Light Green"))
- {
- Item1 = "Snakeskin";
- }
- else if(TanItem.toString().contains("Green D'hide"))
- {
- Item1 = "Green dragonhide";
- }
- else if(TanItem.toString().contains("Blue D'hide"))
- {
- Item1 = "Blue dragonhide";
- }
- else if(TanItem.toString().contains("Red D'hide"))
- {
- Item1 = " dragonhide";
- }
- else if(TanItem.toString().contains("Black D'hide"))
- {
- Item1 = "Black dragonhide";
- }
- log("Item to tan = "+Item1);
- while(isLoggedIn())
- {
- if(theTabs.Inventory.count(Item1) == 0)
- {
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- theBank.open();
- while(theTabs.Inventory.count(Item1) == 0)
- {
- if(theBank.count(Item1) == 0)
- {
- log("You have no "+Item1+"s");
- getHandler().threadSafeTurnScriptOff();
- }
- theBank.doDepositAllBut(new String[] {"Coins"});
- theBank.doWithDrawAll(Item1, false);
- sleep(600, 1500);
- }
- }
- NPC Ellis = this.theWorldObjectFinder.findNPC("Ellis");
- theWorldMap.walkTo(TanZone.random() , theWorldMap.RETURN_WHILE_MOVING);
- while(Ellis == null)
- {
- sleep(300, 700);
- }
- while(!this.isInterfaceNotNullAndValid(324, 9))
- {
- if(Ellis != null)
- {
- this.theParallelWorldObjectActions.clickWorldObject(Ellis, "Ellis", "Trade");
- while(getMyPlayer().isMoving())
- {
- }
- sleep(2000, 3000);
- }
- }
- if(this.isInterfaceNotNullAndValid(324, 9))
- {
- log("Interface != null");
- if(TanItem.toString().contains("Soft leather"))
- {
- mouseClickRight(new Rectangle(64,80,53, 51));
- theMenuFinder.doMenu("All");
- }
- else if(TanItem.toString().contains("Hard leather"))
- {
- mouseClickRight(new Rectangle(175,86,57, 44));
- theMenuFinder.doMenu("All");
- }
- else if(TanItem.toString().contains("Dark Green"))
- {
- mouseClickRight( new Rectangle(281,77,60, 55));
- theMenuFinder.doMenu("All");
- }
- else if(TanItem.toString().contains("Light Green"))
- {
- mouseClickRight(new Rectangle(390,75,67, 58));
- theMenuFinder.doMenu("All");
- }
- else if(TanItem.toString().contains("Green D'hide"))
- {
- mouseClickRight( new Rectangle(67,205,48, 48));
- theMenuFinder.doMenu("All");
- }
- else if(TanItem.toString().contains("Blue D'hide"))
- {
- mouseClickRight(new Rectangle(176,209,54, 44));
- theMenuFinder.doMenu("All");
- }
- else if(TanItem.toString().contains("Red D'hide"))
- {
- mouseClickRight( new Rectangle(285,205,59, 52));
- theMenuFinder.doMenu("All");
- }
- else if(TanItem.toString().contains("Black D'hide"))
- {
- mouseClickRight(new Rectangle(396,206,59, 48));
- theMenuFinder.doMenu("All");
- }
- }
- while(theTabs.Inventory.count(Item1) != 0)
- {
- sleep(300, 600);
- }
- }
- }
- public void Spin() throws InterruptedException, Exception {
- if(SpinItem.toString().contains("Flax"))
- {
- Item1 = "Flax";
- }
- else if(SpinItem.toString().contains("Wool"))
- {
- Item1 = "Wool";
- }
- else if(SpinItem.toString().contains("Magic"))
- {
- Item1 = "Magic tree roots";
- }
- else if(SpinItem.toString().contains("Yak"))
- {
- Item1 = "Yak hair";
- }
- log("Item to spin = "+Item1);
- if(theTabs.Inventory.count(Item1) == 0)
- {
- log(Item1+" = 0");
- GetFromBankAll(Item1 , true, true);
- }
- if(SpinArea != null)
- {
- if(SpinArea.toString().contains("Camelot"))
- {
- log("Spining Location = Camelot");
- SpinZone = CammySpinZone;
- theWorldMap.walkTo(SpinZone.random());
- while(getMyPlayer().isMoving())
- {
- sleep(500, 700);
- }
- }
- else if(SpinArea.toString().contains("Lumb"))
- {
- log("Spinning Location = Lumby");
- SpinZone = LumbySpinZone;
- theWorldMap.walkTo(SpinZone.random());
- while(getMyPlayer().isMoving())
- {
- sleep(300, 600);
- }
- }
- }
- else
- {
- log("SpinArea == null [GUI Filled in incorrectly]");
- log("Going to defualt location [Cammy]");
- SpinZone = CammySpinZone;
- theWorldMap.walkTo(SpinZone.random());
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- }
- while(isLoggedIn())
- {
- if(theTabs.Inventory.count(Item1) == 0)
- {
- log(Item1+" = 0");
- GetFromBankAll(Item1 , true, true);
- }
- PhysicalObject Spinner = this.getInteractiveObject(3697,25824);
- theWorldMap.walkTo(SpinZone.random() , theWorldMap.RETURN_WHILE_MOVING);
- while(Spinner == null)
- {
- sleep(300, 700);
- }
- while(theTabs.Inventory.count(Item1) != 0)
- {
- if(theTabs.Inventory.count(Item1) != 0)
- {
- while(!this.isInterfaceNotNullAndValid(459, 13))
- {
- this.theParallelWorldObjectActions.clickWorldObject(Spinner, "Spinning wheel", "Spin");
- sleep(2000, 3000);
- }
- if(this.isInterfaceNotNullAndValid(459, 13))
- {
- log("Interface != null");
- if(Item1 == "Wool")
- {
- mouseClickRight(new Rectangle(104,89,52, 45));
- }
- else if(Item1 == "Flax")
- {
- mouseClickRight(new Rectangle(242,91,44, 41));
- }
- else if(Item1 == "Magic tree roots")
- {
- mouseClickRight(new Rectangle(361,91,51, 45));
- }
- else if(Item1 == "Yak hair")
- {
- mouseClickRight(new Rectangle(360,210,55, 40));
- }
- theMenuFinder.doMenu("All");
- Go = false;
- }
- while(Go == false)
- {
- a = theTabs.Inventory.count(Item1);
- sleep(4000, 5000);
- if(theTabs.Inventory.count(Item1) == a)
- {
- log("DoingAction = false");
- Go = true;
- }
- }
- }
- }
- }
- }
- public void CutJewels() throws InterruptedException, Exception {
- if(Jewel.toString().contains("Opal"))
- {
- Item1 = "opal";
- }
- else if(Jewel.toString().contains("Topaz"))
- {
- Item1 = "red topaz";
- }
- else if(Jewel.toString().contains("Saphire"))
- {
- Item1 = "sapphire";
- }
- else if(Jewel.toString().contains("Emerald"))
- {
- Item1 = "emerald";
- }
- else if(Jewel.toString().contains("Jade"))
- {
- Item1 = "jade";
- }
- else if(Jewel.toString().contains("Ruby"))
- {
- Item1 = "ruby";
- }
- else if(Jewel.toString().contains("Diamond"))
- {
- Item1 = "diamond";
- }
- else if(Jewel.toString().contains("Onyx"))
- {
- Item1 = "onyx";
- }
- else if(Jewel.toString().contains("Dragonstone"))
- {
- Item1 = "dragonstone";
- }
- log("Cutting Item = "+"Uncut "+Item1);
- if(theTabs.Inventory.count("Chisel") == 0)
- {
- log("Chisels = 0");
- GetFromBank1("Chisel" , true , true);
- }
- if(theTabs.Inventory.count("Uncut "+Item1) == 0)
- {
- log(Item1+" = 0");
- GetFromBankAll("Uncut "+Item1 , false, false);
- }
- while(isLoggedIn())
- {
- while(theTabs.Inventory.count("Uncut ") != 0)
- {
- theTabs.Inventory.doAction("Chisel", null, 1, false);
- theTabs.Inventory.doAction("Uncut "+Item1, null, 1, false);
- sleep(885, 2000);
- mouseClickRight(new Rectangle(232,389,48, 42));
- theMenuFinder.doMenu("All");
- Go = false;
- while(Go == false)
- {
- a = theTabs.Inventory.count(Item1);
- sleep(4000, 5000);
- if(theTabs.Inventory.count(Item1) == a)
- {
- log("DoingAction = false");
- Go = true;
- }
- }
- }
- theBank.open();
- theBank.doDepositAll(Item1);
- GetFromBankAll(Item1 , false, false);
- }
- }
- public void GetFromBankAll(String itemname, boolean walk, boolean depoall) throws InterruptedException, Exception {
- if(walk == true)
- {
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- }
- theBank.open();
- if(depoall == true)
- {
- theBank.doDepositAll();
- }
- while(theTabs.Inventory.count(itemname) == 0)
- {
- if(theBank.count(itemname) == 0)
- {
- log("You have no "+itemname+"s");
- getHandler().threadSafeTurnScriptOff();
- }
- theBank.doWithDrawAll(itemname, false);
- sleep(1000, 2000);
- }
- theBank.exit();
- }
- public void GetFromBankX(String itemname, boolean walk, int amount, boolean depoall) throws InterruptedException, Exception {
- if(walk == true)
- {
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- }
- theBank.open();
- if(depoall == true)
- {
- theBank.doDepositAll();
- }
- while(theTabs.Inventory.count(itemname) == 0)
- {
- if(theBank.count(itemname) == 0)
- {
- log("You have no "+itemname+"s");
- getHandler().threadSafeTurnScriptOff();
- }
- theBank.doWithDrawX(itemname, amount);
- sleep(1000, 2000);
- }
- theBank.exit();
- }
- public void GetFromBank1(String itemname, boolean walk, boolean depoall) throws InterruptedException, Exception {
- if(walk == true)
- {
- theWorldMap.walkToBank(theWorldMap.RETURN_WHILE_MOVING);
- while(getMyPlayer().isMoving())
- {
- sleep(300, 700);
- }
- }
- theBank.open();
- if(depoall == true)
- {
- theBank.doDepositAll();
- }
- while(theTabs.Inventory.count(itemname) == 0)
- {
- if(theBank.count(itemname) == 0)
- {
- log("You have no "+itemname+"s");
- getHandler().threadSafeTurnScriptOff();
- }
- theBank.doWithDraw1(new ItemNameExact(itemname), false);
- sleep(1000, 2000);
- }
- theBank.exit();
- }
- public PhysicalObject getInteractiveObject(int... id) {
- return getPhysicalObject(id, null, false, 50, false);
- }
- public PhysicalObject getPhysicalObject(int[] ids, AryanTile tile, boolean thisTileOnly, int maxDistance, boolean boundary) {
- PhysicalObject closest = null;
- double closestDistance = 1000;
- AryanTile center = tile;
- if (tile == null)
- center = this.getLocation();
- PhysicalObject[] objs = null;
- if (boundary)
- objs = this.getAllBoundaryPhysicalObjects();
- else
- objs = this.getAllInteractivePhysicalObjects();
- for (PhysicalObject obj : objs) {
- for (int id : ids) {
- if (obj.getID() == id) {
- double distance = obj.getLocation().distanceToPrecise(center);
- if (distance < closestDistance && distance <= maxDistance) {
- closest = obj;
- closestDistance = distance;
- if (thisTileOnly && tile.equals(closest.getLocation()))
- return closest;
- }
- }
- }
- }
- if (closest == null)
- return null;
- if (!thisTileOnly || tile.equals(closest.getLocation()))
- return closest;
- else
- return null;
- }
- Thread PaintThread = new Thread() {
- public void run() {
- log("Paint Thread Started!");
- while (getHandler().isScriptRunning()) {
- try {
- ZAIOCrafter.this.paintPoint(getCurrentMouseXY(), new Color((random(5, 250)), (random(5, 250)), (random(5, 250)), 221), 2000, (random(1, 8)));
- sleep(5);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
- };
- Thread XpThread = new Thread() {
- public void run() {
- log("Paint Thread Started!");
- while (getHandler().isScriptRunning()) {
- try {
- CurrentXP = theTabs.Statistics.getStatExperience(Skill.CRAFTING);
- CurrentLvl = theTabs.Statistics.getStatBottom(Skill.CRAFTING);
- sleep(700);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
- };
- Thread CheckThread = new Thread() {
- public void run() {
- log("Item Thread Started!");
- while (getHandler().isScriptRunning()) {
- try {
- if(!theTabs.Inventory.isSelected())
- {
- theTabs.Inventory.click();
- }
- sleep(7000, 15000);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
- };
- Thread TabThread = new Thread() {
- public void run() {
- log("Tab Thread Started!");
- while (getHandler().isScriptRunning()) {
- try {
- if(Tabs.isUp())
- {
- switch(random(0 ,5))
- {
- case 0:
- mouseClickLeft(new Rectangle(525,171,233, 30));
- break;
- case 1:
- mouseClickLeft(new Rectangle(526,469,234, 29));
- break;
- case 2:
- mouseClickLeft(new Rectangle(525,171,233, 30));
- break;
- case 3:
- mouseClickLeft(new Rectangle(526,469,234, 29));
- break;
- case 4:
- mouseClickLeft(new Rectangle(525,171,233, 30));
- break;
- case 5:
- mouseClickLeft(new Rectangle(526,469,234, 29));
- break;
- }
- Tabs.reset();
- log("[TabThread] Random Tab Selected, Tab Timer Reset");
- }
- else
- {
- }
- sleep(random(3000, 6000));
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
- };
- Thread AntiBan = new Thread() {
- public void run() {
- log("AntiBan Thread Started!");
- while (getHandler().isScriptRunning()) {
- try {
- switch (random(0, 200)) {
- case 12:
- mouseMove(Areas.GAME);
- break;
- case 25:
- theCamera.setYawRandom();
- break;
- case 29:
- theCamera.setYawRandom();
- break;
- case 36:
- mouseMove(Areas.ENTIRE);
- break;
- case 44:
- switch (random(1, 5)) {
- case 1:
- theTabs.Friends.click();
- break;
- case 2:
- theTabs.Statistics.click();
- break;
- case 3:
- theTabs.Attack.click();
- break;
- case 4:
- theTabs.Options.click();
- break;
- case 5:
- break;
- }
- break;
- case 58:
- theCamera.setYawRandomNormal();
- break;
- case 63:
- theCamera.setYawRandom();
- break;
- case 77:
- mouseMove(Areas.ENTIRE);
- break;
- case 91:
- theCamera.setYawRandom();
- break;
- case 114:
- mouseMove(Areas.ENTIRE);
- break;
- case 133:
- theCamera.setYawRandom();
- break;
- case 145:
- theCamera.setYawRandom();
- break;
- case 166:
- theCamera.setYawRandom();
- break;
- case 178:
- theCamera.setYawRandom();
- break;
- case 184:
- theCamera.setYawRandom();
- break;
- case 200:
- theCamera.setYawRandom();
- break;
- }
- sleep(1000, 6000);
- } catch (InterruptedException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
- }
- };
- // ############################################# PAINT + GUI FROM HERE DOWN #################################################################
- public void paint(Graphics g) {
- final StringBuilder gg = new StringBuilder();
- final long runtime = Time.timePassed();
- final long TotalSec = runtime / 1000;
- final long TotalMin = TotalSec / 60;
- final long TotalHour = TotalMin / 60;
- final int second = (int) TotalSec % 60;
- final int minute = (int) TotalMin % 60;
- final int hour = (int) TotalHour % 60;
- long runTime = 0;
- runTime = System.currentTimeMillis() - scriptStartTIME;
- int mPerHour = 0;
- if ((runTime / 1000) > 0) {
- mPerHour = (int) ((3600000.0 / (double) runTime) * (0));
- }
- int PerHour = 0;
- if ((runTime / 1000) > 0) {
- PerHour = (int) ((3600000.0 / (double) runTime) * ((CurrentXP - StartXP)));
- }
- if (hour < 10)
- gg.append("0");
- gg.append(hour);
- gg.append(" : ");
- if (minute < 10)
- gg.append("0");
- gg.append(minute);
- gg.append(" : ");
- if (second < 10)
- gg.append("0");
- gg.append(second);
- int Y = 253;
- g.setColor(new Color(0, 0, 0, 197));
- g.fillRect(274, 236, 239, 100);
- g.setColor(new Color(255, 255, 255));
- g.drawRect(276, 238, 234, 95);
- g.setColor(new Color(0, 0, 0, 183));
- g.fillRect(274, 201, 238, 31);
- g.setColor(new Color(255, 255, 255));
- g.drawRect(276, 203, 232, 25);
- g.setFont(new Font("Vijaya", 0, 25));
- g.setColor(new Color(255, 255, 255));
- g.drawString("ZAIOCrafter", 281, 222);
- g.setFont(new Font("Vijaya", 0, 17));
- g.setColor(new Color(255, 255, 255));
- g.drawString("Time running: "+String.valueOf(gg.toString()), 281, Y);
- g.drawString("XP Gained: "+(CurrentXP - StartXP)+" ("+PerHour+"/H)", 281, Y+15);
- g.drawString("Level: "+CurrentLvl+"/"+StartLvl, 281, Y+30);
- g.drawString("Status: "+Status, 281, Y+45);
- g.drawString("Action: "+Action, 281, Y+60);
- g.setFont(new Font("Vijaya", 0, 25));
- g.setColor(new Color(255, 255, 255));
- g.drawString("V1.00", 456, 222);
- g.setFont(new Font("Vijaya", 0, 15));
- g.setColor(new Color(0, 0, 0, 100));
- g.drawString("ZbubbleZ - zbubblez@hotmail.com", 553, 466);
- g.setColor(new Color(255, 255, 255));
- g.drawString("ZbubbleZ - zbubblez@hotmail.com", 553, 463);
- }
- //#################################################################################################################
- //#################################################################################################################
- //#################################################################################################################
- //#################################################################################################################
- //#################################################################################################################
- //#################################################################################################################
- // BIG GUI!!
- //#################################################################################################################
- //#################################################################################################################
- //#################################################################################################################
- //#################################################################################################################
- //#################################################################################################################
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- /*
- * GUI.java
- *
- * Created on Sep 29, 2010, 8:31:44 PM
- */
- /**
- *
- * @author Dan
- */
- public class GUI extends javax.swing.JFrame {
- /** Creates new form GUI */
- public GUI() {
- initComponents();
- }
- /** This method is called from within the constructor to
- * initialize the form.
- * WARNING: Do NOT modify this code. The content of this method is
- * always regenerated by the Form Editor.
- */
- @SuppressWarnings("unchecked")
- // <editor-fold defaultstate="collapsed" desc="Generated Code">
- private void initComponents() {
- try
- {
- UIManager.setLookAndFeel(
- "com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");
- } catch (Exception e) {
- e.printStackTrace();
- }
- jLabel1 = new javax.swing.JLabel();
- jSeparator1 = new javax.swing.JSeparator();
- STARTBUTTON = new javax.swing.JButton();
- jTabbedPane1 = new javax.swing.JTabbedPane();
- jPanel1 = new javax.swing.JPanel();
- AreWeSpinning = new javax.swing.JRadioButton();
- WhatToSpin = new javax.swing.JComboBox();
- WhereToSpin = new javax.swing.JComboBox();
- jPanel2 = new javax.swing.JPanel();
- AreWeWeaving = new javax.swing.JRadioButton();
- WhatToWeave = new javax.swing.JComboBox();
- jPanel3 = new javax.swing.JPanel();
- AreWeMakingArmour = new javax.swing.JRadioButton();
- ArmourColor = new javax.swing.JComboBox();
- ArmourItem = new javax.swing.JComboBox();
- jPanel4 = new javax.swing.JPanel();
- AreWeDoingPottery = new javax.swing.JRadioButton();
- PotteryItem = new javax.swing.JComboBox();
- jLabel2 = new javax.swing.JLabel();
- jPanel5 = new javax.swing.JPanel();
- jTabbedPane2 = new javax.swing.JTabbedPane();
- jPanel6 = new javax.swing.JPanel();
- SmeltType = new javax.swing.JComboBox();
- SmeltItem = new javax.swing.JComboBox();
- AreWeSmelting = new javax.swing.JRadioButton();
- jLabel3 = new javax.swing.JLabel();
- jPanel7 = new javax.swing.JPanel();
- JewelType = new javax.swing.JComboBox();
- AreWeCuttingJewels = new javax.swing.JRadioButton();
- jPanel8 = new javax.swing.JPanel();
- AreWeTanning = new javax.swing.JRadioButton();
- ItemToTan = new javax.swing.JComboBox();
- jLabel4 = new javax.swing.JLabel();
- setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
- jLabel1.setFont(new java.awt.Font("LilyUPC", 3, 36)); // NOI18N
- jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
- jLabel1.setText("ZAIOCrafter");
- STARTBUTTON.setText("Start");
- STARTBUTTON.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- STARTBUTTONActionPerformed(evt);
- }
- });
- AreWeSpinning.setText("Spinning?");
- AreWeSpinning.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- AreWeSpinningActionPerformed(evt);
- }
- });
- WhatToSpin.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Wool", "Flax", "Magic tree roots", "Yak Hair" }));
- WhatToSpin.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- WhatToSpinActionPerformed(evt);
- }
- });
- WhereToSpin.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Camelot", "Lumbridge" }));
- WhereToSpin.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- WhereToSpinActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
- jPanel1.setLayout(jPanel1Layout);
- jPanel1Layout.setHorizontalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeSpinning))
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addGap(156, 156, 156)
- .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(WhereToSpin, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(WhatToSpin, 0, 184, Short.MAX_VALUE))))
- .addContainerGap(173, Short.MAX_VALUE))
- );
- jPanel1Layout.setVerticalGroup(
- jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel1Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeSpinning)
- .addGap(18, 18, 18)
- .addComponent(WhatToSpin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(WhereToSpin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(192, Short.MAX_VALUE))
- );
- jTabbedPane1.addTab("Spinning", jPanel1);
- AreWeWeaving.setText("Weaving?");
- AreWeWeaving.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- AreWeWeavingActionPerformed(evt);
- }
- });
- WhatToWeave.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Cloth", "Vegetable Stack", "Fruit basket", "Seaweed Net" }));
- WhatToWeave.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- WhatToWeaveActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
- jPanel2.setLayout(jPanel2Layout);
- jPanel2Layout.setHorizontalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeWeaving))
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addGap(158, 158, 158)
- .addComponent(WhatToWeave, javax.swing.GroupLayout.PREFERRED_SIZE, 189, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addContainerGap(166, Short.MAX_VALUE))
- );
- jPanel2Layout.setVerticalGroup(
- jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel2Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeWeaving)
- .addGap(31, 31, 31)
- .addComponent(WhatToWeave, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(205, Short.MAX_VALUE))
- );
- jTabbedPane1.addTab("Weaving", jPanel2);
- AreWeMakingArmour.setText("Making Armour?");
- AreWeMakingArmour.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- AreWeMakingArmourActionPerformed(evt);
- }
- });
- ArmourColor.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Green", "Blue", "Black" }));
- ArmourColor.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- ArmourColorActionPerformed(evt);
- }
- });
- ArmourItem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Vambraces", "Body", "Chaps" }));
- ArmourItem.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- ArmourItemActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
- jPanel3.setLayout(jPanel3Layout);
- jPanel3Layout.setHorizontalGroup(
- jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeMakingArmour))
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addGap(152, 152, 152)
- .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
- .addComponent(ArmourItem, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(ArmourColor, 0, 181, Short.MAX_VALUE))))
- .addContainerGap(180, Short.MAX_VALUE))
- );
- jPanel3Layout.setVerticalGroup(
- jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel3Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeMakingArmour)
- .addGap(37, 37, 37)
- .addComponent(ArmourColor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(ArmourItem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(173, Short.MAX_VALUE))
- );
- jTabbedPane1.addTab("Armour", jPanel3);
- AreWeDoingPottery.setText("Pottery?");
- AreWeDoingPottery.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- AreWeDoingPotteryActionPerformed(evt);
- }
- });
- PotteryItem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Pot", "Pie dish", "Bowl", "Plant pot"}));
- PotteryItem.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- PotteryItemActionPerformed(evt);
- }
- });
- jLabel2.setText("Start at Edgeville Bank");
- javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
- jPanel4.setLayout(jPanel4Layout);
- jPanel4Layout.setHorizontalGroup(
- jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeDoingPottery))
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addGap(138, 138, 138)
- .addComponent(PotteryItem, javax.swing.GroupLayout.PREFERRED_SIZE, 184, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addGap(175, 175, 175)
- .addComponent(jLabel2)))
- .addContainerGap(191, Short.MAX_VALUE))
- );
- jPanel4Layout.setVerticalGroup(
- jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel4Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeDoingPottery)
- .addGap(46, 46, 46)
- .addComponent(PotteryItem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel2)
- .addContainerGap(165, Short.MAX_VALUE))
- );
- jTabbedPane1.addTab("Pottery", jPanel4);
- SmeltType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Gold", "Opal", "Jade", "Red Topaz", "Saphire", "Emerald", "Ruby", "Diamond", "Onyx", "Dragonstone" }));
- SmeltType.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- SmeltTypeActionPerformed(evt);
- }
- });
- SmeltItem.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ring", "Necklace" }));
- SmeltItem.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- SmeltItemActionPerformed(evt);
- }
- });
- AreWeSmelting.setText("Smelting?");
- AreWeSmelting.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- AreWeSmeltingActionPerformed(evt);
- }
- });
- jLabel3.setText("Start at Al-Kharid Bank");
- javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
- jPanel6.setLayout(jPanel6Layout);
- jPanel6Layout.setHorizontalGroup(
- jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel6Layout.createSequentialGroup()
- .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel6Layout.createSequentialGroup()
- .addGap(111, 111, 111)
- .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
- .addComponent(SmeltItem, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addComponent(SmeltType, javax.swing.GroupLayout.Alignment.LEADING, 0, 230, Short.MAX_VALUE)))
- .addGroup(jPanel6Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeSmelting))
- .addGroup(jPanel6Layout.createSequentialGroup()
- .addGap(164, 164, 164)
- .addComponent(jLabel3)))
- .addContainerGap(147, Short.MAX_VALUE))
- );
- jPanel6Layout.setVerticalGroup(
- jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel6Layout.createSequentialGroup()
- .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel6Layout.createSequentialGroup()
- .addGap(30, 30, 30)
- .addComponent(SmeltType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(SmeltItem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addGroup(jPanel6Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeSmelting)))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
- .addComponent(jLabel3)
- .addContainerGap(135, Short.MAX_VALUE))
- );
- jTabbedPane2.addTab("Smelting", jPanel6);
- JewelType.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Opal", "Jade", "Red Topaz", "Saphire", "Emerald", "Ruby", "Diamond", "Onyx", "Dragonstone" }));
- JewelType.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- JewelTypeActionPerformed(evt);
- }
- });
- AreWeCuttingJewels.setText("Jewel Cutting?");
- AreWeCuttingJewels.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- AreWeCuttingJewelsActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
- jPanel7.setLayout(jPanel7Layout);
- jPanel7Layout.setHorizontalGroup(
- jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel7Layout.createSequentialGroup()
- .addGap(114, 114, 114)
- .addComponent(JewelType, 0, 230, Short.MAX_VALUE)
- .addGap(152, 152, 152))
- .addGroup(jPanel7Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeCuttingJewels)
- .addContainerGap(387, Short.MAX_VALUE))
- );
- jPanel7Layout.setVerticalGroup(
- jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel7Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeCuttingJewels)
- .addGap(39, 39, 39)
- .addComponent(JewelType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(147, Short.MAX_VALUE))
- );
- jTabbedPane2.addTab("Jewel Cutting", jPanel7);
- javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
- jPanel5.setLayout(jPanel5Layout);
- jPanel5Layout.setHorizontalGroup(
- jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel5Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 493, Short.MAX_VALUE)
- .addContainerGap())
- );
- jPanel5Layout.setVerticalGroup(
- jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel5Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 264, Short.MAX_VALUE)
- .addContainerGap())
- );
- jTabbedPane1.addTab("Jewerly", jPanel5);
- AreWeTanning.setText("Tanning?");
- AreWeTanning.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- AreWeTanningActionPerformed(evt);
- }
- });
- 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" }));
- ItemToTan.addActionListener(new java.awt.event.ActionListener() {
- public void actionPerformed(java.awt.event.ActionEvent evt) {
- ItemToTanActionPerformed(evt);
- }
- });
- javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
- jPanel8.setLayout(jPanel8Layout);
- jPanel8Layout.setHorizontalGroup(
- jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeTanning))
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addGap(116, 116, 116)
- .addComponent(ItemToTan, javax.swing.GroupLayout.PREFERRED_SIZE, 259, javax.swing.GroupLayout.PREFERRED_SIZE)))
- .addContainerGap(138, Short.MAX_VALUE))
- );
- jPanel8Layout.setVerticalGroup(
- jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(jPanel8Layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(AreWeTanning)
- .addGap(38, 38, 38)
- .addComponent(ItemToTan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addContainerGap(198, Short.MAX_VALUE))
- );
- jTabbedPane1.addTab("Tanning", jPanel8);
- jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
- jLabel4.setText("Premium Script from zbubblez || Contact: zbubblez@hotmail.com || Fill GUI fully for script to work properly");
- javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
- getContentPane().setLayout(layout);
- layout.setHorizontalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
- .addComponent(jSeparator1, javax.swing.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
- .addComponent(STARTBUTTON, javax.swing.GroupLayout.DEFAULT_SIZE, 538, Short.MAX_VALUE)
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 518, Short.MAX_VALUE)
- .addContainerGap())
- .addGroup(layout.createSequentialGroup()
- .addContainerGap()
- .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
- .addContainerGap())
- );
- layout.setVerticalGroup(
- layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
- .addGroup(layout.createSequentialGroup()
- .addComponent(jLabel1)
- .addGap(18, 18, 18)
- .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addGap(18, 18, 18)
- .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 314, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
- .addComponent(jLabel4)
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(STARTBUTTON, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE))
- );
- pack();
- }// </editor-fold>
- private void AreWeSpinningActionPerformed(java.awt.event.ActionEvent evt) {
- if(AreWeSpinning.isSelected())
- {
- DoSpinning = true;
- }
- }
- private void WhatToSpinActionPerformed(java.awt.event.ActionEvent evt) {
- SpinItem = WhatToSpin.toString();
- }
- private void WhereToSpinActionPerformed(java.awt.event.ActionEvent evt) {
- SpinArea = WhereToSpin.toString();
- }
- private void STARTBUTTONActionPerformed(java.awt.event.ActionEvent evt) {
- StartScript = true;
- if(AreWeSpinning.isSelected())
- {
- DoSpinning = true;
- }
- SpinItem = WhatToSpin.toString();
- SpinArea = WhereToSpin.toString();
- if(AreWeWeaving.isSelected())
- {
- Weaving = true;
- }
- WeaveItem = WhatToWeave.toString();
- if(AreWeMakingArmour.isSelected())
- {
- DoArmour = true;
- }
- AColor = ArmourColor.toString();
- Armour = ArmourItem.toString();
- if(AreWeDoingPottery.isSelected())
- {
- DoPottery = true;
- }
- ItemForPottery = PotteryItem.toString();
- if(AreWeSmelting.isSelected())
- {
- DoSmelting = true;
- }
- ItemToSmelt = SmeltItem.toString();
- TypeOfSmelt = SmeltType.toString();
- if(AreWeCuttingJewels.isSelected())
- {
- DoJewels = true;
- }
- Jewel = JewelType.toString();
- if(AreWeTanning.isSelected())
- {
- DoTanning = true;
- }
- TanItem = ItemToTan.toString();
- }
- private void AreWeWeavingActionPerformed(java.awt.event.ActionEvent evt) {
- if(AreWeWeaving.isSelected())
- {
- Weaving = true;
- }
- }
- private void WhatToWeaveActionPerformed(java.awt.event.ActionEvent evt) {
- WeaveItem = WhatToWeave.toString();
- }
- private void AreWeMakingArmourActionPerformed(java.awt.event.ActionEvent evt) {
- if(AreWeMakingArmour.isSelected())
- {
- DoArmour = true;
- }
- }
- private void ArmourColorActionPerformed(java.awt.event.ActionEvent evt) {
- AColor = ArmourColor.toString();
- }
- private void ArmourItemActionPerformed(java.awt.event.ActionEvent evt) {
- Armour = ArmourItem.toString();
- }
- private void AreWeDoingPotteryActionPerformed(java.awt.event.ActionEvent evt) {
- if(AreWeDoingPottery.isSelected())
- {
- DoPottery = true;
- }
- }
- private void PotteryItemActionPerformed(java.awt.event.ActionEvent evt) {
- ItemForPottery = PotteryItem.toString();
- }
- private void AreWeSmeltingActionPerformed(java.awt.event.ActionEvent evt) {
- if(AreWeSmelting.isSelected())
- {
- DoSmelting = true;
- }
- }
- private void SmeltTypeActionPerformed(java.awt.event.ActionEvent evt) {
- TypeOfSmelt = SmeltType.toString();
- }
- private void SmeltItemActionPerformed(java.awt.event.ActionEvent evt) {
- ItemToSmelt = SmeltItem.toString();
- }
- private void AreWeCuttingJewelsActionPerformed(java.awt.event.ActionEvent evt) {
- if(AreWeCuttingJewels.isSelected())
- {
- DoJewels = true;
- }
- }
- private void JewelTypeActionPerformed(java.awt.event.ActionEvent evt) {
- Jewel = JewelType.toString();
- }
- private void AreWeTanningActionPerformed(java.awt.event.ActionEvent evt) {
- if(AreWeTanning.isSelected())
- {
- DoTanning = true;
- }
- }
- private void ItemToTanActionPerformed(java.awt.event.ActionEvent evt) {
- TanItem = ItemToTan.toString();
- }
- /**
- * @param args the command line arguments
- */
- public void main(String args[]) {
- java.awt.EventQueue.invokeLater(new Runnable() {
- public void run() {
- new GUI().setVisible(true);
- }
- });
- }
- // Variables declaration - do not modify
- private javax.swing.JRadioButton AreWeCuttingJewels;
- private javax.swing.JRadioButton AreWeDoingPottery;
- private javax.swing.JRadioButton AreWeMakingArmour;
- private javax.swing.JRadioButton AreWeSmelting;
- private javax.swing.JRadioButton AreWeSpinning;
- private javax.swing.JRadioButton AreWeTanning;
- private javax.swing.JRadioButton AreWeWeaving;
- private javax.swing.JComboBox ArmourColor;
- private javax.swing.JComboBox ArmourItem;
- private javax.swing.JComboBox ItemToTan;
- private javax.swing.JComboBox JewelType;
- private javax.swing.JComboBox PotteryItem;
- private javax.swing.JButton STARTBUTTON;
- private javax.swing.JComboBox SmeltItem;
- private javax.swing.JComboBox SmeltType;
- private javax.swing.JComboBox WhatToSpin;
- private javax.swing.JComboBox WhatToWeave;
- private javax.swing.JComboBox WhereToSpin;
- private javax.swing.JLabel jLabel1;
- private javax.swing.JLabel jLabel2;
- private javax.swing.JLabel jLabel3;
- private javax.swing.JLabel jLabel4;
- private javax.swing.JPanel jPanel1;
- private javax.swing.JPanel jPanel2;
- private javax.swing.JPanel jPanel3;
- private javax.swing.JPanel jPanel4;
- private javax.swing.JPanel jPanel5;
- private javax.swing.JPanel jPanel6;
- private javax.swing.JPanel jPanel7;
- private javax.swing.JPanel jPanel8;
- private javax.swing.JSeparator jSeparator1;
- private javax.swing.JTabbedPane jTabbedPane1;
- private javax.swing.JTabbedPane jTabbedPane2;
- // End of variables declaration
- }
- }//END OF AIO CRAFTER!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement