BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => AO 0.6 support => Topic started by: Allisande on January 11, 2009, 05:24:36 am

Title: !raid
Post by: Allisande on January 11, 2009, 05:24:36 am
I want to add the ability for the !raid mod to

/gu !raid reward 1

after 1 hour has gone by.  I thought it would be rather easy to have the bot do this command when it does:

if ($this -> announce == 10)
      {
         $this -> bot -> send_output("", "Raid is running for ##highlight##" .
         (((int)((time () - $this -> start) / 60)) + 1) . "##end## minutes now.", "both");
         $this -> announce = 0;
      }

But I keep getting an error when I add it in.  Anyone got any ideas?  I tried to have the !raid mod add points at an interval of .017 every minute but it does not seem to be doing it so I figured this would be an easy fix.

Thanks
Title: Re: !raid
Post by: Temar on January 11, 2009, 05:52:56 am
the raid ticker works fine
possible issues:
- the Points table row for point is set to INT and decimals are now allowed. (check ur table and change if required)
- u havnt unpuased it, when u start a raid the ticker is paused u need to unpause it
SimplePortal 2.3.7 © 2008-2024, SimplePortal