BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: louhours on December 12, 2009, 03:00:39 am
-
I have a raid bot setup and we want to be able to get people to sign up via the raid control. However it spams guild chat with the raid description every 30 sec's how do you change them timer for this? I've tried everywhere and can't seem to find it.
Many thanks in advance.
-
Is it not possible to change this then?
-
I will not make any garantees, but inside raid.php
look for the function cron()
There is a line
if ($this -> announce && $this -> announcel < (time() + 45))
looks like its doing the announce every 45 seconds, play with that value to get what you want.
hope I dont screw you up.
-
If a forums admin could delete my original post on the wrong part of the forums please. It is in this section, but on Anarchy Support ;D I hadn't realised at the time of posting that I wasn't in the AOC section.
I have a raid bot setup in AOC and we want to be able to get people to sign up via the raid control. However it spams guild chat with the raid description every 30 sec's how do you change them timer for this? I've tried everywhere and can't seem to find it.
Many thanks in advance.
I will not make any garantees, but inside raid.php
look for the function cron()
There is a line
if ($this -> announce && $this -> announcel < (time() + 45))
looks like its doing the announce every 45 seconds, play with that value to get what you want.
hope I dont screw you up.
As you can see someone came up with this but it doesn't seem to work. Anyone have any ideas or know how to change it?
-
altera is right.
If you want to get rid of it altogether you need to comment out lines 779 to 788 which should look something like the snippet below. That will get rid of the messages completely. I think it's the 45 value you need to change for the timer itself (but I've not tried that)
if ($this -> announce && $this -> announcel < (time() + 45))
{
if($this -> move > time())
{
$move = $this -> move - time();
$move = ", Move in ##highlight##" . $this -> bot -> core("time") -> format_seconds($move) . " ##end##";
}
$this -> bot -> send_output("", "Raid is running: ##highlight##".$this -> description."##end##".$move, "both");
$this -> announcel = time();
}
-
I have tried to change the 45 value with 3600. So that rather than it spamming Guild chat every 45 seconds, it announces it once per hour. Although I have changed this and it still spams once every 45 seconds.
-
Merged topics.
-
any solution to this?
It's spamming WAY too often
-
Try the following replacement
http://bazaar.launchpad.net/%7Ebebot-devel/bebot/stable-0.6/download/head%3A/raid.php-20090208194736-a929n97ixok8del8-100/Raid.php
That should default to announce every 2 minutes and is adjustable trough settings.
Untested but should do the trick.