mIRC Home    About    Download    Register    News    Help

Print Thread
#106785 04/01/05 04:22 AM
Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
hi,can anyone tell me how to make a auto-auth script that active when you join on a specific channel??
please reply! smile


practice makes perfect... smile
#106786 04/01/05 07:47 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
channel?
Code:
on me:*:join:[color:red]#channel[/color]:{
  [color:brown]; Auth command here[/color]
}


Or network?
Code:
on *:connect:{
   if $network == [color:red]NETWORKNAME[/color] {
    [color:brown]; Auth command here[/color]
  }
}

#106787 05/01/05 05:11 AM
Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
ok thanks! smile


practice makes perfect... smile
#106788 08/04/05 02:16 AM
Joined: Feb 2005
Posts: 40
Ameglian cow
Offline
Ameglian cow
Joined: Feb 2005
Posts: 40
how would you do that on multiple channels? not sure how..
Quote:
channel?
Code:
on me:*:join:[color:red]#channel[/color]:{
  [color:brown]; Auth command here[/color]
}


Or network?
Code:
on *:connect:{
   if $network == [color:red]NETWORKNAME[/color] {
    [color:brown]; Auth command here[/color]
  }
}

#106789 18/04/05 11:10 PM
Joined: Oct 2004
Posts: 24
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Oct 2004
Posts: 24
on me:join:*:{
if $chan == #channel {
do your stuff
}
if $chan == #otherchannel {
do other stuff
}
}


the way it's supposed to be !

UnderNet #scripting - #mircscripting
#106790 21/04/05 04:11 PM
Joined: Feb 2005
Posts: 40
Ameglian cow
Offline
Ameglian cow
Joined: Feb 2005
Posts: 40
I mean doing the same command for several different channels that I choose? on join of either #test, #test2, or test #3 say !bot or something?

#106791 21/04/05 04:22 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
On me:*:Join:#: {
  var %x = $lines(chans.txt)
  while (%x) {
    if ($read(chans.txt,%x) == $chan) { commands.. }
    dec %x
  }
}

#106792 04/09/06 03:51 PM
Joined: Oct 2004
Posts: 24
D
Ameglian cow
Offline
Ameglian cow
D
Joined: Oct 2004
Posts: 24
Code:
 
on me*:join:*:{

  if $istok(#chan1 #chan2 #chan3,32) { execute commands for those }

} 


the way it's supposed to be !

UnderNet #scripting - #mircscripting

Link Copied to Clipboard