• Log in or sign up for an account here: https://www.sythe.org/login

More FarmVille Scripts! Auto Clicker, Auto Friend Helper, XP Buyer/Hay Bale Placer

Joined
Nov 14, 2009
Sythe Gold
0
Messages
29
First of all, download SCAR from www.freddy1990.com
Always remember, CTRL-ALT-R to run a script, CTRL-ALT-S to stop a script! :)

Change the settings at the top of the last two scripts to have them work for you!
Click HERE if you need help doing this

FarmVille Auto Friend Helper
Make sure you don't select a client window in SCAR, or if you do, select your browser window, not FarmVille itself.
This will goto your neighbour page and goto the suggested friends farm and help them. Then do it all again.
Code:
program FriendHelper;
var
 accept,go,x,y,count:integer;
begin
  go := BitmapFromString(5, 17, 'beNqbFKEQriHkKw1EXn0hfpMiIGw' +
       'gArKHJRfFvwDtbkHx');
 accept := BitmapFromString(12, 12, 'beNr7/3/KHkc0NHO/98IjkU' +
      'uOxWFKQdCTd+f+w8CFh6sxFcw9GPgfFWy5UIWp7M7LA8hqXny8hqY' +
      'AqOs/Bth4rhRZDVAXRPz7r49wNXdeHoIr2H6pHi5+9PbMp+8vwrlY' +
      'DQFy917rQlZz4MaEo7dnIBsCFJy61/nvvz8QkeUnUtAc+fbL/Vefb' +
      'r78eP3Xn68QkRn7PH78/vwfLwAau+9aNz4VAEOdWBc=');
 
 wait(500);
 repeat
  keydown(17);keydown(76);keyup(17);keyup(76); //CTRL-L address bar
  wait(100);
  SendKeys('apps.facebook.com/onthefarm/neighbors.php?ref=tab'+#13);
  wait(3000); //enough time to clear current page
  count:=0;
  While NOT FindBitmapTolerance(go,x,y,10) do
   begin
    if count=10 then Break; //Waited 10secs, no friend, exit loop
    wait(1000);
    inc(count);
   end;
  If FindBitmapTolerance(go,x,y,10) then
   begin
    clickmouse(x,y,true);
    wait(50);
    While NOT FindBitmapTolerance(accept,x,y,50) do wait(100);
    Clickmouse(x,y,true);
    wait(2000);
    Clickmouse(x-270,y,true);
    wait(200);
   end;
 until False;
end.

FarmVille Auto Clicker(Plow,Plant,Harvest)
This one script can be used to plow, plant & harvest.
Just select the right tool and away you go.
This will click the mouse in a Row,Column pattern. So useful if your farm has a square or rectangle layout.
Select your tool/seed first then run.

If you want to run in Fullscreen mode, DO NOT select a Client in SCAR, go Fullscreen and ZOOM OUT all the way but DO NOT MOVE YOUR FARM AT ALL! Going Fullscreen will centre your farm.
Now press CTRL-ALT-P and the color picker icon will appear, move over your topmost field and RIGHT CLICK. SCAR will now pop up. Copy the X & Y position (Down the bottom as "Color 123456 picked at (X,Y)"), type in your Rows and Columns, then press SAVE.
Now go back to FarmVille and go Fullscreen again, ZOOM OUT all the way and DONT move your farm.
If you are going to PLOW select the PLOW tool and press CTRL-ALT-R to start the script.
If you are going to PLANT select the seed you want to plant then press CTRL-ALT-R to start the script.
If you are going to HARVEST select the multi tool (normal arrow) then press CTRL-ALT-R to start the script.

If you DONT want to run in Fullscreen, select FarmVille as the Client in SCAR. ZOOM OUT all the way, press CTRL-ALT-P to bring up the color picker. Right click over the topmost field, copy X&Y into SCAR, enter your Rows & Columns, then the correct tool in FarmVille, then run the script.

** Remember to lock up your farmer to save time. **
Code:
program AutoClicker;
var
i,k,x,y,Rows,Columns:integer;
begin
//Change these to suit your farm
//******************************************
x:=726; y:=419; //location of topmost field
Rows:=2; Columns:=3;
//******************************************
 
 for i := 0 to Rows-1 do   //rows
  for k := 0 to Columns-1 do //columns
   begin
    if i mod 2 = 0 then
     begin
      clickmouse(x-k*25+i*25,y+k*12+i*12,true);
      wait(25);
     end
    else
     begin
      ClickMouse(x-(Columns-1-k-i)*25,y+(Columns-k-1+i)*12,true);
      wait(25);
     end;
   end;
end.

FarmVille XP Buyer/Hay Bale Placer & Deleter
Here is a YouTube video showing it in action
This will place hay bales, then delete them. Effectively converting your unused money into XP.

You MUST select the FarmVille window as the Client in SCAR (Use the little target icon).
ZOOM OUT ALL THE WAY.
DO NOT GO FULLSCREEN!

I could have made the pictures smaller but meh.
Code:
// MUST SELECT FARMVILLE AS SCAR CLIENT WINDOW!
program XPBuyer;
var
x,y,xx,yy,hay,accept,Rows,Columns,i,k,count:integer;
begin
//Change to suit your farm
//*************************************************
x:=322; y:=102; //location first hay bale
Rows:=3; Columns:=5; //How many to place/pattern of placement
//*************************************************

accept := BitmapFromString(10, 19, 'beNrb4zhlD8lo4ZGI5SdS5h' +
       '4MRBZcf7bw3qsjf//9+g8DcKlzD1b8xwB4pCCyG84WIYucfbBs9am' +
       'suYeCtl6sAco+eHMCLnX8zhxkl0zb6/r//z+I1O+/P2bu90SWBboc' +
       'rvHtl/toXtt4rgQu+/DNSTTZVacy8eidc9AfLvvn78+Z+73RFLz4e' +
       'A2u4MTdeWiyOy83I/v31L2FS48nAP2y/mwBRMGtF3twhRUE3X6xH4' +
       '8sEO252o7sBjRZCJp3KHjlyTRgUANjGV8yAAA0opm2');

  hay := BitmapFromString(12, 6, 'beNoLlfqPAV48uFnrr7AwTe7qJP' +
       '2Hcwx21ahDxN+9eHh654o9S/sWNSbWekscaNS8PU3r5hRNILo1VWv' +
       'b3JaGEI1aD/55KbKr8hS3VaremWEAkb07Q+fBbBB7VoL0lYl6D2br' +
       'A9nXJmpsK5VfnCK5MElyT7Xim+XWn9c6vFthc2+GLkQXHN2fpf9or' +
       'tnWUrW+YMnZcXL3Zlkiy75dYf14ntHzRWaP5hh82+AMRDemmk0EAM' +
       'G8etI=');

repeat
 clickmouse(682,561,true);  // select market
 wait(2000);
 clickmouse(431, 113,true); //select decoration
 wait(2000);
 clickmouse(431, 144,true); //select Hay Bales
 wait(2000);
 while not findbitmap(hay,xx,yy) do
  begin
   clickmouse(705, 333,true);
   wait(2000);
  end; //ClickMouse is location of -> arrow on market
 clickmouse(xx,yy+130,true);
 wait(1000);

 for i := 0 to Rows-1 do
  for k := 0 to Columns-1 do
   begin
    clickmouse(round(x-k*6.25+i*6.25),y+k*3+i*3,true);
    wait(200);
   end;
wait(2000);
clickmouse(733, 500,true);  //Select Delete
wait(50);
 for i := 0 to Rows-1 do
  for k := 0 to Columns-1 do
   begin
    count:=0;
    clickmouse(round(x-(Columns-1-k)*6.25+(Rows-1-i)*6.25),y+(Columns-1-k)*3+(Rows-1-i)*3,true);    //The following command tries to delete the hay bale again if it missed it the first time
    repeat wait(100); inc(count); if count mod 100 = 0 then clickmouse(round(x-(Columns-1-k)*6.25+(Rows-1-i)*6.25),y+(Columns-1-k)*3+(Rows-1-i)*3,true); until findbitmap(accept,xx,yy);
    clickmouse(xx,yy,true);
    wait(1000);
   end;
wait(5000);
until False;
end.

If you just want to DELETE hay bales in a Row/Column pattern....
Same rules apply, Select FarmVille as Client and ZOOM OUT all the way.
Code:
// MUST SELECT FARMVILLE AS SCAR CLIENT WINDOW!
program DeleteBales;
var
x,y,xx,yy,hay,accept,Rows,Columns,i,k,count:integer;
begin
//Change to suit your farm
//*************************************************
x:=416; y:=71; //location first hay bale
Rows:=3; Columns:=10; //How many to place/pattern of placement
//*************************************************

accept := BitmapFromString(10, 19, 'beNrb4zhlD8lo4ZGI5SdS5h' +
       '4MRBZcf7bw3qsjf//9+g8DcKlzD1b8xwB4pCCyG84WIYucfbBs9am' +
       'suYeCtl6sAco+eHMCLnX8zhxkl0zb6/r//z+I1O+/P2bu90SWBboc' +
       'rvHtl/toXtt4rgQu+/DNSTTZVacy8eidc9AfLvvn78+Z+73RFLz4e' +
       'A2u4MTdeWiyOy83I/v31L2FS48nAP2y/mwBRMGtF3twhRUE3X6xH4' +
       '8sEO252o7sBjRZCJp3KHjlyTRgUANjGV8yAAA0opm2');

  hay := BitmapFromString(12, 6, 'beNoLlfqPAV48uFnrr7AwTe7qJP' +
       '2Hcwx21ahDxN+9eHh654o9S/sWNSbWekscaNS8PU3r5hRNILo1VWv' +
       'b3JaGEI1aD/55KbKr8hS3VaremWEAkb07Q+fBbBB7VoL0lYl6D2br' +
       'A9nXJmpsK5VfnCK5MElyT7Xim+XWn9c6vFthc2+GLkQXHN2fpf9or' +
       'tnWUrW+YMnZcXL3Zlkiy75dYf14ntHzRWaP5hh82+AMRDemmk0EAM' +
       'G8etI=');

clickmouse(733, 500,true);  //Select Delete
wait(50);
 for i := 0 to Rows-1 do
  for k := 0 to Columns-1 do
   begin
    count:=0;
    clickmouse(round(x-(Columns-1-k)*6.25+(Rows-1-i)*6.25),y+(Columns-1-k)*3+(Rows-1-i)*3,true);    //The following command tries to delete the hay bale again if it missed it the first time
    repeat wait(100); inc(count); if count mod 100 = 0 then clickmouse(round(x-(Columns-1-k)*6.25+(Rows-1-i)*6.25),y+(Columns-1-k)*3+(Rows-1-i)*3,true); until findbitmap(accept,xx,yy);
    clickmouse(xx,yy,true);
    wait(1000);
   end;
end.
 
I hope you dont mind but I changed your scrip so it is a haybale placer and then sells them instead of delete. Only get 5 coins back but thought it would help. Hope this is ok.

Code:
// MUST SELECT FARMVILLE AS SCAR CLIENT WINDOW!
program XPBuyer;
var
x,y,xx,yy,hay,accept,sell,Rows,Columns,i,k,count:integer;
begin
//Change to suit your farm
//*************************************************
x:=181; y:=241; //location first hay bale
Rows:=8; Columns:=3; //How many to place/pattern of placement
//*************************************************

accept := BitmapFromString(78, 28, 'beNrtV+lT01cU/dtqp87UvV' +
       'Y7Oi4dO9XWpWN1xnHptFM7Ol1GZ3SqKItYLaIiIm4oGAgEkgAJARL' +
       '2hCyEJEA2QvaEJB595vL8LTF+k0ze3A/h3vPe75337j33ofjsiqJs' +
       'ZSvbarUbXV/dVu+6o/m2hDne6tkRiDpy+THoaChVps+GzuTeHy+NZ' +
       '1fFzpv0Ryvav/ioKf6IjWfqj1g/fZojs0+x1XF3a/FT+qZv5kSj1X' +
       'RODn+tY21D/4+NusM3u7fLYeq13zUPHP9fvVsOUKvaBmWQDN3t/b6' +
       'mazN+VHduvN93oE6zR4wZdNxn+5wLjRVJs1b1dTabYbOCUScxdQWH' +
       'xeD/ur8Zd7/kD2Q2YABlHqO1VEeTAQKEYq7uqas8oHe6NpLwsiiQO' +
       'uttCrWP/cOyaynuMc8raZHFmKttZOXkW4Z/o1A4sWDzahWjf3+Q6f' +
       'DMQ5oFvHfJTH/iPAXXxFPgRpYU27rQIwXIqc3XGcDh6xdH2akiQ3I' +
       'FR9fE5XytWcXRiva1BWgiuwgJjvCoJv8lz5DjAQ+eD43L7QF3IVcF' +
       'bDh8fQDobXVyAIP93lXF5wK5wEimI/Q7lgygcLAOblwAC0TschyrO' +
       'zdhY5MexYremt7obaVyPXmQY5L6HE36AcaNay01oD/j16HogEkur+' +
       'xKb7vT0H+w1fSHzavB/hWjfwGQziSouBp1P6G7WeZVeQ20sV2lM3H' +
       'mWc4knwyehFNjrqRlURrs9ic8bcyzsDT5dPBUlXKDHFOjs0lwLN6w' +
       'BdvGHlLLMXI+NpwQKICcWIEXASY9r8SAB/2HCGByNhvsd9G4nQEDl' +
       'TODpZajzDPmaqG5VDUgyDw808Ll2TlxKVfEMM0+ZniIOTnrNHulmv' +
       'JpAvRabhTTtfkBoWMwSgz+AYPzF/Aqnilsxq//INNo0sfAai6FOsY' +
       'uSD20dhJgeqG78J2KaL4gGBUmzxT1wpxTc4qPZcrXI+QXusoMvQx5' +
       '6A4aKYp3CPCoBfJksinl+EUk9oSnNZvLQB9qura8LcM4YYzOR+inG' +
       'nNVIh1+q+p/8gB0DZQ5PoeXNuTCF56m1szwGO5FE55qOB+js5nT8E' +
       'oBUyakBQz75LrJD3wIXdvqVVMUV4/7gp9/GwsGI4LSkwNgQQAG7PW' +
       '8M55apN+aPIVEeklukVDMLdkcca1oqVcUawrXqfj2oW+CTwDMHpn8' +
       'rfG9m+Y6/QOSm0RKvAPkJUgwmvQ/M0A8FZIEIHl4JXw+9IsA0DZyX' +
       'pJpy/CvDNAzVSEINeqO+MKWfKKmR13PKXSvb7/gbTA1116r2spPR9' +
       'Pkd4skhBbxADyKeABa7aOBYxSl0KjrGbVXz+KIIPFgfItE45B7WzK' +
       'RoaeLVMPdiIeiZKiqcwPKuV6773rHl3LToc+o9wJfx6MFK1Qq1wn8' +
       'lNKsy2AFfE7+K3tw0aztrjqLpYJiQS49QyNeKcxsZpVeVjEGdeVFg' +
       'P83p8TshfF3/LPjCg7Zfb3oIwXKvGxlK2V7DavDUHg=');
hay := BitmapFromString(21, 21, 'beNplkmlMU0EUhf8AgqWKbWlLN' +
       '4m0ECK0oVJqQJbWNWqCiRgjiPiHgkBY4lJBRKkFFIqKsggqa7FosS' +
       'guGAnuoCiCC7hEaExEUQQVBX97yuijweTk5c68+517Zt4LZyXJaee' +
       'TxeNN4b8vLR81Lh2sWIwC+nVRZa30JzXUqZftCJh7LtHrl0VNdoar' +
       '5VMt6uHaZSWbeAkyl45sPyyp/g/V8relvv+sIsZNIZ8bQnVrWDkrG' +
       'EDGzgVbT82Y9xTK05X0AyuZ704ttUdgCI3UB30xKrE5aVEjgEbq8j' +
       'BfhoaR2gBsouFnc/iEWdWgWRTn69SS4U3FwJTxppCROgWsqFltWl/' +
       'EmLSovp+3bX6qVbw/LSOveg3ylEBa7mrWx9plMPnSoPxxIZQCifoM' +
       '0nSly5vjCyEyYrhmyQ9zGDrHTMFjpnDDBm68v3P34QDSP2VR4YlZS' +
       'DvaoLBWBWmkThT+t6dFjdv41hRC6uZUSYzEESdFPWpUjDUqh89KCd' +
       'Jf7LlV4jAL/1SnGKrwmzCHkSWO1p4p2ubj2Knz+nDG722Jp7XcmyB' +
       'QrI/j80KhPT45ndBeQ+XeGUqX1jQORVFKkM15pOOjGKkPnjBH2FNf' +
       'jUEfq6WIOlQmyVbRTBrW/zhsOzI9UBjjmQ90kr/fejrAhDkUUUlbw' +
       'Vr6mVjG/3hWBO2Chtmbzwd+O8drsDKwPcuzI0swWCq2VvgMlolJ24' +
       'kot5KNbhT16qjoaZ4ts341vXLzPCyBN2pYeEKtGezXx0T2U87GMgr' +
       'WzRsoFj06aIvanevx8AAXhSFyfulGel+BgICULqWxB47OOODgOWqa' +
       'veGr6bcno9yORbo+OcSjwMZ45k0tt7/Y9vZlkZA0X07lpCmcMR1zs' +
       'XxRKHiax+s3CKuiFxStc0UkCm/awUL4tt0cnK4rx5YQB2nXemj8nZ' +
       '4fEQDp3M/FaOhuJrsmjlG03vXOXjbS2oe/ksEm8fC8tcf9XjZvu68' +
       'j3J4dFnTsdkeqgWLhY51HTRwT4W+kM6/t5JgSWdd3cQn+OE9AYqMf' +
       'MboP8WPEDvAhYeCJJCiqYhjlUXTg5MItqbYMLanus77vyyLRFi+Ht' +
       'jQm5sIQOz16PsLrV9HqYucTnFJXLn/WJeOuosUOrckMnP1FoRD/yf' +
       '19HFDaEOfWFObtvZzpobbR5mQW9dExCM24qx49D/jVFAYuH273sth' +
       'goZRAZ+1y16Q/qEZ+vg==');
       
sell := BitmapFromString(1, 10, 'beNpzdv7///+9e/d0dXVVVVWZm' +
       'Zk3bNjwHwxmz57tDAD9XxE7');
repeat
 wait(1000);
 clickmouse(682,561,true);  // select market
 wait(1000);
 clickmouse(431, 113,true); //select decoration
 wait(1000);
 while not findbitmap(hay,xx,yy) do
  begin
   clickmouse(705, 333,true);
   wait(1000);
  end; //ClickMouse is location of -> arrow on market
 clickmouse(xx,yy+130,true);
 wait(1000);

 for i := 0 to Rows-1 do
  for k := 0 to Columns-1 do
   begin
    clickmouse(round(x-k*6.25+i*6),y+k*3+i*3,true);
    wait(200);
   end;
wait(2000);
clickmouse(633, 500,true);  //Select Delete
wait(50);
 for i := 0 to Rows-1 do
  for k := 0 to Columns-1 do
   begin
    count:=0;
    clickmouse(round(x-(Columns-1-k)*6.25+(Rows-1-i)*6),y+(Columns-1-k)*3+(Rows-1-i)*3,true);    //The following command tries to delete the hay bale again if it missed it the first time

    repeat wait(100); inc(count); if count mod 100 = 0 then clickmouse(round(x-(Columns-1-k)*6.25+(Rows-1-i)*6),y+(Columns-1-k)*3+(Rows-1-i)*3,true); until findbitmap(sell,xx,yy);
    clickmouse(xx,yy,true);
    wait(1000);
    findbitmap(accept,xx,yy);
    clickmouse(xx,yy,true);
    wait(1000);
   end;
wait(4000);
until False;
end.
 
thats fine, i just delete them because it is quicker.
selling them you only get 5% back, so you'd have to do 20 cycles before you get one 'free' one... not worth it in my opinion.
 
Can you write more details , how to use this scripts with scar , i'm copy the script paste in to the scar and target the farmville window then press play , but nothing happen , can anybody explain more how to use these scripts please
 
Can you write more details , how to use this scripts with scar , i'm copy the script paste in to the scar and target the farmville window then press play , but nothing happen , can anybody explain more how to use these scripts please

Which one?

Firsty, with the Auto Clicker and Hay Bale Placer, remember to ZOOM OUT all the way.
Then change these variables
Code:
//Change these to suit your farm
//******************************************
x:=527; y:=203; //location of topmost field
Rows:=2; Columns:=5;
//******************************************
You don't have to select FarmVille as the client in scar, you just need to set X & Y to point to the TOPMOST field in your grid of fields.
FarmVille.jpg

Note that the numbers in the bottom left corner of the SCAR window is the location of the mouse, which is on the TOPMOST field in the grid of fields (Its highlighted).
I noticed SCAR does not update the position of the mouse when run on XP, in that case you can find the location of the topmost field by using the color picker (CTRL-ALT-P and right click to pick the color otherwise your farmer guy will do that field)
Set X & Y to these values.
Set Rows to how wide the grid is from TOPMOST to the right (2) and Columns to how long it is from TOPMOST to the left (5).

In case that didn't make sense....
[YOUTUBE]cmskykx8WKg[/YOUTUBE]
View it on YouTube for annotations.
 
This helps me thanks a lot Pocked man ... Can you give me a details also deleting crops ,and selling hay bales , if you can please record same as for the latest details you show me , and which scripts to use for both methods ...


Thanks a lot ...
 
Which one?

Firsty, with the Auto Clicker and Hay Bale Placer, remember to ZOOM OUT all the way.
Then change these variables
Code:
//Change these to suit your farm
//******************************************
x:=527; y:=203; //location of topmost field
Rows:=2; Columns:=5;
//******************************************
You don't have to select FarmVille as the client in scar, you just need to set X & Y to point to the TOPMOST field in your grid of fields.
FarmVille.jpg

Note that the numbers in the bottom left corner of the SCAR window is the location of the mouse, which is on the TOPMOST field in the grid of fields (Its highlighted).
I noticed SCAR does not update the position of the mouse when run on XP, in that case you can find the location of the topmost field by using the color picker (CTRL-ALT-P and right click to pick the color otherwise your farmer guy will do that field)
Set X & Y to these values.
Set Rows to how wide the grid is from TOPMOST to the right (2) and Columns to how long it is from TOPMOST to the left (5).

In case that didn't make sense....
[YOUTUBE]cmskykx8WKg[/YOUTUBE]
View it on YouTube for annotations.
This helps me thanks a lot Pocked man ... Can you give me a details also deleting crops ,and selling hay bales , if you can please record same as for the latest details you show me , and which scripts to use for both methods ...


Thanks a lot ...
 
pocked man everything works fine its just when i go to delete the hay bales the delete button is off how do i fix that?
 
pocked man everything works fine its just when i go to delete the hay bales the delete button is off how do i fix that?

I'm assuming when you say 'The delete button is off' you mean that when the delete tool clicks the hay bale, it misses it.
You need to make sure you centre the mouse on the hay bale when you set X & Y of the first one.
Watch the video ;)
Try taking 2 or 3 from your Y value.
 
I got everything working excellent. And thank you so very much! Just one thing isn't working for me at all. The auto friend helper. It just seems to keep refreshing my page or something similar to that. I don't see it load up farmville and actually help or anything. I've ran it a few times. I went into farmville and checked my cash and xp, both of which haven't changed. What could I be doing wrong?

P.S. I've targeted my entire browser while doing it. And I've ran it without targeting anything.
 
Just one thing isn't working for me at all. The auto friend helper. It just seems to keep refreshing my page or something similar to that.

Thanks for letting me know, I haven't used it in some time.
Anyway, all fixed, just updated the script in the first post. It wasn't finding the green 'Go help blah blah' button.
 
No problem. Now the only thing that isn't working is when I go to full screen. SCAR doesn't stay on top even if I have it selected to do so. Any suggestions?



Oh and thank you for fixing the friend helper. It works like a charm now!!!
 
No problem. Now the only thing that isn't working is when I go to full screen. SCAR doesn't stay on top even if I have it selected to do so. Any suggestions?
Oh and thank you for fixing the friend helper. It works like a charm now!!!

yeah scar wont be on top. use the color picker CTRL-ALT-P to find x&y coordinates (right click so your farmer doesn't do something with the field). then scar will pop up, plug in your x&y (down the bottom it wil say "Color Picked: 2444675 at (641, 133)" or something like that), go back to farmville, go fullscreen. then CTRL-ALT-R to start the script.

always remember, ctrl-alt-R to Run a script, ctrl-alt-s to Stop a script.
 
Sweet! Thanks man! I'm pretty sure I read that somewhere but I just didn't understand it till now lol.
 
Couple of updates in the OP, including a Hay Bale Deleter. (Just deletes them, doesn't place first).

Hopefully the explanations are a little less confusing for some people now..
 
duelarena.gg
Back
Top