mIRC Homepage
Posted By: sas22 Multiple nick variable - 21/06/06 02:12 PM
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) { ... }
}
}
Posted By: Taggnostr Re: Multiple nick variable - 21/06/06 02:27 PM
you can use !isin o $istok and see if the nick is in %us
Posted By: hixxy Re: Multiple nick variable - 21/06/06 02:27 PM
Code:
on 5:text:bot ban *:#:{
  if ($istok(%us,$3,44)) { do whatever }
}
Posted By: sas22 Re: Multiple nick variable - 21/06/06 02:56 PM
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.
Posted By: hixxy Re: Multiple nick variable - 21/06/06 03:02 PM
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- 
}
© mIRC Discussion Forums