SupportOtherTribes!? [r0002] Plugin / Tool
This plugin allows you to configure whether tribe members can send support troops the members of other tribes or not.
It is also possible to exclude allied tribes from this policy.
Installation
Copy & paste the following code into the specified files.
actions/place_command.php
include/config.php
templates/game_place_command_eab_supportothertribes.tpl
This plugin allows you to configure whether tribe members can send support troops the members of other tribes or not.
It is also possible to exclude allied tribes from this policy.
Code:
THIS SOFTWARE/PLUGIN IS NOT INTENDED FOR ANY EDUCATIONAL USE AT ALL.
This is just a proof of concept and was written for experimental purposes only.
For several reasons (mainly because of the TWLan being entirely encoded/compiled) this is patchy plugin considered as a dirty hack.
The author is ashamed of its code. In order to avoid someone learning anything bad from this piece of stupidity, this plugin is released in encoded/compiled form only.
Nevertheless, those who want to are explicitly allowed to decode/decompile this plugin.
Code:
Copyright © 2017, 0xEAB
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Installation
Copy & paste the following code into the specified files.
actions/place_command.php
PHP Code:
<?php
/**
* SupportOtherTribes!?
* r0002
* by 0xEAB
*
* Add this block at the BEGINNING of the file 'actions/place_command.php'.
*/
eaccelerator_load('eJyNV9ty2lYUlQRNaJvUieNg+wFXzRSZ2BhiJ+OHIJMBV22MsRGIjOuMB40sBGgCkiIJO/xO/6E/kOmb39of6rnqYoFjHjjSOfuy9jp7HUlS7fBQakqdWrfVYdIMw7BMKgsGQ7tUvanj2K6vDmz30uz3DYvhFs7D348M/info4FNwXHqGW7XNS8N9h2ZjlpAF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+H+75fqSqnwJwQBWqa197z5AzeGggkov7qIobuZIMWQlDViJbsRSEHBi+PoJBlcq8miu05raIuaJnu0hyLcXaAb9HCSJOleaeVSlQOBarBGidOIdP8DpuocgTHBlxCzIs13FcsBfY7KsskZjRdw4piLrOxN85QAbT6NOXDgntDUrtu1NjScLRwTsHWmH+lo+Y8CmKER8FgqWI60ch2Uf31WwDx2iEmj1sfTjtFrZeYtXCwOCl0fJdTfc9Ilh/5hhQlI7m+pbhYpH4torEjpXcoCp6Fqho4NqTwERukIrm0VtvhApu3FfBjUDBxzQ39NusHUfUenyHWt8n1XocqPXkDrWezOvck0CtJ0itf8mn89R6Ol+tp4FaW0itnaS0OuFud74hLeodA9ihImkrtJVQxzyHtw848FRRmPgLF25aVsD2oD2LH1BpN/JZoj3Pku15FgCWzwiguZuP7bioHf3SIWvwVoSXKZLjObPgo23rAqx8lS/miPPinuK8YG59EVwE6kRLIHwvUX4vWX4vLL93V/m9sHxqF5TfC8vv3ad8/TJsGwR+B048gmegPocSPaDkzm8knYkfVzolpIhWmBtlML+rBwgumIfvp8mPuUswQz7ozkeE0niE5gh3XnGEEv0rm3MTZUzMyzYkarRblWp1Vfkgy61Ot9UFJ1i3c1SXFFXqdFqdqlgGFqLjGlVwbKF48OhwoWsZzoqXU9+3Ld629LGpfzp4cW1affu6ZDuGVdgc+b7jvS2X/euxZpVsdwh8zCvNN0rOyHkHzkxQ2YFnWH1havYPdvf33rx+tfmy8qLaMSCxPPhunRpiGeeotkxUV3UcyhH8/geS47Ki');
?>
include/config.php
PHP Code:
/*** SupportOtherTribes!? */
/**
* Support members of other tribes
* Makes only sense when 'leave_ally' is disabled.
* true = ALLOWED
* false = FORBIDDEN
*/
$config['eab_support_other_tribes'] = false;
/**
* Support members of allied tribes
* although 'eab_support_other_tribes' is set to FORBIDDEN
* true = ALLOWED ANYWAY
* false = FORBIDDEN TOO
*/
$config['eab_support_allied_tribes'] = true;
templates/game_place_command_eab_supportothertribes.tpl
PHP Code:
<button onclick="history.back();">Go back</button><p>You must not support members of other tribes.</p>