Register for your free account! | Forgot your password?

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

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

Advertisement



Grepolis AutoIt scripts generator

Discussion on Grepolis AutoIt scripts generator within the Browsergames forum part of the Other Online Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2010
Posts: 6
Received Thanks: 0
Grepolis AutoIt scripts generator

Hi,

I have created an script generator for Grepolis.
It has limited actions, I mainly wrote it to attack, conquer and support conquered city (just after conquest) when I was sleeping

It works pretty nice on french server(s) (I'm using it only in one world), and it should work on other servers too... at least if the display structure of the game is exactly the same for all languages.
And it cannot be detected as it simulates your keystrokes and mouse moves.

It was first written for french users who do not understand english, like my bro'. I did the english translation pretty fast hence some terms may not be right chosen.

On the first tab, you have to set, as close as possible, the coordinates of one pixel which will be used as reference for every mouse moves. So if you move your browser window or change its size, it won't work anymore until you set again the reference pixel.

If you have more than one city, then fill the Cities.txt file and don't delete the first line. Fill it with the same order your cities are listed in the pop-up menu. Anyway, you don't need to do this if you only want to take a look at GreScript.

Delays are here, because depending on your computer and/or you connexion (connection for US people), it can take seconds before the page is rendered.

No need to install, just unzip and run. To create a script, enter some values, click here and here and press "Create.au3" (if you don't add .au3 at the end of the filename, it will be added for you). Then open, test.au3 for instance with a text editor to see (and maybe understand) how it works.

Now, a script is to be executed/launched, not only to be viewed on a text editor
At this point, if you want to go further, you will need to install AutoIt3 (see link at the beginning of the topic) (or use the stand alone version). Then you will be able to run the script as is, or to compile it in a .exe file.
The editor SciTE, included with AutoIt package, will allow you to edit au3 scripts with color syntax. It's better if you want to understand, modify, create scripts.

Now the files :
French version :
English version :
Sources :
PS : I'm not sure I did the VT links well !

I have put the files back since someone is finally interested/curious about this.
I have added sources too, even if it's a small piece of code, please don't sell it (even if you modifiy it).
And if you modify it, I will really appreciate to see what you've done, just by curiosity. Thanks.

Thanks for reading.
io. is offline  
Old 10/10/2010, 19:14   #2
 
deathmiau's Avatar
 
elite*gold: 20
Join Date: Oct 2009
Posts: 291
Received Thanks: 67
You have forgot VT. But File is Clean
VT .rar 3/41

VT unziped 4/41
deathmiau is offline  
Thanks
1 User
Old 10/10/2010, 19:58   #3
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,878
Quote:
Originally Posted by deathmiau View Post
You have forgot VT
VT .rar 3/41

VT unziped 4/41
Source angeschaut und kann im Grunde nur das sagen: Ist clean.
I took a look at the source and i can just say this: Its clean.
Shadow992 is offline  
Thanks
2 Users
Old 10/10/2010, 21:55   #4
 
elite*gold: 0
Join Date: Oct 2010
Posts: 6
Received Thanks: 0
Oops, sorry, I should have read the rules.
io. is offline  
Old 10/16/2010, 10:46   #5
 
elite*gold: 0
Join Date: Aug 2010
Posts: 29
Received Thanks: 0
can you send me the link to download the script?
Battal Gazi is offline  
Old 10/24/2010, 00:18   #6
 
elite*gold: 0
Join Date: Oct 2010
Posts: 6
Received Thanks: 0
Yes.
io. is offline  
Old 10/24/2010, 01:39   #7
 
elite*gold: 0
Join Date: Aug 2010
Posts: 29
Received Thanks: 0
thank you, io
Battal Gazi is offline  
Old 10/24/2010, 02:22   #8
 
elite*gold: 0
Join Date: Aug 2010
Posts: 29
Received Thanks: 0
thank you, io.
Looks really good. But after first testing with one city of me and the attack possibility:
I created an attack script and want to send 578 slingers to a ghost city.
The standard delays are fine, but the script does not fill in the attack box the 578 slingers. I receive always the message that at least 65 soldiers should be in the attack. I encreased the standard set time, but again same message.

Edit:

I found the error. I added 2 delays in in the attack option and now it works.

; 578 line 2 column 9
MouseClick ( "left", 563, 556, 1, 0 )
Sleep ( 2000 )
Send ( "100" )
Sleep ( 2000 )
; Attack

But how can I manage it, that he attacks independet of the time? i.e. it should do its job after couple of seconds after the script was started.
Battal Gazi is offline  
Old 10/24/2010, 10:35   #9
 
elite*gold: 0
Join Date: Oct 2010
Posts: 6
Received Thanks: 0
Hi and thanks for you interest.

On the main tab, there is 3 boxes, in those boxes you can change the delays. The one you're talking about is "Pop-up actions delay".

"Map display delay" is used when you select another city than your active one from your list of cities. On my computer, it takes around 8 second to redraw the sea map with the new selected city.
"Pop-up actions delay" is the delay done between each action done on the pop-up window.
When you click a city on the sea map, the pop-up window appears, "City loading delay" is the delay between this click and the first action done on the pop-up.

On the bottom of the window, you have a time section, just fill it with the current time before saving your script and launch it. Don't fill 10:33:- and save at 10h33m55s for instance or you won't have enough time to launch the script. You can have a time test to the second if you fill the seconds box (called SS).
Or you can simply remove the time test loop in the generated script.
As scripts were supposed to be running while I was not in front of my computer, I did not add the option to disable the time test loop.
io. is offline  
Old 10/29/2010, 23:55   #10
 
elite*gold: 0
Join Date: Aug 2010
Posts: 29
Received Thanks: 0
thanks I will try it the next hours with a test person/person and will go to bed ;o)
Battal Gazi is offline  
Old 07/12/2011, 16:40   #11
 
elite*gold: 0
Join Date: Jul 2011
Posts: 2
Received Thanks: 0
what does "maj" in "maj to cancel" mean?
johnmirra is offline  
Old 07/12/2011, 19:03   #12
 
elite*gold: 0
Join Date: Oct 2010
Posts: 6
Received Thanks: 0
Sorry, a small part I forgot to translate
It means MAJUSCULE or in english SHIFT.
io. is offline  
Old 07/13/2011, 14:59   #13
 
elite*gold: 0
Join Date: Jul 2011
Posts: 2
Received Thanks: 0
you're still using this thing? Maybe even improved it some. I can't quite figure it all out. A detailed HowTo or guide on a small scale would be nice.

Edit: I got to clicking here and there and i think i got the idea. Making scripts for attacking and supporting cities is beginning to look very grim.
johnmirra is offline  
Old 07/13/2011, 16:09   #14
 
elite*gold: 0
Join Date: Oct 2010
Posts: 6
Received Thanks: 0
Hi,

I don't play this game anymore for months now (too much time eaten). I did not improve anything since this release.

Anyway, lately (few weeks before quitting the game) I was using another way to play.
Instead of creating multiple scripts, I started to open multiple tabs with everything ready for my attackS. The only thing remaining to do was clicking on the attack button at the right time.

So my new script was very simple and was only testing hours, minutes and seconds if needed, then it clicked on attack and closed the tab or switched to the next one.

Last time I used it, it looked like this :

Code:
While 1
	If @HOUR = 7 Then
	;1
		If @MIN = 05 Then
			MouseClick ( "left", 1546, 12, 1, 0 )
			Sleep ( 2000 )
			LanceAttaque ()
		EndIf
	EndIf

	If @HOUR = 4 Then
	;2
		If @MIN = 05 Then
			MouseClick ( "left", 1746, 12, 1, 0 )
			Sleep ( 2000 )
			LanceAttaque ()
		EndIf

 	;3
 		If @MIN = 11 Then
			MouseClick ( "left", 1946, 12, 1, 0 )
			Sleep ( 2000 )
			LanceAttaque ()
 		EndIf

;~ 	;4
;~ 		If @MIN = 30 and @SEC = 32 Then
;~ 			LanceAttaque ()
;~ 		EndIf

;~ 	;5
;~ 		If @MIN = 38 and @SEC = 36 Then
;~ 			LanceAttaque ()
;~ 		EndIf

;~ 	;6
;~ 		If @MIN = 57 and @SEC = 02 Then
;~ 			LanceAttaque ()
;~ 			Exit
;~ 		EndIf

;~ 	;7
;~ 		If @MIN = 19 and @SEC = 28 Then
;~ 			LanceAttaque ()
;~ 		EndIf

;~ 	;8
;~ 		If @MIN = 19 and @SEC = 47 Then
;~ 			LanceAttaque ()
;~ 		EndIf

;~ 	;9
;~ 		If @MIN = 20 and @SEC = 28 Then
;~ 			LanceAttaque ()
;~ 		EndIf

;~ 	;10
;~ 		If @MIN = 20 and @SEC = 47 Then
;~ 			LanceAttaque ()
;~ 		EndIf

;~ 	;11
;~ 		If @MIN = 21 and @SEC = 4 Then
;~ 			LanceAttaque ()
;~ 		EndIf

;~ 	;12
;~ 		If @MIN = 22 and @SEC = 4 Then
;~ 			LanceAttaque ()
;~ 		EndIf
;~ 	ElseIf @HOUR = 6 Then
;~ 	;13
;~ 		If @MIN = 48 and @SEC = 40 Then
;~ 			LanceAttaque ()
;~ 			Exit
;~ 		EndIf
;~ 		Exit
	EndIf

; Change this to modify precision of attack launching
	Sleep ( 20000 )
WEnd

Func LanceAttaque ()
	MouseClick ( "left", 2186, 565, 1, 0 )
	Sleep ( 2000 )
	; Change by ctrl-tab to switch to next tab instead of closing it
	Send ( "^w" )
EndFunc

Func LanceAttaqueAllie ()
	MouseClick ( "left", 2190, 690, 1, 0 )
	Sleep ( 1000 )
	MouseClick ( "left", 2280, 478, 1, 0 )
	Sleep ( 1000 )
	Send ( "^w" )
EndFunc
io. is offline  
Old 07/30/2013, 02:59   #15
 
elite*gold: 0
Join Date: May 2011
Posts: 1
Received Thanks: 0
hi,

i can't do the downlaod. Can you give me the link? Those links are empty of files...
beaten is offline  
Reply


Similar Threads Similar Threads
how about using autoit scripts to make a bot?
05/25/2010 - Rohan - 1 Replies
how about using autoit scripts to make a bot for rohan? besides it has many actions that can be used by macro-recorders. the only problem is: it's auto response in using the skills. but heres another problem if you'll create it from autoit: no dual log in well, it's your problem if you don't have 2 pcs, I suggest that if you own 1 pc and 1 laptop, then login your two different accounts one on each computer's own clients normally, then after that you must to a safe place so no one can pk...
How to turn on autoit scripts
02/04/2010 - Mabinogi - 5 Replies
umm im a newb so dont hate too much on my question I've been trying to get the cloud bot to work but whenever i click the imagesearch.au3 script thingy nothing happens. I tryed the .exe but it gets deteted by hackshield.. ne ideas why?
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
AutoIt - Scripts im Hintergrund
10/08/2009 - AutoIt - 7 Replies
deutsch: Huhu Leute, ich bin gerade dabei einen S4 bot zu scripten und hab da mal eine frage an die die sich mit dem programm AutoIt auskennen. Das script läuft immer im vordergrund, d.h. man kann nicht dabei machen z.B. Internet surfen usw. Gibt es eine Möglichkeit, das mein AutoIt script NUR auf das spiel also s4league.exe begrenzt wird, sodass man sachen nebenbei machen kann? gruß foggdp ;) english: hi guys, i'm still scripting a s4 bot and I've a question for those, who are still...
autoit scripts
12/14/2006 - World of Warcraft - 4 Replies
kann es sein das autoit antiafk script net mehr gehen ? zumindest bei mir net



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


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.