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);
            }
        }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
        public static void startFishing(String location, int numberOfCasts, int numberOfTimesToMeetFisherman, bool randomCasting)
        {
            if (numberOfTimesToMeetFisherman != 0)
            {
                Thread.Sleep(3000);
                if (!BotFunctions.checkCoordinates("15"))//if they're 0,0, enter. Checks the red fishing button
                {
                    locateRedFishingButton();
                }
                //start fishing
                startFishing(numberOfCasts, randomCasting);
                //walking to fisherman
                switch (location)
                {
                case "TOONTOWN CENTRAL PUNCHLINE PLACE":
                    fishTTCPunchlinePlace();    //goes to fisherman and back to dock
                    startFishing(location, numberOfCasts, numberOfTimesToMeetFisherman - 1, randomCasting);
                    break;

                case "DONALD DREAM LAND LULLABY LANE":
                    fishDDLLullabyLane();
                    startFishing(location, numberOfCasts, numberOfTimesToMeetFisherman - 1, randomCasting);
                    break;

                case "BRRRGH POLAR PLACE":
                    fishBrrrghPolarPlace();
                    startFishing(location, numberOfCasts, numberOfTimesToMeetFisherman - 1, randomCasting);
                    break;

                case "BRRRGH WALRUS WAY":
                    fishBrrrghWalrusWay();
                    startFishing(location, numberOfCasts, numberOfTimesToMeetFisherman - 1, randomCasting);
                    break;

                case "BRRRGH SLEET STREET":
                    fishBrrrghSleetSt();
                    startFishing(location, numberOfCasts, numberOfTimesToMeetFisherman - 1, randomCasting);
                    break;

                case "MINNIE'S MELODYLAND TENOR TERRACE":
                    fishMMTenorTerrace();
                    startFishing(location, numberOfCasts, numberOfTimesToMeetFisherman - 1, randomCasting);
                    break;

                case "DONALD DOCK LIGHTHOUSE LANE":
                    fishDDLighthouseLane();
                    startFishing(location, numberOfCasts, numberOfTimesToMeetFisherman - 1, randomCasting);
                    break;

                case "DAISY'S GARDEN ELM STREET":
                    fishDaisyGardenElmSt();
                    startFishing(location, numberOfCasts, numberOfTimesToMeetFisherman - 1, randomCasting);
                    break;

                case "FISH ANYWHERE":
                    MessageBox.Show("Done!");
                    break;
                }
            }
            MessageBox.Show("Done!");
        }