mIRC Home    About    Download    Register    News    Help

Print Thread
Continuous repeated message #207294 12/12/08 04:46 PM
Joined: Oct 2008
Posts: 167
S
seanturner70 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
Is there a way to continuously say something.

The reason I am wanting this, it because I am trying to make an advertisement script...

I currently have:
Code:
;--- Menus
menu channel {
  Adverts
  .Set Advert:{ set %ad $$?-"Type your advert in here:" | msg chan <errrmmm...> }
  .Stop:{ unset %ad* }
}


Last edited by seanturner70; 12/12/08 04:50 PM.
Re: Continuous repeated message [Re: seanturner70] #207295 12/12/08 05:50 PM
Joined: Jul 2006
Posts: 3,532
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,532
See the /timer command :

timer 2 10 something

will execute 'something' 2 times with a interval of 10 second.


Last edited by Wims; 12/12/08 06:07 PM.

Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Continuous repeated message [Re: Wims] #207296 12/12/08 05:54 PM
Joined: Oct 2008
Posts: 167
S
seanturner70 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
So is there not a way to make it "unlimited" till stopped?

Re: Continuous repeated message [Re: seanturner70] #207297 12/12/08 06:05 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
try read /help timers


From the help file:

/timer1 0 20 /ame is AWAY!

Timer1 will repeat an all channel action every 20 seconds until you stop the timer.


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: Continuous repeated message [Re: sparta] #207300 12/12/08 07:30 PM
Joined: Oct 2008
Posts: 167
S
seanturner70 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
I currently have this code:
Code:
;--- Menus
menu channel {
  Adverts
  .Set Advert:{ set %ad $$?-"Type your advert in here:" | msg $chan %ad | timer1 0 60 msg $chan %ad }
  .Stop:{ unset %ad* }
}


and all it gives me is:
Quote:
[19:22] <~seanturner70> no.. it won't stop it smirk
[19:22] <~seanturner70> AHHH!!!
* Timer 1 activated
[19:23] <~seanturner70> AHHH!!!
<I click stop>
[19:24] <~seanturner70> AHHH!!!
[19:25] <~seanturner70> AHHH!!!
[19:26] <~seanturner70> AHHH!!!
<I click stop multiple times>
[19:27] <~seanturner70> AHHH!!!
[19:28] <~seanturner70> AHHH!!!



Is there a fault?

Re: Continuous repeated message [Re: seanturner70] #207301 12/12/08 07:34 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
You have to stop the timer too.

Re: Continuous repeated message [Re: 5618] #207302 12/12/08 07:47 PM
Joined: Oct 2008
Posts: 167
S
seanturner70 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
Sorry, but how do I do that?

Re: Continuous repeated message [Re: seanturner70] #207303 12/12/08 08:06 PM
Joined: Sep 2008
Posts: 62
_
_Memo Offline
Babel fish
Offline
Babel fish
_
Joined: Sep 2008
Posts: 62
Read the help file

Re: Continuous repeated message [Re: _Memo] #207305 12/12/08 08:59 PM
Joined: Oct 2008
Posts: 167
S
seanturner70 Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
oh, sorry...

Thanks everyone:)