[Wartune] E's AutoIt Scripts Daru Farmbot

06/21/2013 17:49 VVayinsane#106
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.
06/21/2013 18:57 KilleN^#107
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
06/22/2013 01:43 VVayinsane#108
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.
06/22/2013 03:56 KilleN^#109
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. =/
06/23/2013 00:00 wrsmith2666#110
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.
06/24/2013 15:54 VVayinsane#111
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.
06/24/2013 17:13 RolloMan#112
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,..
06/24/2013 17:30 lunaticfringe44#113
Wavv can u post up complete script with your fixes...just easier than going peice by peice and seeing if ive changed already..
06/25/2013 21:56 KilleN^#114
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
06/26/2013 00:55 Blackshark01#115
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
06/26/2013 05:15 KilleN^#116
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
06/26/2013 12:24 WaveX#117
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.
06/26/2013 15:42 KilleN^#118
thank you Blackshark, that worked perfectly. Now literally my only problem is getting it to recruit templars and not knights :)
06/27/2013 03:02 Blackshark01#119
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....
06/28/2013 15:29 KilleN^#120
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.