BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => BeBot 0.5 support => Topic started by: Nogoal on May 28, 2008, 04:16:18 pm
-
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; } }
-
Another idea would be to cache the damage spam for towers like it's done with tower attack spam already, while always (or use a setting here) report damage to the CT. Spamming collected spam once per minute top should report enough information while reducing the spam noticeable.
-
That's a good idea but the time the bot cache (tower attack and tower damage) spam should be a setting imho.