mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-02 08:27:15 +00:00
Merge branch 'master' of https://github.com/Shadowss/TravianZ
This commit is contained in:
+21
-43
@@ -128,57 +128,35 @@ if (isset($_POST['name']) && !empty($_POST['name'])) {
|
|||||||
if(isset($_GET['add'])) {
|
if(isset($_GET['add'])) {
|
||||||
if($_GET['add'] == "reset") {
|
if($_GET['add'] == "reset") {
|
||||||
if($hero_info['level'] <= 3){
|
if($hero_info['level'] <= 3){
|
||||||
if($hero_info['attack'] != 0 OR $hero_info['defence'] != 0 OR $hero_info['attackbonus'] != 0 OR $hero_info['defencebonus'] != 0 OR $hero_info['regeneration'] != 0){
|
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `points` = (`level` * 5) + 5, `attack` = 0, `defence` = 0, `attackbonus` = 0, `defencebonus` = 0, `regeneration` = 0 WHERE `heroid` = " . $hero_info['heroid'] . " AND `level` <= 3 AND (`attack` != 0 OR `defence` != 0 OR `attackbonus` != 0 OR `defencebonus` != 0 OR `regeneration` != 0)");
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `points` = '".(($hero_info['level']*5)+5)."' WHERE `heroid` = " . $hero_info['heroid']);
|
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `attack` = '0' WHERE `heroid` = " . $hero_info['heroid']);
|
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `defence` = '0' WHERE `heroid` = " . $hero_info['heroid']);
|
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `attackbonus` = '0' WHERE `heroid` = " . $hero_info['heroid']);
|
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `defencebonus` = '0' WHERE `heroid` = " . $hero_info['heroid']);
|
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `regeneration` = '0' WHERE `heroid` = " . $hero_info['heroid']);
|
|
||||||
header("Location: build.php?id=".$id."");
|
header("Location: build.php?id=".$id."");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
if($_GET['add'] == "off") {
|
||||||
if($_GET['add'] == "off" && $hero_info['attack'] < 100) {
|
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `attack` = `attack` + 1, `points` = `points` - 1 WHERE `heroid` = " . $hero_info['heroid'] . " AND `points` > 0 AND `attack` < 100");
|
||||||
if($hero_info['points'] > 0) {
|
header("Location: build.php?id=".$id."");
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `attack` = `attack` + 1 WHERE `heroid` = " . $hero_info['heroid']);
|
exit;
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `points` = `points` - 1 WHERE `heroid` = " . $hero_info['heroid']);
|
|
||||||
header("Location: build.php?id=".$id."");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if($_GET['add'] == "deff" && $hero_info['defence'] < 100) {
|
if($_GET['add'] == "deff") {
|
||||||
if($hero_info['points'] > 0) {
|
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `defence` = `defence` + 1, `points` = `points` - 1 WHERE `heroid` = " . $hero_info['heroid'] . " AND `points` > 0 AND `defence` < 100");
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `defence` = `defence` + 1 WHERE `heroid` = " . $hero_info['heroid']);
|
header("Location: build.php?id=".$id."");
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `points` = `points` - 1 WHERE `heroid` = " . $hero_info['heroid']);
|
exit;
|
||||||
header("Location: build.php?id=".$id."");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if($_GET['add'] == "obonus" && $hero_info['attackbonus'] < 100) {
|
if($_GET['add'] == "obonus") {
|
||||||
if($hero_info['points'] > 0) {
|
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `attackbonus` = `attackbonus` + 1, `points` = `points` - 1 WHERE `heroid` = " . $hero_info['heroid'] . " AND `points` > 0 AND `attackbonus` < 100");
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `attackbonus` = `attackbonus` + 1 WHERE `heroid` = " . $hero_info['heroid']);
|
header("Location: build.php?id=".$id."");
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `points` = `points` - 1 WHERE `heroid` = " . $hero_info['heroid']);
|
exit;
|
||||||
header("Location: build.php?id=".$id."");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if($_GET['add'] == "dbonus" && $hero_info['defencebonus'] < 100) {
|
if($_GET['add'] == "dbonus") {
|
||||||
if($hero_info['points'] > 0) {
|
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `defencebonus` = `defencebonus` + 1, `points` = `points` - 1 WHERE `heroid` = " . $hero_info['heroid'] . " AND `points` > 0 AND `defencebonus` < 100");
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `defencebonus` = `defencebonus` + 1 WHERE `heroid` = " . $hero_info['heroid']);
|
header("Location: build.php?id=".$id."");
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `points` = `points` - 1 WHERE `heroid` = " . $hero_info['heroid']);
|
exit;
|
||||||
header("Location: build.php?id=".$id."");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if($_GET['add'] == "reg" && $hero_info['regeneration'] < 100) {
|
if($_GET['add'] == "reg") {
|
||||||
if($hero_info['points'] > 0) {
|
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `regeneration` = `regeneration` + 1, `points` = `points` - 1 WHERE `heroid` = " . $hero_info['heroid'] . " AND `points` > 0 AND `regeneration` < 100");
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `regeneration` = `regeneration` + 1 WHERE `heroid` = " . $hero_info['heroid']);
|
header("Location: build.php?id=".$id."");
|
||||||
mysqli_query($database->dblink,"UPDATE " . TB_PREFIX . "hero SET `points` = `points` - 1 WHERE `heroid` = " . $hero_info['heroid']);
|
exit;
|
||||||
header("Location: build.php?id=".$id."");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
+12
-11
@@ -11,21 +11,22 @@
|
|||||||
## License: TravianZ Project ##
|
## License: TravianZ Project ##
|
||||||
## Copyright: TravianZ (c) 2010-2014. All rights reserved. ##
|
## Copyright: TravianZ (c) 2010-2014. All rights reserved. ##
|
||||||
## URLs: http://travian.shadowss.ro ##
|
## URLs: http://travian.shadowss.ro ##
|
||||||
## Source code: http://github.com/Shadowss/TravianZ-by-Shadow/ ##
|
## Source code: http://github.com/Shadowss/TravianZ/ ##
|
||||||
## ##
|
## ##
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<div id="mfoot">
|
<div id="mfoot">
|
||||||
<div class="footer-menu">
|
<div class="footer-menu">
|
||||||
<center><br />
|
<center><br />
|
||||||
<div class="copyright">© 2010 - <?php echo date('Y') . ' ' . (defined('SERVER_NAME') ? SERVER_NAME : 'TravianZ');?> All rights reserved</div>
|
<div class="copyright">© 2010 - <?php echo date('Y') . ' ' . (defined('SERVER_NAME') ? SERVER_NAME : 'TravianZ');?> All rights reserved</div>
|
||||||
<div class="copyright">Server running on: <a href="version.php"><b><font color="Red">v.8.3.5</font></b></a>
|
<div class="copyright">▶ Server running on <a href="version.php" style="color: #FF5555; text-decoration: none; font-weight: bold;transition: 0.3s;" onmouseover="this.style.color='#FFAA00'" onmouseout="this.style.color='#FF5555'">v.8.4.α ⚡ Quantum Build 42β
|
||||||
</div>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div></center>
|
</div>
|
||||||
<div id="cfoot">
|
</div></center>
|
||||||
</div>
|
<div id="cfoot">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,10 +1,3 @@
|
|||||||
<div id="content" class="plus">
|
<div id="content" class="plus">
|
||||||
<center><h1>©️ Credits & Acknowledgements</h1></center>
|
|
||||||
<div id="textmenu">
|
<div id="textmenu">
|
||||||
<center><p><em>Standing on the shoulders of giants.</em></p></center>
|
|
||||||
<p>
|
|
||||||
Our project is a continuation and adaptation of a classic game emulator.
|
|
||||||
We owe immense gratitude to the original developers who paved the way.
|
|
||||||
Their foundational work has been invaluable in creating this experience.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+8
-4
@@ -78,10 +78,10 @@ else $building->procBuild($_GET);
|
|||||||
">
|
">
|
||||||
<?php
|
<?php
|
||||||
$developers = [
|
$developers = [
|
||||||
["ronix", "Developer & Contributor"],
|
["ronix", "Developer"],
|
||||||
["Dzoki", "Version starter"],
|
["Dzoki", "Version starter"],
|
||||||
["Shadow", "Project Owner / Dev"],
|
["Shadow", "Project Owner"],
|
||||||
["Advocaite", "Developer & Contributor"],
|
["Advocaite", "Developer"],
|
||||||
["yi12345", "Alumni Developer"],
|
["yi12345", "Alumni Developer"],
|
||||||
["NarcisRO", "bug hunter"],
|
["NarcisRO", "bug hunter"],
|
||||||
["brainiacX", "Alumni Developer"],
|
["brainiacX", "Alumni Developer"],
|
||||||
@@ -114,7 +114,11 @@ $developers = [
|
|||||||
["martinambrus", "Alumni Developer"],
|
["martinambrus", "Alumni Developer"],
|
||||||
["iopietro", "Alumni Developer"],
|
["iopietro", "Alumni Developer"],
|
||||||
["Vladyslav", "Rigorous game tester"],
|
["Vladyslav", "Rigorous game tester"],
|
||||||
["AL-Kateb", "Alumni Developer"]
|
["AL-Kateb", "Alumni Developer"],
|
||||||
|
["hdmaniak2", " Active Developer"],
|
||||||
|
["newtcv", " Active Developer"],
|
||||||
|
["AlinV2V", " Active Developer"],
|
||||||
|
["lietuvis10", " Active Developer"]
|
||||||
];
|
];
|
||||||
|
|
||||||
// Primele 9 carduri normale
|
// Primele 9 carduri normale
|
||||||
|
|||||||
Reference in New Issue
Block a user