mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2011
Posts: 2
R
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.

Joined: Jun 2003
Posts: 994
C
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
Joined: May 2011
Posts: 2
R
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.

Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Code:
on *:TEXT:!timertest:#: {
/timer1 1 5 /msg # this is a test
}

Joined: Jan 2007
Posts: 1,156
D
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)


Link Copied to Clipboard