mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-29 00:54:31 +00:00
90221cf19f
+Natars will now spawn automatically, you can set how many day should
pass before the spawn of Natars (and artifacts), WW Villages and WW
building plans (Note: WW villages and WW building plans won't spawn
until the creation of the natar account)
+Added 3 timers under the left menu which indicate the spawn of
Natars/Artifacts, WW villages and WW building plans
+Added an option in the installation, to set the resource production of
oasis
+Fixed a bug that didn't permit to add multiple Units, Abtech and tech
rows with one query
+Added a new information to the Artifact of the fool, the next effect
reroll will now be displayed in his informations (in the treasury)
+Fixed a bug that dind't permit the correct timers flow in Dorf3.php
(Warehouse tab), they'll now flow correctly
+Timers and resources percentage of villages with a negative production
of crop will now be marked in red (in the Warehouse tab, Dorf3.php) and
will now be displayed in how much time the granary will be emptied
+Fixed a possible bug that prevented to add raids to farm lists
+Fixed a bug that didn't permit to create WW Villages from the
Multihunter control panel
+Reworked all timers, there will be only one timer field now (in
Session.php)
+Minor bug fixing and optimization
NOTE: To play this version of the game, you need to reinstall the server
OR you can simply add these lines of code into your "config.php" file:
// ***** Natars Spawn Time
define("NATARS_SPAWN_TIME",260);
define("NATARS_WW_SPAWN_TIME",260);
define("NATARS_WW_BUILDING_PLAN_SPAWN_TIME",260);
// ***** Oasis production
define("OASIS_WOOD_MULTIPLIER",40);
define("OASIS_CLAY_MULTIPLIER",40);
define("OASIS_IRON_MULTIPLIER",40);
define("OASIS_CROP_MULTIPLIER",40);
define("OASIS_WOOD_PRODUCTION",OASIS_WOOD_MULTIPLIER*SPEED);
define("OASIS_CLAY_PRODUCTION",OASIS_CLAY_MULTIPLIER*SPEED);
define("OASIS_IRON_PRODUCTION",OASIS_IRON_MULTIPLIER*SPEED);
define("OASIS_CROP_PRODUCTION",OASIS_CROP_MULTIPLIER*SPEED);
P.S: from the next version, the possibility to add manual WWs, WW
building plans and to create the natar account will be REMOVED.
122 lines
4.2 KiB
Smarty
122 lines
4.2 KiB
Smarty
<?php
|
|
|
|
/*-------------------------------------------------------*\
|
|
| ********* DO NOT REMOVE THIS COPYRIGHT NOTICE ********* |
|
|
+---------------------------------------------------------+
|
|
| Developed by: Manni < manuel_mannhardt@web.de > |
|
|
| Dzoki < dzoki.travian@gmail.com > |
|
|
| Copyright: TravianX Project All rights reserved |
|
|
\*-------------------------------------------------------*/
|
|
|
|
$hero_info = $units->Hero($session->uid);
|
|
$heroes = $units->Hero($session->uid, 1);
|
|
$define['reset_level'] = 3; // Until which level you are able to reset your points
|
|
|
|
?>
|
|
|
|
|
|
<div id="build" class="gid37">
|
|
<a href="#" onclick="return Popup(37,4, 'gid');" class="build_logo"><img class="building g37" src="img/x.gif" alt="Hero's mansion" title="<?php echo HEROSMANSION; ?>"></a>
|
|
|
|
<h1><?php echo HEROSMANSION; ?> <span class="level"><?php echo LEVEL; ?> <?php echo $village->resarray['f' . $id]; ?></span></h1>
|
|
|
|
<p class="build_desc"><?php echo HEROSMANSION_DESC; ?></p>
|
|
|
|
|
|
<?php
|
|
if ($hero_info) {
|
|
if ( $hero_info['unit'] == 1 ) {
|
|
$name = U1;
|
|
} else if ( $hero_info['unit'] == 2 ) {
|
|
$name = U2;
|
|
} else if ( $hero_info['unit'] == 3 ) {
|
|
$name = U3;
|
|
} else if ( $hero_info['unit'] == 5 ) {
|
|
$name = U5;
|
|
} else if ( $hero_info['unit'] == 6 ) {
|
|
$name = U6;
|
|
} else if ( $hero_info['unit'] == 11 ) {
|
|
$name = U11;
|
|
} else if ( $hero_info['unit'] == 12 ) {
|
|
$name = U12;
|
|
} else if ( $hero_info['unit'] == 13 ) {
|
|
$name = U13;
|
|
} else if ( $hero_info['unit'] == 15 ) {
|
|
$name = U15;
|
|
} else if ( $hero_info['unit'] == 16 ) {
|
|
$name = U16;
|
|
} else if ( $hero_info['unit'] == 21 ) {
|
|
$name = U21;
|
|
} else if ( $hero_info['unit'] == 22 ) {
|
|
$name = U22;
|
|
} else if ( $hero_info['unit'] == 24 ) {
|
|
$name = U24;
|
|
} else if ( $hero_info['unit'] == 25 ) {
|
|
$name = U25;
|
|
} else if ( $hero_info['unit'] == 26 ) {
|
|
$name = U26;
|
|
}
|
|
$name1 = $hero_info['name'];
|
|
} else {
|
|
$name = 'Mr. Nobody';
|
|
$name1 = 'unknown';
|
|
}
|
|
|
|
if(isset($_GET['land'])) {
|
|
include_once("37_land.tpl");
|
|
} else {
|
|
$include_training = true;
|
|
$include_revive = false;
|
|
if (isset($heroes) && is_array($heroes) && count($heroes)) {
|
|
foreach ( $heroes as $hdata ) {
|
|
if ( $hdata['dead'] == 1 ) {
|
|
$include_revive = true;
|
|
}
|
|
|
|
if ( $hdata['inrevive'] == 1 ) {
|
|
$name1 = $hdata['name'];
|
|
$include_training = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
if($hero_info === false && $include_revive){
|
|
include_once("37_revive.tpl");
|
|
}
|
|
|
|
if ($hero_info === false && $include_training) {
|
|
include_once("37_train.tpl");
|
|
} else if($hero_info['intraining'] == 1) {
|
|
|
|
$timeleft = $generator->getTimeFormat($hero_info['trainingtime'] - time());
|
|
?>
|
|
<table id="distribution" cellpadding="1" cellspacing="1">
|
|
<thead>
|
|
<tr>
|
|
<?php echo "<tr class='next'><th>".HERO_READY."<span id=timer".++$session->timer.">" . $timeleft . "</span></th></tr>"; ?>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tr>
|
|
<?php
|
|
echo "<tr>
|
|
<td class=\"desc\">
|
|
<div class=\"tit\">
|
|
<img class=\"unit u".$hero_info['unit']."\" src=\"img/x.gif\" alt=\"".$name."\" title=\"".$name."\" />
|
|
$name ($name1)
|
|
</div>"
|
|
?>
|
|
|
|
</tr>
|
|
</table>
|
|
<?php
|
|
}
|
|
|
|
if($hero_info !== false AND $hero_info['dead'] == 0 AND $hero_info['trainingtime'] <= time() AND $hero_info['inrevive'] == 0 AND $hero_info['intraining'] == 0){
|
|
include("37_hero.tpl");
|
|
}
|
|
}
|
|
include ("upgrade.tpl"); ?>
|
|
|
|
</div>
|