mIRC Home    About    Download    Register    News    Help

Print Thread
need help with timed messeges #232304 29/05/11 06:23 PM
Joined: May 2011
Posts: 2
R
r3melite Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: May 2011
Posts: 2
hello everyone. i am kind of new at mirc scripting. basically what i am trying to do is, when someone types for example !timertest, my bot will wait for the amount of time specified and then say messege "this is a test." here is what i have in my remotes.

on *:TEXT:*!timertest*:#: {
timer1 1 5 /msg # this is a test {
}
}


i cannot tell what i am doing wrong.

Re: need help with timed messeges [Re: r3melite] #232305 29/05/11 06:32 PM
Joined: Jun 2003
Posts: 994
C
CtrlAltDel Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Jun 2003
Posts: 994
That works.
Are you by chance trying to trigger it yourself?
It would have to be an ON *:INPUT: command for you to trigger it.


I refuse to engage in a battle of wits with an unarmed person. wink
Re: need help with timed messeges [Re: CtrlAltDel] #232306 29/05/11 06:33 PM
Joined: May 2011
Posts: 2
R
r3melite Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: May 2011
Posts: 2
nope, i'm using another script to try. and i know i would have to use INPUT to see it on the current script.

Re: need help with timed messeges [Re: r3melite] #232313 29/05/11 08:52 PM
Joined: Jul 2007
Posts: 1,129
T
Tomao Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
on *:TEXT:!timertest:#: {
/timer1 1 5 /msg # this is a test
}

Re: need help with timed messeges [Re: Tomao] #232319 30/05/11 06:07 AM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
As Tomao has shown you, you had extra pointless brackets.

Curly brackets or braces are used to open and close an event, alias or comparison. A timer is a command.

Code:
These are reasons to use curly brackets.
on *:EVENT:{ command }
alias test { command }
if ($1 = blah) { command }


As you can see below, commands are one line and can be nested within brackets.

Code:
/command param1 param2 param3
$command(param1,param2,param3)

/timername <N> <N> /command param1 param2 param3
/timername <N> <N> $command(param1,param2,param3)