L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 11:47:18 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.5 support > Topic: relay_tower_damage
Pages: [1]   Go Down
« previous next »
Print
Author Topic: relay_tower_damage  (Read 186 times)
0 Members and 1 Guest are viewing this topic.
Nogoal
Rookie
**
Offline Offline

Posts: 61


relay_tower_damage
« on: May 28, 2008, 09:16:18 AM »

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, 09:27:05 AM by Nogoal » Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: relay_tower_damage
« Reply #1 on: May 28, 2008, 09:33:14 AM »

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.
Logged
Nogoal
Rookie
**
Offline Offline

Posts: 61


Re: relay_tower_damage
« Reply #2 on: May 28, 2008, 09:52:41 AM »

That's a good idea but the time the bot cache (tower attack and tower damage) spam should be a setting imho.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.5 support > Topic: relay_tower_damage
« previous next »
 
Jump to:  

Recent
!items database
by Zeephonz
[Today at 08:05:21 PM]

Log playtime from buddys ...
by IKShadow
[Today at 06:48:12 AM]

[request] Raid timers
by Elesar1
[December 01, 2008, 04:41:09 PM]

Shared DB online list
by Temar
[December 01, 2008, 01:55:47 AM]

relay colors
by Temar
[December 01, 2008, 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]
Stats
Members
Total Members: 1244
Latest: Armonkens
Stats
Total Posts: 11146
Total Topics: 1505
Online Today: 25
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 18
Total: 20
FLGuru
Elesar1

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.179 seconds with 28 queries. (Pretty URLs adds 0.023s, 4q)
Loading...