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

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

Author Topic: How do you change raid anoucement timer  (Read 2801 times)

0 Members and 1 Guest are viewing this topic.

Offline louhours

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
How do you change raid anoucement timer
« 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.
« Last Edit: December 12, 2009, 11:44:02 am by louhours »

Offline louhours

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: How do you change raid anoucement timer
« Reply #1 on: December 15, 2009, 01:19:12 am »
Is it not possible to change this then?

Offline altera

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: How do you change raid anoucement timer
« Reply #2 on: December 15, 2009, 06:00:21 am »
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.
« Last Edit: December 15, 2009, 06:03:02 am by altera »

Offline louhours

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: How do you change raid anoucement timer
« Reply #3 on: December 17, 2009, 08:36:48 pm »
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?
« Last Edit: December 17, 2009, 08:45:24 pm by louhours »

Offline GBH

  • BeBot Hero
  • ******
  • Posts: 69
  • Karma: +0/-0
Re: How do you change raid anoucement timer
« Reply #4 on: December 18, 2009, 12:02:10 pm »
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)

Code: [Select]
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();
}

Offline louhours

  • BeBot Rookie
  • *
  • Posts: 9
  • Karma: +0/-0
Re: How do you change raid anoucement timer
« Reply #5 on: December 19, 2009, 12:23:38 pm »
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.

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: How do you change raid anoucement timer
« Reply #6 on: December 20, 2009, 12:19:16 am »
Merged topics.
BeBot Founder and Fixer Kingpin

Offline WeZoN

  • Global Moderator
  • *****
  • Posts: 92
  • Karma: +0/-0
Re: How do you change raid anoucement timer
« Reply #7 on: February 16, 2010, 11:28:24 pm »
any solution to this?

It's spamming WAY too often

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: How do you change raid anoucement timer
« Reply #8 on: February 17, 2010, 10:17:20 am »
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.
BeBot Founder and Fixer Kingpin

 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 297
  • 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-2024, SimplePortal