joedezzy1

Main

Mar 4th, 2014
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 39.01 KB | None | 0 0
  1. package scripts.Merchanter;
  2.  
  3. import java.awt.BasicStroke;
  4. import java.awt.Color;
  5. import java.awt.Dimension;
  6. import java.awt.Font;
  7. import java.awt.Graphics;
  8. import java.awt.Graphics2D;
  9. import java.awt.Toolkit;
  10.  
  11. import org.tribot.api.General;
  12. import org.tribot.api.Timing;
  13. import org.tribot.api.input.Keyboard;
  14. import org.tribot.api.input.Mouse;
  15. import org.tribot.api2007.Camera;
  16. import org.tribot.api2007.GameTab;
  17. import org.tribot.api2007.GameTab.TABS;
  18. import org.tribot.api2007.Interfaces;
  19. import org.tribot.api2007.Inventory;
  20. import org.tribot.api2007.Login;
  21. import org.tribot.api2007.Login.STATE;
  22. import org.tribot.api2007.Player;
  23. import org.tribot.api2007.Walking;
  24. import org.tribot.api2007.types.RSInterfaceChild;
  25. import org.tribot.api2007.types.RSItem;
  26. import org.tribot.api2007.types.RSTile;
  27. import org.tribot.script.Script;
  28. import org.tribot.script.ScriptManifest;
  29. import org.tribot.script.interfaces.Painting;
  30.  
  31. @ScriptManifest(authors = { "JoeDezzy" }, category = "Merchanting", name = "REloaded 4.oh")
  32.  
  33. public class mercherFinal12_20_2013 extends Script implements Runnable, Painting{
  34.  
  35.    
  36.     public String merchantingItem;
  37.     public int buyingPrice;
  38.     public int sellingPrice;
  39.     public int itemID;
  40.     public int itemIDNoted;
  41.     public String buyingMessage;
  42.     public int startSellingSwitch;
  43.     public String sellingMessage;
  44.     public int DelayTo;
  45.     public int DelayFrom;
  46.     public int itemsSold = 0;
  47.     public boolean GUI_COMPLETE;
  48.     public boolean Selling;
  49.     public boolean Buying;
  50.     public RSTile OriginalTile;
  51.     public static int Coins = Inventory.getCount(995);
  52.    
  53.     public long Profit;
  54.     public int InitialCoins;
  55.     public int NextGoldAmount;
  56.     public int Exchanges;
  57.     public String BuyingOrSelling;
  58.     public String Status;
  59.     public long StartTime;
  60.      
  61.    
  62.     @Override
  63.     public void run() {
  64.         setLoginBotState(false);
  65.         GUIOPEN();
  66.        
  67.         println("Welcome to JDezzy's Flawless Merchanter");
  68.         println("You are merchanting item: " + merchantingItem);
  69.         println("For a price of: " + buyingPrice + " to " + sellingPrice);
  70.        
  71.         GetInitialValues();
  72.        
  73.         Mouse.setSpeed(General.random(80,95));
  74.        
  75.         StartTime = System.currentTimeMillis();
  76.        
  77.         DetermineStartAction();
  78.  
  79.     }
  80.    
  81.     private void DetermineStartAction() {
  82.  
  83.         if (WeNeedToBuy())
  84.         { println("We've switched to buying");
  85.             BuyingOrSelling = "Buying";
  86.                 Buying(); }
  87.        
  88.         else if (!WeNeedToBuy())
  89.         { println("We've switched to selling");
  90.             BuyingOrSelling = "Selling";
  91.                Selling(); }
  92.        
  93.     }
  94.  
  95.     private boolean WeNeedToBuy() {
  96.         int Coins1 = Inventory.getCount(995);
  97.         RSItem[] Item = Inventory.find(itemID);
  98.         RSItem[] ItemNoted = Inventory.find(itemIDNoted);
  99.        
  100.         if(Coins1 >= buyingPrice && (Item.length + ItemNoted.length == 0))
  101.             return true;
  102.         else if(Coins1 <= startSellingSwitch)
  103.             return false;
  104.        
  105.         else return false;
  106.     }
  107.  
  108.     private void GetInitialValues() {
  109.        
  110.         if(Inventory.find(995) != null)
  111.             InitialCoins = Inventory.getCount(995);
  112.          else
  113.             InitialCoins = 0;
  114.        
  115.         OriginalTile = Player.getRSPlayer().getPosition();
  116.         Exchanges = 0;
  117.         Profit = 0;
  118.         BuyingOrSelling = "Waiting...";
  119.     }
  120.  
  121.     private void Selling() { //complete
  122.            
  123.             if(WeNeedToBuy())
  124.                 Buying();
  125.        
  126.                 AntiBan1();
  127.            
  128.                     OriginalTileCheck();
  129.            
  130.             BuyingOrSelling = "Selling";
  131.             Status = "Advertising";
  132.            
  133.                     Advertise("selling");
  134.                
  135.                 FirstTradeScreen("selling");
  136.            
  137.             WaitForAcceptance("selling");
  138.  
  139.             if(SCpresent())
  140.         SecondTradeScreenSelling();
  141.        
  142.         if(!FCpresent() && !SCpresent())
  143.             { OriginalTileCheck();
  144.                 Selling();}
  145.     }
  146.      
  147.     private void TwistCamera() {
  148.        
  149.         int antibanstart = General.random(1, 50);
  150.         int antibanstart2 = General.random(1, 300);
  151.        
  152.         if(antibanstart == 5 || antibanstart == 33 || antibanstart == 27)
  153.             Camera.setCameraRotation(General.random(10, 300));
  154.        
  155.          else if(antibanstart2 == General.random(1, 200))
  156.          { GameTab.open(TABS.FRIENDS);
  157.                 sleep(800, 1000);
  158.                     GameTab.open(TABS.INVENTORY); }
  159.        
  160.     }
  161.    
  162.     private void TypeMessageAndCheckForTradeBuying(){
  163.            
  164.                 Thread TradeCheck = new Thread(new TradeRequestCheck());
  165.                 TradeCheck.start();
  166.                
  167.                 if(WeCanType())
  168.                     Keyboard.typeSend(buyingMessage);
  169.                
  170.                 Thread TradeCheck2 = new Thread(new TradeRequestCheck());
  171.                 TradeCheck2.start();
  172.                
  173.                 Keyboard.pressEnter();
  174.         }
  175.    
  176.     private boolean WeCanType() {
  177.         RSInterfaceChild chatboxinterface = Interfaces.get(137, 1);
  178.        
  179.         if((!chatboxinterface.getText().contains("white") &&
  180.                         !chatboxinterface.getText().contains("cyan") &&
  181.                         !chatboxinterface.getText().contains("red") &&
  182.                         !chatboxinterface.getText().contains("glow") &&
  183.                         !chatboxinterface.getText().contains("green")))
  184.            
  185.                         return true;
  186.        
  187.         else return false;
  188.     }
  189.  
  190.     private void TypeMessageAndCheckForTradeSelling() {
  191.            
  192.                 Thread TradeCheck = new Thread(new TradeRequestCheck());
  193.                 TradeCheck.start();
  194.    
  195.                 if(WeCanType())
  196.                     Keyboard.typeSend(sellingMessage);
  197.                
  198.                 Thread TradeCheck2 = new Thread(new TradeRequestCheck());
  199.                 TradeCheck2.start();
  200.                
  201.                 Keyboard.pressEnter();     
  202.     }
  203.    
  204.     private void CheckForError() {
  205.        
  206.             if(Interfaces.isInterfaceValid(241))
  207.             { RSInterfaceChild RandomEvent = Interfaces.get(241, 3);
  208.                 RandomEvent.click(); }
  209.        
  210.             if(Interfaces.isInterfaceValid(240))
  211.             { RSInterfaceChild RandomEvent = Interfaces.get(240, 3);
  212.                 RandomEvent.click(); }
  213.        
  214.             if(Login.getLoginState() == STATE.LOGINSCREEN)
  215.             {   setLoginBotState(true);
  216.                     while(Login.getLoginState() == STATE.LOGINSCREEN)
  217.                     {   sleep(300);    }
  218.                 }
  219.            
  220.             if(GameTab.getOpen() != TABS.INVENTORY)
  221.                 GameTab.open(TABS.INVENTORY);
  222.     }
  223.    
  224.     private void Buying(){//complete
  225.        
  226.         if(!WeNeedToBuy())
  227.             Selling();
  228.        
  229.                 OriginalTileCheck();
  230.                     AntiBan2();
  231.                         BuyingOrSelling = "Buying";
  232.                             Status = "Advertising";
  233.                    
  234.                 Advertise("buying");
  235.                
  236.                     FirstTradeScreen("buying");
  237.                        
  238.                         WaitForAcceptance("buying");
  239.                
  240.                             if(SCpresent())
  241.                                     SecondTradeScreenBuying();
  242.                                  else
  243.                                      { OriginalTileCheck();
  244.                                             Buying(); }
  245.                             OriginalTileCheck();
  246.                     Buying();
  247.         }
  248.              
  249.  
  250.     private void FirstTradeScreen(String action) {
  251.        
  252.         switch(action){
  253.        
  254.         case "buying":
  255.            
  256.             if (FCpresent())
  257.             { Status = "First Screen";
  258.                 WaitForOffer();
  259.                     OfferCoinsOrDecline(); }//sleep to wait for interface 137 to pop up    
  260.             else
  261.                 DetermineStartAction();
  262.            
  263.                    
  264.         case "selling":
  265.            
  266.             if (FCpresent())
  267.             { Status = "First Screen";
  268.                 WaitForOffer();
  269.                     OfferItemOrDecline(); }
  270.             else
  271.                 DetermineStartAction();
  272.         }
  273.     }
  274.    
  275.     private void OfferItemOrDecline() {
  276.        
  277.         if(FCpresent())
  278.             if(FirstTradeScreen.CheckForOffer(Coins, Coins))
  279.                 FirstTradeScreen.OfferItem(itemID, itemIDNoted);
  280.        
  281.                     else
  282.                         TradeScreenHandeler.DeclineFirstScreen();
  283.     }
  284.    
  285.     private boolean SCpresent() {
  286.         if(Interfaces.isInterfaceValid(334))
  287.         return true;
  288.        
  289.         else return false;
  290.     }
  291.    
  292.     private void WaitForAcceptance(String action) {
  293.         println("Waiting for them to accept");
  294.        
  295.         AcceptFC();
  296.        
  297.         if(FCpresent())
  298.             while(FCpresent())
  299.                
  300.                 switch(action)
  301.                 {
  302.                
  303.                     case "buying":
  304.                        
  305.                             if(FirstTradeScreen.CheckForOffer(itemID, itemIDNoted))
  306.                             { TradeScreenHandeler.AcceptFirstScreen();
  307.                                 sleep(2000,3000);}
  308.                            
  309.                             else
  310.                                
  311.                                 sleep(5000,7000);
  312.                            
  313.                                     if(FCpresent() && !FirstTradeScreen.CheckForOffer(Coins, Coins))
  314.                                         TradeScreenHandeler.DeclineFirstScreen();
  315.                            
  316.                        
  317.                     case "selling":
  318.                        
  319.                             if(FirstTradeScreen.CheckForOffer(Coins, Coins))
  320.                             { TradeScreenHandeler.AcceptFirstScreen();
  321.                                 sleep(2000,3000); }
  322.                            
  323.                             else
  324.                                
  325.                                 sleep(5000,7000);
  326.                                     if(FCpresent() && !FirstTradeScreen.CheckForOffer(Coins, Coins))
  327.                                         TradeScreenHandeler.DeclineFirstScreen();
  328.                 }
  329.            
  330.    
  331.          else
  332.             DetermineStartAction();
  333.        
  334.     }
  335.    
  336.     private void AcceptFC() {
  337.         Mouse.setSpeed(General.random(100,115));
  338.         TradeScreenHandeler.AcceptFirstScreen();
  339.             Mouse.setSpeed(General.random(80,95));
  340.         sleep(2000,3000);
  341.     }
  342.  
  343.     private void OfferCoinsOrDecline() {
  344.        
  345.         if(Interfaces.isInterfaceValid(335) && FirstTradeScreen.CheckForOffer(itemID, itemIDNoted)) //offers coins if what we want is present
  346.             { println("Offering coins");
  347.                 FirstTradeScreen.OfferCoins();
  348.                     sleep(1500,3000);
  349.                                     TypeAmount();}
  350.            
  351.          else
  352.          { if(!FirstTradeScreen.CheckForOffer(itemID, itemIDNoted))//if not what we want, declines
  353.              TradeScreenHandeler.DeclineFirstScreen();
  354.                 OriginalTileCheck();
  355.                             Buying(); }
  356.  
  357.     }
  358.    
  359.     private void TypeAmount() {
  360.        
  361.         if(FCpresent() && Interfaces.isInterfaceValid(137))
  362.         { //Enters price you wanna buy
  363.             String BuyingPrice = Integer.toString(buyingPrice);
  364.                 Keyboard.typeSend(BuyingPrice); }
  365.        
  366.         else    
  367.                 if(FCpresent() && FirstTradeScreen.CheckForOffer(itemID, itemIDNoted))
  368.                 { println("Re-offering coins");
  369.                     FirstTradeScreen.OfferCoins();
  370.                      sleep(2000,3000);
  371.                        TypeAmount(); }
  372.                 else
  373.                 { if(FCpresent())
  374.                     { TradeScreenHandeler.DeclineFirstScreen();
  375.                         sleep(1000,1660); }
  376.                
  377.                     OriginalTileCheck();
  378.                     Buying(); //Re-loops to buying if none of the above is true
  379.                 }
  380.     }
  381.    
  382.     private boolean FCpresent() {
  383.         if(Interfaces.isInterfaceValid(335))
  384.             return true;
  385.        
  386.         else return false;
  387.     }
  388.    
  389.     private void WaitForOffer() {
  390.         while(FCpresent() && !FirstTradeScreen.CheckForAnOffer()) //when in trade. sleep until they offer
  391.             sleep(300);
  392.     }
  393.    
  394.     private void Advertise(String action) {
  395.        
  396.         if(action.equals("buying"))
  397.            
  398.             while(!Interfaces.isInterfaceValid(335) && !Interfaces.isInterfaceValid(334))
  399.             { //complete. Loops Advert. message until traded
  400.                 OriginalTileCheck();
  401.                   CheckForError();
  402.                      TypeMessageAndCheckForTradeBuying();
  403.                        OriginalTileCheck();
  404.                           TwistCamera();
  405.                              OriginalTileCheck();
  406.                                  sleep(DelayTo, DelayFrom); }
  407.            
  408.          else if(action.equals("selling"))
  409.              
  410.             while(!Interfaces.isInterfaceValid(335) && !Interfaces.isInterfaceValid(334))
  411.             { OriginalTileCheck();
  412.                 CheckForError();           
  413.                     TypeMessageAndCheckForTradeSelling();
  414.                         OriginalTileCheck();
  415.                             TwistCamera();
  416.                                 sleep(DelayTo, DelayFrom); }       
  417.     }
  418.    
  419.     private void SecondTradeScreenBuying() { //complete
  420.        
  421.         Status = "Checking trade"; 
  422.        
  423.                 if(Interfaces.isInterfaceValid(334))
  424.                    
  425.                     if(SecondTradeScreen.CheckForCorrectItem(merchantingItem))
  426.                     {  TradeScreenHandeler.AcceptSecondScreen();
  427.                    
  428.                             while(Interfaces.isInterfaceValid(334))
  429.                             { Mouse.click(1);
  430.                                 sleep(3000,4000); }
  431.                            
  432.                             SuccessMesage();
  433.                             Buying(); }
  434.                    
  435.                     else
  436.                     { if(Interfaces.isInterfaceValid(334))
  437.                        
  438.                         { TradeScreenHandeler.DeclineSecondScreen();
  439.                                     ScammerMessage(); }
  440.                    
  441.                         Buying(); }
  442.         }
  443.  
  444.     private void ScammerMessage() {
  445.         println("Scammer");
  446.         String [] ScammerMessages = {"nope","wtf","lol kid","??", "nice", "almost got me lol", "You're cool dude"};
  447.         Keyboard.typeSend(ScammerMessages[General.random(0,4)]);
  448.         sleep(4000,5000);
  449.     }
  450.  
  451.     private void SuccessMesage() {
  452.         println("Successful trade");
  453.         String[] ThankMessages = {"ty", "thanks", "ty:)", ":)", "ty dude", "tyyyy"};
  454.         Keyboard.typeSend(ThankMessages[General.random(0,5)]);
  455.         Exchanges = Exchanges + 1;
  456.    
  457.     }
  458.            
  459.     private void SecondTradeScreenSelling() { //complete
  460.                
  461.         String CoinAmount = GetSecondScreenText();
  462.             Status = "Checking trade";
  463.            
  464.             if(SCpresent())
  465.                 if(SecondTradeScreen.CheckForCorrectItem(CoinAmount))
  466.                 { TradeScreenHandeler.AcceptSecondScreen();
  467.                         while(Interfaces.isInterfaceValid(334))
  468.                             { Mouse.click(1);
  469.                                 sleep(3000,4000); }
  470.                        
  471.                         SuccessMesage();
  472.                        
  473.                         SoldAnItem();
  474.                        
  475.                         Selling();
  476.                        
  477.                     } else
  478.                         if(SCpresent())
  479.                             TradeScreenHandeler.DeclineSecondScreen();
  480.                        
  481.                             ScammerMessage();
  482.                             Selling();
  483.         }
  484.    
  485.     private String GetSecondScreenText() {
  486.         String CoinAmount = Integer.toString(sellingPrice);
  487.        
  488.         if(CoinAmount.length() == 5){
  489.             StringBuffer sub1 = new StringBuffer(CoinAmount);
  490.             CoinAmount = sub1.insert(2, ",").toString();
  491.         }
  492.        
  493.         else if (CoinAmount.length() == 6){
  494.             StringBuffer sub1 = new StringBuffer(CoinAmount);
  495.             CoinAmount = sub1.insert(3, ",").toString();
  496.         }
  497.        
  498.         else if (CoinAmount.length() == 7){
  499.             StringBuffer sub1 = new StringBuffer(CoinAmount);
  500.             String sub2 = sub1.insert(1, ",").toString();
  501.             StringBuffer sub3 = new StringBuffer(sub2);
  502.             String sub4 = sub3.insert(5, ",").toString();
  503.             CoinAmount = sub4;
  504.         }
  505.        
  506.         return CoinAmount; 
  507.     }
  508.  
  509.     private void SoldAnItem() {
  510.         itemsSold = itemsSold + 1;
  511.         NextGoldAmount = Inventory.getCount(995);
  512.         Profit = NextGoldAmount - InitialCoins;
  513.         Exchanges = Exchanges + 1;
  514.  
  515.     }
  516.    
  517.     private void OriginalTileCheck() {//Complete. It keeps saying wrong area but its wrong. check this
  518.              if (!Player.getRSPlayer().getPosition().equals(OriginalTile))
  519.              { Walking.walkTo(OriginalTile);
  520.                 sleep(General.random(1403,3064)); }
  521.     }
  522.    
  523.     private void AntiBan1() {//complete
  524.            
  525.             int antibanstart = General.random(1, 10);
  526.            
  527.             if(antibanstart == 3 || antibanstart == 7 || antibanstart == 8)
  528.             { println("AntiBan 1 Initiated");
  529.                 Camera.setCameraAngle(General.random(0,100));
  530.                   Camera.setCameraRotation(General.random(0,300));
  531.                     Mouse.click(General.random(25, 495), General.random(37, 301), 3);
  532.                         sleep(General.random(500,1500));
  533.                             Mouse.move(General.random(564, 721), General.random(211, 451)); }
  534.         }
  535.        
  536.     private void AntiBan2(){//complete
  537.             int antibanstart = General.random(1, 10);
  538.            
  539.             if(antibanstart == 3 || antibanstart == 7 || antibanstart == 8)
  540.             { println("AntiBan 2 Initiated");
  541.                 GameTab.open(TABS.STATS);
  542.                   Mouse.move(General.random(565,720), General.random(227,411));
  543.                     sleep(1350, 2406);
  544.                         GameTab.open(TABS.INVENTORY); }
  545.     }
  546.    
  547.     public void GUIOPEN(){//complete
  548.              
  549.                 GUI1 GUI = new GUI1();
  550.                
  551.                
  552.                 Dimension screensize = Toolkit.getDefaultToolkit().getScreenSize();
  553.                 int screenW = (screensize.width) / 2;
  554.                 int screenH = (screensize.height) / 2;
  555.    
  556.                 GUI.setVisible(true);
  557.    
  558.                 GUI.setLocation((screenW / 2), (screenH / 2));
  559.    
  560.                 while (!GUI_COMPLETE)
  561.                     sleep(300);
  562.                
  563.     }
  564.          
  565.     public class GUI1 extends javax.swing.JFrame {//complete
  566.    
  567.            
  568.            
  569.             /**
  570.          *
  571.          */
  572.         private static final long serialVersionUID = 1L;
  573.             public GUI1() {
  574.                
  575.                 initComponents();
  576.             }
  577.                              
  578.             private void initComponents() {
  579.    
  580.                 MerchantingItem = new javax.swing.JTextField();
  581.                 ItemID = new javax.swing.JTextField();
  582.                 jLabel7 = new javax.swing.JLabel();
  583.                 BuyingPrice = new javax.swing.JTextField();
  584.                 SellingPrice = new javax.swing.JTextField();
  585.                 StartButton = new javax.swing.JToggleButton();
  586.                 jLabel13 = new javax.swing.JLabel();
  587.                 jLabel14 = new javax.swing.JLabel();
  588.                 jLabel15 = new javax.swing.JLabel();
  589.                 jLabel16 = new javax.swing.JLabel();
  590.                 jLabel17 = new javax.swing.JLabel();
  591.                 BuyingMessage = new javax.swing.JTextField();
  592.                 delayFrom = new javax.swing.JTextField();
  593.                 SellingMessage = new javax.swing.JTextField();
  594.                 jLabel18 = new javax.swing.JLabel();
  595.                 jLabel19 = new javax.swing.JLabel();
  596.                 jLabel20 = new javax.swing.JLabel();
  597.                 jLabel21 = new javax.swing.JLabel();
  598.                 jLabel22 = new javax.swing.JLabel();
  599.                 jSeparator1 = new javax.swing.JSeparator();
  600.                 delayTo = new javax.swing.JTextField();
  601.                 jLabel23 = new javax.swing.JLabel();
  602.                 jLabel24 = new javax.swing.JLabel();
  603.                 jLabel26 = new javax.swing.JLabel();
  604.                 ItemIDNoted = new javax.swing.JTextField();
  605.                 jLabel1 = new javax.swing.JLabel();
  606.                 SwitchToSellAmount = new javax.swing.JTextField();
  607.                 jLabel2 = new javax.swing.JLabel();
  608.                 jSeparator2 = new javax.swing.JSeparator();
  609.    
  610.                 setAutoRequestFocus(false);
  611.                 setBackground(new java.awt.Color(0, 153, 204));
  612.                 setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
  613.                
  614.                
  615.                 MerchantingItem.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  616.                 MerchantingItem.setName(""); // NOI18N
  617.                 MerchantingItem.setText("Abyssal whip");
  618.                 MerchantingItem.addActionListener(new java.awt.event.ActionListener() {
  619.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  620.                     }
  621.                 });
  622.                
  623.                 ItemID.setText("4151");
  624.                 ItemID.addActionListener(new java.awt.event.ActionListener() {
  625.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  626.                     }
  627.                 });
  628.    
  629.                 jLabel7.setFont(new java.awt.Font("Rosewood Std Regular", 0, 36)); // NOI18N
  630.                 jLabel7.setText("JoeDezzy's AutoMErch GUI:");
  631.                 jLabel7.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
  632.                
  633.                 BuyingPrice.setText("1630000");
  634.                 BuyingPrice.addActionListener(new java.awt.event.ActionListener() {
  635.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  636.                     }
  637.                 });
  638.                
  639.                 SellingPrice.setText("1670000");
  640.                 SellingPrice.addActionListener(new java.awt.event.ActionListener() {
  641.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  642.                     }
  643.                 });
  644.    
  645.                 StartButton.setText("Get Rich");
  646.                 StartButton.addActionListener(new java.awt.event.ActionListener() {
  647.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  648.                         StartButtonActionPerformed(evt);
  649.                     }
  650.                 });
  651.    
  652.                 jLabel13.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
  653.                 jLabel13.setText("Enter your customized messages here. Include effects with semicolons.");
  654.    
  655.                 jLabel14.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  656.                 jLabel14.setText("Message Delay (0 to 1 if no delay)");
  657.    
  658.                 jLabel15.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  659.                 jLabel15.setText("Buying Message:");
  660.    
  661.                 jLabel16.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  662.                 jLabel16.setText("Selling Message:");
  663.    
  664.                 jLabel17.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  665.                 jLabel17.setText("From:");
  666.    
  667.                 BuyingMessage.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  668.                 BuyingMessage.setName(""); // NOI18N
  669.                 BuyingMessage.setText("cyan:shake:buying whip 1630k!! - prods");
  670.                 BuyingMessage.addActionListener(new java.awt.event.ActionListener() {
  671.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  672.                     }
  673.                 });
  674.    
  675.                 delayFrom.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  676.                 delayFrom.setName(""); // NOI18N
  677.                 delayFrom.setText("4000");
  678.                 delayFrom.addActionListener(new java.awt.event.ActionListener() {
  679.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  680.                     }
  681.                 });
  682.    
  683.                 SellingMessage.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  684.                 SellingMessage.setName(""); // NOI18N
  685.                 SellingMessage.setText("white:wave:selling whip 1670k!! - prods");
  686.                 SellingMessage.addActionListener(new java.awt.event.ActionListener() {
  687.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  688.                     }
  689.                 });
  690.    
  691.                 jLabel18.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  692.                 jLabel18.setText("Item to merchant:");
  693.    
  694.                 jLabel19.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  695.                 jLabel19.setText("Buying price:");
  696.    
  697.                 jLabel20.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  698.                 jLabel20.setText("Selling price:");
  699.    
  700.                 jLabel21.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  701.                 jLabel21.setText("Item ID:");
  702.    
  703.                 jLabel22.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
  704.                 jLabel22.setText("Enter your item attributes here.");
  705.    
  706.                 delayTo.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  707.                 delayTo.setName(""); // NOI18N
  708.                 delayTo.setText("3002");
  709.                 delayTo.addActionListener(new java.awt.event.ActionListener() {
  710.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  711.                     }
  712.                 });
  713.    
  714.                 jLabel23.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  715.                 jLabel23.setText("To:");
  716.    
  717.                 jLabel24.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  718.                 jLabel24.setText("Milliseconds");
  719.    
  720.                 jLabel26.setFont(new java.awt.Font("Tahoma", 0, 10)); // NOI18N
  721.                 jLabel26.setText("Noted:");
  722.    
  723.                 ItemIDNoted.setText("4152");
  724.                 ItemIDNoted.addActionListener(new java.awt.event.ActionListener() {
  725.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  726.                     }
  727.                 });
  728.    
  729.                 jLabel1.setText("Start to sell at:");
  730.    
  731.                 SwitchToSellAmount.setCursor(new java.awt.Cursor(java.awt.Cursor.TEXT_CURSOR));
  732.                 SwitchToSellAmount.setName(""); // NOI18N
  733.                 SwitchToSellAmount.setText("1629999");
  734.                 SwitchToSellAmount.addActionListener(new java.awt.event.ActionListener() {
  735.                     public void actionPerformed(java.awt.event.ActionEvent evt) {
  736.                     }
  737.                 });
  738.    
  739.                 jLabel2.setText("GP left over");
  740.    
  741.                 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  742.                 getContentPane().setLayout(layout);
  743.                 layout.setHorizontalGroup(
  744.                     layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  745.                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
  746.                         .addGap(96, 96, 96)
  747.                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  748.                             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
  749.                                 .addComponent(jLabel18)
  750.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  751.                                 .addComponent(MerchantingItem, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)
  752.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
  753.                                 .addComponent(jLabel21)
  754.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  755.                                 .addComponent(ItemID, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
  756.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  757.                                 .addComponent(jLabel26)
  758.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  759.                                 .addComponent(ItemIDNoted, javax.swing.GroupLayout.PREFERRED_SIZE, 50, javax.swing.GroupLayout.PREFERRED_SIZE)
  760.                                 .addGap(128, 128, 128))
  761.                             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
  762.                                 .addComponent(jLabel19)
  763.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  764.                                 .addComponent(BuyingPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
  765.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 47, Short.MAX_VALUE)
  766.                                 .addComponent(jLabel20)
  767.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  768.                                 .addComponent(SellingPrice, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)
  769.                                 .addGap(126, 126, 126))
  770.                             .addGroup(layout.createSequentialGroup()
  771.                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  772.                                     .addGroup(layout.createSequentialGroup()
  773.                                         .addGap(16, 16, 16)
  774.                                         .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 408, javax.swing.GroupLayout.PREFERRED_SIZE))
  775.                                     .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 468, javax.swing.GroupLayout.PREFERRED_SIZE))
  776.                                 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
  777.                     .addComponent(jSeparator1, javax.swing.GroupLayout.Alignment.TRAILING)
  778.                     .addGroup(layout.createSequentialGroup()
  779.                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  780.                             .addGroup(layout.createSequentialGroup()
  781.                                 .addGap(130, 130, 130)
  782.                                 .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 408, javax.swing.GroupLayout.PREFERRED_SIZE))
  783.                             .addGroup(layout.createSequentialGroup()
  784.                                 .addGap(129, 129, 129)
  785.                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  786.                                     .addComponent(jLabel15)
  787.                                     .addComponent(jLabel16))
  788.                                 .addGap(8, 8, 8)
  789.                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  790.                                     .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
  791.                                         .addComponent(BuyingMessage)
  792.                                         .addComponent(SellingMessage, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE))
  793.                                     .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
  794.                                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  795.                                             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
  796.                                                 .addGap(22, 22, 22)
  797.                                                 .addComponent(jLabel14)
  798.                                                 .addGap(15, 15, 15))
  799.                                             .addGroup(layout.createSequentialGroup()
  800.                                                 .addComponent(jLabel17)
  801.                                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  802.                                                 .addComponent(delayFrom, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
  803.                                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  804.                                                 .addComponent(jLabel23)
  805.                                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  806.                                                 .addComponent(delayTo, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
  807.                                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  808.                                                 .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))
  809.                                         .addGroup(layout.createSequentialGroup()
  810.                                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
  811.                                                 .addComponent(StartButton, javax.swing.GroupLayout.PREFERRED_SIZE, 112, javax.swing.GroupLayout.PREFERRED_SIZE)
  812.                                                 .addGroup(layout.createSequentialGroup()
  813.                                                     .addComponent(jLabel1)
  814.                                                     .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  815.                                                     .addComponent(SwitchToSellAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)))
  816.                                             .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  817.                                             .addComponent(jLabel2))))))
  818.                         .addGap(0, 0, Short.MAX_VALUE))
  819.                     .addComponent(jSeparator2, javax.swing.GroupLayout.Alignment.TRAILING)
  820.                 );
  821.                 layout.setVerticalGroup(
  822.                     layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  823.                     .addGroup(layout.createSequentialGroup()
  824.                         .addContainerGap()
  825.                         .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
  826.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  827.                         .addComponent(jLabel22)
  828.                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  829.                             .addGroup(layout.createSequentialGroup()
  830.                                 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  831.                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  832.                                     .addComponent(ItemID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  833.                                     .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
  834.                                     .addComponent(ItemIDNoted, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  835.                                     .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)))
  836.                             .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
  837.                                 .addGap(11, 11, 11)
  838.                                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  839.                                     .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
  840.                                     .addComponent(MerchantingItem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
  841.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  842.                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
  843.                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  844.                                 .addComponent(BuyingPrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  845.                                 .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
  846.                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  847.                                 .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
  848.                                 .addComponent(SellingPrice, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
  849.                         .addGap(16, 16, 16)
  850.                         .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
  851.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  852.                         .addComponent(jLabel13)
  853.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  854.                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  855.                             .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
  856.                             .addComponent(BuyingMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  857.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  858.                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  859.                             .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
  860.                             .addComponent(SellingMessage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  861.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  862.                         .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
  863.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  864.                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  865.                             .addComponent(delayFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  866.                             .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
  867.                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  868.                                 .addComponent(delayTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  869.                                 .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
  870.                             .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE))
  871.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  872.                         .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
  873.                         .addGap(2, 2, 2)
  874.                         .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  875.                             .addComponent(SwitchToSellAmount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  876.                             .addComponent(jLabel1)
  877.                             .addComponent(jLabel2))
  878.                         .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  879.                         .addComponent(StartButton)
  880.                         .addContainerGap(21, Short.MAX_VALUE))
  881.                 );
  882.    
  883.                 pack();
  884.             }// </editor-fold>                                                                  
  885.    
  886.             private void StartButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
  887.                 merchantingItem = MerchantingItem.getText().toString();
  888.                 buyingPrice = Integer.parseInt(BuyingPrice.getText().toString());
  889.                 sellingPrice = Integer.parseInt(SellingPrice.getText().toString());
  890.                 itemID = Integer.parseInt(ItemID.getText().toString());
  891.                 itemIDNoted = Integer.parseInt(ItemIDNoted.getText().toString());
  892.                 buyingMessage = BuyingMessage.getText().toString();
  893.                 sellingMessage = SellingMessage.getText().toString();
  894.                 DelayTo = Integer.parseInt(delayTo.getText().toString());
  895.                 DelayFrom = Integer.parseInt(delayFrom.getText().toString());
  896.                 startSellingSwitch = Integer.parseInt(SwitchToSellAmount.getText().toString());
  897.             GUI_COMPLETE = true;
  898.             }                                          
  899.    
  900.                                                              
  901.    
  902.            
  903.    
  904.             // Variables declaration - do not modify                    
  905.             private javax.swing.JTextField BuyingMessage;
  906.             private javax.swing.JTextField BuyingPrice;
  907.             private javax.swing.JTextField ItemID;
  908.             private javax.swing.JTextField ItemIDNoted;
  909.             private javax.swing.JTextField MerchantingItem;
  910.             private javax.swing.JTextField SellingMessage;
  911.             private javax.swing.JTextField SellingPrice;
  912.             private javax.swing.JToggleButton StartButton;
  913.             private javax.swing.JTextField SwitchToSellAmount;
  914.             private javax.swing.JTextField delayFrom;
  915.             private javax.swing.JTextField delayTo;
  916.             private javax.swing.JLabel jLabel1;
  917.             private javax.swing.JLabel jLabel13;
  918.             private javax.swing.JLabel jLabel14;
  919.             private javax.swing.JLabel jLabel15;
  920.             private javax.swing.JLabel jLabel16;
  921.             private javax.swing.JLabel jLabel17;
  922.             private javax.swing.JLabel jLabel18;
  923.             private javax.swing.JLabel jLabel19;
  924.             private javax.swing.JLabel jLabel2;
  925.             private javax.swing.JLabel jLabel20;
  926.             private javax.swing.JLabel jLabel21;
  927.             private javax.swing.JLabel jLabel22;
  928.             private javax.swing.JLabel jLabel23;
  929.             private javax.swing.JLabel jLabel24;
  930.             private javax.swing.JLabel jLabel26;
  931.             private javax.swing.JLabel jLabel7;
  932.             private javax.swing.JSeparator jSeparator1;
  933.             private javax.swing.JSeparator jSeparator2;
  934.             // End of variables declaration  
  935.         }
  936.    
  937.        
  938.     private final Color color1 = new Color(0, 0, 0);
  939.     private final Color color2 = new Color(204, 204, 204);
  940.     private final Color color3 = new Color(255, 255, 255);
  941.    
  942.     private final BasicStroke stroke1 = new BasicStroke(1);
  943.    
  944.     private final Font font1 = new Font("Arial", 0, 12);
  945.     private final Font font2 = new Font("BatangChe", 1, 23);
  946.    
  947.     @Override
  948.     public void onPaint(Graphics g1) {
  949.            
  950.         Profit = (sellingPrice - buyingPrice) * itemsSold;
  951.         Graphics2D g = (Graphics2D)g1;
  952.         g.setColor(color1);
  953.         g.fillRect(260, 333, 279, 124);
  954.         g.setColor(color2);
  955.         g.setStroke(stroke1);
  956.         g.drawRect(260, 333, 279, 124);
  957.         g.setFont(font1);
  958.         g.setColor(color3);
  959.         g.drawString("Item: " + merchantingItem, 267, 354);
  960.         g.drawString("Buying Price: " + buyingPrice, 267, 368);
  961.         g.drawString("Selling Price: " + sellingPrice, 267, 384);
  962.         g.drawString("Currently: " + BuyingOrSelling, 267, 398);
  963.         g.drawString("Profit: " + Profit, 268, 412);
  964.         g.drawString("Exchanges: " + Exchanges, 268, 427);
  965.        
  966.         long timeRan = System.currentTimeMillis() - StartTime;
  967.         g.drawString("Time running: " + Timing.msToString(timeRan), 269, 445);
  968.         g.setFont(font2);
  969.         g.setColor(color1);
  970.         g.drawString("STATUS: " + Status, 13, 368);
  971.     }
  972.    
  973.     }
Advertisement
Add Comment
Please, Sign In to add comment