mIRC Homepage
Posted By: Joveice problem with alias - 23/07/15 07:16 PM
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 
}
Posted By: Nillen Re: problem with alias - 23/07/15 07:20 PM
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.

Another example: "test hello # $nick" $1 = hello, $2 = #, $3 = $nick
Posted By: Joveice Re: problem with alias - 23/07/15 07:21 PM
you need to explain a bit more please, im a little new to this
Posted By: Nillen Re: problem with alias - 23/07/15 07:25 PM
Using your example:
Code:
 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.
Posted By: Joveice Re: problem with alias - 23/07/15 07:28 PM
thank you this worked
Posted By: Joveice Re: problem with alias - 23/07/15 07:42 PM
Also when the bot checks for JOIN and PART its really delayed, is this just that its delayed or do i need to change some settings?
Posted By: Nillen Re: problem with alias - 23/07/15 07:56 PM
That's just how twitch works, no working around it
Posted By: Joveice Re: problem with alias - 23/07/15 07:56 PM
ok thank you
© mIRC Discussion Forums