David <3
greets Slim
Printable View
Another snmippet that came down from github again tried to start breaking the already working hero mansion again. It looks like some of the fixes beiung submitted are trying to patch the old broken version.
So hre is data table again
and mansion againCode:--
CREATE TABLE IF NOT EXISTS `s1_hero` (
`uid` int(10) NOT NULL,
`vid` int(10) NOT NULL,
`heroname` varchar(255) NOT NULL,
`level` int(10) NOT NULL,
`type` int(10) NOT NULL,
`attack` int(10) NOT NULL,
`infdefense` int(10) NOT NULL,
`cavdefense` int(10) NOT NULL,
`offbonus` int(10) NOT NULL,
`defbonus` int(10) NOT NULL,
`regspeed` int(10) NOT NULL,
`experience` int(10) NOT NULL,
`pointgain` int(10) NOT NULL,
`pointused` int(10) NOT NULL,
`attacklevel` int(10) NOT NULL,
`defenselevel` int(10) NOT NULL,
`offbonuslevel` int(10) NOT NULL,
`defbonuslevel` int(10) NOT NULL,
`healthofhero` int(10) NOT NULL,
`dead` tinyint(1) NOT NULL,
`timetoborn` int(10) NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
-MarkM-Code:<?php
$maxherolevel = 100;
$resetlevelreq = 3;
$getheroinfo1 = mysql_query("SELECT * FROM ".TB_PREFIX."hero WHERE `vid`='".$village->wid."'") or die(mysql_error());
$heroinfo1 = mysql_fetch_array($getheroinfo1);
// revive hero
if(mysql_num_rows($getheroinfo1) == 1) {
if($heroinfo1['dead'] == 1) {
if ( $_GET['revive'] == 1) {
mysql_query("UPDATE ".TB_PREFIX."hero SET `timetoborn`='".(time()+${'u'.$heroinfo1['type']}['time'])."', `dead`=0 where `vid`='".$village->wid."'") or die("ERROR:".mysql_error());
}
}
}
// train new hero
if(mysql_num_rows($getheroinfo1) == 0) {
if ($session->tribe == 1) {
if ( $_GET['train'] == 1) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'1' ,'100' ,'".(time()+${'u1'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 2) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'2' ,'100' ,'".(time()+${'u2'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 3) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'3' ,'100' ,'".(time()+${'u3'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 5) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'5' ,'100' ,'".(time()+${'u5'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 6) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'6' ,'100' ,'".(time()+${'u6'}['time'])."');") or die("ERROR:".mysql_error());
}
}
if ($session->tribe == 2) {
if ( $_GET['train'] == 1) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'11' ,'100' ,'".(time()+${'u11'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 2) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'12' ,'100' ,'".(time()+${'u12'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 3) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'13' ,'100' ,'".(time()+${'u13'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 5) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'15' ,'100' ,'".(time()+${'u15'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 6) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'16' ,'100' ,'".(time()+${'u16'}['time'])."');") or die("ERROR:".mysql_error());
}
}
if ($session->tribe == 3) {
if ( $_GET['train'] == 1) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'21' ,'100' ,'".(time()+${'u21'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 2) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'22' ,'100' ,'".(time()+${'u22'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 4) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'24' ,'100' ,'".(time()+${'u24'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 5) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'25' ,'100' ,'".(time()+${'u25'}['time'])."');") or die("ERROR:".mysql_error());
}
if ( $_GET['train'] == 6) {
mysql_query("INSERT INTO `".TB_PREFIX."hero` (`uid` ,`vid`, `heroname` ,`type` ,`healthofhero` ,`timetoborn`) VALUES ('".$session->uid."' ,'".$village->wid."' ,'".$session->username."' ,'26' ,'100' ,'".(time()+${'u26'}['time'])."');") or die("ERROR:".mysql_error());
}
}
mysql_query("UPDATE ".TB_PREFIX."hero SET `pointgain`='10000' where `vid`='".$village->vid."'") or die("ERROR:".mysql_error());
}
// add point and reset it
if ( $_GET['add'] == reset) {
if ( round(($heroinfo1['attacklevel']+$heroinfo1['defenselevel']+$heroinfo1['offbonuslevel']+$heroinfo1['defbonuslevel']+$heroinfo1['regspeed'])/5) <= $resetlevelreq ) {
mysql_query("UPDATE ".TB_PREFIX."hero SET `attacklevel`=0, `defenselevel`=0, `offbonuslevel`=0, `defbonuslevel`=0, `regspeed`=0, `pointused`=0 WHERE `vid`='".$village->wid."'") or die("ERROR:".mysql_error());
}
}
if ( $_GET['add'] == attacklevel) {
if ($heroinfo1['attacklevel'] >= $maxherolevel) {
} else {
if ( round(($heroinfo1['pointgain']-$heroinfo1['pointused'])/1000) >= 1 ) {
mysql_query("UPDATE ".TB_PREFIX."hero SET `attacklevel`='".($heroinfo1['attacklevel']+1)."', `pointused`='".($heroinfo1['pointused']+1000)."' where `vid`='".$village->wid."'") or die("ERROR:".mysql_error());
}
}
}
if ( $_GET['add'] == defenselevel) {
if ($heroinfo1['defenselevel'] >= $maxherolevel) {
} else {
if ( round(($heroinfo1['pointgain']-$heroinfo1['pointused'])/1000) >= 1 ) {
mysql_query("UPDATE ".TB_PREFIX."hero SET `defenselevel`='".($heroinfo1['defenselevel']+1)."', `pointused`='".($heroinfo1['pointused']+1000)."' where `vid`='".$village->wid."'") or die("ERROR:".mysql_error());
}
}
}
if ( $_GET['add'] == offbonuslevel) {
if ($heroinfo1['offbonuslevel'] >= $maxherolevel) {
} else {
if ( round(($heroinfo1['pointgain']-$heroinfo1['pointused'])/1000) >= 1 ) {
mysql_query("UPDATE ".TB_PREFIX."hero SET `offbonuslevel`='".($heroinfo1['offbonuslevel']+1)."', `pointused`='".($heroinfo1['pointused']+1000)."' where `vid`='".$village->wid."'") or die("ERROR:".mysql_error());
}
}
}
if ( $_GET['add'] == defbonuslevel) {
if ($heroinfo1['defbonuslevel'] >= $maxherolevel) {
} else {
if ( round(($heroinfo1['pointgain']-$heroinfo1['pointused'])/1000) >= 1 ) {
mysql_query("UPDATE ".TB_PREFIX."hero SET `defbonuslevel`='".($heroinfo1['defbonuslevel']+1)."', `pointused`='".($heroinfo1['pointused']+1000)."' where `vid`='".$village->wid."'") or die("ERROR:".mysql_error());
}
}
}
if ( $_GET['add'] == regspeed) {
if ($heroinfo1['regspeed'] >= $maxherolevel) {
} else {
if ( round(($heroinfo1['pointgain']-$heroinfo1['pointused'])/1000) >= 1 ) {
mysql_query("UPDATE ".TB_PREFIX."hero SET `regspeed`='".($heroinfo1['regspeed']+1)."', `pointused`='".($heroinfo1['pointused']+1000)."' where `vid`='".$village->wid."'") or die("ERROR:".mysql_error());
}
}
}
$getheroinfo = mysql_query("SELECT * FROM ".TB_PREFIX."hero WHERE `vid`='".$village->wid."'") or die(mysql_error());
$heroinfo = mysql_fetch_array($getheroinfo);
$heropoint = round(($heroinfo['pointgain']-$heroinfo['pointused'])/1000);
$expernce = round(($heroinfo['attacklevel']+$heroinfo['defenselevel']+$heroinfo['offbonuslevel']+$heroinfo['defbonuslevel']+$heroinfo['regspeed'])/5);
$level = $expernce;
// type to name hero
if ( $heroinfo['type'] == 1 ) {
$heronames = "Legionnaire";
} elseif ( $heroinfo['type'] == 2 ) {
$heronames = "Praetorian";
} elseif ( $heroinfo['type'] == 3 ) {
$heronames = "Imperian";
} elseif ( $heroinfo['type'] == 5 ) {
$heronames = "Equites Imperatoris";
} elseif ( $heroinfo['type'] == 6 ) {
$heronames = "Equites Caesaris";
} elseif ( $heroinfo['type'] == 11 ) {
$heronames = "Clubswinger";
} elseif ( $heroinfo['type'] == 12 ) {
$heronames = "Spearman";
} elseif ( $heroinfo['type'] == 13 ) {
$heronames = "Axeman";
} elseif ( $heroinfo['type'] == 15 ) {
$heronames = "Paladin";
} elseif ( $heroinfo['type'] == 16 ) {
$heronames = "Teutonic Knight";
} elseif ( $heroinfo['type'] == 21 ) {
$heronames = "Phalanx";
} elseif ( $heroinfo['type'] == 22 ) {
$heronames = "Swordsman";
} elseif ( $heroinfo['type'] == 24 ) {
$heronames = "Theutates Thunder";
} elseif ( $heroinfo['type'] == 25 ) {
$heronames = "Druidrider";
} elseif ( $heroinfo['type'] == 26 ) {
$heronames = "Haeduan";
}
$typercheck['1'] = "Legionnaire";
$typercheck['2'] = "Praetorian";
$typercheck['3'] = "Imperian";
$typercheck['5'] = "Equites Imperatoris";
$typercheck['6'] = "Equites Caesaris";
$typercheck['11'] = "Clubswinger";
$typercheck['12'] = "Spearman";
$typercheck['13'] = "Axeman";
$typercheck['15'] = "Paladin";
$typercheck['16'] = "Teutonic Knight";
$typercheck['21'] = "Phalanx";
$typercheck['22'] = "Swordsman";
$typercheck['24'] = "Theutates Thunder";
$typercheck['25'] = "Druidrider";
$typercheck['26'] = "Haeduan";
if( $heroinfo['attacklevel'] >= 1) {
$heroattack = round((${'u'.$heroinfo['type']}['atk']/100)*(100+$heroinfo['attacklevel']));
} else {
$heroattack = round(${'u'.$heroinfo['type']}['atk']);
}
if( $heroinfo['defenselevel'] >= 1) {
$heroinfdefense =round((${'u'.$heroinfo['type']}['di']/100)*(100+$heroinfo['defenselevel']));
$herocavdefense = round((${'u'.$heroinfo['type']}['dc']/100)*(100+$heroinfo['defenselevel']));
} else {
$heroinfdefense = round(${'u'.$heroinfo['type']}['di']);
$herocavdefense = round(${'u'.$heroinfo['type']}['dc']);
}
?>
<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="Heldenhof" title="Heldenhof" /> </a>
<h1>Hero's Mansion <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
<p class="build_desc">In the Hero's mansion you can train your own hero and at level 10, 15 and 20 you can conquer oases with Hero in the immediate vicinity.</p>
<?php
if(mysql_num_rows($getheroinfo) == 0) {
// here code to train hero
?>
<table id="distribution" cellpadding="1" cellspacing="1" width="100%">
<thead><tr><th colspan="2">Train New Hero</th></tr></thead>
<?php
if ($session->tribe == 1) {
?>
<tr>
<th width='75%'><img class="unit u1" src="img/x.gif"><?php echo $typercheck['1']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=1'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u2" src="img/x.gif"><?php echo $typercheck['2']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=2'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u3" src="img/x.gif"><?php echo $typercheck['3']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=3'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u5" src="img/x.gif"><?php echo $typercheck['5']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=4'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u6" src="img/x.gif"><?php echo $typercheck['6']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=5'>Train</a></th>
</tr>
<?php
}
if ($session->tribe == 2) {
?>
<tr>
<th width='75%'><img class="unit u11" src="img/x.gif"><?php echo $typercheck['11']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=1'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u12" src="img/x.gif"><?php echo $typercheck['12']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=2'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u13" src="img/x.gif"><?php echo $typercheck['13']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=3'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u15" src="img/x.gif"><?php echo $typercheck['15']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=4'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u16" src="img/x.gif"><?php echo $typercheck['16']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=5'>Train</a></th>
</tr>
<?php
}
if ($session->tribe == 3) {
?>
<tr>
<th width='75%'><img class="unit u21" src="img/x.gif"><?php echo $typercheck['21']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=1'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u22" src="img/x.gif"><?php echo $typercheck['22']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=2'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u24" src="img/x.gif"><?php echo $typercheck['24']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=3'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u25" src="img/x.gif"><?php echo $typercheck['25']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=4'>Train</a></th>
</tr>
<tr>
<th width='75%'><img class="unit u26" src="img/x.gif"><?php echo $typercheck['26']; ?></th>
<th width='25%'><a href='build.php?id=<?php echo "$id"; ?>&train=5'>Train</a></th>
</tr>
<?php
}
?>
</table>
<?php
} else {
if($heroinfo['timetoborn'] <= time()) {
if(!$heroinfo['timetoborn'] == 0) {
if($heroinfo['dead'] == 0) {
mysql_query("UPDATE ".TB_PREFIX."hero SET `timetoborn`='0' where `uid`='".$session->uid."'") or die("ERROR:".mysql_error());
mysql_query("UPDATE ".TB_PREFIX."units SET `hero`='1' where `vref`='".$village->wid."'") or die("ERROR:".mysql_error());
}
}
}
if($heroinfo['timetoborn'] >= 1) {
$sewtime = $generator->getTimeFormat($heroinfo['timetoborn']-time());
?>
<table id="distribution" cellpadding="1" cellspacing="1">
<thead><tr>
<?php
echo "<tr class='next'><th>hero will be ready in <span id=timer1>".$sewtime."</span></th></tr>";
?>
</table>
<?php
}
if($heroinfo['timetoborn'] == 0) {
if($heroinfo['dead'] == 1) {
?>
<table id="distribution" cellpadding="1" cellspacing="1">
<thead><tr>
<?php
echo "<tr class='next'><th>hero is dead want to revive him?</th></tr>";
echo "<tr class='next'><td><a href='build.php?id=".$id."&revive=1'>Press here to revive</a></td></tr>";
?>
</table>
<?php
} else {
?>
<table id="distribution" cellpadding="1" cellspacing="1">
<thead><tr>
<th colspan="5"><a href="build.php?id=<?php echo "$id"; ?>&rename"><?php echo $heroinfo['heroname']; ?></a><span class="info"> Level <?php echo $level; ?> (<img class="unit u<?php echo $heroinfo['type']; ?>" src="img/x.gif" alt="<?php echo $heronames; ?>" title="<?php echo $heronames; ?>" /><?php echo $heronames; ?>)</span></th>
</tr></thead>
<tbody><tr>
<th>Attack</th>
<td class="val"><?php echo $heroattack; ?></td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo $heroinfo['attacklevel']; ?>%;" alt="<?php echo $heroattacklevel; ?>" title="<?php echo $heroattacklevel; ?>" /></td>
<?php
if ($heropoint >= 1) {
if ($heroinfo['attacklevel'] == $maxherolevel) {
echo "<td class='up'><span class='none'>(<b>+</b>)</span></td>";
} else {
echo "<td class='up'><a href='build.php?id=".$id."&add=attacklevel'>(<b>+</b>)</a></td>";
}
} else {
echo "<td class='up'><span class='none'>(<b>+</b>)</span></td>";
}
?>
<td class="po"><?php echo $heroinfo['attacklevel']; ?></td>
</tr>
<tr>
<th>Defense</th>
<td class="val"><?php echo $heroinfdefense."/".$herocavdefense; ?></td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo $heroinfo['defenselevel']; ?>%;" alt='<?php echo $heroinfdefense."/".$herocavdefense; ?>' title='<?php echo $heroinfdefense."/".$herocavdefense; ?>' /></td>
<?php
if ($heropoint >= 1) {
if ($heroinfo['defenselevel'] == $maxherolevel) {
echo "<td class='up'><span class='none'>(<b>+</b>)</span></td>";
} else {
echo "<td class='up'><a href='build.php?id=".$id."&add=defenselevel'>(<b>+</b>)</a></td>";
}
} else {
echo "<td class='up'><span class='none'>(<b>+</b>)</span></td>";
}
?>
<td class="po"><?php echo $heroinfo['defenselevel']; ?></td>
</tr>
<tr>
<th>Attack-Bonus:</th>
<td class="val"><?php echo ($heroinfo['offbonuslevel']*0.2); ?>%</td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo $heroinfo['offbonuslevel']; ?>%;" alt="<?php echo ($heroinfo['offbonuslevel']*0.2); ?>%" title="<?php echo ($heroinfo['offbonuslevel']*0.2); ?>%" /></td>
<?php
if ($heropoint >= 1) {
if ($heroinfo['offbonuslevel'] == $maxherolevel) {
echo "<td class='up'><span class='none'>(<b>+</b>)</span></td>";
} else {
echo "<td class='up'><a href='build.php?id=".$id."&add=offbonuslevel'>(<b>+</b>)</a></td>";
}
} else {
echo "<td class='up'><span class='none'>(<b>+</b>)</span></td>";
}
?>
<td class="po"><?php echo $heroinfo['offbonuslevel']; ?></td>
</tr>
<tr>
<th>Defense-Bonus:</th>
<td class="val"><?php echo ($heroinfo['defbonuslevel']*0.2); ?>%</td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo $heroinfo['defbonuslevel']; ?>%;" alt="<?php echo ($heroinfo['defbonuslevel']*0.2); ?>%" title="<?php echo ($heroinfo['defbonuslevel']*0.2); ?>%" /></td>
<?php
if ($heropoint >= 1) {
if ($heroinfo['defbonuslevel'] == $maxherolevel) {
echo "<td class='up'><span class='none'>(<b>+</b>)</span></td>";
} else {
echo "<td class='up'><a href='build.php?id=".$id."&add=defbonuslevel'>(<b>+</b>)</a></td>";
}
} else {
echo "<td class='up'><span class='none'>(<b>+</b>)</span></td>";
}
?>
<td class="po"><?php echo $heroinfo['defbonuslevel']; ?></td>
</tr>
<tr>
<th>Regeneration:</th>
<td class="val"><?php echo ($heroinfo['regspeed']*1); ?>/day</td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo $heroinfo['regspeed']; ?>%;" alt="<?php echo ($heroinfo['regspeed']*1); ?>/dag" title="45/dag" /></td>
<?php
if ($heropoint >= 1) {
if ($heroinfo['regspeed'] == $maxherolevel) {
echo "<td class='up'><span class='none'>(<b>+</b>)</span></td>";
} else {
echo "<td class='up'><a href='build.php?id=".$id."&add=regspeed'>(<b>+</b>)</a></td>";
}
} else {
echo "<td class='up'><span class='none'>(<b>+</b>)</span></td>";
}
?>
<td class="po"><?php echo $heroinfo['regspeed']; ?></td>
</tr>
<tr>
<td colspan="5" class="empty"></td>
</tr>
<tr>
<th title="hero is health">Experience:</th>
<td class="val"><?php echo $expernce; ?>%</td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo $expernce; ?>%;" alt="<?php echo $expernce; ?>%" title="<?php echo $expernce; ?>%" /></td>
<td class="up"></td>
<td class="rem"><?php
if ( $heropoint >=0 ) {
echo $heropoint;
} else {
echo "0";
}
?></td>
</tr>
</tbody></table>
<?php
if ($level <= $resetlevelreq) {
echo "<br>";
echo "If your hero under level ".$resetlevelreq." you can reset the point by press <a href='build.php?id=".$id."&add=reset'>here</a>";
}
?>
<p>Your hero have <b><?php echo $heroinfo['healthofhero']; ?></b>% of his power<br/></p>
<?php
}
}
}
include("upgrade.tpl");
?>
</p></div>
I can not help you get into the admin panel
نمی توانم وارد پنل ادمین بشوم راهنمایی کنید متشکرم
You are just not ment to do this kid, are you blind?
LOOOK - CREATE TABLE IF NOT EXISTS `s1_hero` It's database tables for %perfix_hero if you are runing your own server you have to know these basic things.
That's why only people who have some brains can run this thing, and someone like you should just enjoy it. No offense.
kokos, it is code that stuff on github seems to be trying to break.
So just wait until it either does or does not get fixed on github.
I submit this way back when but some patches that are making it onlt github seem to be trying to patch the older stuff, as if the person submitting didn't get this. So this might not actually have gotten onto github in the first place despite appearances at the time in the thread that it was wanted and used due to getting heroes working even back then was considered worth doing.
In the long run, whichever patches get used, what you get from github will work. So just wait for git to work out and merge all the conflicts into something that will work.
-MarkM-
Dude you're to smart for us. Who are you? Who sent you? Travian Games? FBI? CIA?
hahahaha that made me giggle yes who are you KGB
I have problem Duplicate entry '480800' for key 'PRIMARY'
WOW
good works,i dont test that yet
but i think thats 100% Done
hero/natars/natures/artefacts/....
yes?
Realy not yet,can i say it 70-80%,because there is somebug in another systems,even without including artifacts/nature/natra/hero,
no yet finished,for e.x. for me,when i'm training someunits,it changing to 4bilion troops in training+sometimes dubbled attacks,
as said system not 100% finished,but it going good,faster and faster :w00t::thumbup1::ott1:.
More changes just came down from the github that again seem to be trying to make the hero not be associated with the village the mansion is in.
I had the impression heroes were a one per mansion kind of idea, is that wrong? Is it meant to be making one hero for the player and so if the player's hero is alive there is no need to offer to have one born in a village that does not have one yet?
Or should it be that if this village's hero is alive there is no need to have one born in this village?
-MarkM-
Hello dear friends I would like to know from what I can changes
this messages for registration TNX :)
Hello maikale,
Thank you for registering on our server.
Since the 11.09.25 at 13:38 Romans, Gauls and Teutons attack each other on this game world. Right now, 4 players in 0 Alliances are fighting for supremacy.
TravianX Team
? pls Help