Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames
You last visited: Today at 12:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Wartune] E's AutoIt Scripts Daru Farmbot

Discussion on [Wartune] E's AutoIt Scripts Daru Farmbot within the Browsergames forum part of the Other Online Games category.

Reply
 
Old 06/21/2013, 17:49   #106
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
jualsempolan, sorry copy and past didnt work well. At least it works for you.

KilleN..yes there is. Depends what map you play go to the bottom right hand corner.

Find code bellow
Code:
$wait = 2000 ;sleep (milliseconds) at the end of this function
	If $mapX < 989 Then
		$mapX += 15
	Else
		$wait = 2000
		$mapX = 10
		If $mapY < 992 Then			
			$mapY += 17
		EndIf
You need to edit the If $mapX and If $mapY. This is the end point for the map.
VVayinsane is offline  
Thanks
1 User
Old 06/21/2013, 18:57   #107
 
elite*gold: 0
Join Date: Jun 2013
Posts: 12
Received Thanks: 0
Oh you rock. thanks a ton

I have one more major problem and when I fix it the bot will be working 100%. Right now when I am out of troops, it recruitings knights and not templars.

I mean I have high lvl knights so if at night I sell my templars and buy knights the bot works fine, but id like to get this little kink out. :P
KilleN^ is offline  
Old 06/22/2013, 01:43   #108
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
Did you edit the bot to recruit templars. If you did and it doesnt see it you may need to retake the portrait shot of the templars.
VVayinsane is offline  
Old 06/22/2013, 03:56   #109
 
elite*gold: 0
Join Date: Jun 2013
Posts: 12
Received Thanks: 0
I retook the portrait, its set to "templar" what happens is it open recruit menu, scrolls down to bottom, and instead of choosing the coords for templar it goes 2 pictures higher and clicks the recuit button next to knights. =/ I dont get it. Do I have to change mouse position where it clicks? if so where do I find that code line

EDIT:

Hmm. I let the script run all night and it is still doing the same thing. It gets to 586 Y coord and stay there, but loops the X coords so scrolls from left to right on the Y coords once it gets there. It wont start over from the top. =/
KilleN^ is offline  
Old 06/23/2013, 00:00   #110
 
elite*gold: 0
Join Date: Aug 2009
Posts: 1
Received Thanks: 0
Farmbot for friends not working

Hello E,

I am trying to get your script running but have had little success. I am running windows 7 64 bit but am running autoit in 32 bit. i placed Dll's in both directories. The script does weed my farm but then just goes from page to page searching but never actually doing anything. it cycles back to my farm and starts over. I changed the friends pages to match what I have, .7 delay and the rest set to true for user defined. Resolution is 1920x1080. I am using AutoIT3. any suggestions? Thanks.
wrsmith2666 is offline  
Old 06/24/2013, 15:54   #111
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
KilleN^ do me a favor and post your Func ChangeCoords() section of the script.

wrsmith2666 i am unable to get it to work either. I dont really use it since i have already max my farm which only takes less then a few mins. Im working on the script to just weed and plant my own farm. Dont have much time lately so i have not really worked into it.
VVayinsane is offline  
Old 06/24/2013, 17:13   #112
 
elite*gold: 0
Join Date: Jun 2013
Posts: 37
Received Thanks: 16
Quote:
Originally Posted by VVayinsane View Post
KilleN^ do me a favor and post your Func ChangeCoords() section of the script.

wrsmith2666 i am unable to get it to work either. I dont really use it since i have already max my farm which only takes less then a few mins. Im working on the script to just weed and plant my own farm. Dont have much time lately so i have not really worked into it.
I demm cant get work farm bot -_-
I try all but dont work

I have 1280x800 and I change it but whice cords I nedd write in then?
What is point?
its only serach all time and dont steal,..
RolloMan is offline  
Old 06/24/2013, 17:30   #113
 
elite*gold: 0
Join Date: Jun 2013
Posts: 4
Received Thanks: 0
Wavv can u post up complete script with your fixes...just easier than going peice by peice and seeing if ive changed already..
lunaticfringe44 is offline  
Old 06/25/2013, 21:56   #114
 
elite*gold: 0
Join Date: Jun 2013
Posts: 12
Received Thanks: 0
Code:
Func ChangeCoords()
	;Changes map coordinates square by square.  Moves left to right then moves down one square and goes left to right again.
	$wait = 2000 ;sleep (milliseconds) at the end of this function
	If $mapX < 585 Then
		$mapX += 30
	Else
		$wait = 2000
		$mapX = 15
		If $mapY < 585 Then			
			$mapY += 17
		EndIf
	EndIf
	MouseClick("left",1324,22,2,0) ;<=== change these coords
	Send($mapX)
	MouseClick("left",1357,21,2,0) ;<=== change these coords
	Send($mapY)
	MouseClick("left",1376,17,2,0)
	Sleep($wait)
EndFunc
I changed 585 and 585 thats where the map ends for me in Erandal
KilleN^ is offline  
Old 06/26/2013, 00:55   #115
 
elite*gold: 0
Join Date: Jun 2013
Posts: 4
Received Thanks: 1
Quote:
Originally Posted by KilleN^ View Post
Everything works fantastic. My problem now is that once I get to the bottom of the map the script keeps looping over and over on the bottom Y coords. It obviously cant go down further. Is there a way to begin the script over from the beginning?
Func ChangeCoords()
;Changes map coordinates square by square. Moves left to right then moves down one square and goes left to right again.
$wait = 2000 ;sleep (milliseconds) at the end of this function
If $mapX < 585 Then
$mapX += 30
Else
$wait = 2000
$mapX = 15
If $mapY < 585 Then
$mapY += 17
Else
$wait = 2000
$mapY = 8
EndIf
EndIf
MouseClick("left",1324,22,2,0) ;<=== change these coords
Send($mapX)
MouseClick("left",1357,21,2,0) ;<=== change these coords
Send($mapY)
MouseClick("left",1376,17,2,0)
Sleep($wait)
EndFunc

should solve it

don't know how to poste it for starting spaces
Blackshark01 is offline  
Thanks
1 User
Old 06/26/2013, 05:15   #116
 
elite*gold: 0
Join Date: Jun 2013
Posts: 12
Received Thanks: 0
Like this?

Code:
Func ChangeCoords()
	;Changes map coordinates square by square.  Moves left to right then moves down one square and goes left to right again.
	$wait = 2000 ;sleep (milliseconds) at the end of this function
	If $mapX < 585 Then
		$mapX += 30
	Else
		$wait = 2000
		$mapX = 15
		If $mapY < 585 Then			
			$mapY += 17
	Else	
		$wait = 2000
		$mapY = 8
		EndIf
	EndIf
	MouseClick("left",1324,22,2,0) ;<=== change these coords
	Send($mapX)
	MouseClick("left",1357,21,2,0) ;<=== change these coords
	Send($mapY)
	MouseClick("left",1376,17,2,0)
	Sleep($wait)
EndFunc
KilleN^ is offline  
Old 06/26/2013, 12:24   #117
 
elite*gold: 0
Join Date: Nov 2010
Posts: 2
Received Thanks: 0
Anyone with complete working farm bot ?
Coz mine doesnt seems to work. Flip through the entire thread twice, but cant seems to get my solution.

My farm bot does not clear fren's weed, pest, charge tree and revive. But it does work for my farm only.

Also if there is a complete durafarm for sales i wont mind to pay for it.
WaveX is offline  
Old 06/26/2013, 15:42   #118
 
elite*gold: 0
Join Date: Jun 2013
Posts: 12
Received Thanks: 0
thank you Blackshark, that worked perfectly. Now literally my only problem is getting it to recruit templars and not knights
KilleN^ is offline  
Old 06/27/2013, 03:02   #119
 
elite*gold: 0
Join Date: Jun 2013
Posts: 4
Received Thanks: 1
Quote:
Originally Posted by KilleN^ View Post
thank you Blackshark, that worked perfectly. Now literally my only problem is getting it to recruit templars and not knights
could it be because in script:

$troopPortrait = "templarportrait"

and the image in /pics/buttons/ is named "templar(portrait).bmp"

try to rename the image from "templar(portrait).bmp" to "templarportrait.bmp"

maybe....
Blackshark01 is offline  
Old 06/28/2013, 15:29   #120
 
elite*gold: 0
Join Date: Jun 2013
Posts: 12
Received Thanks: 0
I already had to do that myself to even get it to recruit knights.

I mean it works with recruiting knights it just allows people who fight me in Arena, or who are pludnering me to fight a weak version of me with knights instead of strong templars. I guess its alright for now but if anyone knows how to fix this problem I will be checking back. Its annoying.

Im thinking I have to change the coords of where its clicking, because it obv just doesnt recognize the recruit image, as that could click any 4 options on the screen.

Im only learning how to use and edit this script so its slightly difficult.
KilleN^ is offline  
Reply

Tags
aeria, autoit, script, wartune


Similar Threads Similar Threads
S4 Farmbot mit autoit
08/09/2011 - AutoIt - 6 Replies
also ich bin anfänger und versuche gerade einen farmbot zu machen ! und das problem ist das der bot nicht in im client von s4 klicken oder schreiben kann . Muss ich da was spezielles dafür machen? help pls !
AutoIT scripts
11/21/2009 - AutoIt - 22 Replies
Hi, also ich hatte mal vor nach PHP noch ne andere scriptsprache zu lernen und bin dann bei AutoIT gelandet^^ Ich hab mich mal nen bisschen eingelesen wollte allerdings nich nur die theorie machen, sondern auch an der praxis lernen. ;) Von daher wollt ich fragen ob ihr eure .au3 scripts hochladen könnt, damit ich und die anderen dies interessiert von euch noch einiges lernen können :P Freu mich über eure Hilfe MfG .nAno



All times are GMT +1. The time now is 12:37.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.