Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Browsergames
You last visited: Today at 09: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/17/2013, 02:42   #91
 
elite*gold: 0
Join Date: Jun 2013
Posts: 4
Received Thanks: 0
Quote:
Originally Posted by Gurnnink View Post
Using DaruDaru...work perfect for me with lock in co-ords of mouse...altough i would like to have one things better....and thats speed. Scrolling/searching is too slow. What should i change to make it faster?

Code:
$defaultCheckRate = .1 ;smaller the number, the faster the image checks are.  increase if managogs aren't being found.
If i change number in this line, lets see even to .099 i get nowhere,its just using "searching attack button/wilds" and not scrolling or looking for managogs :-(...anyway,noob here :-) so be kind at me ...
that happens to me when im in windowed mode.. but only with my 32bit system..not on 64bit for some reason. seems like its not picking up the bmp of your wilds screen..not sure which button it looks for.

as far as speed goes..fix that other issue and youll see the search speed

Ive got fetid swamp of daru bmps working great if anyone needs the images and script...doesnt click ground doesnt miss hardly any troops.

working on troops and health regen now.

if your having trouble what i did and this is important...dont use three different images for one npc..take one "unique" bmp and make sure its a good pic that gets found 1/3 of the times when using picfind script...then use that same image 3 times just name 1 2 and 3...and set your search speed to 1...that runs at the same speed as the animations...so ive found that it will pick it up 95% of the time. ive gotten it to find the bouncing eye 100% of the time and on that one theres no still parts so.also when using bmps dont use anything that resembles any other area of the map or buttons on your scrn...make sure its a unique area of the mob and size is a big part..adjust your screen size up or down to match as best you can so it can fnd. pm me your email and ill send u the images the images i have work great on 1900x1200 -1900-1080 and 1600-900
lunaticfringe44 is offline  
Old 06/18/2013, 02:19   #92
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
Hey everyone, sorry i have not been on much. Im trying to edit the script to search faster. Im almost got it working right. Haven a few issues but I have a feeling ill get it working right. Once i get if working right lll post. What im doing is if no mob is seen like its name then it wont search mobs. It will cut the time down a lot. Only other issue is that chests wont be seen but i dont care about chests right now only mobs cause i want dura.

After i posted this..i think i got it...... If no mob is seen it will bypass the search for mob and go to the next coords. If a mob is seen it will search. Unfortunately chests arnt going to be seen so if you dont care about them so much then use my script. Im going to be testing it tonight and tomorrow if all works well ill give post corrections that are needed.
VVayinsane is offline  
Old 06/18/2013, 02:50   #93
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
I know people dont want to wait. Try it out and let me know what you think.

Go to the following in the script.

Code:
Func RunScript()
	;Main script activated by hotkey
	While 1
		If CheckWildsView() Then
			Do
				If ClickImage($buttonsDir,"attack") Then
					Sleep(500)
				ElseIf CheckLowTroops() Then
					RecruitTroops()
				ElseIf SearchForAttackSword() Then
					Do
						WaitForAttack()
					Until SearchForAttackSword() = False Or ClickImage($buttonsDir,"attack") = True
				ElseIf $managogFound = False And SearchForManagogs() Then
					ToolTip("Managog found!",0,0)
					Sleep(1000)
					$managogFound = True
					Do
						WaitForAttack()
					Until SearchForAttackSword() = False Or ClickImage($buttonsDir,"attack") = True
				ElseIf $managogFound = True And $success = False Then
					$managogFound = False
					ChangeCoords()
				ElseIf $managogFound = False Then
					ChangeCoords()
				EndIf
			Until $success = True
			If $success = True Then
				$managogFound = False
				CheckAFKMode()
			EndIf
		Else
			$success = False
			$managogFound = False
			CheckAFKMode()
		EndIf	
	WEnd
EndFunc
Copy and past bellow

Code:
Func RunScript()
	;Main script activated by hotkey
	While 1
		If CheckWildsView() Then
			Do
				If ClickImage($buttonsDir,"attack") Then
					Sleep(500)
				ElseIf CheckLowTroops() Then
					RecruitTroops()
				ElseIf SearchForAttackSword() Then
					Do
						WaitForAttack()
					Until SearchForAttackSword() = False Or ClickImage($buttonsDir,"attack") = True
				ElseIf CheckFor($managogsDir,"mob") = True Or CheckFor($managogsDir,"chest") = True And SearchForManagogs() Then
					ToolTip("Managog found!",0,0)
					Sleep(1000)
					$managogFound = True
					Do
						WaitForAttack()
					Until SearchForAttackSword() = False Or ClickImage($buttonsDir,"attack") = True
				ElseIf CheckFor($managogsDir,"mob") = True Or CheckFor($managogsDir,"chest") = True And $success = False Then
					$managogFound = False
					ChangeCoords()
				ElseIf $managogFound = False Then
					ChangeCoords()
				EndIf
			Until $success = True
			If $success = True Then
				$managogFound = False
				CheckAFKMode()
			EndIf
		Else
			$success = False
			$managogFound = False
			CheckAFKMode()
		EndIf	
	WEnd
EndFunc
Once that is done. Take the picture i have attached and put it in your Managogs folder.

Ive also edit it to also look for the chest and mob and if nothing is found it will skip searching for them and go to the next coords. if a chest or mob is on the screen then it will search managogs..... This will make the bot faster. helps this help people..
Attached Images
File Type: bmp mob.bmp (1,014 Bytes, 152 views)
File Type: bmp chest.bmp (1.6 KB, 108 views)
VVayinsane is offline  
Old 06/18/2013, 22:52   #94
 
elite*gold: 0
Join Date: Aug 2011
Posts: 1
Received Thanks: 0
Will test out the new code
mqis is offline  
Old 06/19/2013, 00:04   #95
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
Anyone has any feedback? Quick fix you need to add anouther mob line. Bellow is a second lvl picture. named mob2. So bellow is a fix

Code:
Do
						WaitForAttack()
					Until SearchForAttackSword() = False Or ClickImage($buttonsDir,"attack") = True
				ElseIf CheckFor($managogsDir,"mob") = True Or CheckFor($managogsDir,"mob2") = True Or CheckFor($managogsDir,"chest") = True And SearchForManagogs() Then
					ToolTip("Managog found!",0,0)
					Sleep(1000)
					$managogFound = True
					Do
						WaitForAttack()
					Until SearchForAttackSword() = False Or ClickImage($buttonsDir,"attack") = True
				ElseIf CheckFor($managogsDir,"mob") = True Or CheckFor($managogsDir,"mob2") = True Or CheckFor($managogsDir,"chest") = True And $success = False Then
					$managogFound = False
					ChangeCoords()
				ElseIf $managogFound = False Then
					ChangeCoords()
Attached Images
File Type: bmp mob2.bmp (954 Bytes, 75 views)
VVayinsane is offline  
Old 06/19/2013, 02:55   #96
 
elite*gold: 0
Join Date: Dec 2009
Posts: 5
Received Thanks: 0
can anyone make this script work on a 1680 x 1050 screen on chrome? please?
NIGHTMAREboss is offline  
Old 06/19/2013, 15:51   #97
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
Nightmareboss....Please can you read the forums..Dont feel like double posting
VVayinsane is offline  
Old 06/19/2013, 17:35   #98
 
elite*gold: 0
Join Date: Jun 2013
Posts: 4
Received Thanks: 0
Quote:
Originally Posted by NIGHTMAREboss View Post
can anyone make this script work on a 1680 x 1050 screen on chrome? please?

dont worrys so much about scrn res..mess around with the zoom try it in windowed mode and try diff size windows aswell

btw Wavv good idea...whered u come up with that.......
lunaticfringe44 is offline  
Old 06/19/2013, 22:55   #99
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
Just idea, trying to improve on Ewvyx awesome work. Anouther script im working on is every 4 hours it will stop farming darus and go to your farm, pick, plant and then go back to farming. Hope to get it working soon.
VVayinsane is offline  
Old 06/20/2013, 06:50   #100
 
elite*gold: 0
Join Date: Jun 2013
Posts: 2
Received Thanks: 0
Only guild spinner work but slow
please edit the script for 1024x768
playing wartune at r2games
thanks
jualsempolan is offline  
Old 06/20/2013, 16:43   #101
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
Jualsempolan I use that server and you have to edit the coords. if you read the forums you would relise that..bellow is a fix for you.

Open the daru daru go to

Func ChangeCoords()

make it look like 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
	 EndIf
	 MouseClick("left",832,21,2,0) ;<=== change these coords
         Send($mapX)
         MouseClick("left",868,21,2,0) ;<=== change these coords
         Send($mapY)
	 MouseClick("left",900,21,2,0)
	 Sleep($wait
EndFunc)
You only need to edit the mouseclick lines
VVayinsane is offline  
Thanks
2 Users
Old 06/20/2013, 17:52   #102
 
elite*gold: 0
Join Date: Jun 2013
Posts: 37
Received Thanks: 16
Quote:
Originally Posted by VVayinsane View Post
Jualsempolan I use that server and you have to edit the coords. if you read the forums you would relise that..bellow is a fix for you.

Open the daru daru go to

Func ChangeCoords()

make it look like 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
	 EndIf
	 MouseClick("left",832,21,2,0) ;<=== change these coords
         Send($mapX)
         MouseClick("left",868,21,2,0) ;<=== change these coords
         Send($mapY)
	 MouseClick("left",900,21,2,0)
	 Sleep($wait
EndFunc)
You only need to edit the mouseclick lines
How do I know whice cords I need write in?
like I click on mob and h show me crods and I write in or what?
RolloMan is offline  
Old 06/20/2013, 18:02   #103
 
elite*gold: 0
Join Date: Jun 2008
Posts: 60
Received Thanks: 18
we have the same screen res. The coords should work
VVayinsane is offline  
Old 06/20/2013, 18:44   #104
 
elite*gold: 0
Join Date: Jun 2013
Posts: 2
Received Thanks: 0
Quote:
Originally Posted by VVayinsane View Post
Jualsempolan I use that server and you have to edit the coords. if you read the forums you would relise that..bellow is a fix for you.

Open the daru daru go to

Func ChangeCoords()

make it look like 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
	 EndIf
	 MouseClick("left",832,21,2,0) ;<=== change these coords
         Send($mapX)
         MouseClick("left",868,21,2,0) ;<=== change these coords
         Send($mapY)
	 MouseClick("left",900,21,2,0)
	 Sleep($wait
EndFunc)
You only need to edit the mouseclick lines

thanks VVayinsane
but its still wrong correction
so i made little correction

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
	 EndIf
	 MouseClick("left",832,21,2,0) ;<=== change these coords
         Send($mapX)
         MouseClick("left",868,21,2,0) ;<=== change these coords
         Send($mapY)
	 MouseClick("left",900,21,2,0)
	 Sleep($wait)
EndFunc
and must in fullscreen
jualsempolan is offline  
Old 06/21/2013, 14:59   #105
 
elite*gold: 0
Join Date: Jun 2013
Posts: 12
Received Thanks: 0
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?
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 09: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.