mIRC Home    About    Download    Register    News    Help

Topic Options
#262825 - 11/04/18 01:22 PM Looking for a timer script
Hazman Offline
Pikka bird

Registered: 13/12/16
Posts: 15
does anyone have a script that sends a command to a channel at specific times?

Top
#262826 - 12/04/18 06:11 AM Re: Looking for a timer script [Re: Hazman]
KindOne Offline
Fjord artisan

Registered: 23/02/11
Posts: 300
Can you be more specific on "specific times"? At 3AM every morning or every X amount of seconds?

You can find some examples and a bit of help on the syntax here, https://en.wikichip.org/wiki/mirc/commands/timer
_________________________
irc.swiftirc.net #msl (mIRC Scripting Language)

Top
#262842 - 13/04/18 02:36 PM Re: Looking for a timer script [Re: KindOne]
Hazman Offline
Pikka bird

Registered: 13/12/16
Posts: 15
Originally Posted By: KindOne
Can you be more specific on "specific times"? At 3AM every morning or every X amount of seconds?

You can find some examples and a bit of help on the syntax here, https://en.wikichip.org/wiki/mirc/commands/timer


I'm still new to mirc, basically a script that would post a message every 5 minutes.

Top
#262843 - 13/04/18 03:07 PM Re: Looking for a timer script [Re: Hazman]
EggFriedCheese Offline
Ameglian cow

Registered: 17/09/13
Posts: 28
Hey Hazman.

You already have a command to your disposal, built into mIRC

For example, if you wanted it to post 1 message every 5 minutes, I would use the following:

Quote:
on $*:TEXT:!announce on:#:{
if (%announce) { return } | set -u15 %announce On | /timerannounce 0 300 .msg # This message will post to your channel every 5 minutes }

on $*:TEXT:!announce off:#:{
set -u15 %announce On | /timerannounce off }


Let me know if this helps smile


Edited by EggFriedCheese (13/04/18 03:40 PM)
Edit Reason: Amended 2nd part of code
_________________________
Twitch Live-Streamer - Current Games:
FF7
D&D (DM)
www.twitch.tv/eggfriedcheese

Top
#262845 - 13/04/18 03:27 PM Re: Looking for a timer script [Re: EggFriedCheese]
Hazman Offline
Pikka bird

Registered: 13/12/16
Posts: 15
Yeah that seems to be the script i'm looking for, i'll let you know if it works. ty smile

Top