mIRC Homepage

kick script

Posted By: aZnLupin

kick script - 07/04/03 10:16 AM

i need script kick all user on channel if [away] word ison user's nick (single - start - end).
can somebody help me
Posted By: c0ldfusi0n

Re: kick script - 07/04/03 10:39 AM

alias checkaway {
var %users = $nick($1,0), %e = 1
while (%users >= %e) {
if (away isin $nick) { .kick $1 $nick Being away is, for some mysterious reason(s) not tolerated in $1 | .mode $1 +b $nick $+ !*@* | inc %e 1}
else { inc %e 1 }
}
}

Menu channel {
-
Check away:/checkaway #
}
Posted By: SladeKraven

Re: kick script - 07/04/03 10:58 AM

Try

Code:

on *:NICK: { if (away isin $newnick) { kcomchans $newnick }
}

on *:JOIN:#: {
if (away isin $nick) { kcomchans $nick }
}

alias kcomchans {
var %findchans = $comchan( $1, 0 )
var %findchan = 1
while ( %findchan <= %findchans ) { //cs op $comchan( $1, %findchan ) $me
if ( $me isop $comchan( $1, %findchan )) { //kick $comchan( $1, %findchan ) $1 }
inc %findchan
}
}

Posted By: aZnLupin

Re: kick script - 07/04/03 12:22 PM

that mean i need /wkick $$1 to kick all user if all that user have $$1 ison tha nick.
ex:
  • /wkick away -=> kick all nick who have away word ison the nick
    /wkick sex -=> kick all nick who have away word ison the nick
    /wkick myword -=> kick all nick who have myword word ison the nick

all that i need wink
Posted By: Collective

Re: kick script - 07/04/03 12:31 PM

Code:
alias wkick {
  var %n = 1
  while ( $nick(#,%n) ) {
    if ( $$1 isin $nick(#,%n) ) {
      kick # $nick(#,%n)
    }
    inc %n
  }
}
Posted By: aZnLupin

Re: kick script - 07/04/03 12:46 PM

great!
Posted By: aZnLupin

Re: kick script - 07/04/03 01:00 PM

how can i no kick myself if myword ison mynick ?
Posted By: aZnLupin

Re: kick script - 07/04/03 01:35 PM

somebody help meeeeeeeeeeeeeee ?
Posted By: Collective

Re: kick script - 07/04/03 01:36 PM

Code:
alias wkick {
  var %n = 1
  while ( $nick(#,%n) ) {
    if ( $$1 isin $nick(#,%n) ) && ( $nick(#,%n) != $me ) {
      kick # $nick(#,%n)
    }
    inc %n
  }
}

Posted By: aZnLupin

Re: kick script - 07/04/03 01:47 PM

thankssssssssssssssssss
© 2019 mIRC Discussion Forums