DarkThrone automatic recruiter and attack program
by ovidiu on Sep.01, 2008, under Gaming, GoldPlayer, Java
I’ve been plaing DarkThrone since its beta (about 4 years ago) with some little pauses, however lots of people gone nuts about this simple text MMORPG, including me.
What is nuts about this game? You must recruit your army using a boring recruiter program where you must click a recruit button for each citizen that you will eventually gain. This is about 350 clicks per day, besides the ads you have to skip and other pages.
Also the attacking aspect takes you a lot of time: you have to browse through a long list of users that you can attack and make a decision based on the amount of the gold and also the army number if you can attack or not.
And all these takes you a lot of the precious time.
Because it uses only a web browser to play the game I’ve made an automatic program that knows to login into a DarkThrone account and perform opperations like recruit using the public recruiter, look for a siutable targets to attack based on the selection parameters (max army, min gold, etc), insert all the targets in a queue, attack the targets in a batch, bank the gold if exceeds the given threshold.
The technologies used are Commons HTTP client, Maven and Commons Daemon from Apache. Basically the program emulates the web browser (Firefox 3.0.1) to send and receive data using HTTP. Because it was intended to be run as a batch on a linux machine (using cron) the application was developed as a Daemon java application and can be executed using jsvc. However it can be runned as a standalone application aswell.
There are two Service modules:
RecruiterService is in charge with the public recruiter. It has only two parameters: email and password wich are the email and password you use to login in the game.
AttackService is the attack module. It has the following parameters: email and password the same as above, percentageArmy maximum army that the target can have and is in percent, minGold minimum gold of the target, bankLimit the amount of money when the bank opperation will be performed.
To start the program using java command you have to specify in the classpath all the jar libraries required: commons-daemon, commons-httpclient, commons-logging, commons-codec;
Example:
java -cp <all_the_required_jar_paths_here> com.ovisual.squiddy.dt.service.AttackService -Demail=x@x.xx -Dpassword=xxx -DpercentageArmy=130 -DminGold=10000000 -DbankLimit=20000000
In the above example the email x@x.xx will be used to login with the password xxx. The target will be attacked if the army will be at most 130% of my army and will have at least 10000000 gold. If the amount pilaged is above 20000000 then will be banked.
Download source code here
Enjoy!
LE:
I’ve posted the latest binaries and sources.
Using the installed JRE you cen issue these commands in the binaries folder:
For recruiter:
java -cp dtp-beta-0.0.1.jar;commons-httpclient-3.1.jar;commons-logging-1.0.4.jar;commons-codec-1.2.jar -Demail=x@x.xx -Dpassword=xxx com.ovisual.dt.service.RecruiterService
For attacker:
java -cp dtp-beta-0.0.1.jar;commons-httpclient-3.1.jar;commons-logging-1.0.4.jar;commons-codec-1.2.jar -Demail=x@x.xx -Dpassword=xxx -DpercentageArmy=66 -DminGold=10000 -DbankLimit=100000 com.ovisual.dt.service.AttackService
I hope this helps.

September 4th, 2008 on 3:08 pm
[...] DarkThrone beta days are almost over I’ve decided to use my shiny software to spend the turns that I’ve accumulated in the past 4 years and level up from level [...]
September 8th, 2008 on 6:30 am
hie there, do you mind giving the full instruction on how to run the program and do the setups? please help me out, i really need this recruiter running. thanks in advance. keep up the good work.
September 11th, 2008 on 5:52 am
how do you set it up?
September 21st, 2008 on 6:51 pm
i have downloaded the thing but this is hard can u do a run through tutorial or tell me how to do it plz
September 28th, 2008 on 11:53 pm
Tell me how to run tihs script cause i have no idea…
October 1st, 2008 on 2:10 pm
For those who want to make this script running … well, you need some good knowledge of java programming to make it work, it’s a bit complicated, because it uses technologies like … apache maven that is a bit tricky to master. However, this program is a bit outdated, because … who plays beta anyways?
So I suggest to have a bit of patience and wayt few more days before I will make public the new DarkThrone Gold automatic program that will have a smooth user interface and will be easy to run, with lots of juicy features like: automatic recruiter, scheduler, automatic spy+attack, automatic bank, spy logs publish to web functionality … etc.
So lots of goodies
Cheers!
October 18th, 2008 on 10:56 am
im having trublle runing the gold programe some times it works and sometimes it dosent, unless my proxy list is no good any ideas
January 27th, 2009 on 12:25 pm
So if you guys have an autorecruiter it will be awesome to share with the others. I had one for beta version but with the gold update it doesn`t work anymore. I don`t have any programing knowledge so like i said before … it would be great to share the program (if you have one) with others
January 27th, 2009 on 12:33 pm
auto recruiter for gold is online here and now it is called Gold Player
April 23rd, 2009 on 2:01 pm
This sounds like a good program and one i would love to use as i have also been a member of darkthrone for about 6 years i think now but the idea of giving you me email address and password to my account just freeks me out to much
. shame there isnt another way!!!!!!!
April 23rd, 2009 on 5:15 pm
I am not doing anything with the email and the password.
hehehe
How can you be sure? … well you have to trust me
Anyways the biggest problem is being caught by Lazarus for using this.
May 16th, 2009 on 9:04 am
Hey can you make a guide on how to use this?
Thanks,
Tony
May 16th, 2009 on 8:30 pm
I don’t know if this is still working for beta. Unfortunately I don’t have any Darkthrone Beta accounts so I can’t try it anymore.
May 18th, 2009 on 2:43 am
Can you just tell me what i’m supposed to execute? Or does this have to be compiled? I lack programming skills but I can follow steps.
Thanks,
Fred
May 18th, 2009 on 2:49 am
Oh yeah btw, can you provide the binary then? It’s alright if it doesn’t work, I just want to try.
Thanks
May 18th, 2009 on 12:28 pm
Please check the above attachments.
May 20th, 2009 on 2:09 am
Thanks A LOT. Sorry for the trouble though.
May 20th, 2009 on 2:26 am
It doesn’t work anymore, but thanks a lot for doing this, it was a well appreciate effort.
May 27th, 2009 on 12:54 pm
Does the java program still run in beta? Yes i stil play beta version.
May 27th, 2009 on 2:43 pm
I don’t think so. Somebody (see above) tried recently and it doesn’t work anymore. I think the code requires some minor maintenance. I can’t try it myself because I don’t have a beta account anymore.
August 1st, 2009 on 10:07 am
you can use one of mine if u like
January 19th, 2010 on 8:59 am
I downloaded this and made a plethora of changes and now it works. I don’t even know Java, so it’s not hard to make this work.
January 19th, 2010 on 10:08 am
Good to hear that!
January 19th, 2010 on 10:50 am
The one exception that makes it not run, you just comment out the offending line, and there’s a few HTML strings in plain text that need to be changed so the program can find certain values on the page. That’s it.
January 19th, 2010 on 10:58 am
Like for the string it matches with gold, it expects “Gold:” or something, it needs to be “Gold: ” and then “” for the end string.
January 19th, 2010 on 10:59 am
Oops my formatting didnt show up.. Like for the string it matches with gold, it expects “\Gold:\” or something, it needs to be “Gold: ” and then “\” for the end string.
January 19th, 2010 on 11:00 am
Heh, br tags where my post shows weird stuff.
January 22nd, 2010 on 2:13 am
wow .. beta still got some interest. Maybe soon I will publish a new version of the player just for DarkThrone Beta!