Empire Craft Bot

12/12/2009 14:32 Utharnl#1
Last updated 28-04-2010: v2.4

I stopped the development of this bot. If you want to continue this project you can find the source code on my blog.

The purpose of this bot is to train your heroes by attacking devil troops. It’s also possible to attack other towns to increase your resources. As a protection for your troops they will be send away when you are under attack. Since version 2.3 there is also a building queue.

Current functionality:
-Unlimited building queue.
-Train your hero’s by killing the nearest Devil Troops.
-Possible to train multiple heroes in the same town.
-Attack towns near you to increase your resources. (See farms.txt)
-Flee when you’re under attack. (Uses farms.txt to choose a target)
-Automatic reconnect when connection to server is lost.
-Support for the Logitech G15 Keyboard. (Bot works fine without this keyboard).

Requirements:
-[Only registered and activated users can see links. Click Here To Register...]

Quick start guide:
-Click View->Settings
-Update settings
-Click Actions->Login
-Wait till bot is ready
-Click Actions->Start

Detailed guide:
This is the main interface of the Empire Craft Bot.
[Only registered and activated users can see links. Click Here To Register...]
Menu's:
-File: Exit
-Actions: Login, Start, Stop
-View: Settings, Hero ID's

[Only registered and activated users can see links. Click Here To Register...]

In the settings menu you will find everything needed to configure your bot.
Please note that your password is saved in settings.txt.

Fields:
-User name
-Password
-Server: After you press the menu item Actions -> Login you can no longer change this.
-Farm mode: Your hero’s will attack all towns in farms.txt
-Training mode: All the hero’s that you enter in trainees will attack devil troops. The heroes that you are training will not be used to farm resources.
-Build Timer (Min.): The time in minutes between each check of the building queue.
-Debug mode: Will log messages to debug.txt that helps the developer identify problems.
-Log attacks: This will log all your attacks.

[Only registered and activated users can see links. Click Here To Register...]

This is the Hero ID’s window.
Here you can see the ID’s you need to enter for the training mode.
There are two kind of id’s, a long one and a short one. If you just enter the one that is shown in this window it works.
Example short: [21780]
Example long: [362b1a3d-1b0b-495f-b507-ce60b7d937e0]

Enter all the id’s in the following format:
[id][id][id]
If you don’t use ‘[' and ']‘ it won’t work.
Example: “Trainees” [21780][21781][362b1a3d-1b0b-495f-b507-ce60b7d937e0]

How to use farms.txt:
Example:
Quote:
Aydind;466185;467188;461185;464188;463189;457185;4 63193;458189;461192;457189
Nicoba;502208;498217;495216;490212
Tamara;006225;503220;503224;501224;000228;499224;5 00229;498228;496228;500233;495229;498233
Renwol;495229;489224;493229;493232;486228;488232;4 81229;485233;482232;480232;484237
Hartla;013221
The farms.txt file is used to know which towns to attack during farm mode or when you're fleeing.
In my case I have 5 towns, called Aydind Nicoba Tamara Renwol and Hartla. Behind each town name you can type the coordinates you want to attack. Those coordinates should always be 6 digits long.
The result is:
My hero's in Aydind will attack: 466185, 467188, ....
My hero's in Nicoba will attack: 502208, 498217, ....
....

Requirements farms.txt:
Each town should be on a new line
All coordinates must be 6 digits long. Use zero's if it shorter. Example: 000228 or 123001

As a final note, if you want to go to the game on your browser first pause the bot!

Release notes:
Version: 2.4 Date: 28-04-2010
-Improved anti-detection

Version: 2.3 Date: 18-04-2010
-Added building queue.
-Fixed small GUI problem

Click spoiler for older release notes.

I stopped the development of this bot. If you want to continue this project you can find the source code on my blog.

Download mirror: [Only registered and activated users can see links. Click Here To Register...]
12/20/2009 14:44 Utharnl#2
Added newest version, v1.63
This version make long hero id's better readable.

I see it's downloaded a few times now,
Someone with questions on how to use it or maybe some tips to improve it?
12/22/2009 00:12 jere88#3
did it work?
12/22/2009 00:20 Utharnl#4
Quote:
Originally Posted by jere88 View Post
did it work?
Yeah it works fine, i'm using it on w15.
If you have any problems with the settings post a message here and will help you with it.
12/22/2009 00:29 jere88#5
okay, I will test it and report you if something happened
12/26/2009 17:04 TomasSt#6
hello
in my windows write.

empirecraftbot.exe - Application Error
The application failed to initialize properly (0xc00000135). Click on OK to terminate the appllication.

what need to do for open?

T.
12/26/2009 18:53 Utharnl#7
Quote:
Originally Posted by TomasSt View Post
hello
in my windows write.

empirecraftbot.exe - Application Error
The application failed to initialize properly (0xc00000135). Click on OK to terminate the appllication.

what need to do for open?

T.
The reason you get that error is because you are missing the latest .Net Framework update (Probably 3.5) from microsoft.
You can download that update and then the bot should work.
Here is the link: [Only registered and activated users can see links. Click Here To Register...]
12/27/2009 16:27 TomasSt#8
Hello

This Bot work on W17?
12/27/2009 17:19 Utharnl#9
It works on all servers :)
To change the server open settings.txt and change w15.hithere.com in w17.hithere.com

Note: When you change settings.txt make sure the bot isn't running

~Uthar
12/27/2009 21:31 TomasSt#10
Thank you Utharnl

i'm don't know how to attack.
if i'm wont to attack X:57 Y:313
what need to write in the farms.txt file?
12/28/2009 01:50 Utharnl#11
Each town you have has his own row in farms.txt starting with his name.
Let's say the name of your town is "Amsterdam".
Your farms.txt should look like this then:
Quote:
Amsterdam;057313
Dont forget to add the '0', The coordinates you enter in farms.txt should always be 6 numbers long
12/28/2009 07:54 Darknafein#12
can you put a basic autobuild feature?
do we have to close the browser when botting and it is correct for farms.txt cause its not working?

Quote:
New city;123456;123456;123456;123456;123456;123456;123 456;123456;123456;123456;123456;123456
New city;131183
Avalonn;135186
Boxs;132389
fifo;133394
BRO;127389
12/28/2009 10:56 Utharnl#13
@Darknafein
Autobuild
I have also been thinking about a basic autobuild feature, but it gives a lot of problems.
Maybe I will add some feature that will only let you upgrade buildings you already have.
But could take sometime to make because of the holidays and my internship starting after that.

farms.txt
The farms.txt works with your town names to find the correct targets to attack.
Because of that each town has to be an unique name.
Atm you have two towns called "New city", that's not going to work. They will both use the first "New city" that they find in the text file.

An other problem is your 7th coordinate of "New city". Change 123 456 to 123456.
But it isn't really necessarily to enter the same coordinate more then once. Because the bot will repeat the coordinates when it's finished. So if you only enter coordinate 123456 the bot will continuously attack that target.

Besides that your farms.txt has no problems and should work fine.
Also don't forget to turn on "Farm mode" in the settings window.

Running bot
When you run the bot you should close your browser (Only the Empire Craft site ofcourse)
If the bot is running and you want to go to the empire craft site you can click the "start/stop" button and open the site. When you're done close the site and click "start/stop" again.

~uthar
12/28/2009 12:18 Darknafein#14
thx for the information and my coordinates was only an example.
12/28/2009 12:32 Utharnl#15
No problem.
Already though they were example coordinates but could use them well to explain a few things :)