mIRC Home    About    Download    Register    News    Help

Print Thread
mass kick #146484 05/04/06 10:27 AM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
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...


If you mess with the best, u will die like the rest !
Re: mass kick #146485 05/04/06 10:46 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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-
}
}
}
 

Re: mass kick #146486 05/04/06 01:49 PM
Joined: Mar 2005
Posts: 420
X
xDaeMoN Offline
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
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


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Re: mass kick #146487 05/04/06 05:32 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
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

Last edited by PhyxiuS; 05/04/06 06:11 PM.
Re: mass kick #146488 05/04/06 05:36 PM
Joined: Feb 2006
Posts: 164
V
vexed Offline
Vogon poet
Offline
Vogon poet
V
Joined: Feb 2006
Posts: 164
They work fine for me. 6.16

Re: mass kick #146489 05/04/06 05:40 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
doesn't works here...

Last edited by PhyxiuS; 05/04/06 06:03 PM.
Re: mass kick #146490 05/04/06 06:15 PM
Joined: Mar 2005
Posts: 420
X
xDaeMoN Offline
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
What version of mIRC are you using? It works fine with 6.16 & 6.17.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Re: mass kick #146491 05/04/06 06:41 PM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
I'm using Version: 6.15
...
Could u create it that it's usable with version 6.15?


If you mess with the best, u will die like the rest !
Re: mass kick #146492 05/04/06 07:07 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Looks like you could just change $v1 to $ifmatch .. $v1 was a 6.16 addition

Re: mass kick #146493 06/04/06 06:12 AM
Joined: Mar 2005
Posts: 420
X
xDaeMoN Offline
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Yes, that would work for the previous versions.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Re: mass kick #146494 06/04/06 10:00 AM
Joined: Oct 2005
Posts: 126
PhyxiuS Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: Oct 2005
Posts: 126
indeed, it works now wink
-
Well, i'm also using mIRC 6.03... a script i made 3 years ago.
lol !


If you mess with the best, u will die like the rest !