<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ovisual.com &#187; daemon</title>
	<atom:link href="http://www.ovisual.com/tag/daemon/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ovisual.com</link>
	<description>visual thinking ...</description>
	<lastBuildDate>Thu, 29 Dec 2011 00:15:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>DarkThrone automatic recruiter and attack program</title>
		<link>http://www.ovisual.com/9/</link>
		<comments>http://www.ovisual.com/9/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 21:18:13 +0000</pubDate>
		<dc:creator>ovidiu</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[GoldPlayer]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[automatic]]></category>
		<category><![CDATA[daemon]]></category>
		<category><![CDATA[http client]]></category>
		<category><![CDATA[recruiter]]></category>

		<guid isPermaLink="false">http://www.ovisual.com/?p=9</guid>
		<description><![CDATA[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.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ovisual.com/wp-content/uploads/2008/08/darkthrone666.jpg" rel="lightbox[9]"><img class="alignnone size-medium wp-image-7" style="vertical-align: top;" title="darkthrone666" src="http://www.ovisual.com/wp-content/uploads/2008/08/darkthrone666-300x273.jpg" alt="DarkThrone" width="300" height="273" /></a></p>
<p>I’ve been plaing <a title="DarkThrone" href="http://darkthrone.com" target="_blank">DarkThrone</a> since its beta (about 4 years ago) with some little pauses, however lots of people gone nuts about this simple text MMORPG, including me.</p>
<p>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.<span id="more-9"></span></p>
<p>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.</p>
<p>And all these takes you a lot of the precious time.</p>
<p>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.</p>
<p>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.</p>
<p>There are two Service modules:</p>
<p><strong>RecruiterService</strong> is in charge with the public recruiter. It has only two parameters: <em>email</em> and <em>password</em> wich are the email and password you use to login in the game.</p>
<p><strong>AttackService</strong> is the attack module. It has the following parameters: <em>email</em> and <em>password</em> the same as above, <em>percentageArmy</em> maximum army that the target can have and is in percent, <em>minGold</em> minimum gold of the target, <em>bankLimit</em> the amount of money when the bank opperation will be performed.</p>
<p>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;</p>
<p>Example:</p>
<p><strong>java –cp &lt;all_the_required_jar_paths_here&gt; com.ovisual.squiddy.dt.service.AttackService –Demail=x@x.xx –Dpassword=xxx –DpercentageArmy=130 –DminGold=10000000 –DbankLimit=20000000</strong></p>
<p>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.</p>
<p>Download source code <a href="http://www.ovisual.com/wp-content/uploads/2008/09/squiddy_dt.zip">here</a></p>
<p>Enjoy!</p>
<p><a href="http://www.ovisual.com/wp-content/uploads/2008/08/darkthrone666.jpg" rel="lightbox[9]"><br />
</a></p>
<p>LE:<br />
I’ve posted the latest <a href="http://www.ovisual.com/wp-content/uploads/2008/09/binaries.zip">binaries</a> and <a href="http://www.ovisual.com/wp-content/uploads/2008/09/dtp-beta-001-sources.zip">sources</a>.</p>
<p>Using the installed JRE you cen issue these commands in the binaries folder:<br />
For recruiter:<br />
<code>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</code></p>
<p>For attacker:<br />
<code>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</code></p>
<p>I hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ovisual.com/9/feed/</wfw:commentRss>
		<slash:comments>40</slash:comments>
		</item>
	</channel>
</rss>

