public static void plantFlower(String flowerCombo)
        {
            DialogResult confirmation;

            //check if plant button is (0,0). True means continue, not (0,0)
            if (BotFunctions.checkCoordinates("1"))
            {
                confirmation = MessageBox.Show("Press OK when ready to begin!", "", MessageBoxButtons.OKCancel);
                if (confirmation.Equals(DialogResult.Cancel))
                {
                    return;
                }
                Thread.Sleep(2000);
                getCoords("1");
                BotFunctions.MoveCursor(x, y);
                BotFunctions.DoMouseClick();
                Thread.Sleep(2000);
                checkBeans("2");

                char[] beans = flowerCombo.ToCharArray();
                selectBeans(flowerCombo, beans);
                pressPlantButton();
                Thread.Sleep(1500);
                MessageBox.Show("Done!");
            }
            else
            {
                BotFunctions.updateCoordinates("1");//update the plant flower button coords
                plantFlower(flowerCombo);
                Thread.Sleep(2000);
            }
        }
Exemplo n.º 2
0
        public static void openSpeedChat()
        {
            Thread.Sleep(1000);
            //Below is the location for the SpeedChat button location
            //check if coordinates for the button is (0,0). True means they're not (0,0).
            if (BotFunctions.checkCoordinates("20"))
            {
                getCoords("20");
                BotFunctions.MoveCursor(x, y);
                BotFunctions.DoMouseClick();
                Thread.Sleep(1000);

                //Below is the location for pets tab
                //check if coordinates for the button is (0,0). True means they're not (0,0).
                if (BotFunctions.checkCoordinates("21"))
                {
                    getCoords("21");
                    BotFunctions.MoveCursor(x, y);
                    BotFunctions.DoMouseClick();
                    Thread.Sleep(1000);

                    //Below is the location for tricks tab
                    //check if coordinates for the button is (0,0). True means they're not (0,0).
                    if (BotFunctions.checkCoordinates("22"))
                    {
                        getCoords("22");
                        BotFunctions.MoveCursor(x, y);
                        BotFunctions.DoMouseClick();
                        Thread.Sleep(1000);
                    }
                    else
                    {
                        BotFunctions.updateCoordinates("22");
                        Thread.Sleep(2000);
                        openSpeedChat();
                    }
                }
                else
                {
                    BotFunctions.updateCoordinates("21");
                    Thread.Sleep(2000);
                    openSpeedChat();
                }
            }
            else//means it was (0,0) and needs updated
            {
                BotFunctions.updateCoordinates("20");
                Thread.Sleep(2000);
                openSpeedChat();
            }
        }
 private static void exitFishing()
 {
     if (BotFunctions.checkCoordinates("16"))//returns true if they are not 0,0
     {
         getCoords("16");
         BotFunctions.MoveCursor(x, y);
         BotFunctions.DoMouseClick();
     }
     else
     {
         BotFunctions.updateCoordinates("16");
         exitFishing();
     }
 }
 private static void checkBeans(String location)
 {
     if (Convert.ToInt32(location) <= 10)
     {
         if (!BotFunctions.checkCoordinates(location))//if they're 0,0
         {
             BotFunctions.updateCoordinates(location);
             checkBeans(Convert.ToString(Convert.ToInt32(location) + 1));
         }
         else
         {
             checkBeans(Convert.ToString(Convert.ToInt32(location) + 1));
         }
     }
 }
 private static void selectYESToRemove()
 {
     if (BotFunctions.checkCoordinates("14"))
     {
         getCoords("14");
         BotFunctions.MoveCursor(x, y);
         BotFunctions.DoMouseClick();
     }
     else
     {
         BotFunctions.updateCoordinates("14");//update the plant flower button coords
         selectYESToRemove();
         Thread.Sleep(2000);
     }
 }
 private static void sellFish()
 {
     if (BotFunctions.checkCoordinates("17"))//returns true if they are not 0,0
     {
         Thread.Sleep(2100);
         getCoords("17");
         BotFunctions.MoveCursor(x, y);
         BotFunctions.DoMouseClick();
     }
     else
     {
         BotFunctions.updateCoordinates("17");
         sellFish();
     }
     Thread.Sleep(2000);
 }
 private static void clickOKAfterPlant()
 {
     if (BotFunctions.checkCoordinates("12"))
     {
         getCoords("12");
         BotFunctions.MoveCursor(x, y);
         BotFunctions.DoMouseClick();
         Thread.Sleep(2000);
     }
     else
     {
         BotFunctions.updateCoordinates("12");
         Thread.Sleep(2000);
         clickOKAfterPlant();
     }
 }
Exemplo n.º 8
0
 public static void scratchDoodle()
 {
     if (BotFunctions.checkCoordinates("19"))
     {
         getCoords("19");
         BotFunctions.MoveCursor(x, y);
         BotFunctions.DoMouseClick();
         Thread.Sleep(10000);
     }
     else
     {
         BotFunctions.updateCoordinates("19");
         Thread.Sleep(2000);
         scratchDoodle();
     }
 }
Exemplo n.º 9
0
 public static void feedDoodle()
 {
     //check if coordinates for the button is (0,0). True means they're not (0,0).
     if (BotFunctions.checkCoordinates("18"))
     {
         getCoords("18");
         BotFunctions.MoveCursor(x, y);
         BotFunctions.DoMouseClick();
         Thread.Sleep(11500);
     }
     else//means it was (0,0) and needs updated
     {
         BotFunctions.updateCoordinates("18");
         Thread.Sleep(2000);
         feedDoodle();
     }
 }
 public static void removePlant()
 {
     if (BotFunctions.checkCoordinates("1"))
     {
         getCoords("1");
         MessageBox.Show("Press OK when ready to begin!");
         Thread.Sleep(2000);
         BotFunctions.MoveCursor(x, y);
         BotFunctions.DoMouseClick();
         selectYESToRemove();
     }
     else
     {
         BotFunctions.updateCoordinates("1");//update the plant flower button coords
         removePlant();
         Thread.Sleep(2000);
     }
 }
 public static void waterPlant()
 {
     if (BotFunctions.checkCoordinates("13"))
     {
         getCoords("13");
         BotFunctions.MoveCursor(x, y);
         BotFunctions.DoMouseClick();
         Thread.Sleep(4000);
         BotFunctions.MoveCursor(x, y);
         BotFunctions.DoMouseClick();
         Thread.Sleep(2000);
     }
     else
     {
         BotFunctions.updateCoordinates("13");
         Thread.Sleep(2000);
         waterPlant();
     }
 }
Exemplo n.º 12
0
        private void button6_Click(object sender, EventArgs e)
        {
            string selected = (string)comboBox1.SelectedItem;

            try
            {
                for (int i = 0; i < words.Length; i++)
                {
                    if (words[i].Equals(selected))
                    {
                        BotFunctions.updateCoordinates(Convert.ToString(i + 1));
                    }
                }
            }
            catch
            {
                MessageBox.Show("Unable to perform this action", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
            }
            MessageBox.Show("Coordinate's updated for " + selected);
        }
Exemplo n.º 13
0
 private static void locateRedFishingButton()
 {
     BotFunctions.updateCoordinates("15");//update the red fishing button coords
 }