mIRC Home    About    Download    Register    News    Help

Print Thread
#151747 21/06/06 02:12 PM
Joined: Jun 2006
Posts: 58
S
sas22 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2006
Posts: 58
I want to use multiple nicks in a var in one of my scripts for instance

%us $me,nick2,nick3
Then the code would be

on 5:text:*Bot ban*:#:{ if ($3 != %us) { ... } { if ($3 == %us) { ... }
}
}

#151748 21/06/06 02:27 PM
Joined: May 2006
Posts: 93
Babel fish
Offline
Babel fish
Joined: May 2006
Posts: 93
you can use !isin o $istok and see if the nick is in %us

#151749 21/06/06 02:27 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on 5:text:bot ban *:#:{
  if ($istok(%us,$3,44)) { do whatever }
}

#151750 21/06/06 02:56 PM
Joined: Jun 2006
Posts: 58
S
sas22 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: Jun 2006
Posts: 58
Quote:
Code:
on 5:text:bot ban *:#:{
  if ($istok(%us,$3,44)) { do whatever }
}

on 10:text:*Byakuya kill*:#:{ if ($3 != %us) { ban -k $chan $3 $4- } { if ($3 == %us) { ban -k $chan $nick Nice try but my master is Zolo ;-) }
}
}
Now when I use the $istok and try to ban the bot is does what its supposed to do but when I issue a kick on one of the nicks in the var it does it..I want it to kick me when I use one of those nicks.

#151751 21/06/06 03:02 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on 5:text:bot ban *:#:{
  if ($istok(%us,$3,44)) kick $chan $nick Nice try but my master is Zolo ;-)
  else ban -k $chan $3 2 $4- 
}


Link Copied to Clipboard