mIRC Home    About    Download    Register    News    Help

Topic Options
#118238 - 23/04/05 01:52 PM Help in kick script
bathc Offline
Self-satisified door

Registered: 21/04/05
Posts: 3
i want a script which kick random nick & identd
if any person join the channel with random nick or identd
it will kick him/her

thanks

Top
#118239 - 23/04/05 01:55 PM Re: Help in kick script
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Up until this point how will mIRC know what random is. Any examples?

Top
#118240 - 23/04/05 09:05 PM Re: Help in kick script
bathc Offline
Self-satisified door

Registered: 21/04/05
Posts: 3
like: aiurit this nick is random :\
understand?

Top
#118241 - 23/04/05 10:07 PM Re: Help in kick script
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
I understand yes, but how would mIRC know it's a random nickname? More vowels than there is consonants? Not numeric? Only 6 chars long?

Top
#118242 - 23/04/05 10:20 PM Re: Help in kick script
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
As far as mIRC (Or computers in general) is concerned "aiurit" or "dkweyhf" is no more random than "bathc" or "SladeKraven"
You'll have to give us more to go on.
_________________________
New username: hixxy

Top
#118243 - 24/04/05 02:00 AM Re: Help in kick script
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
on *:join:#:{ kick # $nick }

that should cover every random nick <grin>

Top
#118244 - 24/04/05 02:07 AM Re: Help in kick script
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
On @*:Join:#: { kick $chan $nick }

laugh

Top
#118245 - 24/04/05 02:14 AM Re: Help in kick script
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
Wait i read the request again carefully and came up with this

On @*:Join:#: { kick $chan $nick($chan,$rand(1,$nick($chan,0))) }

kick a random nick when a random nick joins the channel Mahahahahahahaha

Top
#118246 - 24/04/05 02:26 AM Re: Help in kick script
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
ROFL genius! :tongue:

Top
#118247 - 25/04/05 03:34 AM Re: Help in kick script
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
I'd feel bad for that person though, everyone else would think they'd get away with murder.

[code]
on @*:Join:#: {
var %x = $nick($chan,0)
while (%x) {
if ($nick($chan,%x) != $me) { kick $chan $nick($chan,%x) }
dec %x
}
}
[code]

Top
#118248 - 25/04/05 05:56 AM Re: Help in kick script
RusselB Offline
Planetary brain

Registered: 03/08/04
Posts: 7252
Loc: Ontario, Canada
Another possibility, based on the original query
Code:
on @*:join:#:{
if $nick == $nick(#,$r(1,$nick(#,0))) .kick $chan $nick
}
 


Randomly picks a nick, then if it's the person that just joined, kicks them

Top
#118249 - 25/04/05 06:00 AM Re: Help in kick script
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
So many possibilities but I bet we're all wrong.

Top
#118250 - 25/04/05 07:25 AM Re: Help in kick script
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
Better yet set the channel to ban everyone

Top
#118251 - 25/04/05 07:44 AM Re: Help in kick script
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Do you mean *!*@* ban to keep everyone out or ban them when they join hehehe.

Top
#118252 - 25/04/05 10:51 AM Re: Help in kick script
DaveC Offline
Planetary brain

Registered: 26/09/03
Posts: 4230
Both if only you could, and seek out any other channel there on your oped and ban them as well and then we could, um what else insanely unfair can i think of.

Top
#118253 - 25/04/05 02:32 PM Re: Help in kick script
SladeKraven Offline
Planetary brain

Registered: 19/12/02
Posts: 3547
Loc: Kent, England
Code:
On @*:Join:#: {
  var %x = $comchan($nick,0)
  while (%x) {
    kick $comchan($nick,%x) $nick
    ;maybe a ban here
    dec %x
  }
}

Top