mIRC Homepage
Posted By: PhyxiuS mass kick - 05/04/06 10:27 AM
Hi, my first mass-kick was on a "INPUT" ...
Now i changed it to this, but, when i type /masskick or /masskick #chan, it just don't react
-
i changed [censored], and now it just don't give any reactions.
-
When i type '/masskick' it just has to start in the channel i am.

Code:
alias masskick {
  if ($me isop #) {
    var %x = $nick(#,0)
    while (%x) {
      if ($nick(#,%x) isreg # || ($nick(#,%x) isvoice # && $nick(#,%x) !isop #)) kick # $nick(#,%x) $3-
      dec %x
    }
  }
}


Maybe someone can fix...
Posted By: RusselB Re: mass kick - 05/04/06 10:46 AM
Replace your # with $1 and ensure that you specify the channel when using the /masskick command.

Using /masskick without a channel will not work.

Also it looks like you're kicking everyone except ops, so here's an alternative
Code:
 alias masskick {
if $1 !ischan { echo -a You aren't on $1 }
elseif ($me !isop $1) { echo -a You don't have ops on $1 }
else {
while $nick($1,0,a,o) {
kick $1 $nick($1,1,a,o) $2-
}
}
}
 
Posted By: xDaeMoN Re: mass kick - 05/04/06 01:49 PM
Code:
 alias masskick {
  var %c = $iif($1 ischan,$1,#)
  if ($me isop %c) {
    var %x = $nick(%c,0,a,o)
    while (%x) {
      if ($nick(%c,%x,a,o)) kick %c $v1 $iif(#* iswm $1,$2-,$1-)
      dec %x
    }
  }
} 


Syntax: /masskick [#channel/message] [message]

/masskick #channel message <- specified channel
/masskick message <- current channel
Posted By: PhyxiuS Re: mass kick - 05/04/06 05:32 PM
xDaemon
When i do this:
/masskick #TEZTJE
reaction: [20:07:49] No such nickname: No
-
When i do this:
/masskick #TEZTJE TEST
reaction: [20:08:35] test #TEZTJE They aren't on that channel
-
When i do this:
/masskick lol, testing
reaction: [20:09:03] No such nickname: lol,
-
When i do this:
/masskick #teztje User`1337
reaction: [20:06:41] «« @User`1337 has been kicked by xTc|Test4h.

______________-
... weird
Posted By: vexed Re: mass kick - 05/04/06 05:36 PM
They work fine for me. 6.16
Posted By: PhyxiuS Re: mass kick - 05/04/06 05:40 PM
doesn't works here...
Posted By: xDaeMoN Re: mass kick - 05/04/06 06:15 PM
What version of mIRC are you using? It works fine with 6.16 & 6.17.
Posted By: PhyxiuS Re: mass kick - 05/04/06 06:41 PM
I'm using Version: 6.15
...
Could u create it that it's usable with version 6.15?
Posted By: mIRCManiac Re: mass kick - 05/04/06 07:07 PM
Looks like you could just change $v1 to $ifmatch .. $v1 was a 6.16 addition
Posted By: xDaeMoN Re: mass kick - 06/04/06 06:12 AM
Yes, that would work for the previous versions.
Posted By: PhyxiuS Re: mass kick - 06/04/06 10:00 AM
indeed, it works now wink
-
Well, i'm also using mIRC 6.03... a script i made 3 years ago.
lol !
© mIRC Discussion Forums