Saturday, October 24, 2009

Script for fast bot clicking on Farmville, 8x8 square

I get this a lot: "I downloaded the auto clicking program. How do you use it?" Then I respond: "You first record your mouse clicks, then replay them back." After that, I keep getting people saying "How do you record it? I don't get it."

First, the instructions are for PCs. I don't have one for Mac. Download the Mouse and Key Recorder 6.5 here from Kratronic and install it:
http://www.kratronic.com/tools/recorder/download/index.html

Then you can take the following content and save it as a script, like "Farmville8x8.krc":
"{{' Created at: Oct.23.2009, 11:55       (MKR Version: 6.5 )
{{MessageBox Move to the top corner of your farm and press SPACE
{{GetCursorPos
{{SetVarOrigX {{VarGetCursorCoord_X}
{{SetVarOrigY {{VarGetCursorCoord_Y}
{{SetVarDiffX 50
{{SetVarDiffY 24
{{SetVarI 0
{{Label LOOP_I
{{SetVarX {{Calc {{VarOrigX} + ({{VarI} * {{VarDiffX}) }
{{SetVarY {{Calc {{VarOrigY} + ({{VarI} * {{VarDiffY}) }
{{SetVarJ 0
{{Label LOOP_J
{{'MessageBox {{VarX} and {{VarY}
{{Mouse 1, 1, {{VarX}, {{VarY}, 0
{{IncVarJ 1
{{IncVarX -{{VarDiffX}
{{IncVarY {{VarDiffY}
{{If {{VarJ} < 8 ;{{Goto LOOP_J;
{{IncVarI 1
{{If {{VarI} < 8 ;{{Goto LOOP_I;
","","","20","0","00","00",#TRUE#,0,"1"

Load this script in the Keyboard and Mouse Recorder 6.5. Load up Farmville, and zoom out twice so that you can see 8x8 squares in Farmville. Now go back to the Keyboard and Mouse Recorder 6.5 program and press the play button (the triangle). You'll get a prompt asking you to place the cursor on the top side of the farm square and press SPACE BAR. Just place your cursor on the top most square of the 8x8 farm position (right in the middle the farm square), then press SPACE, and voila! It will click all the 64 squares for you.

PLUG
I now support my family through this website, as crazy as it might seem. Using the script will have saved you a lot of time, and a lot of money that you would otherwise have to pay Zynga (fuel, money, etc). So please help me and help everyone with a gift of $5.00 so that I can continue with hints that save you a lot of time and money.
Click here now

You can use this script to do everything:
  1. Harvest (use the multi-tool before clicking on PLAY)
  2. Plowing (use the multi-tool before clicking on PLAY)
  3. Planting (select the seed you want before clicking on PLAY)
The script should click several times a second, but in case your computer is slow and the clicking rate is slow, you can open up Task Manager, right click on the Recorder.exe executable, and change the priority to Higher Than Normal. This will speed up clicking considerably, on slow computers. If you're interested in BASIC-like scripting, you can write your own scripts. The guide below is pretty useful if you like to program it:
http://www.kratronic.com/tools/recorder/manual/index.html#_Toc225604982

Here's homework to challenge your noggins: write a script that loops and automatically plays for you (all 3 cycles) so that you can Farm while you sleep! Wouldn't that be cool?

Make sure to bookmark this blog and come back often for more hints. Have fun! -Kevin

Sunday, October 4, 2009

NEW GAME: Cafe World by Zynga



Alright guys, I've moved on to the next new Zynga game -- Cafe World. Since I just started playing, I'm only level 8, but I'll update on hints and ways to optimize (level up fast) whenever I get new insights. Once again, you want to cook food that gives you the most CP (aka XP, experience points) and coins in the least amount of time. You must take in time into account! Pot roast gives you back 3935 coins (5750-1800-15) after 2 days, but it has less "coin per time ratio" than hamburgers that give you back 22 (52-15-15) every 5 min. This is because a hamburger will [in theory] give you back a whopping 760,320 coins after 2 days -- if you keep playing non-stop for 2 days.

Thus, if you have time to play, the best food to cook will have the best "coin per time" ratio and the "CP per time" ratio, defined as follows*:
coin-per-time ratio = (income - coins to prepare + coins to clean up) / time ready
CP-per-time ratio = (CP to prepare + CP to serve) / time ready


What does the chart indicate if you want the most coins and CP? It means you should cook only hamburger every 5 minutes. However, most people can't play the game on a 24x7 basis. People need to sleep. For example, if you need to be away from the computer for 12 hours, then you can cook Cheesecake which will be done in 12 hours. It may have a much lousier coins/time and CP/time ratio than hamburgers, but at least you don't have to click every 5 minutes, and you get some return than doing nothing in the kitchen.

On the right side of your screen there is Buzz Rating which controls the rate at which people come into your restaurant. Buzz rating goes up when someone is served food quickly, and goes down if someone doesn't get food or can't sit down. The higher the buzz rating, the more customers/time you'll get. If you're worried about buzz rating and want to keep it high, make sure there are enough tables and chairs for everyone and that there is enough food to serve. If you're out of food (cooking time is too long), you can start cooking something, then visit a friend or exit, then come back to your kitchen-- the buzz rating will be the same as when you left. Likewise, you can put an object that blocks the door so no one can come in, thus no one will be angry about waiting for food inside your restaurant. Likewise, if you're going away for a while and not sure if you have enough dishes to serve to people, exit the game. The server will estimate your profit and keep serving out dishes without affecting your buzz rating.

I don't personally worry about buzz rating. It is in some way meaningless due to a "design flaw" in the game. Let's say you've cook 1000 dishes. Since each person takes about 27 seconds to finish their food, it'll take theoretically 27000 seconds (1000*27 seconds) or 450 minutes to finish all 1000 dishes assuming your buzz rating is high. You can actually get around by creating lots of tables+chairs, visiting a friend's cafe, then come back; you'll see most of the tables filled out instantly, and everyone will finish their food within 27 seconds. You can repeat this and your food will get consumed very quickly while your buzz rating goes up fast. ** ****


*Since you need to prepare the food (average 3 clicks per dish), there is time between serving an old dish and and cooking a new dish. Thus I've also factored in a minute of paused time in between serving an old dish and preparing a new dish.
**If you're a hacker, you can also download Cheat Engine and speed up the Flash engine by 5X or 10X and let people eat very quickly. The Cafe World server doesn't seem to have rate limiting built in [yet], and I'd imagine it's too expensive (space and bandwidth) to keep track of everything on the server. Using this method you can serve out hundreds of customers per minute. How to use Cheat Engine is beyond the scope of this blog, but if you're interested, feel free to Google help on it.
*** Note that you can't simply speed up the cooking time using Cheat Engine. The reason is the Cafe World server in San Francisco keeps track of when you started a dish and when you should have the dish available. Thus if you speed up the Flash engine, your Flash will think it is done, but none of the coins will actually register on the Cafe World server; your game will be out of sync.

Saturday, October 3, 2009

FarmVille Retirement at Level 34 - Goodbye!

Ok guys, I've reached level 34 in less than a month. At level 34, I bought a Villa, and thus I finished the game. I am now officially retired from FarmVille, aka The Fastest Growing Game in North America and the biggest money maker for Zynga. I finished the game with minimal efforts using the strategies and techniques outlined in my blog. I am now quitting FarmVille for good and I will move on to other projects, but I will still populate this blog with more hints [perhaps on other games], so make sure to bookmark and come back often!

I want to thank everyone who kept up with this blog. I'm surprised to see the visits to my YouTube page in such a short period of time, and the high ratings you guys are giving me. Thanks so much to everyone! I wish you luck and happiness in FarmVille!


Ah, there's nothing like having the Villa with transportation and a pond for your retirement. This is every FarmVille farmer's dream!


This is the ethical Kevin Animal Processing Plant I created. This has always been my own dream.


Thank you everyone! I feel really good that I finished FarmVille without spending much time on it, without using Cheat Engine (modifying internal values in Flash), without having to decompile Flash (but it'd be pretty fun to do so), and without mucking with the TCP/IP stack (pain). I did it with the good 'ol fashion AND the least-controversial method -- auto clicking mouse macros, and with calculations for optimal planting strategies. That's it!

Good bye, and good luck to everyone! I hope to see you in the FarmVille Retirement Club soon!