Massive coin making working for the 4 first village;
I correct it by editing the template file
templates/game_snob_mass_muenze.tpl
Be also warn, when vou use start_dslan.exe, if you run dslan_stop.exe php still running, so you receive more than one repport for one event so kill all php.exe after ruin dslan_stop and so before run dslan_start
Also when You make one coin by use of classic snob building, you make one coin, but all village are decreasing of cost of one coin in the same time.
If you whant I can also publish a modified file for all of going directly to the previous view of overview chen changing village or on clicking on overview in top of browser.
Sorry for English, but I'm French and I don't speak German.
I correct it by editing the template file
templates/game_snob_mass_muenze.tpl
Code:
{php}
$snob_limit = $this->_tpl_vars['snobLimit'];
{/php}
{literal}
<script type="text/javascript">
function max_gold() {
var zahl = 0;
while(document.getElementsByName("anzahl[]")[zahl])
{
document.getElementsByName("anzahl[]")[zahl].value = document.getElementsByName("max_gold[]")[zahl].value;
zahl++;
}
}
</script>
{/literal}
<a href="game.php?village={$vill_id}&screen=snob">« Retour</a><br><br>
<form action="game.php?village={$vill_id}&screen=snob&mode=mass_muenze&do=praeg" method="post">
<table class="vis" cellpadding="1" cellspacing="2" border="0">
<tr align="left">
<th>Vilage</th>
<th>Coût</th>
<th>Nombre</th>
</tr>
{foreach from=$p_villages item=village}
<tr align="left">
<td>
<a href="game.php?village={$village.id}&screen=overview">{$village.name} ({$village.x}|{$village.y}) C{$village.continent}</a>
</td>
<td>
<img src="./graphic/holz.png" alt="">{php}echo format_number($this->_tpl_vars['village']['r_wood']);{/php} <img src="./graphic/lehm.png" alt="">{php}echo format_number($this->_tpl_vars['village']['r_stone']);{/php} <img src="./graphic/eisen.png" alt="">{php}echo format_number($this->_tpl_vars['village']['r_iron']);{/php}
</td>
<td>
<input type="hidden" value="{$village.id}" name="vill_id[]">
<input type="hidden" value="{php}echo $snob_limit;{/php}" name="snoblimit[]">
<select name="anzahl[]" width="100%">
<option value="0">- selectionner -</option>
{php}
$count = 1;
$anzahl = false;
while(true)
{
$wood = $this->_tpl_vars['holz'] * $count;
$stone = $this->_tpl_vars['lehm'] * $count;
$iron = $this->_tpl_vars['eisen'] * $count;
if($this->_tpl_vars['village']['r_wood'] > $wood && $this->_tpl_vars['village']['r_stone'] > $stone && $this->_tpl_vars['village']['r_iron'] > $iron)
{
{/php}
<option value="{php}echo $count;{/php}">{php}echo $count;{/php}x ({php}echo $wood;{/php}, {php}echo $stone;{/php}, {php}echo $iron;{/php})</option>
{php}
}
else
{
break;
}
$count++;
}
{/php}
</select>
<input type="hidden" value="{php}echo $count - 1;{/php}" name="max_gold[]">
</td>
</tr>
{/foreach}
<tr>
<td>
<input type="submit" value="Frapper les pièces">
</td>
<td>
</td>
<td>
<a href="javascript:max_gold()">Le maximum</a>
</td>
</tr>
</table>
</form>
{$err}
{$refresh}
Also when You make one coin by use of classic snob building, you make one coin, but all village are decreasing of cost of one coin in the same time.
If you whant I can also publish a modified file for all of going directly to the previous view of overview chen changing village or on clicking on overview in top of browser.
Sorry for English, but I'm French and I don't speak German.