[Wartune] E's AutoIt Scripts Daru Farmbot

11/23/2013 11:39 Ol4fff#241
Question:
didnt read all pages till now.

Does this Bot run in german Demon Slayer game, too? I use the client version and no browser.
Would be glad, if someone could say sth.
11/23/2013 14:25 godsnarvent#242
anyone have this working in 1366X768 yet?
11/23/2013 16:58 FriTzRo#243
The folder with pics should be placed somewhere?
11/24/2013 01:05 delgadorem#244
[Only registered and activated users can see links. Click Here To Register...]

here is a chinese wartune bot but i cant seem to make work coz i dont understand chinese hope someone could do it ^^

the password is "rem" without quotes
11/24/2013 02:49 rick51682#245
telboy007
Hi I run your duradura res 1680,1050, crome. It dose not find managogs.
It does not search to edge of map and the managogs it does find is dirt. I can edit the pics but I have the same setup as you. I am lvl 60 so i can run all maps. Does not find on any map. The 1st script (Ewvyx) works for me but its slow and had to replace all pics.
Any help would be good.
Thanks
11/24/2013 09:54 telboy007#246
If you running Erandel then that is using the exact same code and the exact same bmps as E's original script. So that's a bit confusing.
11/24/2013 17:35 MrShady187#247
EDIT:

Hi, I modified a bit with the Farm_Bot and now I have a problem with the ImageSearch.
It should search an Image in the taskbar, a browser icon, but it dont find it, but why?
How it seems to me, the ImageSearch function work from 0,0 to DesktopHeight,DesktopWidth, so it must find something in the taskbar too or not?

Code:
Func CheckFor($directory,$img,$tolerance=50,$startX=0,$startY=0,$endX=@DesktopWidth,$endY=@DesktopHeight,$seconds=$defaultCheckRate)
	$c = 0
	MouseMove($sX,$sY,0)
	$string = $bmpLocation & "\" & $directory & "\" & $img & ".bmp"
	$updateString = $img
	ToolTip("Checking for " & $updateString,0,0)
	$tolerance = 70
	If $tolFail > 0 Then
		$tolerance += $tolFail
	EndIf
	Do
		$c += 1
		Sleep(100)
		If $c > ($seconds * 10) Then
			Return False
		EndIf
	;Until _ImageSearchArea($string,1,$startX,$startY,$endX,$endY,$gX,$gY,$tolerance)
	Until _ImageSearchArea($string,1,216,180,1723,1002,$gX,$gY,$tolerance)
	If $img = "farmsign" Then
		$sX = $gX
		$sY = $gY
	EndIf
	Sleep(500)
	Return True
EndFunc

Func ClickImage($directory,$img,$tolerance=50,$startX=0,$startY=0,$endX=@DesktopWidth,$endY=@DesktopHeight,$seconds=$defaultCheckRate)
	If CheckFor($directory,$img,$tolerance,$startX,$startY,$endX,$endY,$seconds) Then
		MouseClick("left",$gX,$gY,1,0)
		Return True
	Else
		Return False
	EndIf
EndFunc
11/25/2013 00:12 drphil#248
ok i have your download and read ever thing in readme file i didnt tuch any thing and it stil not working for me there something am missing here
11/25/2013 01:17 ·!¦[·ZΞЦS™·]¦!·#249
Quote:
Originally Posted by delgadorem View Post
[Only registered and activated users can see links. Click Here To Register...]

here is a chinese wartune bot but i cant seem to make work coz i dont understand chinese hope someone could do it ^^

the password is "rem" without quotes
This bot ist not free, you must pay for it here: [Only registered and activated users can see links. Click Here To Register...]
11/25/2013 06:08 rick51682#250
I did fresh install with your one. I just re did the pics and it works ok.
11/25/2013 12:02 Lejenk#251
How do you re-do the pics?
11/25/2013 14:13 telboy007#252
Quote:
Originally Posted by MrShady187 View Post
EDIT:

Hi, I modified a bit with the Farm_Bot and now I have a problem with the ImageSearch.
It should search an Image in the taskbar, a browser icon, but it dont find it, but why?
How it seems to me, the ImageSearch function work from 0,0 to DesktopHeight,DesktopWidth, so it must find something in the taskbar too or not?

Code:
Func CheckFor($directory,$img,$tolerance=50,$startX=0,$startY=0,$endX=@DesktopWidth,$endY=@DesktopHeight,$seconds=$defaultCheckRate)
	$c = 0
	MouseMove($sX,$sY,0)
	$string = $bmpLocation & "\" & $directory & "\" & $img & ".bmp"
	$updateString = $img
	ToolTip("Checking for " & $updateString,0,0)
	$tolerance = 70
	If $tolFail > 0 Then
		$tolerance += $tolFail
	EndIf
	Do
		$c += 1
		Sleep(100)
		If $c > ($seconds * 10) Then
			Return False
		EndIf
	;Until _ImageSearchArea($string,1,$startX,$startY,$endX,$endY,$gX,$gY,$tolerance)
	Until _ImageSearchArea($string,1,216,180,1723,1002,$gX,$gY,$tolerance)
	If $img = "farmsign" Then
		$sX = $gX
		$sY = $gY
	EndIf
	Sleep(500)
	Return True
EndFunc

Func ClickImage($directory,$img,$tolerance=50,$startX=0,$startY=0,$endX=@DesktopWidth,$endY=@DesktopHeight,$seconds=$defaultCheckRate)
	If CheckFor($directory,$img,$tolerance,$startX,$startY,$endX,$endY,$seconds) Then
		MouseClick("left",$gX,$gY,1,0)
		Return True
	Else
		Return False
	EndIf
EndFunc
This is your problem:

Until _ImageSearchArea($string,1,216,180,1723,1002,$gX,$ gY,$tolerance)

Bascially that line says "run this loop until I've found the image within the specified screen location 216,180 to 1723,1002.

This will probably ignore the taskbar on your screen.

Change to:

Until _ImageSearchArea($string,1,0,0,@DesktopWidth,@Desk topHeight,$gX,$gY,$tolerance)

That will probably help.

Quote:
Originally Posted by Lejenk View Post
How do you re-do the pics?
Screenshots and MSPaint are your friends. If you're taking screenshots of managogs you need to get a section of their bodies (that doesn't include background) as that will maximise the ability of the farm bot to click on and attack them.

Quote:
Originally Posted by rick51682 View Post
I did fresh install with your one. I just re did the pics and it works ok.
Awesome! The images are the thing that normally cause problems.
11/25/2013 20:39 MrShady187#253
Yeah man thank you very much, it work :D
11/26/2013 20:17 Ps.Ionut#254
Hi guys... does this scrips work for any1? I try DaruDaru and Farm_bot and they are not working
11/26/2013 22:10 telboy007#255
Want to give any more details?