«

»

Sep
01

DarkThrone automatic recruiter and attack program

DarkThrone

I’ve been plaing Dark­Throne since its beta (about 4 years ago) with some lit­tle pauses, how­ever lots of peo­ple gone nuts about this sim­ple text MMORPG, includ­ing me.

What is nuts about this game? You must recruit your army using a bor­ing recruiter pro­gram where you must click a recruit but­ton for each cit­i­zen that you will even­tu­ally gain. This is about 350 clicks per day, besides the ads you have to skip and other pages.

Also the attack­ing aspect takes you a lot of time: you have to browse through a long list of users that you can attack and make a deci­sion based on the amount of the gold and also the army num­ber if you can attack or not.

And all these takes you a lot of the pre­cious time.

Because it uses only a web browser to play the game I’ve made an auto­matic pro­gram that knows to login into a Dark­Throne account and per­form opper­a­tions like recruit using the pub­lic recruiter, look for a siutable tar­gets to attack based on the selec­tion para­me­ters (max army, min gold, etc), insert all the tar­gets in a queue, attack the tar­gets in a batch, bank the gold if exceeds the given threshold.

The tech­nolo­gies used are Com­mons HTTP client, Maven and Com­mons Dae­mon from Apache. Basi­cally the pro­gram emu­lates the web browser (Fire­fox 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 appli­ca­tion was devel­oped as a Dae­mon java appli­ca­tion and can be exe­cuted using jsvc. How­ever it can be runned as a stand­alone appli­ca­tion aswell.

There are two Ser­vice modules:

RecruiterSer­vice is in charge with the pub­lic recruiter. It has only two para­me­ters: email and pass­word wich are the email and pass­word you use to login in the game.

Attack­Ser­vice is the attack mod­ule. It has the fol­low­ing para­me­ters: email and pass­word the same as above, per­cent­ageArmy max­i­mum army that the tar­get can have and is in per­cent, min­Gold min­i­mum gold of the tar­get, bankLimit the amount of money when the bank opper­a­tion will be performed.

To start the pro­gram using java com­mand you have to spec­ify in the class­path all the jar libraries required: commons-daemon, commons-httpclient, commons-logging, commons-codec;

Exam­ple:

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 exam­ple the email x@x.xx will be used to login with the pass­word xxx. The tar­get 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.

Down­load source code here

Enjoy!


LE:
I’ve posted the lat­est bina­ries and sources.

Using the installed JRE you cen issue these com­mands in the bina­ries 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

No related posts.

39 comments

1 ping

  1. kevin says:

    hie there, do you mind giv­ing the full instruc­tion on how to run the pro­gram and do the setups? please help me out, i really need this recruiter run­ning. thanks in advance. keep up the good work.

    [Reply]

  2. dee says:

    how do you set it up?

    [Reply]

  3. josh says:

    i have down­loaded the thing but this is hard can u do a run through tuto­r­ial or tell me how to do it plz

    [Reply]

  4. Okoo says:

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

    [Reply]

  5. ovidiu says:

    For those who want to make this script run­ning … well, you need some good knowl­edge of java pro­gram­ming to make it work, it’s a bit com­pli­cated, because it uses tech­nolo­gies like … apache maven that is a bit tricky to mas­ter. How­ever, this pro­gram is a bit out­dated, because … who plays beta any­ways? :)
    So I sug­gest to have a bit of patience and wayt few more days before I will make pub­lic the new Dark­Throne Gold auto­matic pro­gram that will have a smooth user inter­face and will be easy to run, with lots of juicy fea­tures like: auto­matic recruiter, sched­uler, auto­matic spy+attack, auto­matic bank, spy logs pub­lish to web func­tion­al­ity … etc.

    So lots of good­ies :)

    Cheers!

    [Reply]

  6. the reaper says:

    im hav­ing trublle run­ing the gold pro­grame some times it works and some­times it dosent, unless my proxy list is no good any ideas

    [Reply]

  7. shadow says:

    So if you guys have an autore­cruiter it will be awe­some to share with the oth­ers. I had one for beta ver­sion but with the gold update it doesn‘t work any­more. I don‘t have any pro­gram­ing knowl­edge so like i said before … it would be great to share the pro­gram (if you have one) with others

    [Reply]

  8. ovidiu says:

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

    [Reply]

  9. WhiteFinger says:

    This sounds like a good pro­gram and one i would love to use as i have also been a mem­ber of dark­throne for about 6 years i think now but the idea of giv­ing you me email address and pass­word to my account just freeks me out to much :( . shame there isnt another way!!!!!!!

    [Reply]

  10. ovidiu says:

    I am not doing any­thing with the email and the pass­word.
    How can you be sure? … well you have to trust me :) hehehe

    Any­ways the biggest prob­lem is being caught by Lazarus for using this.

    [Reply]

  11. Tony says:

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

    Thanks,
    Tony

    [Reply]

    ovidiu Reply:

    I don’t know if this is still work­ing for beta. Unfor­tu­nately I don’t have any Dark­throne Beta accounts so I can’t try it anymore.

    [Reply]

  12. Fred says:

    Can you just tell me what i’m sup­posed to exe­cute? Or does this have to be com­piled? I lack pro­gram­ming skills but I can fol­low steps.

    Thanks,
    Fred

    [Reply]

  13. Fred, says:

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

    Thanks

    [Reply]

  14. ovidiu says:

    Please check the above attachments.

    [Reply]

  15. Fred says:

    Thanks A LOT. Sorry for the trou­ble though.

    [Reply]

  16. Fred says:

    It doesn’t work any­more, but thanks a lot for doing this, it was a well appre­ci­ate effort.

    [Reply]

  17. JJ says:

    Does the java pro­gram still run in beta? Yes i stil play beta version.

    [Reply]

  18. ovidiu says:

    I don’t think so. Some­body (see above) tried recently and it doesn’t work any­more. I think the code requires some minor main­te­nance. I can’t try it myself because I don’t have a beta account anymore.

    [Reply]

  19. mike says:

    you can use one of mine if u like

    [Reply]

  20. John says:

    I down­loaded 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]

  21. ovidiu says:

    Good to hear that!

    [Reply]

  22. John says:

    The one excep­tion that makes it not run, you just com­ment out the offend­ing line, and there’s a few HTML strings in plain text that need to be changed so the pro­gram can find cer­tain val­ues on the page. That’s it.

    [Reply]

  23. John says:

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

    [Reply]

  24. John says:

    Oops my for­mat­ting didnt show up.. Like for the string it matches with gold, it expects “\Gold:\” or some­thing, it needs to be “Gold: ” and then “\” for the end string.

    [Reply]

  25. John says:

    Heh, br tags where my post shows weird stuff.

    [Reply]

  26. ovidiu says:

    wow .. beta still got some inter­est. Maybe soon I will pub­lish a new ver­sion of the player just for Dark­Throne Beta!

    [Reply]

  27. Body says:

    It would be great from you if you could pub­lish the player for Dark­trhone Beta

    [Reply]

    ovidiu Reply:

    There is a player for beta!
    This is the link http://gold.ovisual.com/beta
    It is run­ning as a java applet in your browser. To run it you have to trust the applet and let it run.
    I think I’ll pub­lish the source code also … because I don’t have time for fur­ther main­te­nance and let you guys to pick it up.

    [Reply]

  28. Dark_Curse says:

    negru we are gath­er­ing a task force to mass the mods and some alliance that Obsid­ian made. We have a few old timers from DT from Koo, TT, Brazil, Colom­bia, REST and TNC. We still need more to tip the scales and was won­der­ing if you would be inter­ested in help­ing screw over Lazarus new game? If so get in touch with erhano

    [Reply]

  29. ovidiu says:

    huh?!? … new game? .. what game?

    [Reply]

  30. Dark_Curse says:

    http://www.darkcurse.com we are going to mass Lykan­thropo, Tudors (which are Mods). You have my email address…we need more players…We are try­ing to get AoR to help as well, being that Lykan­throps massed AoR play­ers who went into Group2 Yes this is a new Lazarus game! Come help us destroy the Mod­er­a­tors and Obsid­ian and his alliance

    my ingame name is Soldier

    Combo ingame name is Pain

    Reaver is Drakness_Kills

    [Reply]

  31. Dark_Curse says:

    http://www.darkcurse.com thats Lazarus new game

    [Reply]

  32. ovidiu says:

    Thanks! I’ll check it out! .. new game = new player … juicy! :D

    [Reply]

  33. Dark_Curse says:

    yes we will need you soon to help us. my ingame name is Soldier…as they sus­pended my other accounts :(

    [Reply]

  34. Dark_Curse says:

    is this you?

    http://www.darkcurse.com/viewprofile/index/824

    [Reply]

  35. ovidiu says:

    nope, this is me http://www.darkcurse.com/viewprofile/index/6500

    [Reply]

  36. Dark_Curse says:

    negru Laz banned my IP…I have to use vidalia to cre­ate a account. He sus­pended my Sol­dier. 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]

  37. reaper says:

    hey nice work keep­ing this player going, are mak­ing one for darkcurse

    [Reply]

  1. ovisual.com » DarkThrone pillage program in action says:

    […] Dark­Throne beta days are almost over I’ve decided to use my shiny soft­ware to spend the turns that I’ve accu­mu­lated in the past 4 years and level up from level […]

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>