I'm the one that asked for it and I like it very much but it needs some settings. If a low base get attacked it generates too much spam.
So I changed the code to only spam if $health = 75 except for Control Tower, it will spam at 75 50 25.
There should be 2 settings imho:
When do we spam for towers/conductors? Never | Always | 75 only
When do we spam for Control Tower? Never | Always | 75 only
For those who want the
untested code I added:
Line 491,
AFTER
function relay_tower_damage($tower, $zone, $health, $attacker = "", $org = "")
{
if (strtolower($this -> bot -> core("settings") -> get("TowerAttack", "RelayTowerDamage")) == "none")
{
return;
}
and
BEFORE
$msg = "The tower##highlight## " . $tower . "##end## in##highlight## " . $zone;
$msg .= "##end## was just reduced to##highlight## " . $health . "##end## % health";
ADD this:
$ctSide = $this -> bot -> core("whois") -> lookup($botname);
if ($tower!="Control Tower - ".$ctSide['faction']) { if ($health!="75") { return; } }