mIRC Home    About    Download    Register    News    Help

Print Thread
#151747 21/06/06 02:12 PM
S
sas22
sas22
S
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
T
Taggnostr
Taggnostr
T
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,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Code:
on 5:text:bot ban *:#:{
  if ($istok(%us,$3,44)) { do whatever }
}

#151750 21/06/06 02:56 PM
S
sas22
sas22
S
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,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
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