mIRC Home    About    Download    Register    News    Help

Print Thread
#207294 12/12/08 04:46 PM
Joined: Oct 2008
Posts: 167
S
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.
Joined: Jul 2006
Posts: 4,144
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,144
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.

#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
So is there not a way to make it "unlimited" till stopped?

Joined: Feb 2003
Posts: 3,432
S
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,.) }
Joined: Oct 2008
Posts: 167
S
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?

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
You have to stop the timer too.

Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
Sorry, but how do I do that?

Joined: Sep 2008
Posts: 62
_
Babel fish
Offline
Babel fish
_
Joined: Sep 2008
Posts: 62
Read the help file

Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
oh, sorry...

Thanks everyone:)


Link Copied to Clipboard