Register for your free account! | Forgot your password?

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

  • 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 07/29/2013, 06:24   #151
 
elite*gold: 0
Join Date: Jul 2013
Posts: 1
Received Thanks: 0
This sucks, you still need to do a survey to get this and no matter how many things I complete on that list it won't download the password!

This s not easy and free....
lostdinasty1998 is offline  
Old 07/29/2013, 13:13   #152
 
Maffiagang's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 319
Received Thanks: 496
So, i have the farm bot working and doing all it should do @ 1280 x 1024, and chrome zoomed in at 125%!!!!
Maffiagang is offline  
Old 08/02/2013, 14:15   #153
 
elite*gold: 0
Join Date: Aug 2013
Posts: 1
Received Thanks: 0
how about the 1600x900?
kordosoft is offline  
Old 08/02/2013, 16:39   #154
 
elite*gold: 0
Join Date: Jan 2009
Posts: 13
Received Thanks: 0
Hello guys , i am reda yread all post,my english isnt good but i understand a little bit ,i am done try darudaru in deatlySand but,when bot found mobs for kill and i am done atack bot dont still use atack button,idk why?
Can someone post here full function darudaru bot for deatlysand with 1280x1024 or for my best resolution 1680x1050 resolution full screen mode chrome,i am done copy dll to system32 now i need only working script,very thx u
Blademiki is offline  
Old 08/04/2013, 00:20   #155
 
Maffiagang's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 319
Received Thanks: 496
The bot works just fine for any resolution, if u would just make new pictures
--->
(with a screenshot(screenshot button between insert and pause/brake button on your keyboard)
--->
(and paint... save as 24-bit BMP!!
)

I have the farmbot working:
Have speed it up and worked out the bugs

and fixed a bug in Guildspinner bot:
Worked out a bug i found, sometimes it clicked spin too fast so it didn't collect and couldn't go any further, bot then just pauses automatically and did nothing.

Both Farmbot and Guildspinner working like a charm over here. Have made the Farmbot faster and am currently working on a function for the Farmbot that will plant and gather my crops (only Lvl. 2 Kyanite Seed and Lvl. 2 Gold Seed at the moment, you can change this later yourself. ) on my farm. Still testing it but when i am done testing, i will post it for you all to use.

I will also look and see if i am able to make a nice guide for you guys, on how to make a good screenshot and on how to edit the script.


Edit:

It has also come to my attention, that if your computer does not have enough resources (CPU power or enough GB of RAM) that the script will also fail to find the pictures.

Please keep that in mind.
Maffiagang is offline  
Thanks
6 Users
Old 08/04/2013, 11:11   #156
 
elite*gold: 0
Join Date: Nov 2009
Posts: 27
Received Thanks: 2
Maffiagang if you could post an updated pack of pics/script that you've moded that would be nice
Thanks.
CidHighwind is offline  
Old 08/07/2013, 12:38   #157
 
Maffiagang's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 319
Received Thanks: 496
Edit:

SCREENSHOTS MADE IN CHROME @ 125% ZOOM, WITH BOOKMARK BAR ENABLED!!!!!

IT IS BEST TO DRAG YOUR SCREEN TO THE TOP AND THEN IN THEN MIDDLE SO THAT THE LITTLE STAIRS NEXT TO YOUR VAULT IS ALMOST TO THE EDGE OF THE RIGHT SIDE OF YOUR SCREEN, THAT WAY THE BOT WORKS AT ITS BEST!!!! (To prevent missing a plot during harvesting etc.)

Alright, i am done testing and all seems to be working fine. i will now post for you all the new and improved FarmBot + MORE!!!

Changelog:


You best read the changelog.

This bot is modified for 1280 x 1024 Resolution.

If this one also does not work for you, do the following

Take screen shots of your farm with the following:

Exterminate picture for both your farm, and in the friend screen;
Revive picture for both your farm, and in the friend screen;
Weed picture for both your farm, and in the friend screen;
Steal picture for both your farm, and in the friend screen;
Charge tree picture for both your farm, and in the friend screen;
Harvest Tree of Ancient picture from your farm;
First page picture of your friend list;
Next picture of your friend list;
Picture of you lvl 2 gold seed;
Picture of your lvl 2 kyanite seed;
Picture of your 3 crates (left side of your farm, with a stone next to it);
Picture of your farm screen with ALL empty farm plots;
Picture of your My Farm button;

and if your in a guild you need a picture of the pop up that the tree has spawned in the chamber WITH close button.


Now all you have to do is change those pictures to the ones that are in the picture folder, and copy them over the old pictures.

Hope u guys have fun with the bot!!

Virus Total:


Dont know what those thing are it detects, but its safe as far as i know.


Even though i have edited this script, 90% of the credit still goes to Ewvyx for making this awesome bot!!!
Attached Files
File Type: zip DaruDaru Edited By Maffiagang.zip (768.3 KB, 353 views)
Maffiagang is offline  
Thanks
7 Users
Old 08/07/2013, 16:21   #158
 
elite*gold: 0
Join Date: Sep 2009
Posts: 2
Received Thanks: 0
When is coming V . 1.3 ?
kaanctn is offline  
Old 08/07/2013, 17:39   #159
 
Maffiagang's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 319
Received Thanks: 496
Quote:
Originally Posted by kaanctn View Post
When is coming V . 1.3 ?
Whenever it is ready, hard to give an estimated time...

EDIT:

So i have added the AFK function to the WB Bloodfang script, it never worked because i forgot to make a picture, lol.

change the current start function with:

Code:
Func start()
	  If $start = False Then
		 Return
	  EndIf
	  If CheckFor($farmDir, "clickblood") Then
			Do
				  Sleep(2000)
				  ClickImage($farmDir, "clickblood")
				  Sleep(100)
				  ClickImage($buttonsDir,"afkmode")
			   Until ClickImage($farmDir, "bloodfoot") = True
	  Else
			   ClickImage($buttonsDir,"afkmode")
	  EndIf
   EndFunc
and the image i have added as attachment you have to copy to the Pics\Farm folder.
Attached Images
File Type: bmp afkmode.bmp (7.0 KB, 103 views)
Maffiagang is offline  
Thanks
4 Users
Old 08/09/2013, 00:56   #160
 
elite*gold: 0
Join Date: Aug 2013
Posts: 3
Received Thanks: 0
Thank you for your hard work!

I tried the farmbot and it somehow stuck at clicking on friends tree to energize. Everything else is working fine! Thanks.
(I havent tried the bloodfang script but I try it tomorrow).

One problem is though the stealing of 1hour crops (same thing is actually with L3 crops like insignia but you see them rarely) which is impolite and results in deleting you from friendlist. Would be nice if it would skip 1hour crops and steal only 4 hour crops.
[ Ignore this if you have implemented this allready ]
tre-x is offline  
Old 08/09/2013, 02:41   #161
 
Maffiagang's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 319
Received Thanks: 496
Quote:
Originally Posted by tre-x View Post
Thank you for your hard work!

I tried the farmbot and it somehow stuck at clicking on friends tree to energize. Everything else is working fine! Thanks.
(I havent tried the bloodfang script but I try it tomorrow).

One problem is though the stealing of 1hour crops (same thing is actually with L3 crops like insignia but you see them rarely) which is impolite and results in deleting you from friendlist. Would be nice if it would skip 1hour crops and steal only 4 hour crops.
[ Ignore this if you have implemented this allready ]
Make a screenshot of your screen (Print Screen next to your INSERT button)
and edit the picture so that it only shows the energizxe picture.

Here i made a video on how i do it:




Will think about ignoring the 1 hour seeds, tho i dont use steal function. Stealing is bad!! :P

EDIT

Been looking into the ignoring thing, it seems not doable since all the lvls, lvl 1 lvl 2 lvl 3 etc, of the same seed look the same, so there is no difference for the image search function to differentiate them from each other.

Sadly, this is not possible. (for me and my limited programming knowledge, maybe someone else can do this?)

Please remember i am still an AMATEUR in the programming scene.

Also, i have found an error in my plant kyanite script where it wouldnt always plant kyanite... i have hanged the code to:

Code:
Func PlantMyKyanite()
   If $plantcrop = False Then
		  Return
	   EndIf
		 If CheckFor2($farmDir, "farmplant2") Then
			ClickImage($farmDir,"mouseclean")
			Sleep(50)
			Do
				  ClickImage($farmDir, "farmplant2")
				  Sleep(50)
				  ClickImage($farmDir, "kyanite")
			   Until ClickImage($farmDir, "farmplant2") = False
		 EndIf	
	  EndFunc
Change it and it should work better now. (Still testing myself.)
Maffiagang is offline  
Thanks
1 User
Old 08/09/2013, 13:21   #162
 
elite*gold: 0
Join Date: Aug 2013
Posts: 3
Received Thanks: 0
Thanks for your quick answer and your video!

I think I use the plantbot. It's working fine. Thanks!

A suggestion to Guild Spinner: It's most of the time just luck what you get but from time to time you get the item on what the yellow ring is on (nearly the same percentage is when yellow ring is on the opposite side of your wished item). I think the most useful things are on the shop symbol. It's the yellow lion head. Is it possible to make a spin when the yellow ring is on the shop symbol?

EDIT:
hahaha thanks a lot for the guildspinner!!! I used it some minutes ago and got two socketing rods cant believe that I am this lucky
tre-x is offline  
Old 08/09/2013, 15:53   #163
 
Maffiagang's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 319
Received Thanks: 496
Quote:
Originally Posted by tre-x View Post
Thanks for your quick answer and your video!

A suggestion to Guild Spinner: It's most of the time just luck what you get but from time to time you get the item on what the yellow ring is on (nearly the same percentage is when yellow ring is on the opposite side of your wished item). I think the most useful things are on the shop symbol. It's the yellow lion head. Is it possible to make a spin when the yellow ring is on the shop symbol?
If i can get the picture just right, i should be able to implement that, i have written the code, but cant test it till tomorrow...

U could also test it yourself, just change the spin function from

Code:
Func RunScript()
	;Main script activated by hotkey
	CheckFor($buttonsDir,"collectdisabled",50)
	While $numberOfSpins > 0
		If CheckFor($buttonsDir,"collectdisabled",50) = False Then
			MouseClick("left",$sX,$sY,1,0)
		 EndIf
			Sleep(500)
			ClickImage($buttonsDir,"spin",50)
			$numberOfSpins -= 1
			While CheckFor($buttonsDir,"spindisabled",50)
			Sleep(100)
		WEnd
	WEnd		
EndFunc
to

Code:
Func RunScript()
	;Main script activated by hotkey
	CheckFor($buttonsDir,"collectdisabled",50)
	While $numberOfSpins > 0
		If CheckFor($buttonsDir,"collectdisabled",50) = False And CheckFor($farmDir,"shopspin",50) Then
			MouseClick("left",$sX,$sY,1,0)
		 EndIf
			Sleep(500)
			ClickImage($buttonsDir,"spin",50)
			$numberOfSpins -= 1
			While CheckFor($buttonsDir,"spindisabled",50)
			Sleep(100)
		WEnd
	WEnd		
EndFunc
then put the picture i attached in ur Pics\Farm folder, or make it urself, the smaller the better.
just remember to be sure that the yellow ring is visible.
Attached Images
File Type: bmp shopspin.bmp (7.9 KB, 59 views)
Maffiagang is offline  
Thanks
2 Users
Old 08/09/2013, 22:07   #164
 
elite*gold: 0
Join Date: Aug 2013
Posts: 3
Received Thanks: 0
Thanks! I test it also tomorrow (used all my spins today).
If you have any gamerelated question ask away
tre-x is offline  
Old 08/10/2013, 12:00   #165
 
Maffiagang's Avatar
 
elite*gold: 0
Join Date: Jun 2008
Posts: 319
Received Thanks: 496
Quote:
Originally Posted by tre-x View Post
Thanks! I test it also tomorrow (used all my spins today).
If you have any gamerelated question ask away
Alright, got it fixed, this is as good as it will get, sometimes tho, it will click on spin a little after the ring has left the shop sign...


Change ur spin function to:

Code:
;===========================================================================================================
;@Author Ewvyx  I wrote this so please don't slap your name on it.

;This script will do all of your guild altar spins for you.
;Just open the altar spinner and press 'q'
;Be sure to edit the number of spins you have available in the User Defined Variables section below
#RequireAdmin
#include <ImageSearch.au3>

;===========================================================================================================
;Global Variables (DO NOT CHANGE UNLESS YOU KNOW WHAT YOU ARE DOING)

;X Coords Input on 1920x1080 :  1518x198
;Y Coords Input on 1920x1080 :  1553x198

$Version = "1.1.0a"
Global $Paused
Global $gX = 0
Global $gY = 0
Global $sX = 0
Global $sY = 0
Global $success = False ;boolean for various checks
Global $tolFail = 0 ;tolerance failures for _ImageSearch


;===========================================================================================================
;User Defined Variables

$bmpLocation = @ScriptDir & "\Pics"
$farmDir = "Farm"
$buttonsDir = "Buttons"
$defaultCheckRate = 0.1		;smaller the number, the faster the image checks are.  increase if icons are not being found
$numberOfSpins = 15			;the number of altar spins you want to perform

;===========================================================================================================
;HotKeys

HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("q","RunScript")
;===========================================================================================================
;~Functions

Func TogglePause()
    $Paused = Not $Paused
    While $Paused
        Sleep(100)
        ToolTip("Script is Paused, press q to continue.", 0, 0)
    WEnd
    ToolTip("")
EndFunc   ;==>TogglePause

Func Terminate()
    Exit 0
EndFunc   ;==>Terminate

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(50)
		If $c > ($seconds * 10) Then
			Return False
		EndIf
	Until _ImageSearchArea($string,1,$startX,$startY,$endX,$endY,$gX,$gY,$tolerance)
	If $img = "collectdisabled" Then
		$sX = $gX
		$sY = $gY
	EndIf
	Sleep(50)
	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	

Func HoverOverImage($directory,$img,$tolerance=50,$startX=0,$startY=0,$endX=@DesktopWidth,$endY=@DesktopHeight,$seconds=$defaultCheckRate)
	If CheckFor($directory,$img,$startX,$startY,$endX,$endY,$seconds,$tolerance) Then
		MouseMove($gX,$gY,0)
		Sleep(50)
		Return True
	Else
		Return False
	EndIf
EndFunc

Func RunScript()
	;Main script activated by hotkey
	CheckFor($buttonsDir,"collectdisabled",50)
	While $numberOfSpins > 0
		If CheckFor($buttonsDir,"collectdisabled",50) = False Then
			MouseClick("left",$sX,$sY,1,0)
		 EndIf
			While CheckFor($farmDir,"shopspin",50)
			Sleep(50)
			ClickImage($buttonsDir,"spin",50)
			$numberOfSpins -= 1
		 WEnd
			While CheckFor($buttonsDir,"spindisabled",50)
			Sleep(100)
			WEnd
		WEnd		
	 EndFunc		
	 
;===========================================================================================================
;Main

While 1
	ToolTip("Press 'q' to begin, PAUSE to pause and ESC to quit.",0,0)
	Sleep(100)
WEnd
And it all works.

Ofcourse, also add the attached picture to your Pics\Farm folder.
Attached Images
File Type: bmp shopspin.bmp (2.5 KB, 51 views)
Maffiagang is offline  
Thanks
3 Users
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:42.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.