mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-15 07:41:00 +00:00
fix attacking bug, somthing on buying goldclub, add merchant run 3 times to goldclub and now banned player cannot found new village
This commit is contained in:
@@ -33,6 +33,7 @@ if(isset($_POST['ft'])=='check' && $allres!=0 && $allres <= $maxcarry && ($_POST
|
||||
<input type="hidden" name="x" value="<?php echo $_POST['x']; ?>">
|
||||
<input type="hidden" name="y" value="<?php echo $_POST['y']; ?>">
|
||||
<input type="hidden" name="dname" value="<?php echo $_POST['dname']; ?>">
|
||||
<input type="hidden" name="send3" value="<?php echo $_POST['send3']; ?>">
|
||||
<table id="send_select" class="send_res" cellpadding="1" cellspacing="1">
|
||||
<tr>
|
||||
<td class="ico"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /></td>
|
||||
@@ -190,8 +191,12 @@ $coor['y'] = "";
|
||||
<span>Y:</span><input class="text" type="text" name="y" value="<?php echo $coor['y']; ?>" maxlength="4" tabindex="7">
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<div class="clear"></div><p><input type="image" value="ok" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" tabindex="8" alt="OK" <?php if(!$market->merchantAvail()) { echo "DISABLED"; }?>/></p></form>
|
||||
</table>
|
||||
<div class="clear"></div>
|
||||
<?php if($session->goldclub == 1){?>
|
||||
<p><select name="send3"><option value="1" selected="selected">1x</option><option value="2">2x</option><option value="3">3x</option></select>go</p>
|
||||
<?php } ?>
|
||||
<p><input type="image" value="ok" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" tabindex="8" alt="OK" <?php if(!$market->merchantAvail()) { echo "DISABLED"; }?>/></p></form>
|
||||
<?php
|
||||
$error = '';
|
||||
if(isset($_POST['ft'])=='check'){
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
////////////// made by alq0rsan /////////////////////////
|
||||
if($session->access != BANNED){
|
||||
if($session->gold >= 100 && $session->sit == 0) {
|
||||
if($session->gold >= 100 && $session->sit == 0 && $session->goldclub == 0) {
|
||||
mysql_query("UPDATE ".TB_PREFIX."users set goldclub = 1, gold = gold - 100 where `username`='".$session->username."'");
|
||||
}
|
||||
header("Location: plus.php?id=3");
|
||||
|
||||
@@ -192,7 +192,7 @@
|
||||
<?php
|
||||
while($row = mysql_fetch_array($result))
|
||||
{
|
||||
if($row['id'] >= 0){
|
||||
if($row['RR'] >= 0) {
|
||||
if($row['id']==$session->alliance) {
|
||||
echo "<tr class=\"own hl\">"; } else { echo "<tr>"; }
|
||||
echo "<td class=\"ra fc\">".$i++.". </td>";
|
||||
|
||||
@@ -8,12 +8,9 @@ $to = array('x'=>$newvillage['x'], 'y'=>$newvillage['y']);
|
||||
$time = $generator->procDistanceTime($from,$to,300,0);
|
||||
|
||||
echo '<pre>';
|
||||
//print_r($founder);
|
||||
echo '</pre>';
|
||||
?>
|
||||
|
||||
<h1>Found new village</h1>
|
||||
<!--<p>De kolonisten kunnen nog niet vertrekken.<br> Voor het stichten van een nieuw dorp is er nog 750 grondstoffen hout, klei, ijzer en graan nodig.</p>-->
|
||||
<form method="POST" action="build.php">
|
||||
<input type="hidden" name="a" value="new" />
|
||||
<input type="hidden" name="c" value="5" />
|
||||
|
||||
Reference in New Issue
Block a user