when using this the script does not work it looks like $chan = null insted of channel name and same with $nick = null insted of nick
Code:
on *:TEXT:!test:#:{
.timertest 1 5 { test # }
.timertest2 1 5 { test2 # }
/halt
}
alias test {
msg $chan alias 1 found $nick
}
alias test2 {
msg $chan alias 2 found $nick
}
You must pass it along. If you're sending values to an alias as such "test #", in the alias $1 will refer to # since it was the first thing you sent forward.
on *:TEXT:!test:#:{
.timertest 1 5 { test # $nick }
.timertest2 1 5 { test2 # $nick }
/halt
}
alias test {
msg $1 alias 1 found $2
;WRONG - msg $chan alias 1 found $nick
}
alias test2 {
var %chan $1
var %nick $2
msg %chan alias 2 found %nick
;WRONG - msg $chan alias 2 found $nick
}
To read more about aliases, type " /help aliases " in your mIRC client. You can also read about variables by typing " /help variables " in the same way. Variables always start with a % in their name.