• Home
  • Servers
  • Chat
  • Channels
  • Commands
  • Forum
  • FAQ
  • Software
  • Quotes
Topic Options
Rate This Topic
#5490 - 07/23/09 09:36 PM Repeat Script
Craighton Offline
newbie

Registered: 04/05/09
Posts: 31
Loc: Seattle, Washington
I'm looking for a script that when I activate it it will repeat a text message every 5 to minutes

Got anything?
_________________________
Tell me and I'll forget, show me and I may remember, involve me and I'll understand.

Top
Sponsored Links
Sponsored Links
Member
*****

Registered: 27/08/04
Posts: 10136
Loc: Mountain View, CA
Top
#5572 - 08/08/09 02:04 PM Re: Repeat Script [Re: Craighton]
FordLawnmower Offline
Over 100 posts

Registered: 02/15/09
Posts: 111
Loc: Ohio
Try this Craighton.
The syntax is /repeat #channel NumberOfTimes DelayInSeconds Message.
For instance /repeat #USA 10 300 Hello World!
This will say Hello World! in channel #USA on the current network, 10 times with a 300 second delay. To Repeat a message an infinite number or times just replace the 10 with 0.
To turn off the message for a channel type /repeat #channel off
To turn off all messages type /repeat off
Code:
alias repeat {
  if ($1 == off) { .timer $+ repeat* off | echo -at All Repeat timers are off | return }
  if ($2 == off) { .timer $+ $+(repeat,$network,$1) $2 | echo -at Repeat timer for $1 is now off | return }
  if (!$4) || ($2 !isnum) || ($3 !isnum) { echo -a Syntax Error - Syntax Example: /repeat #USA 0 300 Hello there | return }
  $iif($1 ischan,msg $1,echo -st) $4-
  .timer $+ $+(repeat,$network,$1) $2-3 repeat $1-
}
_________________________
If you already know everything, You can never learn anything :P

Top


Moderator:  Jeff, mandy, usrbingeek