mIRC Homepage
Posted By: r3melite need help with timed messeges - 29/05/11 06:23 PM
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.
Posted By: CtrlAltDel Re: need help with timed messeges - 29/05/11 06:32 PM
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.
Posted By: r3melite Re: need help with timed messeges - 29/05/11 06:33 PM
nope, i'm using another script to try. and i know i would have to use INPUT to see it on the current script.
Posted By: Tomao Re: need help with timed messeges - 29/05/11 08:52 PM
Code:
on *:TEXT:!timertest:#: {
/timer1 1 5 /msg # this is a test
}
Posted By: DJ_Sol Re: need help with timed messeges - 30/05/11 06:07 AM
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)
© mIRC Discussion Forums