mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-30 07:07:14 +00:00
more update
This commit is contained in:
@@ -145,6 +145,7 @@ class Automation {
|
|||||||
|
|
||||||
public function Automation() {
|
public function Automation() {
|
||||||
|
|
||||||
|
$this->procClimbers();
|
||||||
$this->ClearUser();
|
$this->ClearUser();
|
||||||
$this->ClearInactive();
|
$this->ClearInactive();
|
||||||
$this->oasisResoucesProduce();
|
$this->oasisResoucesProduce();
|
||||||
@@ -205,7 +206,6 @@ class Automation {
|
|||||||
$this->updateGeneralAttack();
|
$this->updateGeneralAttack();
|
||||||
$this->checkInvitedPlayes();
|
$this->checkInvitedPlayes();
|
||||||
$this->updateStore();
|
$this->updateStore();
|
||||||
$this->procClimbers();
|
|
||||||
$this->CheckBan();
|
$this->CheckBan();
|
||||||
$this->regenerateOasisTroops();
|
$this->regenerateOasisTroops();
|
||||||
$this->artefactOfTheFool();
|
$this->artefactOfTheFool();
|
||||||
|
|||||||
@@ -20,9 +20,11 @@
|
|||||||
|
|
||||||
public function getUserRank($id) {
|
public function getUserRank($id) {
|
||||||
$ranking = $this->getRank();
|
$ranking = $this->getRank();
|
||||||
$start = $_SESSION['start']+1;
|
$users = "SELECT * FROM " . TB_PREFIX . "users WHERE access < " . (INCLUDE_ADMIN ? "10" : "8") . "";
|
||||||
|
$users2 = mysql_num_rows(mysql_query($users));
|
||||||
|
$users3 = $users2+1;
|
||||||
if(count($ranking) > 0) {
|
if(count($ranking) > 0) {
|
||||||
for($i=$start;$i<($start+20);$i++) {
|
for($i=0;$i<($users3);$i++) {
|
||||||
if($ranking[$i]['userid'] == $id && $ranking[$i] != "pad") {
|
if($ranking[$i]['userid'] == $id && $ranking[$i] != "pad") {
|
||||||
$myrank = $i;
|
$myrank = $i;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ if (isset($_POST['name'])) {
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Regeneration</th>
|
<th>Regeneration</th>
|
||||||
<td class="val"><?php echo ($hero_info['regeneration']*5*SPEED); ?>/Day</td>
|
<td class="val"><?php echo ($hero_info['regeneration']*5*ceil(SPEED/10)); ?>/Day</td>
|
||||||
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo ($hero_info['regeneration']*2)+1; ?>px;" alt="<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day" title="<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day" /></td>
|
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo ($hero_info['regeneration']*2)+1; ?>px;" alt="<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day" title="<?php echo ($hero_info['regeneration']*5*SPEED); ?>%/Day" /></td>
|
||||||
<td class="up"><span class="none">
|
<td class="up"><span class="none">
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user