ovisual.com

DarkThrone automatic recruiter and attack program

by ovidiu on Sep.01, 2008, under Gaming, GoldPlayer, Java

DarkThrone

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.

  • Share/Bookmark
:, , , ,
28 comments for this entry:
  1. ovisual.com » DarkThrone pillage program in action

    [...] 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 [...]

  2. kevin

    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.

  3. dee

    how do you set it up?

  4. josh

    i have downloaded the thing but this is hard can u do a run through tutorial or tell me how to do it plz

  5. Okoo

    Tell me how to run tihs script cause i have no idea…

  6. ovidiu

    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!

  7. the reaper

    im having trublle runing the gold programe some times it works and sometimes it dosent, unless my proxy list is no good any ideas

  8. shadow

    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

  9. ovidiu

    auto recruiter for gold is online here and now it is called Gold Player :)

  10. WhiteFinger

    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!!!!!!!

  11. ovidiu

    I am not doing anything with the email and the password.
    How can you be sure? … well you have to trust me :) hehehe

    Anyways the biggest problem is being caught by Lazarus for using this.

  12. Tony

    Hey can you make a guide on how to use this?

    Thanks,
    Tony

  13. ovidiu

    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.

  14. Fred

    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

  15. Fred,

    Oh yeah btw, can you provide the binary then? It’s alright if it doesn’t work, I just want to try.

    Thanks

  16. ovidiu

    Please check the above attachments.

  17. Fred

    Thanks A LOT. Sorry for the trouble though.

  18. Fred

    It doesn’t work anymore, but thanks a lot for doing this, it was a well appreciate effort.

  19. JJ

    Does the java program still run in beta? Yes i stil play beta version.

  20. ovidiu

    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.

  21. mike

    you can use one of mine if u like

  22. John

    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.

  23. John

    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.

  24. John

    Like for the string it matches with gold, it expects “Gold:” or something, it needs to be “Gold: ” and then “” for the end string.

  25. John

    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.

  26. John

    Heh, br tags where my post shows weird stuff.

  27. ovidiu

    wow .. beta still got some interest. Maybe soon I will publish a new version of the player just for DarkThrone Beta!

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...