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.
No related posts.


39 comments
1 ping
kevin says:
September 8, 2008 at 6:30 am (UTC 2 )
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.
[Reply]
dee says:
September 11, 2008 at 5:52 am (UTC 2 )
how do you set it up?
[Reply]
josh says:
September 21, 2008 at 6:51 pm (UTC 2 )
i have downloaded the thing but this is hard can u do a run through tutorial or tell me how to do it plz
[Reply]
Okoo says:
September 28, 2008 at 11:53 pm (UTC 2 )
Tell me how to run tihs script cause i have no idea…
[Reply]
ovidiu says:
October 1, 2008 at 2:10 pm (UTC 2 )
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!
[Reply]
the reaper says:
October 18, 2008 at 10:56 am (UTC 2 )
im having trublle runing the gold programe some times it works and sometimes it dosent, unless my proxy list is no good any ideas
[Reply]
shadow says:
January 27, 2009 at 12:25 pm (UTC 2 )
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
[Reply]
ovidiu says:
January 27, 2009 at 12:33 pm (UTC 2 )
auto recruiter for gold is online here and now it is called Gold Player
[Reply]
WhiteFinger says:
April 23, 2009 at 2:01 pm (UTC 2 )
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!!!!!!!
[Reply]
ovidiu says:
April 23, 2009 at 5:15 pm (UTC 2 )
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.
[Reply]
Tony says:
May 16, 2009 at 9:04 am (UTC 2 )
Hey can you make a guide on how to use this?
Thanks,
Tony
[Reply]
ovidiu Reply:
May 16th, 2009 at 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.
[Reply]
Fred says:
May 18, 2009 at 2:43 am (UTC 2 )
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
[Reply]
Fred, says:
May 18, 2009 at 2:49 am (UTC 2 )
Oh yeah btw, can you provide the binary then? It’s alright if it doesn’t work, I just want to try.
Thanks
[Reply]
ovidiu says:
May 18, 2009 at 12:28 pm (UTC 2 )
Please check the above attachments.
[Reply]
Fred says:
May 20, 2009 at 2:09 am (UTC 2 )
Thanks A LOT. Sorry for the trouble though.
[Reply]
Fred says:
May 20, 2009 at 2:26 am (UTC 2 )
It doesn’t work anymore, but thanks a lot for doing this, it was a well appreciate effort.
[Reply]
JJ says:
May 27, 2009 at 12:54 pm (UTC 2 )
Does the java program still run in beta? Yes i stil play beta version.
[Reply]
ovidiu says:
May 27, 2009 at 2:43 pm (UTC 2 )
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.
[Reply]
mike says:
August 1, 2009 at 10:07 am (UTC 2 )
you can use one of mine if u like
[Reply]
John says:
January 19, 2010 at 8:59 am (UTC 2 )
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.
[Reply]
ovidiu says:
January 19, 2010 at 10:08 am (UTC 2 )
Good to hear that!
[Reply]
John says:
January 19, 2010 at 10:50 am (UTC 2 )
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.
[Reply]
John says:
January 19, 2010 at 10:58 am (UTC 2 )
Like for the string it matches with gold, it expects “Gold:” or something, it needs to be “Gold: ” and then “” for the end string.
[Reply]
John says:
January 19, 2010 at 10:59 am (UTC 2 )
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.
[Reply]
John says:
January 19, 2010 at 11:00 am (UTC 2 )
Heh, br tags where my post shows weird stuff.
[Reply]
ovidiu says:
January 22, 2010 at 2:13 am (UTC 2 )
wow .. beta still got some interest. Maybe soon I will publish a new version of the player just for DarkThrone Beta!
[Reply]
Body says:
April 19, 2010 at 10:59 am (UTC 2 )
It would be great from you if you could publish the player for Darktrhone Beta
[Reply]
ovidiu Reply:
April 19th, 2010 at 1:30 pm
There is a player for beta!
This is the link http://gold.ovisual.com/beta
It is running as a java applet in your browser. To run it you have to trust the applet and let it run.
I think I’ll publish the source code also … because I don’t have time for further maintenance and let you guys to pick it up.
[Reply]
Dark_Curse says:
May 31, 2010 at 7:49 pm (UTC 2 )
negru we are gathering a task force to mass the mods and some alliance that Obsidian made. We have a few old timers from DT from Koo, TT, Brazil, Colombia, REST and TNC. We still need more to tip the scales and was wondering if you would be interested in helping screw over Lazarus new game? If so get in touch with erhano
[Reply]
ovidiu says:
June 1, 2010 at 1:36 am (UTC 2 )
huh?!? … new game? .. what game?
[Reply]
Dark_Curse says:
June 3, 2010 at 4:46 am (UTC 2 )
http://www.darkcurse.com we are going to mass Lykanthropo, Tudors (which are Mods). You have my email address…we need more players…We are trying to get AoR to help as well, being that Lykanthrops massed AoR players who went into Group2 Yes this is a new Lazarus game! Come help us destroy the Moderators and Obsidian and his alliance
my ingame name is Soldier
Combo ingame name is Pain
Reaver is Drakness_Kills
[Reply]
Dark_Curse says:
June 3, 2010 at 5:28 am (UTC 2 )
http://www.darkcurse.com thats Lazarus new game
[Reply]
ovidiu says:
June 3, 2010 at 5:39 pm (UTC 2 )
Thanks! I’ll check it out! .. new game = new player … juicy!
[Reply]
Dark_Curse says:
June 3, 2010 at 10:22 pm (UTC 2 )
yes we will need you soon to help us. my ingame name is Soldier…as they suspended my other accounts
[Reply]
Dark_Curse says:
June 4, 2010 at 6:15 am (UTC 2 )
is this you?
http://www.darkcurse.com/viewprofile/index/824
[Reply]
ovidiu says:
June 4, 2010 at 1:05 pm (UTC 2 )
nope, this is me http://www.darkcurse.com/viewprofile/index/6500
[Reply]
Dark_Curse says:
June 6, 2010 at 7:46 am (UTC 2 )
negru Laz banned my IP…I have to use vidalia to create a account. He suspended my Soldier. I hate using vidalia as it lags too much. But I need to hide my IP from him or they will ban my account again
[Reply]
reaper says:
August 10, 2010 at 12:04 am (UTC 2 )
hey nice work keeping this player going, are making one for darkcurse
[Reply]
ovisual.com » DarkThrone pillage program in action says:
September 4, 2008 at 3:08 pm (UTC 2 )
[…] 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 […]