<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><![CDATA[TWLan Forum - Tools und Spielerprojekte]]></title>
		<link>https://twlan.org/</link>
		<description><![CDATA[TWLan Forum - https://twlan.org]]></description>
		<pubDate>Tue, 29 Sep 2026 01:06:46 +0000</pubDate>
		<generator>MyBB</generator>
		<item>
			<title><![CDATA[Tech-Tool]]></title>
			<link>https://twlan.org/showthread.php?tid=43455</link>
			<pubDate>Tue, 14 Feb 2017 03:23:43 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=3235">deswillichsehen</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=43455</guid>
			<description><![CDATA[Warum ich für ein eigentlich totes Spiel ein Tool gebastelt habe? Da ich immernoch hin und wieder Spaß an einer Lan Runde habe und in der Hoffnung, hier wenigstens wieder ein kleines bisschen Leben zurück zu bringen.<br />
Ist zwar nichts weltbewegendes, aber doch eine Kleinigkeit, die meiner Meinung nach bisher etwas fehlte.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Features:<br />
</span>- Es handelt sich um ein Admin-Tool<br />
- Gesamte Forschung zurücksetzen<br />
- Überall erforschen<br />
- Obergrenzen überprüfen und entsprechend anpassen<br />
<span style="font-weight: bold;" class="mycode_b"><br />
Bilder:</span><img src="http://www.bilder-upload.eu/upload/848869-1487041657.png" loading="lazy"  alt="[Image: 848869-1487041657.png]" class="mycode_img" /><span style="font-weight: bold;" class="mycode_b"><br />
<br />
Anleitung:<br />
</span>- .zip-Datei entpacken<br />
- verschieben nach dslan/htdocs/admin entsprechend der Ordnerstruktur<br />
- aufrufen in localhost/admin<br />
- je nachdem was gemacht werden soll, entsprechende Schaltfläche drücken<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Download:<br />
</span><a href="http://workupload.com/file/6ZgqBTj" target="_blank" rel="noopener" class="mycode_url">http://workupload.com/file/6ZgqBTj</a><br />
<span style="font-weight: bold;" class="mycode_b"><br />
Geplant:<br />
</span>- Überall erforschen Rohstoffe mit abziehen (mit ist bisher kein Schreibzugriff auf htdocs/include/configs/techs.php möglich ???)<br />
<br />
<br />
Falls ihr Fehler findet, wisst wie ich das Rohstoffproblem löse oder sonstige Anmerkungen habt, nur zu.]]></description>
			<content:encoded><![CDATA[Warum ich für ein eigentlich totes Spiel ein Tool gebastelt habe? Da ich immernoch hin und wieder Spaß an einer Lan Runde habe und in der Hoffnung, hier wenigstens wieder ein kleines bisschen Leben zurück zu bringen.<br />
Ist zwar nichts weltbewegendes, aber doch eine Kleinigkeit, die meiner Meinung nach bisher etwas fehlte.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Features:<br />
</span>- Es handelt sich um ein Admin-Tool<br />
- Gesamte Forschung zurücksetzen<br />
- Überall erforschen<br />
- Obergrenzen überprüfen und entsprechend anpassen<br />
<span style="font-weight: bold;" class="mycode_b"><br />
Bilder:</span><img src="http://www.bilder-upload.eu/upload/848869-1487041657.png" loading="lazy"  alt="[Image: 848869-1487041657.png]" class="mycode_img" /><span style="font-weight: bold;" class="mycode_b"><br />
<br />
Anleitung:<br />
</span>- .zip-Datei entpacken<br />
- verschieben nach dslan/htdocs/admin entsprechend der Ordnerstruktur<br />
- aufrufen in localhost/admin<br />
- je nachdem was gemacht werden soll, entsprechende Schaltfläche drücken<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Download:<br />
</span><a href="http://workupload.com/file/6ZgqBTj" target="_blank" rel="noopener" class="mycode_url">http://workupload.com/file/6ZgqBTj</a><br />
<span style="font-weight: bold;" class="mycode_b"><br />
Geplant:<br />
</span>- Überall erforschen Rohstoffe mit abziehen (mit ist bisher kein Schreibzugriff auf htdocs/include/configs/techs.php möglich ???)<br />
<br />
<br />
Falls ihr Fehler findet, wisst wie ich das Rohstoffproblem löse oder sonstige Anmerkungen habt, nur zu.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Browsergame - Verstärkung]]></title>
			<link>https://twlan.org/showthread.php?tid=43320</link>
			<pubDate>Mon, 10 Nov 2014 16:37:44 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=29193">-Andy-</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=43320</guid>
			<description><![CDATA[Hallo,<br />
<br />
bin der Andy 16 Jahre jung und bin mit einem kleinen Team am programmieren und developen eines eigenen Browsergames.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Sprachen</span><br />
<br />
- HTML<br />
- PHP<br />
- CSS<br />
- JavaScript (Mit jQuery-Erweiterung)<br />
- Ajax<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Spielbeschreibung</span><br />
<br />
Age Of Villages ist ein Spiel welches im Mittelalter spielt...<br />
In Age Of Villages bekommst du ein Dorf, welches du mit verschiedenen Gebäuden und Einheiten erweitern sollst...<br />
Am Anfang ist es ratsam die Gebäude die für die Rohstoffe zuständig sind auszubauen, denn wer Rohstoffe hat, kann viele Gebäude und Einheiten ausbauen und bauen...<br />
Solltest du dein Hauptgebäude auf Stufe 2 haben, kannst du die Kaserne bauen...<br />
Mit dieser ist es dir dann ermöglicht Einheiten zu rekrutieren und mit diesen dann Kriege gegen andere Spieler zu führen...<br />
Im späteren Spielverlauf wird dir öfters der Begriff Burg zu Ohren gekommen sein...<br />
Diese kannst du bauen wenn du das Hauptgebäude auf 15 hast und die Kaserne auf 10...<br />
Wenn du die Burg gebaut hast, wird in der Kaserne die Einheit Eroberer freigeschaltet...<br />
Mit dieser Einheit ist es möglich andere Dörfer einzunehmen und somit mächtiger zu werden...<br />
Sollte eine Welt bereits 6 Monate existieren wird das End-Game aktiviert...<br />
Wenn das End-Game aktiviert wird erscheinen überall auf der Welt sogenannte Bauplätze für die 7 Weltwunder...<br />
Diese können allerdings nur von Allianzen bebaut werden und können natürlich auch von anderen Allianzen zersört werden...<br />
Sollte eine Allianz alle 7 Weltwunder eine gewisse Zeit halten, so schließt die Welt und die Allianz geht als Sieger von der Welt...<br />
Zusätzlich bekommt jeder Spieler aus der Allianz eine Belohnung, welche es ist siehst du im Laufe des End-Games.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Website</span><br />
<br />
<a href="http://www.age-of-villages.de" target="_blank" rel="noopener" class="mycode_url">Age Of Villages</a><br />
<br />
Momentan suchen wir Verstärkung im Bereich Programmierung und würden uns freuen wenn sich der ein oder andere melden würde <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
Mit freundlichen Grüßen,<br />
Andy]]></description>
			<content:encoded><![CDATA[Hallo,<br />
<br />
bin der Andy 16 Jahre jung und bin mit einem kleinen Team am programmieren und developen eines eigenen Browsergames.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Sprachen</span><br />
<br />
- HTML<br />
- PHP<br />
- CSS<br />
- JavaScript (Mit jQuery-Erweiterung)<br />
- Ajax<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Spielbeschreibung</span><br />
<br />
Age Of Villages ist ein Spiel welches im Mittelalter spielt...<br />
In Age Of Villages bekommst du ein Dorf, welches du mit verschiedenen Gebäuden und Einheiten erweitern sollst...<br />
Am Anfang ist es ratsam die Gebäude die für die Rohstoffe zuständig sind auszubauen, denn wer Rohstoffe hat, kann viele Gebäude und Einheiten ausbauen und bauen...<br />
Solltest du dein Hauptgebäude auf Stufe 2 haben, kannst du die Kaserne bauen...<br />
Mit dieser ist es dir dann ermöglicht Einheiten zu rekrutieren und mit diesen dann Kriege gegen andere Spieler zu führen...<br />
Im späteren Spielverlauf wird dir öfters der Begriff Burg zu Ohren gekommen sein...<br />
Diese kannst du bauen wenn du das Hauptgebäude auf 15 hast und die Kaserne auf 10...<br />
Wenn du die Burg gebaut hast, wird in der Kaserne die Einheit Eroberer freigeschaltet...<br />
Mit dieser Einheit ist es möglich andere Dörfer einzunehmen und somit mächtiger zu werden...<br />
Sollte eine Welt bereits 6 Monate existieren wird das End-Game aktiviert...<br />
Wenn das End-Game aktiviert wird erscheinen überall auf der Welt sogenannte Bauplätze für die 7 Weltwunder...<br />
Diese können allerdings nur von Allianzen bebaut werden und können natürlich auch von anderen Allianzen zersört werden...<br />
Sollte eine Allianz alle 7 Weltwunder eine gewisse Zeit halten, so schließt die Welt und die Allianz geht als Sieger von der Welt...<br />
Zusätzlich bekommt jeder Spieler aus der Allianz eine Belohnung, welche es ist siehst du im Laufe des End-Games.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Website</span><br />
<br />
<a href="http://www.age-of-villages.de" target="_blank" rel="noopener" class="mycode_url">Age Of Villages</a><br />
<br />
Momentan suchen wir Verstärkung im Bereich Programmierung und würden uns freuen wenn sich der ein oder andere melden würde <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
Mit freundlichen Grüßen,<br />
Andy]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Eigenes Browsergame]]></title>
			<link>https://twlan.org/showthread.php?tid=43317</link>
			<pubDate>Sun, 31 Aug 2014 21:00:01 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=20910">andi11111</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=43317</guid>
			<description><![CDATA[Hallo <br />
<br />
ich suche noch 1-2 Programmier und einen Designer die mir helfen ein Browsergame zu entwickeln. Momentan ist die Baufunktion schon fast fertig und danach kommen dann die Sachen zum Truppenbauen. Das Browsergame geht in die Richtung von die Stämme bei interesse bitte an<br />
<br />
<br />
Skype: andreas.bauer447]]></description>
			<content:encoded><![CDATA[Hallo <br />
<br />
ich suche noch 1-2 Programmier und einen Designer die mir helfen ein Browsergame zu entwickeln. Momentan ist die Baufunktion schon fast fertig und danach kommen dann die Sachen zum Truppenbauen. Das Browsergame geht in die Richtung von die Stämme bei interesse bitte an<br />
<br />
<br />
Skype: andreas.bauer447]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Eigenes Browsergame Frage]]></title>
			<link>https://twlan.org/showthread.php?tid=43313</link>
			<pubDate>Mon, 07 Jul 2014 20:59:53 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=29193">-Andy-</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=43313</guid>
			<description><![CDATA[Heyho,<br />
<br />
habe mir vor gut einem Jahr an nen Browsergame gewagt, und kann nun endlich sagen das es fast fertig ist ^^ Das einzige was mir noch fehlt währe das Kartensystem, habe ich zwar auch schon fertig aber die gefällt mir noch nicht richtig, weil man sie nicht rumziehen kann wie bei die stämme, das Realisieren der draggable funktion ist nicht schwer, geht ja mit jQuery. Nur das Nachladen der Files ist so das Problem. Dazu muss man ja auch überprüfen ob ein div bewegt wird und wenn ja in welche Richtung. Wie realisiere ich das jetzt am besten und vorallem so das es nicht 10 Jahre zum Laden braucht? ^^<br />
<br />
Hoffe man hat mein Anliegen soweit verstanden <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
PS: Hier noch meine Karte, also der momentane Stand. <a href="http://www.age-of-villages.de/test/" target="_blank" rel="noopener" class="mycode_url">http://www.age-of-villages.de/test/</a><br />
<br />
Mfg -Andy-]]></description>
			<content:encoded><![CDATA[Heyho,<br />
<br />
habe mir vor gut einem Jahr an nen Browsergame gewagt, und kann nun endlich sagen das es fast fertig ist ^^ Das einzige was mir noch fehlt währe das Kartensystem, habe ich zwar auch schon fertig aber die gefällt mir noch nicht richtig, weil man sie nicht rumziehen kann wie bei die stämme, das Realisieren der draggable funktion ist nicht schwer, geht ja mit jQuery. Nur das Nachladen der Files ist so das Problem. Dazu muss man ja auch überprüfen ob ein div bewegt wird und wenn ja in welche Richtung. Wie realisiere ich das jetzt am besten und vorallem so das es nicht 10 Jahre zum Laden braucht? ^^<br />
<br />
Hoffe man hat mein Anliegen soweit verstanden <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
PS: Hier noch meine Karte, also der momentane Stand. <a href="http://www.age-of-villages.de/test/" target="_blank" rel="noopener" class="mycode_url">http://www.age-of-villages.de/test/</a><br />
<br />
Mfg -Andy-]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[[TOOL] Event-Runden DS International]]></title>
			<link>https://twlan.org/showthread.php?tid=43311</link>
			<pubDate>Thu, 19 Jun 2014 14:49:34 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=161740">G.Poison</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=43311</guid>
			<description><![CDATA[<div style="text-align: center;" class="mycode_align"><img src="http://s7.directupload.net/images/140624/scots63o.png" loading="lazy"  alt="[Image: scots63o.png]" class="mycode_img" /><br />
<br />
Sei immer auf dem Neuesten Stand!<br />
Verpasse nie wieder eine Event-Runde! Einfach, unkompliziert und kostenlos!<br />
<br />
Ob aktuelle Runde, geplante Runde, ob Deutsch oder Russisch,<br />
wir haben sie <span style="font-weight: bold;" class="mycode_b">ALLE!<br />
<br />
Jetzt mit einfacher Kalendersuchfunktion!</span></div>
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Funktionen:</span><ul class="mycode_list"><li>Kalendersortierung der Runden<br />
</li>
<li>Als nächstes startende Runden anzeigen<br />
</li>
<li>Geplante Runden anzeigen<br />
</li>
<li>Aktuelle Runden anzeigen<br />
</li>
<li>Die-Staemme.de News einlesen<br />
</li>
<li>Statistiken anzeigen<br />
</li>
<li>Chatfunktion<br />
</li>
<li>Wiki dursuchen<br />
<br />
</li>
</ul>
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Funktionen in Planung:</span><ul class="mycode_list"><li>Benutzer mit DS Account koppelbar<br />
</li>
<li>Neuer flexibler Chat - sortiert nach Welten<br />
</li>
<li>Internationale Weltinformationen<br />
</li>
<li>Tägliche E-Mail Benachrichtigung für Runden an diesem Tag<br />
</li>
<li>Für Ideen und Vorschläge bin ich jederzeit erreichbar...<br />
</li>
</ul>
<br />
<div class="spoiler_out"><div class="spoiler_head">Kalendersuchfunktion <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
<img src="http://ds.annotools.net/screens/kal.png" loading="lazy"  alt="[Image: kal.png]" class="mycode_img" /><br />
</div></div>
<br />
<div class="spoiler_out"><div class="spoiler_head">Übersicht <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
<img src="http://ds.annotools.net/sc/next1.png" loading="lazy"  alt="[Image: next1.png]" class="mycode_img" /><br />
</div></div>
<br />
<div class="spoiler_out"><div class="spoiler_head">Als nächstes startende Runden <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
<img src="http://ds.annotools.net/sc/next2.png" loading="lazy"  alt="[Image: next2.png]" class="mycode_img" /><br />
</div></div>
<br />
<div class="spoiler_out"><div class="spoiler_head">Wiki Suchfunktion <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
<img src="http://ds.annotools.net/screens/n2.png" loading="lazy"  alt="[Image: n2.png]" class="mycode_img" /><br />
<img src="http://ds.annotools.net/screens/n3.png" loading="lazy"  alt="[Image: n3.png]" class="mycode_img" /><br />
</div></div>
<br />
<br />
<br />
// Downloadlink<br />
<a href="http://visitor-stats.de/download-2083.html" target="_blank" rel="noopener" class="mycode_url">Runterladen!</a><br />
<img src="http://visitor-stats.de/download-2083.png" loading="lazy"  alt="[Image: download-2083.png]" class="mycode_img" /><br />
<br />
//Antivirus Scan<br />
<a href="https://www.virustotal.com/en/file/25e98ab31ede30298be1ecedd0ae6e1482a0cf5f1d3c0b620e91a357badbc33a/analysis/1403209022/" target="_blank" rel="noopener" class="mycode_url">Virenfrei - Klick mich</a>]]></description>
			<content:encoded><![CDATA[<div style="text-align: center;" class="mycode_align"><img src="http://s7.directupload.net/images/140624/scots63o.png" loading="lazy"  alt="[Image: scots63o.png]" class="mycode_img" /><br />
<br />
Sei immer auf dem Neuesten Stand!<br />
Verpasse nie wieder eine Event-Runde! Einfach, unkompliziert und kostenlos!<br />
<br />
Ob aktuelle Runde, geplante Runde, ob Deutsch oder Russisch,<br />
wir haben sie <span style="font-weight: bold;" class="mycode_b">ALLE!<br />
<br />
Jetzt mit einfacher Kalendersuchfunktion!</span></div>
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Funktionen:</span><ul class="mycode_list"><li>Kalendersortierung der Runden<br />
</li>
<li>Als nächstes startende Runden anzeigen<br />
</li>
<li>Geplante Runden anzeigen<br />
</li>
<li>Aktuelle Runden anzeigen<br />
</li>
<li>Die-Staemme.de News einlesen<br />
</li>
<li>Statistiken anzeigen<br />
</li>
<li>Chatfunktion<br />
</li>
<li>Wiki dursuchen<br />
<br />
</li>
</ul>
<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Funktionen in Planung:</span><ul class="mycode_list"><li>Benutzer mit DS Account koppelbar<br />
</li>
<li>Neuer flexibler Chat - sortiert nach Welten<br />
</li>
<li>Internationale Weltinformationen<br />
</li>
<li>Tägliche E-Mail Benachrichtigung für Runden an diesem Tag<br />
</li>
<li>Für Ideen und Vorschläge bin ich jederzeit erreichbar...<br />
</li>
</ul>
<br />
<div class="spoiler_out"><div class="spoiler_head">Kalendersuchfunktion <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
<img src="http://ds.annotools.net/screens/kal.png" loading="lazy"  alt="[Image: kal.png]" class="mycode_img" /><br />
</div></div>
<br />
<div class="spoiler_out"><div class="spoiler_head">Übersicht <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
<img src="http://ds.annotools.net/sc/next1.png" loading="lazy"  alt="[Image: next1.png]" class="mycode_img" /><br />
</div></div>
<br />
<div class="spoiler_out"><div class="spoiler_head">Als nächstes startende Runden <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
<img src="http://ds.annotools.net/sc/next2.png" loading="lazy"  alt="[Image: next2.png]" class="mycode_img" /><br />
</div></div>
<br />
<div class="spoiler_out"><div class="spoiler_head">Wiki Suchfunktion <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
<img src="http://ds.annotools.net/screens/n2.png" loading="lazy"  alt="[Image: n2.png]" class="mycode_img" /><br />
<img src="http://ds.annotools.net/screens/n3.png" loading="lazy"  alt="[Image: n3.png]" class="mycode_img" /><br />
</div></div>
<br />
<br />
<br />
// Downloadlink<br />
<a href="http://visitor-stats.de/download-2083.html" target="_blank" rel="noopener" class="mycode_url">Runterladen!</a><br />
<img src="http://visitor-stats.de/download-2083.png" loading="lazy"  alt="[Image: download-2083.png]" class="mycode_img" /><br />
<br />
//Antivirus Scan<br />
<a href="https://www.virustotal.com/en/file/25e98ab31ede30298be1ecedd0ae6e1482a0cf5f1d3c0b620e91a357badbc33a/analysis/1403209022/" target="_blank" rel="noopener" class="mycode_url">Virenfrei - Klick mich</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Freunde]]></title>
			<link>https://twlan.org/showthread.php?tid=43292</link>
			<pubDate>Sun, 16 Feb 2014 18:55:26 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=1005">Jonsn</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=43292</guid>
			<description><![CDATA[Hallo,<br />
<br />
ich hab mir die letzten paar Tage auch mal überlegt, was es für DsLan noch nicht gibt.<br />
Mir ist dabei aufgefallen, dass hier noch nie jemand richtig das Freunde hinzufügen für die DSLan geschrieben, bzw. veröffentlicht hat.<br />
Es gab mal ein Tool, aber das war ned ganz originalgetreu soweit ich mich erinnere, außerdem war der Downloadlink down...<br />
Auf jeden Fall hab ich das in den letzten Tagen, immer wenn ich ein bisschen Zeit hatte implementiert.<br />
<br />
Was ist DS ohne das Freunde System? <img src="https://twlan.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" /><br />
Das ist doch gerade das Ziel dabei, Freundschaften zu schließen..<br />
<br />
Die Installation dauert paar Minuten, je nach Kenntnisse halt.<br />
<br />
Hier die Anleitung:<br />
<div class="spoiler_out"><div class="spoiler_head"> <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;"><span style="font-weight: bold;" class="mycode_b">/* ACHTUNG! Im folgenden gehe ich davon aus, dass ihr euch im DSLan Ordner im Verzeichnis htdocs befindet. */</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">/* 1. In templates/game.tpl einfuegen: (ca. Zeile 25) */</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"game.php?village=</span><span style="color: #007700">{</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">.</span><span style="color: #0000BB">id</span><span style="color: #007700">}</span><span style="color: #DD0000">&amp;amp;screen=friends"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Freunde</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt; 
</span></code></div></div></div>// vor<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
{if &#36;user.show_toolbar==1}<br />
<br />
// und (ca. Zeile 215)<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">{if </span><span style="color: #0000BB">&#36;screen </span><span style="color: #007700">== </span><span style="color: #DD0000">'friends'</span><span style="color: #007700">}
    {</span><span style="color: #0000BB">include_php file</span><span style="color: #007700">=</span><span style="color: #DD0000">"./actions/friends.php"</span><span style="color: #007700">}
{/if} 
</span></code></div></div></div>// vor<br />
&lt;p align="right" style="font-size: 7pt; margin-top:0px; margin-bottom:0px"&gt;{&#36;lang-&gt;grab("game", "generated")} {&#36;load_msec}ms<br />
Serverzeit: &lt;span id="serverTime"&gt;{&#36;servertime}&lt;/span&gt;&lt;/p&gt;<br />
<br />
<span style="font-weight: bold;" class="mycode_b">/* 2. In templates/game_info_player.tpl einfuegen: (ca. Zeile 15) */</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">{</span><span style="color: #0000BB">php</span><span style="color: #007700">}
    </span><span style="color: #FF8000">//any other solutions?
    </span><span style="color: #0000BB">&#36;temp </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_template_vars</span><span style="color: #007700">();
    </span><span style="color: #0000BB">&#36;me </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;temp</span><span style="color: #007700">[</span><span style="color: #DD0000">'user'</span><span style="color: #007700">][</span><span style="color: #DD0000">'username'</span><span style="color: #007700">];
    </span><span style="color: #0000BB">&#36;o_player </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;temp</span><span style="color: #007700">[</span><span style="color: #DD0000">'info_user'</span><span style="color: #007700">][</span><span style="color: #DD0000">'username'</span><span style="color: #007700">];
    unset(</span><span style="color: #0000BB">&#36;temp</span><span style="color: #007700">);
    
    if(</span><span style="color: #0000BB">mysql_result</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">'SELECT COUNT(id) FROM friends WHERE 
    ((source LIKE "' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;me </span><span style="color: #007700">. </span><span style="color: #DD0000">'" AND destination LIKE "' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;o_player </span><span style="color: #007700">. </span><span style="color: #DD0000">'") OR
    (source LIKE "' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;o_player </span><span style="color: #007700">. </span><span style="color: #DD0000">'" AND destination LIKE "' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;me </span><span style="color: #007700">. </span><span style="color: #DD0000">'"))'</span><span style="color: #007700">), </span><span style="color: #0000BB">0</span><span style="color: #007700">) &gt; </span><span style="color: #0000BB">0</span><span style="color: #007700">) {
    } else {
        if(</span><span style="color: #0000BB">&#36;me </span><span style="color: #007700">!= </span><span style="color: #0000BB">&#36;o_player</span><span style="color: #007700">) {
        {/</span><span style="color: #0000BB">php</span><span style="color: #007700">}
        &lt;</span><span style="color: #0000BB">form name</span><span style="color: #007700">=</span><span style="color: #DD0000">"add_friend" </span><span style="color: #0000BB">action</span><span style="color: #007700">=</span><span style="color: #DD0000">"game.php?village=</span><span style="color: #007700">{</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">.</span><span style="color: #0000BB">id</span><span style="color: #007700">}</span><span style="color: #DD0000">&amp;screen=friends" </span><span style="color: #0000BB">method</span><span style="color: #007700">=</span><span style="color: #DD0000">"POST"</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">input type</span><span style="color: #007700">=</span><span style="color: #DD0000">"hidden" </span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"add_name" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"</span><span style="color: #007700">{</span><span style="color: #0000BB">&#36;info_user</span><span style="color: #007700">.</span><span style="color: #0000BB">username</span><span style="color: #007700">}</span><span style="color: #DD0000">"</span><span style="color: #007700">/&gt;
            &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td colspan</span><span style="color: #007700">=</span><span style="color: #DD0000">"2"</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"#" </span><span style="color: #0000BB">onClick</span><span style="color: #007700">=</span><span style="color: #DD0000">"document.add_friend.submit()"</span><span style="color: #007700">&gt;
            &amp;</span><span style="color: #0000BB">raquo</span><span style="color: #007700">; </span><span style="color: #0000BB">Als Freund hinzuf</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">uuml</span><span style="color: #007700">;</span><span style="color: #0000BB">gen</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
        &lt;/</span><span style="color: #0000BB">form</span><span style="color: #007700">&gt;
        {</span><span style="color: #0000BB">php</span><span style="color: #007700">}
        }
    }
{/</span><span style="color: #0000BB">php</span><span style="color: #007700">} 
</span></code></div></div></div>// vor<br />
{if &#36;can_invite}<br />
<br />
<span style="font-weight: bold;" class="mycode_b">/* 3. In admin/actions/reset.php einfuegen */</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">if(isset(</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'action'</span><span style="color: #007700">]) &amp;&amp; </span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'action'</span><span style="color: #007700">] == </span><span style="color: #DD0000">'reset'</span><span style="color: #007700">) {
    </span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">'TRUNCATE TABLE friends'</span><span style="color: #007700">);
} 
</span></code></div></div></div>// vor!!!!!!!!!!!!!!!!!!<br />
if (!is_callable("eaccelerator_load")<br />
<br />
/* <span style="font-weight: bold;" class="mycode_b">4. Tabelle friends in der Datenbank erstellen, dazu:</span><br />
 *	- <a href="http://localhost/phpmyadmin/" target="_blank" rel="noopener" class="mycode_url">localhost/phpmyadmin/</a> in den Browser eingeben (apache_start und mysql_start müssen offen sein!). <br />
 * - Auf der linken Seite Datenbank 'lan' auswaehlen<br />
 * - In der mitte oben auf SQL klicken (zweite von links)<br />
 * - In des Feld folgenden Code einfuegen:<br />
 <br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">DROP TABLE </span><span style="color: #007700">IF </span><span style="color: #0000BB">EXISTS friends</span><span style="color: #007700">;
</span><span style="color: #0000BB">CREATE TABLE </span><span style="color: #007700">`</span><span style="color: #DD0000">friends</span><span style="color: #007700">` (
`</span><span style="color: #DD0000">id</span><span style="color: #007700">` </span><span style="color: #0000BB">INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY </span><span style="color: #007700">,
`</span><span style="color: #DD0000">source</span><span style="color: #007700">` </span><span style="color: #0000BB">VARCHAR</span><span style="color: #007700">( </span><span style="color: #0000BB">25 </span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL </span><span style="color: #007700">,
`</span><span style="color: #DD0000">destination</span><span style="color: #007700">` </span><span style="color: #0000BB">VARCHAR</span><span style="color: #007700">( </span><span style="color: #0000BB">25 </span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL </span><span style="color: #007700">,
`</span><span style="color: #DD0000">status</span><span style="color: #007700">` </span><span style="color: #0000BB">ENUM</span><span style="color: #007700">( </span><span style="color: #DD0000">'anf'</span><span style="color: #007700">, </span><span style="color: #DD0000">'bef' </span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL
</span><span style="color: #007700">) </span><span style="color: #0000BB">ENGINE </span><span style="color: #007700">= </span><span style="color: #0000BB">MYISAM</span><span style="color: #007700">; 
</span></code></div></div></div><br />
* - Unterhalb auf OK druecken<br />
* - Die Abfrage ob man wirklich ausfuehren moechte mit OK bestaetigen<br />
* - Es sollte oben stehen: "Ihr SQL-Befehl wurde erfolgreich ausgeführt.", dann ist die Tabelle erfolgreich erstellt worden.<br />
* - Am besten mal Links nachschauen ob nun die Tabelle friends dabei ist.<br />
* - Falls eine Fehlermeldung kommt, bitte im Forum Bescheid geben.<br />
*/<br />
<br />
/* <span style="font-weight: bold;" class="mycode_b">5. Fast geschafft <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /> Auf den Downloadlink in diesem Thread klicken, <br />
 * Datei herunterladen und die Dateien in das DSLAN Verzeichnis entpacken:</span><br />
 * Sprich irgendwo auf dem Rechner extrahieren, dann die Ordner actions und <br />
 * templates nach htdocs im DSLan Ordner verschieben. Bei der Frage nach dem Integrieren einfach bestaetigen.<br />
 * friends.zip sowie den dann leeren Ordner friends kann man anschließend löschen. */<br />
 <br />
/*<span style="font-weight: bold;" class="mycode_b"> 6. Noch ein kleiner Hinweis zur Konfiguration: </span><br />
  * - In der Datei actions/friends.php kann man Sachen wie Offlinezeit der Freunde, <br />
  *   Titeltext und Bilder bei Berichten veraendern <br />
  * - In den Dateien im templates Ordner:<br />
  *	- game_friends.tpl<br />
  * 	- game_report_view_accept_friend.tpl<br />
  *	- game_report_view_cancel_friend.tpl<br />
  *	- game_report_view_delete_friend.tpl<br />
  *	- game_report_view_refuse_friend.tpl<br />
  *	- game_report_view_request_friend.tpl<br />
  *	kann man das Aussehen und den Text der Berichte sowie die Seite friends bearbeiten.<br />
  *	Mir sind leider einige Inhalte des offiziellen Spiels entfallen, bei Bedarf aendern <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
*/<br />
<br />
/* <span style="font-weight: bold;" class="mycode_b">7. Spaß haben! Bugs und Rueckmeldungen im Forum schreiben</span> */<br />
</div></div>
<br />
<span style="font-size: large;" class="mycode_size"><a href="http://visitor-stats.de/download-2080.html" target="_blank" rel="noopener" class="mycode_url">Download_v1.0</a></span><br />
<img src="http://visitor-stats.de/download-2080.png" loading="lazy"  alt="[Image: download-2080.png]" class="mycode_img" /><br />
<br />
Getestet mit der Version v1.4, sollte aber mit anderen auch gehen.<br />
<span style="color: #FF0000;" class="mycode_color">Ich übernehme Keine Haftung für eventuelle Schäden, die bei ordnungsgemäßer Installation sowieso nicht auftreten.</span>]]></description>
			<content:encoded><![CDATA[Hallo,<br />
<br />
ich hab mir die letzten paar Tage auch mal überlegt, was es für DsLan noch nicht gibt.<br />
Mir ist dabei aufgefallen, dass hier noch nie jemand richtig das Freunde hinzufügen für die DSLan geschrieben, bzw. veröffentlicht hat.<br />
Es gab mal ein Tool, aber das war ned ganz originalgetreu soweit ich mich erinnere, außerdem war der Downloadlink down...<br />
Auf jeden Fall hab ich das in den letzten Tagen, immer wenn ich ein bisschen Zeit hatte implementiert.<br />
<br />
Was ist DS ohne das Freunde System? <img src="https://twlan.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" /><br />
Das ist doch gerade das Ziel dabei, Freundschaften zu schließen..<br />
<br />
Die Installation dauert paar Minuten, je nach Kenntnisse halt.<br />
<br />
Hier die Anleitung:<br />
<div class="spoiler_out"><div class="spoiler_head"> <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;"><span style="font-weight: bold;" class="mycode_b">/* ACHTUNG! Im folgenden gehe ich davon aus, dass ihr euch im DSLan Ordner im Verzeichnis htdocs befindet. */</span><br />
<br />
<span style="font-weight: bold;" class="mycode_b">/* 1. In templates/game.tpl einfuegen: (ca. Zeile 25) */</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"game.php?village=</span><span style="color: #007700">{</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">.</span><span style="color: #0000BB">id</span><span style="color: #007700">}</span><span style="color: #DD0000">&amp;amp;screen=friends"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Freunde</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt; 
</span></code></div></div></div>// vor<br />
&lt;/tr&gt;<br />
&lt;/table&gt;<br />
{if &#36;user.show_toolbar==1}<br />
<br />
// und (ca. Zeile 215)<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">{if </span><span style="color: #0000BB">&#36;screen </span><span style="color: #007700">== </span><span style="color: #DD0000">'friends'</span><span style="color: #007700">}
    {</span><span style="color: #0000BB">include_php file</span><span style="color: #007700">=</span><span style="color: #DD0000">"./actions/friends.php"</span><span style="color: #007700">}
{/if} 
</span></code></div></div></div>// vor<br />
&lt;p align="right" style="font-size: 7pt; margin-top:0px; margin-bottom:0px"&gt;{&#36;lang-&gt;grab("game", "generated")} {&#36;load_msec}ms<br />
Serverzeit: &lt;span id="serverTime"&gt;{&#36;servertime}&lt;/span&gt;&lt;/p&gt;<br />
<br />
<span style="font-weight: bold;" class="mycode_b">/* 2. In templates/game_info_player.tpl einfuegen: (ca. Zeile 15) */</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">{</span><span style="color: #0000BB">php</span><span style="color: #007700">}
    </span><span style="color: #FF8000">//any other solutions?
    </span><span style="color: #0000BB">&#36;temp </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_template_vars</span><span style="color: #007700">();
    </span><span style="color: #0000BB">&#36;me </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;temp</span><span style="color: #007700">[</span><span style="color: #DD0000">'user'</span><span style="color: #007700">][</span><span style="color: #DD0000">'username'</span><span style="color: #007700">];
    </span><span style="color: #0000BB">&#36;o_player </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;temp</span><span style="color: #007700">[</span><span style="color: #DD0000">'info_user'</span><span style="color: #007700">][</span><span style="color: #DD0000">'username'</span><span style="color: #007700">];
    unset(</span><span style="color: #0000BB">&#36;temp</span><span style="color: #007700">);
    
    if(</span><span style="color: #0000BB">mysql_result</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">'SELECT COUNT(id) FROM friends WHERE 
    ((source LIKE "' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;me </span><span style="color: #007700">. </span><span style="color: #DD0000">'" AND destination LIKE "' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;o_player </span><span style="color: #007700">. </span><span style="color: #DD0000">'") OR
    (source LIKE "' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;o_player </span><span style="color: #007700">. </span><span style="color: #DD0000">'" AND destination LIKE "' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;me </span><span style="color: #007700">. </span><span style="color: #DD0000">'"))'</span><span style="color: #007700">), </span><span style="color: #0000BB">0</span><span style="color: #007700">) &gt; </span><span style="color: #0000BB">0</span><span style="color: #007700">) {
    } else {
        if(</span><span style="color: #0000BB">&#36;me </span><span style="color: #007700">!= </span><span style="color: #0000BB">&#36;o_player</span><span style="color: #007700">) {
        {/</span><span style="color: #0000BB">php</span><span style="color: #007700">}
        &lt;</span><span style="color: #0000BB">form name</span><span style="color: #007700">=</span><span style="color: #DD0000">"add_friend" </span><span style="color: #0000BB">action</span><span style="color: #007700">=</span><span style="color: #DD0000">"game.php?village=</span><span style="color: #007700">{</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">.</span><span style="color: #0000BB">id</span><span style="color: #007700">}</span><span style="color: #DD0000">&amp;screen=friends" </span><span style="color: #0000BB">method</span><span style="color: #007700">=</span><span style="color: #DD0000">"POST"</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">input type</span><span style="color: #007700">=</span><span style="color: #DD0000">"hidden" </span><span style="color: #0000BB">name</span><span style="color: #007700">=</span><span style="color: #DD0000">"add_name" </span><span style="color: #0000BB">value</span><span style="color: #007700">=</span><span style="color: #DD0000">"</span><span style="color: #007700">{</span><span style="color: #0000BB">&#36;info_user</span><span style="color: #007700">.</span><span style="color: #0000BB">username</span><span style="color: #007700">}</span><span style="color: #DD0000">"</span><span style="color: #007700">/&gt;
            &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td colspan</span><span style="color: #007700">=</span><span style="color: #DD0000">"2"</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"#" </span><span style="color: #0000BB">onClick</span><span style="color: #007700">=</span><span style="color: #DD0000">"document.add_friend.submit()"</span><span style="color: #007700">&gt;
            &amp;</span><span style="color: #0000BB">raquo</span><span style="color: #007700">; </span><span style="color: #0000BB">Als Freund hinzuf</span><span style="color: #007700">&amp;</span><span style="color: #0000BB">uuml</span><span style="color: #007700">;</span><span style="color: #0000BB">gen</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
        &lt;/</span><span style="color: #0000BB">form</span><span style="color: #007700">&gt;
        {</span><span style="color: #0000BB">php</span><span style="color: #007700">}
        }
    }
{/</span><span style="color: #0000BB">php</span><span style="color: #007700">} 
</span></code></div></div></div>// vor<br />
{if &#36;can_invite}<br />
<br />
<span style="font-weight: bold;" class="mycode_b">/* 3. In admin/actions/reset.php einfuegen */</span><br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">if(isset(</span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'action'</span><span style="color: #007700">]) &amp;&amp; </span><span style="color: #0000BB">&#36;_GET</span><span style="color: #007700">[</span><span style="color: #DD0000">'action'</span><span style="color: #007700">] == </span><span style="color: #DD0000">'reset'</span><span style="color: #007700">) {
    </span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">'TRUNCATE TABLE friends'</span><span style="color: #007700">);
} 
</span></code></div></div></div>// vor!!!!!!!!!!!!!!!!!!<br />
if (!is_callable("eaccelerator_load")<br />
<br />
/* <span style="font-weight: bold;" class="mycode_b">4. Tabelle friends in der Datenbank erstellen, dazu:</span><br />
 *	- <a href="http://localhost/phpmyadmin/" target="_blank" rel="noopener" class="mycode_url">localhost/phpmyadmin/</a> in den Browser eingeben (apache_start und mysql_start müssen offen sein!). <br />
 * - Auf der linken Seite Datenbank 'lan' auswaehlen<br />
 * - In der mitte oben auf SQL klicken (zweite von links)<br />
 * - In des Feld folgenden Code einfuegen:<br />
 <br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">DROP TABLE </span><span style="color: #007700">IF </span><span style="color: #0000BB">EXISTS friends</span><span style="color: #007700">;
</span><span style="color: #0000BB">CREATE TABLE </span><span style="color: #007700">`</span><span style="color: #DD0000">friends</span><span style="color: #007700">` (
`</span><span style="color: #DD0000">id</span><span style="color: #007700">` </span><span style="color: #0000BB">INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY </span><span style="color: #007700">,
`</span><span style="color: #DD0000">source</span><span style="color: #007700">` </span><span style="color: #0000BB">VARCHAR</span><span style="color: #007700">( </span><span style="color: #0000BB">25 </span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL </span><span style="color: #007700">,
`</span><span style="color: #DD0000">destination</span><span style="color: #007700">` </span><span style="color: #0000BB">VARCHAR</span><span style="color: #007700">( </span><span style="color: #0000BB">25 </span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL </span><span style="color: #007700">,
`</span><span style="color: #DD0000">status</span><span style="color: #007700">` </span><span style="color: #0000BB">ENUM</span><span style="color: #007700">( </span><span style="color: #DD0000">'anf'</span><span style="color: #007700">, </span><span style="color: #DD0000">'bef' </span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL
</span><span style="color: #007700">) </span><span style="color: #0000BB">ENGINE </span><span style="color: #007700">= </span><span style="color: #0000BB">MYISAM</span><span style="color: #007700">; 
</span></code></div></div></div><br />
* - Unterhalb auf OK druecken<br />
* - Die Abfrage ob man wirklich ausfuehren moechte mit OK bestaetigen<br />
* - Es sollte oben stehen: "Ihr SQL-Befehl wurde erfolgreich ausgeführt.", dann ist die Tabelle erfolgreich erstellt worden.<br />
* - Am besten mal Links nachschauen ob nun die Tabelle friends dabei ist.<br />
* - Falls eine Fehlermeldung kommt, bitte im Forum Bescheid geben.<br />
*/<br />
<br />
/* <span style="font-weight: bold;" class="mycode_b">5. Fast geschafft <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /> Auf den Downloadlink in diesem Thread klicken, <br />
 * Datei herunterladen und die Dateien in das DSLAN Verzeichnis entpacken:</span><br />
 * Sprich irgendwo auf dem Rechner extrahieren, dann die Ordner actions und <br />
 * templates nach htdocs im DSLan Ordner verschieben. Bei der Frage nach dem Integrieren einfach bestaetigen.<br />
 * friends.zip sowie den dann leeren Ordner friends kann man anschließend löschen. */<br />
 <br />
/*<span style="font-weight: bold;" class="mycode_b"> 6. Noch ein kleiner Hinweis zur Konfiguration: </span><br />
  * - In der Datei actions/friends.php kann man Sachen wie Offlinezeit der Freunde, <br />
  *   Titeltext und Bilder bei Berichten veraendern <br />
  * - In den Dateien im templates Ordner:<br />
  *	- game_friends.tpl<br />
  * 	- game_report_view_accept_friend.tpl<br />
  *	- game_report_view_cancel_friend.tpl<br />
  *	- game_report_view_delete_friend.tpl<br />
  *	- game_report_view_refuse_friend.tpl<br />
  *	- game_report_view_request_friend.tpl<br />
  *	kann man das Aussehen und den Text der Berichte sowie die Seite friends bearbeiten.<br />
  *	Mir sind leider einige Inhalte des offiziellen Spiels entfallen, bei Bedarf aendern <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
*/<br />
<br />
/* <span style="font-weight: bold;" class="mycode_b">7. Spaß haben! Bugs und Rueckmeldungen im Forum schreiben</span> */<br />
</div></div>
<br />
<span style="font-size: large;" class="mycode_size"><a href="http://visitor-stats.de/download-2080.html" target="_blank" rel="noopener" class="mycode_url">Download_v1.0</a></span><br />
<img src="http://visitor-stats.de/download-2080.png" loading="lazy"  alt="[Image: download-2080.png]" class="mycode_img" /><br />
<br />
Getestet mit der Version v1.4, sollte aber mit anderen auch gehen.<br />
<span style="color: #FF0000;" class="mycode_color">Ich übernehme Keine Haftung für eventuelle Schäden, die bei ordnungsgemäßer Installation sowieso nicht auftreten.</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Installationsassistent]]></title>
			<link>https://twlan.org/showthread.php?tid=43266</link>
			<pubDate>Wed, 06 Nov 2013 18:37:04 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=161058">master</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=43266</guid>
			<description><![CDATA[Ich habe einen kleinen Installationsassistenten programmiert, alles entpackt und hinterher auch einrichtet (XAMMP einrichten, ...)<br />
Einfach herunterladen und starten und der Assistent erledigt fast alles komplett alleine. Schon über 150 Downloads!<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Features:</span><ul class="mycode_list"><li>Der Installer ist nur 18,6 MB groß und damit kleiner als das originale zip-Paket<br />
</li>
<li>Nach der Installation wird der Server automatisch installiert<br />
</li>
<li>Es werden Start- und Stop-Verknüpfungen im Startmenü angelegt, damit man sich nicht durch den Verzeichnis-Dschun­gel durchwühlen muss. <img src="https://twlan.org/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
</li>
<li>DSLan Version 1.4<br />
</li>
<li>Komplett auf Deutsch! Englische Version wird folgen<br />
</li>
</ul>
<img src="http://www.mariowa.de/dslan/screenshots/DSLan1.png" loading="lazy"  alt="[Image: DSLan1.png]" class="mycode_img" /> <img src="http://www.mariowa.de/dslan/screenshots/DSLanEin2.png" loading="lazy"  alt="[Image: DSLanEin2.png]" class="mycode_img" /><br />
<br />
Erfolgreich getestet unter Windows 7.<br />
<a href="http://www.DownloadCounter.de/counter.pl?file=https://dl.dropboxusercontent.com/s/mbdcrsnrhv4m8qz/DSLan_v1.4.exe?dl=1&amp;token_hash=AAE7Li2wDDfaZfrWEPmnFJF2rE1YkQ4nSIyHMgCTaieRVQ&amp;user=dslan" target="_blank" rel="noopener" class="mycode_url"><span style="text-decoration: underline;" class="mycode_u"><span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-large;" class="mycode_size">DOWNLOAD</span></span></span></a><br />
(Es wird .Net für den Einrichtungsassistenten benötigt)<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Installationsanleitung:</span><br />
<ol type="1" class="mycode_list"><li>Falls das Programm "Skype" am PC läuft, so dieses nun schließen.<br />
</li>
<li>Den Installer nun (mit Administrator-Rechten) ausführen.<br />
</li>
<li>Den Einrichtungsassistenten befolgen.<br />
</li>
<li>Über die Verknüpfung im Startmenü "DSLan\DSLan starten" ausführen<br />
</li>
<li>Jetzt erfolgt ein Piepton, der signalisiert, dass der Server nun gestartet<br />
wurde. Eventuell fragt die Firewall, ob ein Programm ins Internet darf.<br />
Bitte alle Anfragen bestätigen.<br />
</li>
<li>Im Webbrowser (Internet Explorer, Mozilla, ..) nun "localhost" eingeben.<br />
</li>
<li>Erscheint DS LAN, so wurde es erfolgreich installiert!<br />
</li>
<li>Alle anderen PCs im Netzwerk müssen deine IP Adresse eingeben.<br />
</li>
<li>Zum beenden im Startmenü "DSLan\DSLan beenden" ausführen.<br />
</li>
</ol>
Falls die Installation nicht richtig funktioniert, bitte dies hier in diesem Thema inklusive Fehlermeldung (wenn vorhanden) melden! Ohne genaue Fehlerbeschreibung kann ich nichts machen.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Hinweis:</span> Der Installationsassistent (auch Setup genannt) und der Einrichtungsassistent wurden von <a href="http://forum.twlan.org/member.php?action=profile&amp;uid=161058" target="_blank" rel="noopener" class="mycode_url">master</a> entwickelt. Es gelten für die Assistenten dieselben Bedienungen wie für DSLan.<br />
Ich übernehme keine Haftung für Schäden und Ähnliches, die durch das Herunterladen und Nutzen des Installationsassistenten oder durch DSLan entstehen. Der Einrichtungsassistent darf nicht ohne meine Genehmigung in ein All-in-One-Pakete gepackt oder woanders veröffentlicht werden.]]></description>
			<content:encoded><![CDATA[Ich habe einen kleinen Installationsassistenten programmiert, alles entpackt und hinterher auch einrichtet (XAMMP einrichten, ...)<br />
Einfach herunterladen und starten und der Assistent erledigt fast alles komplett alleine. Schon über 150 Downloads!<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Features:</span><ul class="mycode_list"><li>Der Installer ist nur 18,6 MB groß und damit kleiner als das originale zip-Paket<br />
</li>
<li>Nach der Installation wird der Server automatisch installiert<br />
</li>
<li>Es werden Start- und Stop-Verknüpfungen im Startmenü angelegt, damit man sich nicht durch den Verzeichnis-Dschun­gel durchwühlen muss. <img src="https://twlan.org/images/smilies/wink.png" alt="Wink" title="Wink" class="smilie smilie_2" /><br />
</li>
<li>DSLan Version 1.4<br />
</li>
<li>Komplett auf Deutsch! Englische Version wird folgen<br />
</li>
</ul>
<img src="http://www.mariowa.de/dslan/screenshots/DSLan1.png" loading="lazy"  alt="[Image: DSLan1.png]" class="mycode_img" /> <img src="http://www.mariowa.de/dslan/screenshots/DSLanEin2.png" loading="lazy"  alt="[Image: DSLanEin2.png]" class="mycode_img" /><br />
<br />
Erfolgreich getestet unter Windows 7.<br />
<a href="http://www.DownloadCounter.de/counter.pl?file=https://dl.dropboxusercontent.com/s/mbdcrsnrhv4m8qz/DSLan_v1.4.exe?dl=1&amp;token_hash=AAE7Li2wDDfaZfrWEPmnFJF2rE1YkQ4nSIyHMgCTaieRVQ&amp;user=dslan" target="_blank" rel="noopener" class="mycode_url"><span style="text-decoration: underline;" class="mycode_u"><span style="font-weight: bold;" class="mycode_b"><span style="font-size: x-large;" class="mycode_size">DOWNLOAD</span></span></span></a><br />
(Es wird .Net für den Einrichtungsassistenten benötigt)<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Installationsanleitung:</span><br />
<ol type="1" class="mycode_list"><li>Falls das Programm "Skype" am PC läuft, so dieses nun schließen.<br />
</li>
<li>Den Installer nun (mit Administrator-Rechten) ausführen.<br />
</li>
<li>Den Einrichtungsassistenten befolgen.<br />
</li>
<li>Über die Verknüpfung im Startmenü "DSLan\DSLan starten" ausführen<br />
</li>
<li>Jetzt erfolgt ein Piepton, der signalisiert, dass der Server nun gestartet<br />
wurde. Eventuell fragt die Firewall, ob ein Programm ins Internet darf.<br />
Bitte alle Anfragen bestätigen.<br />
</li>
<li>Im Webbrowser (Internet Explorer, Mozilla, ..) nun "localhost" eingeben.<br />
</li>
<li>Erscheint DS LAN, so wurde es erfolgreich installiert!<br />
</li>
<li>Alle anderen PCs im Netzwerk müssen deine IP Adresse eingeben.<br />
</li>
<li>Zum beenden im Startmenü "DSLan\DSLan beenden" ausführen.<br />
</li>
</ol>
Falls die Installation nicht richtig funktioniert, bitte dies hier in diesem Thema inklusive Fehlermeldung (wenn vorhanden) melden! Ohne genaue Fehlerbeschreibung kann ich nichts machen.<br />
<br />
<span style="font-weight: bold;" class="mycode_b">Hinweis:</span> Der Installationsassistent (auch Setup genannt) und der Einrichtungsassistent wurden von <a href="http://forum.twlan.org/member.php?action=profile&amp;uid=161058" target="_blank" rel="noopener" class="mycode_url">master</a> entwickelt. Es gelten für die Assistenten dieselben Bedienungen wie für DSLan.<br />
Ich übernehme keine Haftung für Schäden und Ähnliches, die durch das Herunterladen und Nutzen des Installationsassistenten oder durch DSLan entstehen. Der Einrichtungsassistent darf nicht ohne meine Genehmigung in ein All-in-One-Pakete gepackt oder woanders veröffentlicht werden.]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[CoD TWLan]]></title>
			<link>https://twlan.org/showthread.php?tid=43251</link>
			<pubDate>Thu, 11 Jul 2013 07:47:07 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=160742">angelblue15</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=43251</guid>
			<description><![CDATA[wollte nur mal Ankündigen dass ich im moment eine Art Call Of Duty TWLan mache , ist eigentlich ein TWLan nur eben mit Grafiken aus Call Of Duty Smile]]></description>
			<content:encoded><![CDATA[wollte nur mal Ankündigen dass ich im moment eine Art Call Of Duty TWLan mache , ist eigentlich ein TWLan nur eben mit Grafiken aus Call Of Duty Smile]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Call Of Duty Grafiken]]></title>
			<link>https://twlan.org/showthread.php?tid=43235</link>
			<pubDate>Thu, 23 May 2013 22:02:39 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=29193">-Andy-</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=43235</guid>
			<description><![CDATA[Hey ,<br />
<br />
wollte nur mal Ankündigen dass ich im moment eine Art Call Of Duty TWLan mache , ist eigentlich ein TWLan nur eben mit Grafiken aus Call Of Duty <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
Bilder und die Downloadlinks kommen in ein paar Tagen !<br />
<br />
Wollte noch fragen ob ich die Erlaubnis dafür bekomme ?<br />
<br />
Mfg -Andy-]]></description>
			<content:encoded><![CDATA[Hey ,<br />
<br />
wollte nur mal Ankündigen dass ich im moment eine Art Call Of Duty TWLan mache , ist eigentlich ein TWLan nur eben mit Grafiken aus Call Of Duty <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /><br />
<br />
Bilder und die Downloadlinks kommen in ein paar Tagen !<br />
<br />
Wollte noch fragen ob ich die Erlaubnis dafür bekomme ?<br />
<br />
Mfg -Andy-]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[& Version 1.4 - Selbst ausbauende Barbarendörfer]]></title>
			<link>https://twlan.org/showthread.php?tid=43213</link>
			<pubDate>Mon, 06 May 2013 17:18:16 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=3333">SlimShady95</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=43213</guid>
			<description><![CDATA[Hab ich grad auf der Platte gefunden, vielleicht hat ja jemand ne Verwendung für ^^<br />
<br />
Code:<br />
<div class="spoiler_out"><div class="spoiler_head">Source Code <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;"><div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php
</span><span style="color: #FF8000">// Copyright by SlimShady95 &lt; manuel_mannhardt@web.de &gt;
// reload_ress() by milos

// Geklaut vom milos Bot :D
</span><span style="color: #007700">function </span><span style="color: #0000BB">reload_ress</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;vid</span><span style="color: #007700">)
{
    global </span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;arr_production</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">;

    </span><span style="color: #0000BB">&#36;sql </span><span style="color: #007700">= </span><span style="color: #DD0000">'SELECT * FROM `villages` WHERE `id` = ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;vid</span><span style="color: #007700">;
    </span><span style="color: #0000BB">&#36;res </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;sql</span><span style="color: #007700">);
    </span><span style="color: #0000BB">&#36;village </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;res</span><span style="color: #007700">);
    
    </span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">= </span><span style="color: #0000BB">time</span><span style="color: #007700">();

    </span><span style="color: #0000BB">&#36;wood </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'r_wood'</span><span style="color: #007700">] + </span><span style="color: #0000BB">&#36;arr_production</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">]] * </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'speed'</span><span style="color: #007700">] / </span><span style="color: #0000BB">60 </span><span style="color: #007700">/ </span><span style="color: #0000BB">60 </span><span style="color: #007700">* (</span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">- </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'last_prod_aktu'</span><span style="color: #007700">]);
    </span><span style="color: #0000BB">&#36;stone </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'r_stone'</span><span style="color: #007700">] + </span><span style="color: #0000BB">&#36;arr_production</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'stone'</span><span style="color: #007700">]] * </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'speed'</span><span style="color: #007700">] / </span><span style="color: #0000BB">60 </span><span style="color: #007700">/ </span><span style="color: #0000BB">60 </span><span style="color: #007700">* (</span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">- </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'last_prod_aktu'</span><span style="color: #007700">]);
    </span><span style="color: #0000BB">&#36;iron </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'r_iron'</span><span style="color: #007700">] + </span><span style="color: #0000BB">&#36;arr_production</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'iron'</span><span style="color: #007700">]] * </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'speed'</span><span style="color: #007700">] / </span><span style="color: #0000BB">60 </span><span style="color: #007700">/ </span><span style="color: #0000BB">60 </span><span style="color: #007700">* (</span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">- </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'last_prod_aktu'</span><span style="color: #007700">]);
    
    if(</span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]] &lt; </span><span style="color: #0000BB">&#36;wood</span><span style="color: #007700">)
    {
        </span><span style="color: #0000BB">&#36;wood </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]];
    }

    if (</span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]] &lt; </span><span style="color: #0000BB">&#36;stone</span><span style="color: #007700">)
    {
        </span><span style="color: #0000BB">&#36;stone </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]];
    }

    if (</span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]] &lt; </span><span style="color: #0000BB">&#36;iron</span><span style="color: #007700">)
    {
        </span><span style="color: #0000BB">&#36;iron </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]];
    }
    
    </span><span style="color: #0000BB">&#36;sql </span><span style="color: #007700">= </span><span style="color: #DD0000">'UPDATE `villages` SET `r_wood` = &#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;wood </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;', `r_stone` = &#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;stone </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;', `r_iron` = &#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;iron </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;', last_prod_aktu = &#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;' WHERE `id` = &#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;vid </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;''</span><span style="color: #007700">;
    </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;sql</span><span style="color: #007700">);
}

</span><span style="color: #FF8000">// Improvisation pur -.-'
</span><span style="color: #0000BB">&#36;query </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'SELECT * FROM `build` WHERE `end_time` &lt; ' </span><span style="color: #007700">. </span><span style="color: #0000BB">time</span><span style="color: #007700">());
while(</span><span style="color: #0000BB">&#36;row </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query</span><span style="color: #007700">)) 
{
    </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'UPDATE `villages` SET `' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'building'</span><span style="color: #007700">] . </span><span style="color: #DD0000">'` = `' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'building'</span><span style="color: #007700">] . </span><span style="color: #DD0000">'` + 1 WHERE `id` = ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'villageid'</span><span style="color: #007700">]);
    </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'DELETE FROM `build` WHERE `id` = ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]);
}

</span><span style="color: #FF8000">// Alle Dörfer holen, die weniger als die maximalen Punkte haben
</span><span style="color: #0000BB">&#36;query </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'SELECT * FROM `villages` WHERE `userid` = &#092;'-1&#092;' AND `points` &lt; ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'bb_max_points'</span><span style="color: #007700">]);

while(</span><span style="color: #0000BB">&#36;row </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query</span><span style="color: #007700">)) 
{
    </span><span style="color: #FF8000">// Baut da schon was?
    </span><span style="color: #0000BB">&#36;query2 </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'SELECT * FROM `build` WHERE `villageid` = ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]);
    if(</span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">numrows</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query2</span><span style="color: #007700">) == </span><span style="color: #0000BB">0</span><span style="color: #007700">) 
    {
        </span><span style="color: #FF8000">// Nein? Dann Gebäude auswählen
        </span><span style="color: #0000BB">&#36;builds </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_array</span><span style="color: #007700">(</span><span style="color: #DD0000">'dbname'</span><span style="color: #007700">);
        </span><span style="color: #0000BB">&#36;build_village </span><span style="color: #007700">= array();
        </span><span style="color: #0000BB">&#36;id_array </span><span style="color: #007700">= </span><span style="color: #0000BB">array_flip</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_array</span><span style="color: #007700">(</span><span style="color: #DD0000">'dbname'</span><span style="color: #007700">));
        foreach(</span><span style="color: #0000BB">&#36;builds </span><span style="color: #007700">as </span><span style="color: #0000BB">&#36;key </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">&#36;value</span><span style="color: #007700">) 
        {
            </span><span style="color: #0000BB">&#36;build_village</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;value</span><span style="color: #007700">] = </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;value</span><span style="color: #007700">];
        }        
        
        </span><span style="color: #FF8000">// Zufälliges Gebäude
        </span><span style="color: #0000BB">&#36;rand </span><span style="color: #007700">= </span><span style="color: #0000BB">rand</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">, </span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;builds</span><span style="color: #007700">)-</span><span style="color: #0000BB">1</span><span style="color: #007700">);
        </span><span style="color: #0000BB">&#36;build </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;builds</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;rand</span><span style="color: #007700">];
        
        </span><span style="color: #FF8000">// Bauen
        </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">build</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;id_array</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">], </span><span style="color: #0000BB">&#36;build_village</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">);
        
        </span><span style="color: #FF8000">#print &#36;cl_builds-&gt;get_build_error2() . '&lt;br /&gt;';
        
        // Kein Fehler -&gt; Rohstoffe abziehen und son Zeug halt
        </span><span style="color: #007700">if(</span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_build_error2</span><span style="color: #007700">() == </span><span style="color: #DD0000">'no_error'</span><span style="color: #007700">) 
        {
            </span><span style="color: #FF8000">// Rohstoffe abziehen
            </span><span style="color: #0000BB">&#36;wood </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_wood</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">);
            </span><span style="color: #0000BB">&#36;stone </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_stone</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">);
            </span><span style="color: #0000BB">&#36;iron </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_iron</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">);
            </span><span style="color: #0000BB">&#36;bh </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_bh</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">);
            </span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_time</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'main'</span><span style="color: #007700">], </span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">) + </span><span style="color: #0000BB">time</span><span style="color: #007700">();
            </span><span style="color: #0000BB">&#36;onlytime </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_time</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'main'</span><span style="color: #007700">], </span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">);   
            
            </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'UPDATE `villages` SET `r_wood` = `r_wood` - ' </span><span style="color: #007700">. </span><span style="color: #0000BB">round</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;wood</span><span style="color: #007700">) . </span><span style="color: #DD0000">', `r_stone` = `r_stone` - ' </span><span style="color: #007700">. </span><span style="color: #0000BB">round</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;stone</span><span style="color: #007700">) . </span><span style="color: #DD0000">', `r_iron` = `r_iron` - ' </span><span style="color: #007700">. </span><span style="color: #0000BB">round</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;iron</span><span style="color: #007700">) . </span><span style="color: #DD0000">', `r_bh` = `r_bh` + ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;bh </span><span style="color: #007700">. </span><span style="color: #DD0000">' WHERE `id` = ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]);
            </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'INSERT INTO `build` (`building`, `villageid`, `end_time`, `build_time`) VALUES (&#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;build </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;',' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">] .  </span><span style="color: #DD0000">',' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">. </span><span style="color: #DD0000">', ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;onlytime </span><span style="color: #007700">. </span><span style="color: #DD0000">')'</span><span style="color: #007700">);
            
            
        }
    }
    
    </span><span style="color: #0000BB">reload_ress</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]);
} 
</span></code></div></div></div></div></div>
<br />
<div class="spoiler_out"><div class="spoiler_head">Installation Deutsch <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
Installtion:<br />
- Speichert den Code oben ^ in einer Datei direkt in htdocs (nennen wir sie mal "barbar.php") oder ladet die Datei [<a href="http://www.file-upload.net/download-7562791/barbar.zip.html" target="_blank" rel="noopener" class="mycode_url">hier</a>] runter, entpackt sie und speichert sie in "htdocs"<br />
- Benennt die Datei "include.inc.php" in "include2.inc.php" um (sie ist in "htdocs")<br />
- Erstellt eine neue Datei namens "include.inc.php" mit folgendem Inhalt:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php
</span><span style="color: #007700">require_once(</span><span style="color: #DD0000">'include2.inc.php'</span><span style="color: #007700">);
require_once(</span><span style="color: #DD0000">'barbar.php'</span><span style="color: #007700">); 
</span></code></div></div></div>- Danach öffnet ihr die Config und fügt folgenden Eintrag hinzu:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'bb_max_points'</span><span style="color: #007700">] = </span><span style="color: #0000BB">3000</span><span style="color: #007700">; 
</span></code></div></div></div></div></div>
<br />
<div class="spoiler_out"><div class="spoiler_head">Installation English <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
[<a href="http://forum.twlan.org/showthread.php?tid=43213&amp;pid=192259#pid192259" target="_blank" rel="noopener" class="mycode_url">Click</a>]<br />
</div></div>
<br />
PS: Der Config-Eintrag lässt euch einstellen, wie weit die Dörfer sich ausbauen<br />
PS2: Rohstoffe werden abgezogen, BH-Plätze werden belegt, ausbauen dauert genauso lange wie bei den Spielern, etc.<br />
PS3: <span style="font-weight: bold;" class="mycode_b">No support - Keine Hilfe bei der Installation oder bei Fehlern</span><br />
PS4: Ja, das Script ist ekligt, aber das ist auch schon 2 Jahre alt <img src="https://twlan.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" /><br />
<br />
MfG Manuel]]></description>
			<content:encoded><![CDATA[Hab ich grad auf der Platte gefunden, vielleicht hat ja jemand ne Verwendung für ^^<br />
<br />
Code:<br />
<div class="spoiler_out"><div class="spoiler_head">Source Code <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;"><div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php
</span><span style="color: #FF8000">// Copyright by SlimShady95 &lt; manuel_mannhardt@web.de &gt;
// reload_ress() by milos

// Geklaut vom milos Bot :D
</span><span style="color: #007700">function </span><span style="color: #0000BB">reload_ress</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;vid</span><span style="color: #007700">)
{
    global </span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;arr_production</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">;

    </span><span style="color: #0000BB">&#36;sql </span><span style="color: #007700">= </span><span style="color: #DD0000">'SELECT * FROM `villages` WHERE `id` = ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;vid</span><span style="color: #007700">;
    </span><span style="color: #0000BB">&#36;res </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;sql</span><span style="color: #007700">);
    </span><span style="color: #0000BB">&#36;village </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;res</span><span style="color: #007700">);
    
    </span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">= </span><span style="color: #0000BB">time</span><span style="color: #007700">();

    </span><span style="color: #0000BB">&#36;wood </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'r_wood'</span><span style="color: #007700">] + </span><span style="color: #0000BB">&#36;arr_production</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">]] * </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'speed'</span><span style="color: #007700">] / </span><span style="color: #0000BB">60 </span><span style="color: #007700">/ </span><span style="color: #0000BB">60 </span><span style="color: #007700">* (</span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">- </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'last_prod_aktu'</span><span style="color: #007700">]);
    </span><span style="color: #0000BB">&#36;stone </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'r_stone'</span><span style="color: #007700">] + </span><span style="color: #0000BB">&#36;arr_production</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'stone'</span><span style="color: #007700">]] * </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'speed'</span><span style="color: #007700">] / </span><span style="color: #0000BB">60 </span><span style="color: #007700">/ </span><span style="color: #0000BB">60 </span><span style="color: #007700">* (</span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">- </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'last_prod_aktu'</span><span style="color: #007700">]);
    </span><span style="color: #0000BB">&#36;iron </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'r_iron'</span><span style="color: #007700">] + </span><span style="color: #0000BB">&#36;arr_production</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'iron'</span><span style="color: #007700">]] * </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'speed'</span><span style="color: #007700">] / </span><span style="color: #0000BB">60 </span><span style="color: #007700">/ </span><span style="color: #0000BB">60 </span><span style="color: #007700">* (</span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">- </span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'last_prod_aktu'</span><span style="color: #007700">]);
    
    if(</span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]] &lt; </span><span style="color: #0000BB">&#36;wood</span><span style="color: #007700">)
    {
        </span><span style="color: #0000BB">&#36;wood </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]];
    }

    if (</span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]] &lt; </span><span style="color: #0000BB">&#36;stone</span><span style="color: #007700">)
    {
        </span><span style="color: #0000BB">&#36;stone </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]];
    }

    if (</span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]] &lt; </span><span style="color: #0000BB">&#36;iron</span><span style="color: #007700">)
    {
        </span><span style="color: #0000BB">&#36;iron </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;arr_maxstorage</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">[</span><span style="color: #DD0000">'storage'</span><span style="color: #007700">]];
    }
    
    </span><span style="color: #0000BB">&#36;sql </span><span style="color: #007700">= </span><span style="color: #DD0000">'UPDATE `villages` SET `r_wood` = &#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;wood </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;', `r_stone` = &#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;stone </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;', `r_iron` = &#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;iron </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;', last_prod_aktu = &#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;' WHERE `id` = &#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;vid </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;''</span><span style="color: #007700">;
    </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;sql</span><span style="color: #007700">);
}

</span><span style="color: #FF8000">// Improvisation pur -.-'
</span><span style="color: #0000BB">&#36;query </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'SELECT * FROM `build` WHERE `end_time` &lt; ' </span><span style="color: #007700">. </span><span style="color: #0000BB">time</span><span style="color: #007700">());
while(</span><span style="color: #0000BB">&#36;row </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query</span><span style="color: #007700">)) 
{
    </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'UPDATE `villages` SET `' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'building'</span><span style="color: #007700">] . </span><span style="color: #DD0000">'` = `' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'building'</span><span style="color: #007700">] . </span><span style="color: #DD0000">'` + 1 WHERE `id` = ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'villageid'</span><span style="color: #007700">]);
    </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'DELETE FROM `build` WHERE `id` = ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]);
}

</span><span style="color: #FF8000">// Alle Dörfer holen, die weniger als die maximalen Punkte haben
</span><span style="color: #0000BB">&#36;query </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'SELECT * FROM `villages` WHERE `userid` = &#092;'-1&#092;' AND `points` &lt; ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'bb_max_points'</span><span style="color: #007700">]);

while(</span><span style="color: #0000BB">&#36;row </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query</span><span style="color: #007700">)) 
{
    </span><span style="color: #FF8000">// Baut da schon was?
    </span><span style="color: #0000BB">&#36;query2 </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'SELECT * FROM `build` WHERE `villageid` = ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]);
    if(</span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">numrows</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;query2</span><span style="color: #007700">) == </span><span style="color: #0000BB">0</span><span style="color: #007700">) 
    {
        </span><span style="color: #FF8000">// Nein? Dann Gebäude auswählen
        </span><span style="color: #0000BB">&#36;builds </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_array</span><span style="color: #007700">(</span><span style="color: #DD0000">'dbname'</span><span style="color: #007700">);
        </span><span style="color: #0000BB">&#36;build_village </span><span style="color: #007700">= array();
        </span><span style="color: #0000BB">&#36;id_array </span><span style="color: #007700">= </span><span style="color: #0000BB">array_flip</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_array</span><span style="color: #007700">(</span><span style="color: #DD0000">'dbname'</span><span style="color: #007700">));
        foreach(</span><span style="color: #0000BB">&#36;builds </span><span style="color: #007700">as </span><span style="color: #0000BB">&#36;key </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">&#36;value</span><span style="color: #007700">) 
        {
            </span><span style="color: #0000BB">&#36;build_village</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;value</span><span style="color: #007700">] = </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;value</span><span style="color: #007700">];
        }        
        
        </span><span style="color: #FF8000">// Zufälliges Gebäude
        </span><span style="color: #0000BB">&#36;rand </span><span style="color: #007700">= </span><span style="color: #0000BB">rand</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">, </span><span style="color: #0000BB">count</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;builds</span><span style="color: #007700">)-</span><span style="color: #0000BB">1</span><span style="color: #007700">);
        </span><span style="color: #0000BB">&#36;build </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;builds</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;rand</span><span style="color: #007700">];
        
        </span><span style="color: #FF8000">// Bauen
        </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">build</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;id_array</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">], </span><span style="color: #0000BB">&#36;build_village</span><span style="color: #007700">, </span><span style="color: #0000BB">1</span><span style="color: #007700">);
        
        </span><span style="color: #FF8000">#print &#36;cl_builds-&gt;get_build_error2() . '&lt;br /&gt;';
        
        // Kein Fehler -&gt; Rohstoffe abziehen und son Zeug halt
        </span><span style="color: #007700">if(</span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_build_error2</span><span style="color: #007700">() == </span><span style="color: #DD0000">'no_error'</span><span style="color: #007700">) 
        {
            </span><span style="color: #FF8000">// Rohstoffe abziehen
            </span><span style="color: #0000BB">&#36;wood </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_wood</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">);
            </span><span style="color: #0000BB">&#36;stone </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_stone</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">);
            </span><span style="color: #0000BB">&#36;iron </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_iron</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">);
            </span><span style="color: #0000BB">&#36;bh </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_bh</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">);
            </span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_time</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'main'</span><span style="color: #007700">], </span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">) + </span><span style="color: #0000BB">time</span><span style="color: #007700">();
            </span><span style="color: #0000BB">&#36;onlytime </span><span style="color: #007700">= </span><span style="color: #0000BB">&#36;cl_builds</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">get_time</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'main'</span><span style="color: #007700">], </span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">, </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #0000BB">&#36;build</span><span style="color: #007700">] + </span><span style="color: #0000BB">1</span><span style="color: #007700">);   
            
            </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'UPDATE `villages` SET `r_wood` = `r_wood` - ' </span><span style="color: #007700">. </span><span style="color: #0000BB">round</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;wood</span><span style="color: #007700">) . </span><span style="color: #DD0000">', `r_stone` = `r_stone` - ' </span><span style="color: #007700">. </span><span style="color: #0000BB">round</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;stone</span><span style="color: #007700">) . </span><span style="color: #DD0000">', `r_iron` = `r_iron` - ' </span><span style="color: #007700">. </span><span style="color: #0000BB">round</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;iron</span><span style="color: #007700">) . </span><span style="color: #DD0000">', `r_bh` = `r_bh` + ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;bh </span><span style="color: #007700">. </span><span style="color: #DD0000">' WHERE `id` = ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]);
            </span><span style="color: #0000BB">&#36;db</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">'INSERT INTO `build` (`building`, `villageid`, `end_time`, `build_time`) VALUES (&#092;'' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;build </span><span style="color: #007700">. </span><span style="color: #DD0000">'&#092;',' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">] .  </span><span style="color: #DD0000">',' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;time </span><span style="color: #007700">. </span><span style="color: #DD0000">', ' </span><span style="color: #007700">. </span><span style="color: #0000BB">&#36;onlytime </span><span style="color: #007700">. </span><span style="color: #DD0000">')'</span><span style="color: #007700">);
            
            
        }
    }
    
    </span><span style="color: #0000BB">reload_ress</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;row</span><span style="color: #007700">[</span><span style="color: #DD0000">'id'</span><span style="color: #007700">]);
} 
</span></code></div></div></div></div></div>
<br />
<div class="spoiler_out"><div class="spoiler_head">Installation Deutsch <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
Installtion:<br />
- Speichert den Code oben ^ in einer Datei direkt in htdocs (nennen wir sie mal "barbar.php") oder ladet die Datei [<a href="http://www.file-upload.net/download-7562791/barbar.zip.html" target="_blank" rel="noopener" class="mycode_url">hier</a>] runter, entpackt sie und speichert sie in "htdocs"<br />
- Benennt die Datei "include.inc.php" in "include2.inc.php" um (sie ist in "htdocs")<br />
- Erstellt eine neue Datei namens "include.inc.php" mit folgendem Inhalt:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&lt;?php
</span><span style="color: #007700">require_once(</span><span style="color: #DD0000">'include2.inc.php'</span><span style="color: #007700">);
require_once(</span><span style="color: #DD0000">'barbar.php'</span><span style="color: #007700">); 
</span></code></div></div></div>- Danach öffnet ihr die Config und fügt folgenden Eintrag hinzu:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'bb_max_points'</span><span style="color: #007700">] = </span><span style="color: #0000BB">3000</span><span style="color: #007700">; 
</span></code></div></div></div></div></div>
<br />
<div class="spoiler_out"><div class="spoiler_head">Installation English <input type="submit" class="spoiler_button" onclick="var node = this.parentNode.parentNode.getElementsByTagName('div')[1]; if(node.style.display == 'none') {node.style.display = 'block'; this.value = 'Hide';} else {node.style.display = 'none'; this.value = 'Show';} return false;" value="Show" /></div><div class="spoiler_in" style="display: none;">
[<a href="http://forum.twlan.org/showthread.php?tid=43213&amp;pid=192259#pid192259" target="_blank" rel="noopener" class="mycode_url">Click</a>]<br />
</div></div>
<br />
PS: Der Config-Eintrag lässt euch einstellen, wie weit die Dörfer sich ausbauen<br />
PS2: Rohstoffe werden abgezogen, BH-Plätze werden belegt, ausbauen dauert genauso lange wie bei den Spielern, etc.<br />
PS3: <span style="font-weight: bold;" class="mycode_b">No support - Keine Hilfe bei der Installation oder bei Fehlern</span><br />
PS4: Ja, das Script ist ekligt, aber das ist auch schon 2 Jahre alt <img src="https://twlan.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" /><br />
<br />
MfG Manuel]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Werteabweichung Mit While-Schleife]]></title>
			<link>https://twlan.org/showthread.php?tid=8994</link>
			<pubDate>Sat, 16 Feb 2013 21:13:01 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=37042">GoldenEye*</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=8994</guid>
			<description><![CDATA[Abend,<br />
<br />
und zwar geht´s um folgendes.<br />
Ich schreib mir grad meine eigene DSlan(deshalb auch unter Spielerprojekte), da ich nicht genau weiß, wie lang wir hier noch auf die nächste Version warten müssen und außerdem ein bisschen üben wollte.<br />
Jetzt steh ich aber vor einem Problem.<br />
Und zwar sitze ich grad an der Config, zuerst war mein Plan, für jedes einzelne Gebäude und jeden einzelnen Rohstoff einen Wert zu definieren. Das war mir aber zu langweilig, außerdem wusste ich auch nicht, wie sich das auf die Performance auswirkt, wenn ich auf jeder Seite eine 1500 Zeilen lange Config mit 3-dimensionalen Arrays include.<br />
Jetzt hab ich´s mit einer while Schleife probiert.<br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&#36;config </span><span style="color: #007700">= array();

</span><span style="color: #0000BB">&#36;main</span><span style="color: #007700">[</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">] = array();

</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'buildings'</span><span style="color: #007700">][</span><span style="color: #DD0000">'main'</span><span style="color: #007700">][</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">][</span><span style="color: #0000BB">0</span><span style="color: #007700">] = </span><span style="color: #0000BB">90</span><span style="color: #007700">;
</span><span style="color: #0000BB">&#36;i </span><span style="color: #007700">= </span><span style="color: #0000BB">1
</span><span style="color: #007700">while (</span><span style="color: #0000BB">&#36;i </span><span style="color: #007700">&lt;= </span><span style="color: #0000BB">30</span><span style="color: #007700">) {
    </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'buildings'</span><span style="color: #007700">][</span><span style="color: #DD0000">'main'</span><span style="color: #007700">][</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">][</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">] = </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'buildings'</span><span style="color: #007700">][</span><span style="color: #DD0000">'main'</span><span style="color: #007700">][</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">][</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">-</span><span style="color: #0000BB">1</span><span style="color: #007700">] * </span><span style="color: #0000BB">1.25999415396</span><span style="color: #007700">;
    </span><span style="color: #0000BB">settype</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'buildings'</span><span style="color: #007700">][</span><span style="color: #DD0000">'main'</span><span style="color: #007700">][</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">][</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">],</span><span style="color: #0000BB">int</span><span style="color: #007700">);
    </span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">++;
}
echo </span><span style="color: #0000BB">&#36;main</span><span style="color: #007700">[</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">][</span><span style="color: #0000BB">30</span><span style="color: #007700">]; 
</span></code></div></div></div><br />
<span style="font-style: italic;" class="mycode_i">Das mit den Arrays war jetzt vielleicht ein bisschen übertrieben, aber na ja <img src="https://twlan.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" /></span><br />
<br />
Das Problem ist, dass ich dann am Ende Werte hab, die etwa(beim Beispiel) 20.000 Ressis vom tatsächlichen Wert entfernt liegen.<br />
<br />
Was wäre also euer Vorschlag, wie soll ich das Problem lösen?<br />
Die Wertabweichung einfach ignorieren oder für jede Stufe einzeln definieren(da hätt ich dann nachher noch das Problem mit Cheatbuden).<br />
<br />
MfG,<br />
Benny<br />
<br />
PS. <span style="font-style: italic;" class="mycode_i">Ggf. könnte ich auch an der DSlan 2.0 mitwirken, die Übung hätte ich dann sicherlich auch <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /></span>]]></description>
			<content:encoded><![CDATA[Abend,<br />
<br />
und zwar geht´s um folgendes.<br />
Ich schreib mir grad meine eigene DSlan(deshalb auch unter Spielerprojekte), da ich nicht genau weiß, wie lang wir hier noch auf die nächste Version warten müssen und außerdem ein bisschen üben wollte.<br />
Jetzt steh ich aber vor einem Problem.<br />
Und zwar sitze ich grad an der Config, zuerst war mein Plan, für jedes einzelne Gebäude und jeden einzelnen Rohstoff einen Wert zu definieren. Das war mir aber zu langweilig, außerdem wusste ich auch nicht, wie sich das auf die Performance auswirkt, wenn ich auf jeder Seite eine 1500 Zeilen lange Config mit 3-dimensionalen Arrays include.<br />
Jetzt hab ich´s mit einer while Schleife probiert.<br />
<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">&#36;config </span><span style="color: #007700">= array();

</span><span style="color: #0000BB">&#36;main</span><span style="color: #007700">[</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">] = array();

</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'buildings'</span><span style="color: #007700">][</span><span style="color: #DD0000">'main'</span><span style="color: #007700">][</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">][</span><span style="color: #0000BB">0</span><span style="color: #007700">] = </span><span style="color: #0000BB">90</span><span style="color: #007700">;
</span><span style="color: #0000BB">&#36;i </span><span style="color: #007700">= </span><span style="color: #0000BB">1
</span><span style="color: #007700">while (</span><span style="color: #0000BB">&#36;i </span><span style="color: #007700">&lt;= </span><span style="color: #0000BB">30</span><span style="color: #007700">) {
    </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'buildings'</span><span style="color: #007700">][</span><span style="color: #DD0000">'main'</span><span style="color: #007700">][</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">][</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">] = </span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'buildings'</span><span style="color: #007700">][</span><span style="color: #DD0000">'main'</span><span style="color: #007700">][</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">][</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">-</span><span style="color: #0000BB">1</span><span style="color: #007700">] * </span><span style="color: #0000BB">1.25999415396</span><span style="color: #007700">;
    </span><span style="color: #0000BB">settype</span><span style="color: #007700">(</span><span style="color: #0000BB">&#36;config</span><span style="color: #007700">[</span><span style="color: #DD0000">'buildings'</span><span style="color: #007700">][</span><span style="color: #DD0000">'main'</span><span style="color: #007700">][</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">][</span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">],</span><span style="color: #0000BB">int</span><span style="color: #007700">);
    </span><span style="color: #0000BB">&#36;i</span><span style="color: #007700">++;
}
echo </span><span style="color: #0000BB">&#36;main</span><span style="color: #007700">[</span><span style="color: #DD0000">'wood'</span><span style="color: #007700">][</span><span style="color: #0000BB">30</span><span style="color: #007700">]; 
</span></code></div></div></div><br />
<span style="font-style: italic;" class="mycode_i">Das mit den Arrays war jetzt vielleicht ein bisschen übertrieben, aber na ja <img src="https://twlan.org/images/smilies/biggrin.png" alt="Big Grin" title="Big Grin" class="smilie smilie_4" /></span><br />
<br />
Das Problem ist, dass ich dann am Ende Werte hab, die etwa(beim Beispiel) 20.000 Ressis vom tatsächlichen Wert entfernt liegen.<br />
<br />
Was wäre also euer Vorschlag, wie soll ich das Problem lösen?<br />
Die Wertabweichung einfach ignorieren oder für jede Stufe einzeln definieren(da hätt ich dann nachher noch das Problem mit Cheatbuden).<br />
<br />
MfG,<br />
Benny<br />
<br />
PS. <span style="font-style: italic;" class="mycode_i">Ggf. könnte ich auch an der DSlan 2.0 mitwirken, die Übung hätte ich dann sicherlich auch <img src="https://twlan.org/images/smilies/smile.png" alt="Smile" title="Smile" class="smilie smilie_1" /></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Top 10]]></title>
			<link>https://twlan.org/showthread.php?tid=5578</link>
			<pubDate>Tue, 04 Dec 2012 01:46:37 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=62639">Kevin Silva</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=5578</guid>
			<description><![CDATA[<img src="http://img577.imageshack.us/img577/2821/topje.png" loading="lazy"  alt="[Image: topje.png]" class="mycode_img" /><br />
-<br />
<span style="font-weight: bold;" class="mycode_b"><br />
Good tool, do you think?<br />
<br />
move to file for templates<br />
<br />
templates/game_ranking.tpl past this:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">{if </span><span style="color: #0000BB">top</span><span style="color: #007700">==</span><span style="color: #0000BB">&#36;mode</span><span style="color: #007700">}

                                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                                    &lt;</span><span style="color: #0000BB">td </span><span style="color: #007700">class=</span><span style="color: #DD0000">"selected" </span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"120"</span><span style="color: #007700">&gt;
                                        &lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"game.php?village=</span><span style="color: #007700">{</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">.</span><span style="color: #0000BB">id</span><span style="color: #007700">}</span><span style="color: #DD0000">&amp;amp;screen=ranking&amp;amp;mode=top"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Top 10</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;
                                    &lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;

                                    {else}
                                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                                &lt;</span><span style="color: #0000BB">td width</span><span style="color: #007700">=</span><span style="color: #DD0000">"120"</span><span style="color: #007700">&gt;
                                    &lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"game.php?village=</span><span style="color: #007700">{</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">.</span><span style="color: #0000BB">id</span><span style="color: #007700">}</span><span style="color: #DD0000">&amp;amp;screen=ranking&amp;amp;mode=top"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Top 10</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;
                                &lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                            &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                                    {/if} 
</span></code></div></div></div><br />
in the end past this:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">{if </span><span style="color: #0000BB">&#36;mode </span><span style="color: #007700">== </span><span style="color: #DD0000">'top'</span><span style="color: #007700">}
                        {include </span><span style="color: #0000BB">file</span><span style="color: #007700">=</span><span style="color: #DD0000">"game_ranking_top.tpl"</span><span style="color: #007700">}
{/if} 
</span></code></div></div></div><br />
Regards</span>]]></description>
			<content:encoded><![CDATA[<img src="http://img577.imageshack.us/img577/2821/topje.png" loading="lazy"  alt="[Image: topje.png]" class="mycode_img" /><br />
-<br />
<span style="font-weight: bold;" class="mycode_b"><br />
Good tool, do you think?<br />
<br />
move to file for templates<br />
<br />
templates/game_ranking.tpl past this:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">{if </span><span style="color: #0000BB">top</span><span style="color: #007700">==</span><span style="color: #0000BB">&#36;mode</span><span style="color: #007700">}

                                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                                    &lt;</span><span style="color: #0000BB">td </span><span style="color: #007700">class=</span><span style="color: #DD0000">"selected" </span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"120"</span><span style="color: #007700">&gt;
                                        &lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"game.php?village=</span><span style="color: #007700">{</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">.</span><span style="color: #0000BB">id</span><span style="color: #007700">}</span><span style="color: #DD0000">&amp;amp;screen=ranking&amp;amp;mode=top"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Top 10</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;
                                    &lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;

                                    {else}
                                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                                &lt;</span><span style="color: #0000BB">td width</span><span style="color: #007700">=</span><span style="color: #DD0000">"120"</span><span style="color: #007700">&gt;
                                    &lt;</span><span style="color: #0000BB">a href</span><span style="color: #007700">=</span><span style="color: #DD0000">"game.php?village=</span><span style="color: #007700">{</span><span style="color: #0000BB">&#36;village</span><span style="color: #007700">.</span><span style="color: #0000BB">id</span><span style="color: #007700">}</span><span style="color: #DD0000">&amp;amp;screen=ranking&amp;amp;mode=top"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Top 10</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;
                                &lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                            &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                                    {/if} 
</span></code></div></div></div><br />
in the end past this:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">{if </span><span style="color: #0000BB">&#36;mode </span><span style="color: #007700">== </span><span style="color: #DD0000">'top'</span><span style="color: #007700">}
                        {include </span><span style="color: #0000BB">file</span><span style="color: #007700">=</span><span style="color: #DD0000">"game_ranking_top.tpl"</span><span style="color: #007700">}
{/if} 
</span></code></div></div></div><br />
Regards</span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Support system]]></title>
			<link>https://twlan.org/showthread.php?tid=5577</link>
			<pubDate>Tue, 04 Dec 2012 01:25:08 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=62639">Kevin Silva</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=5577</guid>
			<description><![CDATA[<img src="http://img62.imageshack.us/img62/6530/sup1s.png" loading="lazy"  alt="[Image: sup1s.png]" class="mycode_img" /><br />
-<br />
<img src="http://img525.imageshack.us/img525/8649/sup2.png" loading="lazy"  alt="[Image: sup2.png]" class="mycode_img" /><br />
-<br />
<img src="http://img17.imageshack.us/img17/9758/sup3y.png" loading="lazy"  alt="[Image: sup3y.png]" class="mycode_img" /><br />
-<br />
<img src="http://img546.imageshack.us/img546/9887/sup4i.png" loading="lazy"  alt="[Image: sup4i.png]" class="mycode_img" /><br />
<br />
<span style="font-weight: bold;" class="mycode_b">It's in Portuguese due to my language.<br />
50 lines at most to put on your language!<br />
<br />
Hope you enjoy.<br />
<br />
<a href="https://rapidshare.com/files/3840052404/SUpport.rar" target="_blank" rel="noopener" class="mycode_url">Download</a></span>]]></description>
			<content:encoded><![CDATA[<img src="http://img62.imageshack.us/img62/6530/sup1s.png" loading="lazy"  alt="[Image: sup1s.png]" class="mycode_img" /><br />
-<br />
<img src="http://img525.imageshack.us/img525/8649/sup2.png" loading="lazy"  alt="[Image: sup2.png]" class="mycode_img" /><br />
-<br />
<img src="http://img17.imageshack.us/img17/9758/sup3y.png" loading="lazy"  alt="[Image: sup3y.png]" class="mycode_img" /><br />
-<br />
<img src="http://img546.imageshack.us/img546/9887/sup4i.png" loading="lazy"  alt="[Image: sup4i.png]" class="mycode_img" /><br />
<br />
<span style="font-weight: bold;" class="mycode_b">It's in Portuguese due to my language.<br />
50 lines at most to put on your language!<br />
<br />
Hope you enjoy.<br />
<br />
<a href="https://rapidshare.com/files/3840052404/SUpport.rar" target="_blank" rel="noopener" class="mycode_url">Download</a></span>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Hives]]></title>
			<link>https://twlan.org/showthread.php?tid=5542</link>
			<pubDate>Mon, 03 Dec 2012 04:08:32 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=62639">Kevin Silva</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=5542</guid>
			<description><![CDATA[<img src="http://img443.imageshack.us/img443/5543/95015552.png" loading="lazy"  alt="[Image: 95015552.png]" class="mycode_img" /><br />
<span style="font-weight: bold;" class="mycode_b"><br />
<span style="color: #FF0000;" class="mycode_color">Installation:</span><br />
<span style="color: #FF0000;" class="mycode_color">1º</span>Past the files in htdocs<br />
<br />
<span style="color: #FF0000;" class="mycode_color">2º</span>Enter in game.php and paste:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code>&lt;?
include("hives.php");
?&gt;</code></div></div></div><br />
Get in your database, SQL, and place:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">ALTER TABLE </span><span style="color: #007700">`</span><span style="color: #DD0000">users</span><span style="color: #007700">` </span><span style="color: #0000BB">ADD </span><span style="color: #007700">`</span><span style="color: #DD0000">hives_time</span><span style="color: #007700">` </span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL </span><span style="color: #007700">default </span><span style="color: #DD0000">'0'</span><span style="color: #007700">,
</span><span style="color: #0000BB">ADD </span><span style="color: #007700">`</span><span style="color: #DD0000">hives</span><span style="color: #007700">` </span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">200</span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL</span><span style="color: #007700">,
</span><span style="color: #0000BB">ADD </span><span style="color: #007700">`</span><span style="color: #DD0000">hives_total</span><span style="color: #007700">` </span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL </span><span style="color: #007700">default </span><span style="color: #DD0000">'0'</span><span style="color: #007700">,
</span><span style="color: #0000BB">ADD </span><span style="color: #007700">`</span><span style="color: #DD0000">hives_rank</span><span style="color: #007700">` </span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL</span><span style="color: #007700">; 
</span></code></div></div></div><br />
Add again:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">ALTER TABLE </span><span style="color: #007700">`</span><span style="color: #DD0000">reports</span><span style="color: #007700">` </span><span style="color: #0000BB">ADD </span><span style="color: #007700">`</span><span style="color: #DD0000">see</span><span style="color: #007700">` </span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL </span><span style="color: #007700">default </span><span style="color: #DD0000">'0'</span><span style="color: #007700">, 
</span></code></div></div></div><br />
After that, reset the server!</span><br />
<br />
<a href="https://rapidshare.com/files/591112305/hives.rar" target="_blank" rel="noopener" class="mycode_url">Download</a>]]></description>
			<content:encoded><![CDATA[<img src="http://img443.imageshack.us/img443/5543/95015552.png" loading="lazy"  alt="[Image: 95015552.png]" class="mycode_img" /><br />
<span style="font-weight: bold;" class="mycode_b"><br />
<span style="color: #FF0000;" class="mycode_color">Installation:</span><br />
<span style="color: #FF0000;" class="mycode_color">1º</span>Past the files in htdocs<br />
<br />
<span style="color: #FF0000;" class="mycode_color">2º</span>Enter in game.php and paste:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code>&lt;?
include("hives.php");
?&gt;</code></div></div></div><br />
Get in your database, SQL, and place:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">ALTER TABLE </span><span style="color: #007700">`</span><span style="color: #DD0000">users</span><span style="color: #007700">` </span><span style="color: #0000BB">ADD </span><span style="color: #007700">`</span><span style="color: #DD0000">hives_time</span><span style="color: #007700">` </span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL </span><span style="color: #007700">default </span><span style="color: #DD0000">'0'</span><span style="color: #007700">,
</span><span style="color: #0000BB">ADD </span><span style="color: #007700">`</span><span style="color: #DD0000">hives</span><span style="color: #007700">` </span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">200</span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL</span><span style="color: #007700">,
</span><span style="color: #0000BB">ADD </span><span style="color: #007700">`</span><span style="color: #DD0000">hives_total</span><span style="color: #007700">` </span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL </span><span style="color: #007700">default </span><span style="color: #DD0000">'0'</span><span style="color: #007700">,
</span><span style="color: #0000BB">ADD </span><span style="color: #007700">`</span><span style="color: #DD0000">hives_rank</span><span style="color: #007700">` </span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL</span><span style="color: #007700">; 
</span></code></div></div></div><br />
Add again:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #0000BB">ALTER TABLE </span><span style="color: #007700">`</span><span style="color: #DD0000">reports</span><span style="color: #007700">` </span><span style="color: #0000BB">ADD </span><span style="color: #007700">`</span><span style="color: #DD0000">see</span><span style="color: #007700">` </span><span style="color: #0000BB">int</span><span style="color: #007700">(</span><span style="color: #0000BB">11</span><span style="color: #007700">) </span><span style="color: #0000BB">NOT NULL </span><span style="color: #007700">default </span><span style="color: #DD0000">'0'</span><span style="color: #007700">, 
</span></code></div></div></div><br />
After that, reset the server!</span><br />
<br />
<a href="https://rapidshare.com/files/591112305/hives.rar" target="_blank" rel="noopener" class="mycode_url">Download</a>]]></content:encoded>
		</item>
		<item>
			<title><![CDATA[Total villages]]></title>
			<link>https://twlan.org/showthread.php?tid=5541</link>
			<pubDate>Mon, 03 Dec 2012 04:01:29 +0000</pubDate>
			<dc:creator><![CDATA[<a href="https://twlan.org/member.php?action=profile&uid=62639">Kevin Silva</a>]]></dc:creator>
			<guid isPermaLink="false">https://twlan.org/showthread.php?tid=5541</guid>
			<description><![CDATA[<img src="http://img29.imageshack.us/img29/1411/screenshot2on.png" loading="lazy"  alt="[Image: screenshot2on.png]" class="mycode_img" /><br />
<span style="font-weight: bold;" class="mycode_b">For versions with bonus:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">table </span><span style="color: #007700">class=</span><span style="color: #DD0000">"vis" </span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"40%"</span><span style="color: #007700">&gt;
                           &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">th colspan</span><span style="color: #007700">=</span><span style="color: #DD0000">"2"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Statistics on a barbarian villages</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;        
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Total villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `continent` &gt; '0'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
           &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Total abandoned villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `userid` = '-1'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Total abandoned bonus villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `bonus` &gt; '0'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Villages of players</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `userid` &gt; '-1'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Your villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">} </span><span style="color: #0000BB">&#36;this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_tpl_vars</span><span style="color: #007700">[</span><span style="color: #DD0000">'vills'</span><span style="color: #007700">] = </span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT * FROM `villages` WHERE `userid` = '"</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_tpl_vars</span><span style="color: #007700">[</span><span style="color: #DD0000">'user'</span><span style="color: #007700">][</span><span style="color: #DD0000">'id'</span><span style="color: #007700">].</span><span style="color: #DD0000">"'"</span><span style="color: #007700">));{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}
            {</span><span style="color: #0000BB">&#36;vills</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
            &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                
            
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;    
&lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;    &lt;/</span><span style="color: #0000BB">table</span><span style="color: #007700">&gt; 
</span></code></div></div></div><br />
For versions without bonus:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">table </span><span style="color: #007700">class=</span><span style="color: #DD0000">"vis" </span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"40%"</span><span style="color: #007700">&gt;
                           &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">th colspan</span><span style="color: #007700">=</span><span style="color: #DD0000">"2"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Statistics on a barbarian villages</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;        
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Total villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `continent` &gt; '0'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
           &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Total abandoned villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `userid` = '-1'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Villages of players</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `userid` &gt; '-1'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Your villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">} </span><span style="color: #0000BB">&#36;this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_tpl_vars</span><span style="color: #007700">[</span><span style="color: #DD0000">'vills'</span><span style="color: #007700">] = </span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT * FROM `villages` WHERE `userid` = '"</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_tpl_vars</span><span style="color: #007700">[</span><span style="color: #DD0000">'user'</span><span style="color: #007700">][</span><span style="color: #DD0000">'id'</span><span style="color: #007700">].</span><span style="color: #DD0000">"'"</span><span style="color: #007700">));{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}
            {</span><span style="color: #0000BB">&#36;vills</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
            &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                
            
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;    
&lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;     &lt;/</span><span style="color: #0000BB">table</span><span style="color: #007700">&gt; 
</span></code></div></div></div></span>]]></description>
			<content:encoded><![CDATA[<img src="http://img29.imageshack.us/img29/1411/screenshot2on.png" loading="lazy"  alt="[Image: screenshot2on.png]" class="mycode_img" /><br />
<span style="font-weight: bold;" class="mycode_b">For versions with bonus:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">table </span><span style="color: #007700">class=</span><span style="color: #DD0000">"vis" </span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"40%"</span><span style="color: #007700">&gt;
                           &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">th colspan</span><span style="color: #007700">=</span><span style="color: #DD0000">"2"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Statistics on a barbarian villages</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;        
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Total villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `continent` &gt; '0'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
           &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Total abandoned villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `userid` = '-1'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Total abandoned bonus villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `bonus` &gt; '0'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Villages of players</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `userid` &gt; '-1'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Your villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">} </span><span style="color: #0000BB">&#36;this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_tpl_vars</span><span style="color: #007700">[</span><span style="color: #DD0000">'vills'</span><span style="color: #007700">] = </span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT * FROM `villages` WHERE `userid` = '"</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_tpl_vars</span><span style="color: #007700">[</span><span style="color: #DD0000">'user'</span><span style="color: #007700">][</span><span style="color: #DD0000">'id'</span><span style="color: #007700">].</span><span style="color: #DD0000">"'"</span><span style="color: #007700">));{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}
            {</span><span style="color: #0000BB">&#36;vills</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
            &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                
            
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;    
&lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;    &lt;/</span><span style="color: #0000BB">table</span><span style="color: #007700">&gt; 
</span></code></div></div></div><br />
For versions without bonus:<br />
<div class="codeblock phpcodeblock"><div class="title">PHP Code:</div><div class="body"><div dir="ltr"><code><span style="color: #007700">&lt;</span><span style="color: #0000BB">table </span><span style="color: #007700">class=</span><span style="color: #DD0000">"vis" </span><span style="color: #0000BB">width</span><span style="color: #007700">=</span><span style="color: #DD0000">"40%"</span><span style="color: #007700">&gt;
                           &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">th colspan</span><span style="color: #007700">=</span><span style="color: #DD0000">"2"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Statistics on a barbarian villages</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;        
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Total villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `continent` &gt; '0'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
           &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Total abandoned villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `userid` = '-1'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
            &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Villages of players</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">}</span><span style="color: #0000BB">&#36;a </span><span style="color: #007700">= </span><span style="color: #0000BB">mysql_fetch_array</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT COUNT(id) FROM `villages` WHERE `userid` &gt; '-1'"</span><span style="color: #007700">));
                echo </span><span style="color: #0000BB">&#36;a</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">];</span><span style="color: #0000BB">0</span><span style="color: #007700">{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
                &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                &lt;</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">Your villages</span><span style="color: #007700">:&lt;/</span><span style="color: #0000BB">th</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;{</span><span style="color: #0000BB">php</span><span style="color: #007700">} </span><span style="color: #0000BB">&#36;this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_tpl_vars</span><span style="color: #007700">[</span><span style="color: #DD0000">'vills'</span><span style="color: #007700">] = </span><span style="color: #0000BB">mysql_num_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">mysql_query</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT * FROM `villages` WHERE `userid` = '"</span><span style="color: #007700">.</span><span style="color: #0000BB">&#36;this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">_tpl_vars</span><span style="color: #007700">[</span><span style="color: #DD0000">'user'</span><span style="color: #007700">][</span><span style="color: #DD0000">'id'</span><span style="color: #007700">].</span><span style="color: #DD0000">"'"</span><span style="color: #007700">));{/</span><span style="color: #0000BB">php</span><span style="color: #007700">}
            {</span><span style="color: #0000BB">&#36;vills</span><span style="color: #007700">}&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;
            &lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;
                
            
                &lt;</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;    
&lt;/</span><span style="color: #0000BB">tr</span><span style="color: #007700">&gt;     &lt;/</span><span style="color: #0000BB">table</span><span style="color: #007700">&gt; 
</span></code></div></div></div></span>]]></content:encoded>
		</item>
	</channel>
</rss>