Skip to content

Commit

Permalink
Hero Mansion percentage of experience and number of oases display fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DPStokes committed Nov 22, 2011
1 parent 9d29172 commit 72d91dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Templates/Build/37_hero.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ include_once("GameEngine/Data/hero_full.php");
</tr>
<tr>
<th title="until the next level">Experience:</th>
<td class="val">0%</td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:1px;" alt="0%" title="0%" /></td>
<td class="val"><?php echo floor(($hero_info['experience']-$hero_levels[1])/($hero_levels[$hero_info['level']+1]-$hero_levels[$hero_info['level']])*100)."%"; ?></td>
<td class="xp"><img class="bar" src="img/x.gif" style="width:<?php echo floor(($hero_info['experience']-$hero_levels[1])/($hero_levels[$hero_info['level']+1]-$hero_levels[$hero_info['level']])*100)*2; ?>px;" alt="<?php echo floor(($hero_info['experience']-$hero_levels[1])/($hero_levels[$hero_info['level']+1]-$hero_levels[$hero_info['level']])*100); ?>%" title="<?php echo floor(($hero_info['experience']-$hero_levels[1])/($hero_levels[$hero_info['level']+1]-$hero_levels[$hero_info['level']])*100); ?>%" /></td>
<td class="up"></td>
<td class="rem"><?php echo $hero_info['points']; ?></td>
</tr>
Expand All @@ -128,7 +128,7 @@ include_once("GameEngine/Data/hero_full.php");
<p>You can <a href="build.php?id=<?php echo $id; ?>&add=reset">reset</a> your points until you are level <b>3</b> or lower!</p>
<?php } ?>
<p>Your hero has <b><?php echo floor($hero_info['health']); ?></b>% of his hit points.<br/>
Your hero has conquered <b>0</b> <a href="build.php?id=<?php echo $id; ?>&land">oases</a>.</p>
Your hero has conquered <b><?php echo $database->VillageOasisCount($village->wid); ?></b> <a href="build.php?id=<?php echo $id; ?>&land">oases</a>.</p>



Expand Down

5 comments on commit 72d91dd

@DPStokes
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The &land link doesn't work because there's no logic in the 37.tpl to handle it and there's no oases view template either.

Can someone please supply me a screenshot of the oases view from a production Travian 3.x server?

@ZZJHONS
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This? travian.xxx/build.php?id=37&land = http://img593.imageshack.us/img593/1585/oasis.png

If you want the source code of that page I send you from skype or email.

@DPStokes
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that's what I'm after. HTML source would be great. English the preferred language please. Anyone? GitHub msg will be fine.

@ZZJHONS
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@derilevi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.