mIRC Home    About    Download    Register    News    Help

Print Thread
#254131 23/07/15 07:16 PM
Joined: Jul 2015
Posts: 42
J
Joveice Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jul 2015
Posts: 42
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 
}

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
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


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jul 2015
Posts: 42
J
Joveice Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jul 2015
Posts: 42
you need to explain a bit more please, im a little new to this

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
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.


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jul 2015
Posts: 42
J
Joveice Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jul 2015
Posts: 42
thank you this worked

Joined: Jul 2015
Posts: 42
J
Joveice Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jul 2015
Posts: 42
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?

Joined: Dec 2013
Posts: 779
N
Hoopy frood
Offline
Hoopy frood
N
Joined: Dec 2013
Posts: 779
That's just how twitch works, no working around it


Nillens @ irc.twitch.tv
Nillen @ irc.rizon.net
Joined: Jul 2015
Posts: 42
J
Joveice Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jul 2015
Posts: 42
ok thank you


Link Copied to Clipboard