mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-21 20:16:11 +00:00
Enable (Disable) some new features
+Enable (Disable) New forum post message
+Enable (Disable) Tribes images in profile
+Enable (Disable) MHs images in profile
+Enable (Disable) Display artifact in profile
+Minor changes
NOTE 1: To play this version of the game, you need to reinstall
the server OR you can simply add these lines of code into your file:
ameEngine/config.php
define("NEW_FUNCTIONS_FORUM_POST_MESSAGE", False);
define("NEW_FUNCTIONS_TRIBE_IMAGES", False);
define("NEW_FUNCTIONS_MHS_IMAGES", False);
define("NEW_FUNCTIONS_DISPLAY_ARTIFACT", False);
GameEngine/Admin/Mods/constant_format.tpl
define("NEW_FUNCTIONS_FORUM_POST_MESSAGE", %NEW_FUNCTIONS_FORUM_POST_MESSAGE%);
define("NEW_FUNCTIONS_TRIBE_IMAGES", %NEW_FUNCTIONS_TRIBE_IMAGES%);
define("NEW_FUNCTIONS_MHS_IMAGES", %NEW_FUNCTIONS_MHS_IMAGES%);
define("NEW_FUNCTIONS_DISPLAY_ARTIFACT", %NEW_FUNCTIONS_DISPLAY_ARTIFACT%);
NOTE 2: pay special attention to the fact that these are two
different records !!! If the records are entered incorrectly,
you will receive a non-working code!
This commit is contained in:
+18
-19
@@ -44,14 +44,15 @@ $profiel = preg_replace("/\[#natars]/is",'<img src="'.$gpack.'img/t/t10_2.jpg" b
|
||||
$profiel = preg_replace("/\[#WW]/is",'<img src="'.$gpack.'img/t/g40_11-ltr.png" width="250" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Official World Wonder Village</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
|
||||
// TRIBE IMAGE - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if($displayarray['tribe'] == "1"){
|
||||
$profiel = preg_replace("/\[#roman]/is",'<img src="'.$gpack.'../../img/rpage/Roman1.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Romans : Because of its high level of social and technological development the Romans are masters at building and its coordination. Also, their troops are part of the elite in Travian. They are very balanced and useful in attacking and defending.</td></tr></table>\')">', $profiel, 1);
|
||||
}elseif($displayarray['tribe'] == "2"){
|
||||
$profiel = preg_replace("/\[#teuton]/is",'<img src="'.$gpack.'../../img/rpage/Teuton1.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Teutons : The Teutons are the most aggressive tribe. Their troops are notorious and feared for their rage and frenzy when they attack. They move around as a plundering horde, not even afraid of death. </td></tr></table>\')">', $profiel, 1);
|
||||
}elseif($displayarray['tribe'] == "3"){
|
||||
$profiel = preg_replace("/\[#gaul]/is",'<img src="'.$gpack.'../../img/rpage/Gaul1.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Gauls : The Gauls are the most peaceful of all three tribes in Travian. Their troops are trained for an excellent defence, but their ability to attack can still compete with the other two tribes. The Gauls are born riders and their horses are famous for their speed. This means that their riders can hit the enemy exactly where they can cause the most damage and swiftly take care of them.</td></tr></table>\')">', $profiel, 1);
|
||||
if(NEW_FUNCTIONS_TRIBE_IMAGES){
|
||||
if($displayarray['tribe'] == "1"){
|
||||
$profiel = preg_replace("/\[#roman]/is",'<img src="'.$gpack.'../../img/rpage/Roman1.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Romans : Because of its high level of social and technological development the Romans are masters at building and its coordination. Also, their troops are part of the elite in Travian. They are very balanced and useful in attacking and defending.</td></tr></table>\')">', $profiel, 1);
|
||||
}elseif($displayarray['tribe'] == "2"){
|
||||
$profiel = preg_replace("/\[#teuton]/is",'<img src="'.$gpack.'../../img/rpage/Teuton1.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Teutons : The Teutons are the most aggressive tribe. Their troops are notorious and feared for their rage and frenzy when they attack. They move around as a plundering horde, not even afraid of death. </td></tr></table>\')">', $profiel, 1);
|
||||
}elseif($displayarray['tribe'] == "3"){
|
||||
$profiel = preg_replace("/\[#gaul]/is",'<img src="'.$gpack.'../../img/rpage/Gaul1.jpg" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Gauls : The Gauls are the most peaceful of all three tribes in Travian. Their troops are trained for an excellent defence, but their ability to attack can still compete with the other two tribes. The Gauls are born riders and their horses are famous for their speed. This means that their riders can hit the enemy exactly where they can cause the most damage and swiftly take care of them.</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
}
|
||||
|
||||
//Shadow image - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
|
||||
@@ -73,19 +74,17 @@ $profiel = preg_replace("/\[#DEFENSIVE]/is",'<img src="'.$gpack.'img/t/Defensive
|
||||
$profiel = preg_replace("/\[#POPULATION]/is",'<img src="'.$gpack.'img/t/Population_1.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Country:</td><td>Romania</td></tr><tr><td>Category:</td><td>Population</td></tr><tr><td>Name:</td><td>Shadow</td></tr><tr><td>Tribe:</td><td>Romans</td></tr><tr><td>Rank:</td><td>1</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
|
||||
// Multihunter image - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if($displayarray['username'] == "Multihunter"){
|
||||
$profiel = preg_replace("/\[#MULTIHUNTER]/is",'<img src="'.$gpack.'img/t/t6_1.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Official Server Global Multihunter</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#MH]/is",'<img src="'.$gpack.'img/t/MH.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Multihunter is an official Travian position mainly used for enforcement of Travian rules within a server. Multihunters all use the account named Multihunter with its only village located in (0|0). A Multihunter may not play on the server on which they are the Multihunter, but be an active player on other servers. </td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#TEAM]/is",'<img src="'.$gpack.'img/t/team.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Travian is a persistent, browser-based, massively multiplayer, online real-time strategy game developed by the German software company Travian Games. It was originally written and released in June 2004 by Gerhard Müller. Set in classical antiquity, Travian is a predominantly militaristic real-time strategy game.</td></tr></table>\')">', $profiel, 1);
|
||||
}elseif($displayarray['access'] == "8"){
|
||||
$profiel = preg_replace("/\[#MULTIHUNTER]/is",'<img src="'.$gpack.'img/t/t6_1.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Official Server Global Multihunter</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#MH]/is",'<img src="'.$gpack.'img/t/MH.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Multihunter is an official Travian position mainly used for enforcement of Travian rules within a server. Multihunters all use the account named Multihunter with its only village located in (0|0). A Multihunter may not play on the server on which they are the Multihunter, but be an active player on other servers. </td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#TEAM]/is",'<img src="'.$gpack.'img/t/team.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Travian is a persistent, browser-based, massively multiplayer, online real-time strategy game developed by the German software company Travian Games. It was originally written and released in June 2004 by Gerhard Müller. Set in classical antiquity, Travian is a predominantly militaristic real-time strategy game.</td></tr></table>\')">', $profiel, 1);
|
||||
}elseif($displayarray['access'] == "9"){
|
||||
$profiel = preg_replace("/\[#TEAM]/is",'<img src="'.$gpack.'img/t/team.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Travian is a persistent, browser-based, massively multiplayer, online real-time strategy game developed by the German software company Travian Games. It was originally written and released in June 2004 by Gerhard Müller. Set in classical antiquity, Travian is a predominantly militaristic real-time strategy game.</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#MH]/is",'<img src="'.$gpack.'img/t/MH.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Multihunter is an official Travian position mainly used for enforcement of Travian rules within a server. Multihunters all use the account named Multihunter with its only village located in (0|0). A Multihunter may not play on the server on which they are the Multihunter, but be an active player on other servers. </td></tr></table>\')">', $profiel, 1);
|
||||
if(NEW_FUNCTIONS_MHS_IMAGES){
|
||||
if($displayarray['access'] == "9"){
|
||||
$profiel = preg_replace("/\[#MULTIHUNTER]/is",'<img src="'.$gpack.'img/t/t6_1.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Official Server Global Multihunter</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#MH]/is",'<img src="'.$gpack.'img/t/MH.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Multihunter is an official Travian position mainly used for enforcement of Travian rules within a server. Multihunters all use the account named Multihunter with its only village located in (0|0). A Multihunter may not play on the server on which they are the Multihunter, but be an active player on other servers. </td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#TEAM]/is",'<img src="'.$gpack.'img/t/team.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Travian is a persistent, browser-based, massively multiplayer, online real-time strategy game developed by the German software company Travian Games. It was originally written and released in June 2004 by Gerhard Müller. Set in classical antiquity, Travian is a predominantly militaristic real-time strategy game.</td></tr></table>\')">', $profiel, 1);
|
||||
}elseif($displayarray['access'] == "8"){
|
||||
$profiel = preg_replace("/\[#MULTIHUNTER]/is",'<img src="'.$gpack.'img/t/t6_1.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Official Server Global Multihunter</td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#MH]/is",'<img src="'.$gpack.'img/t/MH.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>The Multihunter is an official Travian position mainly used for enforcement of Travian rules within a server. Multihunters all use the account named Multihunter with its only village located in (0|0). A Multihunter may not play on the server on which they are the Multihunter, but be an active player on other servers. </td></tr></table>\')">', $profiel, 1);
|
||||
$profiel = preg_replace("/\[#TEAM]/is",'<img src="'.$gpack.'img/t/team.png" border="0" onmouseout="med_closeDescription()" onmousemove="med_mouseMoveHandler(arguments[0],\'<table><tr><td>Travian is a persistent, browser-based, massively multiplayer, online real-time strategy game developed by the German software company Travian Games. It was originally written and released in June 2004 by Gerhard Müller. Set in classical antiquity, Travian is a predominantly militaristic real-time strategy game.</td></tr></table>\')">', $profiel, 1);
|
||||
}
|
||||
}
|
||||
|
||||
//NATURE image - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
|
||||
|
||||
@@ -175,7 +175,9 @@ if($displayarray['vac_mode'] == 1) echo "<tr><th colspan='2'><font color='Maroon
|
||||
$coor = $database->getCoor($vil['wref']);
|
||||
echo "<tr><td class=\"nam\"><a href=\"karte.php?d=".$vil['wref']."&c=".$generator->getMapCheck($vil['wref'])."\">".$vil['name']."</a>";
|
||||
if($vil['capital'] == 1) echo "<span class=\"none3\"> (capital)</span>";
|
||||
if($hasArtifact) echo "<span class=\"none3\"> (artifact) </span>";
|
||||
if(NEW_FUNCTIONS_DISPLAY_ARTIFACT){
|
||||
if($hasArtifact) echo "<span class=\"none3\"> (artifact)</span>";
|
||||
}
|
||||
|
||||
if(NEW_FUNCTIONS_OASIS){
|
||||
echo "<td class=\"hab\">";
|
||||
|
||||
@@ -156,22 +156,31 @@ MEDAL CATEGORY:
|
||||
</tr>
|
||||
<?php
|
||||
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
|
||||
if($session->userinfo['tribe'] == 1) {
|
||||
echo"<tr><td>Tribe Romans</td><td></td><td></td><td>[#roman]</td></tr>";
|
||||
} else if($session->userinfo['tribe'] == 2) {
|
||||
echo"<tr><td>Tribe Teutons</td><td></td><td></td><td>[#teuton]</td></tr>";
|
||||
} else if($session->userinfo['tribe'] == 3) {
|
||||
echo"<tr><td>Tribe Gauls</td><td></td><td></td><td>[#gaul]</td></tr>";
|
||||
} else if($session->userinfo['access'] == 9) {
|
||||
echo"<tr><td>Administrator</td><td></td><td></td><td>[#MH]</td></tr>";
|
||||
echo"<tr><td>Administrator</td><td></td><td></td><td>[#TEAM]</td></tr>";
|
||||
} else if($session->userinfo['access'] == 8) {
|
||||
echo"<tr><td>Multihunter</td><td></td><td></td><td>[#MH]</td></tr>";
|
||||
echo"<tr><td>Multihunter</td><td></td><td></td><td>[#TEAM]</td></tr>";
|
||||
} else if($session->userinfo['username'] == "Shadow") {
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#MH]</td></tr>";
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#TEAM]</td></tr>";
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#EVENT]</td></tr>";
|
||||
if(NEW_FUNCTIONS_TRIBE_IMAGES){
|
||||
if($session->userinfo['tribe'] == 1){
|
||||
echo"<tr><td>Tribe Romans</td><td></td><td></td><td>[#roman]</td></tr>";
|
||||
}elseif($session->userinfo['tribe'] == 2){
|
||||
echo"<tr><td>Tribe Teutons</td><td></td><td></td><td>[#teuton]</td></tr>";
|
||||
}elseif($session->userinfo['tribe'] == 3){
|
||||
echo"<tr><td>Tribe Gauls</td><td></td><td></td><td>[#gaul]</td></tr>";
|
||||
}
|
||||
}
|
||||
if(NEW_FUNCTIONS_MHS_IMAGES){
|
||||
if($session->userinfo['access'] == 9){
|
||||
echo"<tr><td>Administrator</td><td></td><td></td><td>[#MULTIHUNTER]</td></tr>";
|
||||
echo"<tr><td>Administrator</td><td></td><td></td><td>[#MH]</td></tr>";
|
||||
echo"<tr><td>Administrator</td><td></td><td></td><td>[#TEAM]</td></tr>";
|
||||
}elseif($session->userinfo['access'] == 8){
|
||||
echo"<tr><td>Multihunter</td><td></td><td></td><td>[#MULTIHUNTER]</td></tr>";
|
||||
echo"<tr><td>Multihunter</td><td></td><td></td><td>[#MH]</td></tr>";
|
||||
echo"<tr><td>Multihunter</td><td></td><td></td><td>[#TEAM]</td></tr>";
|
||||
}
|
||||
}
|
||||
if($session->userinfo['username'] == "Shadow"){
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#SHADOW]</td></tr>";
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#MH]</td></tr>";
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#TEAM]</td></tr>";
|
||||
echo"<tr><td>Shadow</td><td></td><td></td><td>[#EVENT]</td></tr>";
|
||||
}?>
|
||||
</table></p>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user