mIRC Home    About    Download    Register    News    Help

Print Thread
#246454 12/06/14 12:01 PM
Joined: Mar 2014
Posts: 214
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 214
I made a script where then jtv notices me "SPECIALUSER [name] subscriber"
Code:
on *:NOTICE:SPECIALUSER & subscriber:?:{
  if ($read(reglist.txt,nw,$2) return
  msg #mark_paintball Welcome $2 $+ ! looks like you're not on the regular list! I am adding you now :)
  write reglist.txt $nick
}

The thing is when it gets noticed here it does not add them to the list or do the message. IS there something wrong in my code?

Joined: Jan 2004
Posts: 1,330
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,330
You're missing a parenthesis in the if statement, there should be errors in your status window about it.

Joined: Mar 2014
Posts: 214
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 214
I fixed the parenthesis (i didn't get an error in status box o_o) but it still isn't triggering the notice.

B
blessing
blessing
B
Are you sure twitch supports notice?
Maybe you need on *:TEXT ?

#246462 12/06/14 03:05 PM
Joined: Mar 2014
Posts: 214
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 214
The window i get it from is a query window, Unless that isn't a notice then my script isn't triggering

B
blessing
blessing
B
query window is msg, not notice.
You need on *:TEXT then.

#246464 12/06/14 03:50 PM
Joined: Mar 2014
Posts: 214
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 214
Thanks, working!

P
patrickplays
patrickplays
P
you need to write $2 into your reglist. $nick will write jtv

#246467 12/06/14 04:41 PM
Joined: Mar 2014
Posts: 214
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 214
Yes i fixed that :P


Link Copied to Clipboard