mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +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:
@@ -296,12 +296,17 @@ define("ADMIN_RECEIVE_SUPPORT_MESSAGES", %ASUPPMSGS%);
|
||||
// ***** Allow Admin accounts to be raided and attacked
|
||||
define("ADMIN_ALLOW_INCOMING_RAIDS", %ARAIDS%);
|
||||
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
// **** NEW MECHANICS AND FUNCTIONS **** //
|
||||
/////////////////////////////////////////////////
|
||||
define("NEW_FUNCTIONS_OASIS", %NEW_FUNCTIONS_OASIS%);
|
||||
define("NEW_FUNCTIONS_ALLIANCE_INVITATION", %NEW_FUNCTIONS_ALLIANCE_INVITATION%);
|
||||
define("NEW_FUNCTIONS_EMBASSY_MECHANICS", %NEW_FUNCTIONS_EMBASSY_MECHANICS%);
|
||||
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%);
|
||||
|
||||
|
||||
//////////////////////////////////////////
|
||||
|
||||
+9
-5
@@ -141,11 +141,15 @@ class Process {
|
||||
$findReplace["%T4_COMING%"] = $_POST['t4_coming'];
|
||||
$findReplace["%REG_OPEN%"] = $_POST['reg_open'];
|
||||
$findReplace["%PEACE%"] = $_POST['peace'];
|
||||
|
||||
//New Mechanics and Functions
|
||||
$findReplace["%NEW_FUNCTIONS_OASIS%"] = $_POST['new_functions_oasis'];
|
||||
$findReplace["%NEW_FUNCTIONS_ALLIANCE_INVITATION%"] = $_POST['new_functions_alliance_invitation'];
|
||||
$findReplace["%NEW_FUNCTIONS_EMBASSY_MECHANICS%"] = $_POST['new_functions_embassy_mechanics'];
|
||||
|
||||
//New Mechanics and Functions
|
||||
$findReplace["%NEW_FUNCTIONS_OASIS%"] = $_POST['new_functions_oasis'];
|
||||
$findReplace["%NEW_FUNCTIONS_ALLIANCE_INVITATION%"] = $_POST['new_functions_alliance_invitation'];
|
||||
$findReplace["%NEW_FUNCTIONS_EMBASSY_MECHANICS%"] = $_POST['new_functions_embassy_mechanics'];
|
||||
$findReplace["%NEW_FUNCTIONS_FORUM_POST_MESSAGE%"] = $_POST['new_functions_forum_post_message'];
|
||||
$findReplace["%NEW_FUNCTIONS_TRIBE_IMAGES%"] = $_POST['new_functions_tribe_images'];
|
||||
$findReplace["%NEW_FUNCTIONS_MHS_IMAGES%"] = $_POST['new_functions_mhs_images'];
|
||||
$findReplace["%NEW_FUNCTIONS_DISPLAY_ARTIFACT%"] = $_POST['new_functions_display_artifact'];
|
||||
|
||||
fwrite($gameConfig, str_replace(array_keys($findReplace), array_values($findReplace), $text));
|
||||
|
||||
|
||||
@@ -300,6 +300,42 @@ echo "<div class=\"headline\"><span class=\"f10 c5\">Error creating constant.php
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="f9 c6">New forum post message:</span></td>
|
||||
<td>
|
||||
<select name="new_functions_forum_post_message">
|
||||
<option value="true">true</option>
|
||||
<option value="false" selected="selected">false</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="f9 c6">Tribes images in profile:</span></td>
|
||||
<td>
|
||||
<select name="new_functions_tribe_images">
|
||||
<option value="true">true</option>
|
||||
<option value="false" selected="selected">false</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="f9 c6">MHs images in profile:</span></td>
|
||||
<td>
|
||||
<select name="new_functions_mhs_images">
|
||||
<option value="true">true</option>
|
||||
<option value="false" selected="selected">false</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span class="f9 c6">Display artifact in profile:</span></td>
|
||||
<td>
|
||||
<select name="new_functions_display_artifact">
|
||||
<option value="true">true</option>
|
||||
<option value="false" selected="selected">false</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user