collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18371
  • stats Total Topics: 2502
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: relay_tower_damage  (Read 6989 times)

0 Members and 1 Guest are viewing this topic.

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
relay_tower_damage
« 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; } }
« Last Edit: May 28, 2008, 04:27:05 pm by Nogoal »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: relay_tower_damage
« Reply #1 on: May 28, 2008, 04:33:14 pm »
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.

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
Re: relay_tower_damage
« Reply #2 on: May 28, 2008, 04:52:41 pm »
That's a good idea but the time the bot cache (tower attack and tower damage) spam should be a setting imho.

 

* Recent Posts
Bebot in 2025 by bitnykk
[August 21, 2025, 05:17:18 pm ]


0.8.x updates for AoC by bitnykk
[July 16, 2025, 02:51:07 pm ]


0.8.x updates for AO by bitnykk
[July 16, 2025, 02:50:58 pm ]


Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]

* Who's Online
  • Dot Guests: 114
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2025, SimplePortal