BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: gpucka on August 12, 2011, 08:56:30 pm
-
Is it possible to have the bot display a message in guild chat every hour or two?
-
You should be able to set up a repeating timer named what ever you want the bot to say.
/tell <yourbot> !help timer
Should get you going in the right spot. I run AO bots, not AoC... but the code for timers is the same I believe.
Shelly
-
You can easily do this with a Cronscript task.
- Copy the cronscripts.php (http://dl.dropbox.com/u/16222891/cronscripts.php) file into your .\php\custom\modules folder
- Download and unpack the cronscripts.rar (http://dl.dropbox.com/u/16222891/cronscripts.rar) into your .\php\custom\modules folder
- Modify the cronscripts.php file on line #27 and #80
- Modify the events.txt file in your .\php\custom\modules\cronscripts folder
- Restart the bot
Thats it, have fun. Dill
-
You should be able to set up a repeating timer named what ever you want the bot to say.
/tell <yourbot> !help timer
Should get you going in the right spot. I run AO bots, not AoC... but the code for timers is the same I believe.
Shelly
I have tried the !rtimer command, it creates a timer for the specified period and the specified repeat time, but never displays anything in guild.
I was guessing that the "Title" is what should have been displayed. I did not see an option on the help screen to enter anything else. This was the create line
!rtimer 02:00:00:00 01:00 Test
When you run the !timer command you see
Timer Test has 02:00:00:00 remaining and is repeated every 01:00:00. Owner <toon> [DELETE]
But no message is ever displayed. Am I missing something on the create line?
-
You can easily do this with a Cronscript task.
- Copy the cronscripts.php (http://dl.dropbox.com/u/16222891/cronscripts.php) file into your .\php\custom\modules folder
- Download and unpack the cronscripts.rar (http://dl.dropbox.com/u/16222891/cronscripts.rar) into your .\php\custom\modules folder
- Modify the cronscripts.php file on line #27 and #80
- Modify the events.txt file in your .\php\custom\modules\cronscripts folder
- Restart the bot
Thats it, have fun. Dill
Think I am missing something here. I see where you create the scripts, but do not see a place where you define an interval to have it repeated.
I will play around with it to see if I can figure it out, or figure out what is missing.
-
OK, so while I was logged on I got nothing from !rtimer, but once I logged out I can see the messages in the cmd window for the bot, it is sending tells to the toon that created the timer.
This was after I deleted the timer....
If I would have just created it with out the tells would it have sent them to guild chat?
-
Think I am missing something here. I see where you create the scripts, but do not see a place where you define an interval to have it repeated.
I will play around with it to see if I can figure it out, or figure out what is missing.
Just read the comment in the cronscripts.php file at line #28 (Modify Timer Intervall).
On line #30 you can set the interval time:
$this->register_event("cron","30min");
-
Missed that in our original post, but got it working.
Still working on adding Links to the post, but it serves the purpose for now
Thanks so much.