mIRC Home    About    Download    Register    News    Help

Print Thread
clone kicker script wanted #150095 28/05/06 04:39 AM
Joined: May 2006
Posts: 87
S
Sableye2 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
Hello,
I am requesting for a script that kicks non-voiced users when they have clones, however I want the ops, hops, and voiced users to remain safe.

Here's what I prefer to have in the script:

Non-voiced clone kick/ban
I would like the ban to be 1 minute
A ban reason

Thanks in advance.

Re: clone kicker script wanted #150096 28/05/06 04:56 AM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
have you tried the search feature on the forum?

search for clone in the scripts and popups forum and expand the date range to 5 years

Re: clone kicker script wanted #150097 28/05/06 05:39 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
You might also want to search sites like Hawkee or mIRC Scripting

Re: clone kicker script wanted #150098 28/05/06 01:41 PM
Joined: May 2006
Posts: 87
S
Sableye2 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
I searched those sites. I found some stuff but nothing with only banning non-voiced member was found.

Re: clone kicker script wanted #150099 28/05/06 02:40 PM
Joined: May 2006
Posts: 2
S
stu1818 Offline
Bowl of petunias
Offline
Bowl of petunias
S
Joined: May 2006
Posts: 2
on @*:join:#channel: {
if { opnick isin $nick } { goto end }
if ($ialchan($wildsite,#,0) > 1) { var %x = 1 | while ($ialchan($wildsite,#,%x).nick) { if ($ifmatch isop #) return | inc %x }
ban -ku600 $chan $wildsite No clones
kick # $nick No CLONES ALLOWED
:end
}
}


Just add the nicks of the ops, halfops, voiced users to the list at the top, (this script worked fine for me for 3 years), if their nick is random, say [test]-1 etc, then where it has isin change it to iswm and have [test]* as the nick

Re: clone kicker script wanted #150100 28/05/06 02:43 PM
Joined: May 2006
Posts: 87
S
Sableye2 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
So where do I add in the nicks of the ops, hops, and voiced?

Re: clone kicker script wanted #150101 29/05/06 12:20 AM
Joined: May 2006
Posts: 2
S
stu1818 Offline
Bowl of petunias
Offline
Bowl of petunias
S
Joined: May 2006
Posts: 2
on @*:join:#channel: {
if { opnick isin $nick } { goto end }
^^ change this to the nick you want to exempt
just add a new if { nick isin $nick } { goto end } line for each nick

Re: clone kicker script wanted #150102 29/05/06 01:35 AM
Joined: May 2006
Posts: 87
S
Sableye2 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
So it would be something like this?

on @*:join:#channel: {
if { Sableye isin $nick } { goto end }
if { Sableye isin $nick } { goto end }
if { Sableye isin $nick } { goto end }
if { Sableye isin $nick } { goto end }
if ($ialchan($wildsite,#,0) > 1) { var %x = 1 | while ($ialchan($wildsite,#,%x).nick) { if ($ifmatch isop #) return | inc %x }
ban -ku600 $chan $wildsite No clones
kick # $nick No CLONES ALLOWED
:end
}
}

And I would just replace "Sableye" with the names of the different nicks?

Re: clone kicker script wanted #150103 29/05/06 01:48 AM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
instead of "goto end" you can use "return" to escape from the script without going any further. Example:

[code]

on join...... {
if (nick1 isin $nick) return
if (nick2 isin $nick) return
if (nick3 isin $nick) return

ban -k .....
}

Re: clone kicker script wanted #150104 29/05/06 02:48 AM
Joined: May 2006
Posts: 87
S
Sableye2 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
Okay so I tried out your code genius_at_work. Do I have to add names for the clones too, or just the names of the main users? I added my name to the list and when I used a test account to join my channel, the test account got banned.
Here is the code that I am using:

on @*:join:#pokenightmare: {
if (Sableye isin $nick) return
if (nick2 isin $nick) return
if (nick3 isin $nick) return
ban -ku30 $chan $wildsite No clones
kick # $nick 8,4Clones are not allowed!
}

Re: clone kicker script wanted #150105 29/05/06 02:07 PM
Joined: Oct 2005
Posts: 1,741
G
genius_at_work Offline
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
That code looks like it should work. Make sure that you don't have any previous versions of the code above that one. During testing, you may try changing the kick message somehow so you can be sure that the right code is activating. For example, make the kick message appear in blue instead of black, or add a reference number/letter/word to the end of the kick message. Once the code is working exactly how you want, you can remove the extra bits from the message.

-genius_at_work

Re: clone kicker script wanted #150106 29/05/06 02:34 PM
Joined: Dec 2005
Posts: 58
S
SCNDRL Offline
Babel fish
Offline
Babel fish
S
Joined: Dec 2005
Posts: 58
ban -ku30 $chan $wildsite No clones
kick # $nick 8,4Clones are not allowed!
/ban -k means /kick Why did u Use Kick Command ,p


i like that
Re: clone kicker script wanted #150107 29/05/06 02:49 PM
Joined: May 2006
Posts: 87
S
Sableye2 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
Thank you. Do I have to add in the names for the clones, or just the names of the people who are using clones?

Re: clone kicker script wanted #150108 29/05/06 02:59 PM
Joined: Dec 2005
Posts: 58
S
SCNDRL Offline
Babel fish
Offline
Babel fish
S
Joined: Dec 2005
Posts: 58
on !@*:join:#channel: {
if (Sableye isin $nick) { return }
if ($ialchan($wildsite,#,0) > 1) { var %x = 1 | while ($ialchan($wildsite,#,%x).nick) { if ($ifmatch isop #) return | inc %x }
ban -ku600 $chan $wildsite No clones
write clones.txt $nick
return
}
if ($read(clones.txt,w,$nick)) { ban -ku600 $chan $wildsite CLone Nick }
}
i didnt try but it can run..


i like that
Re: clone kicker script wanted #150109 29/05/06 03:45 PM
Joined: May 2006
Posts: 87
S
Sableye2 Offline OP
Babel fish
OP Offline
Babel fish
S
Joined: May 2006
Posts: 87
What would I put in clone.txt if I used this script?

Re: clone kicker script wanted #150110 30/05/06 02:36 PM
Joined: Dec 2005
Posts: 58
S
SCNDRL Offline
Babel fish
Offline
Babel fish
S
Joined: Dec 2005
Posts: 58
Code:
on !@*:join:*: {
  .ial on  
  if (Sableye isin $nick) { return }
  if ($ialchan($wildsite,#,0) > 1) {
    var %x 1 
    while $ialchan($wildsite,#,0) >= %x {
      if ($ialchan($wildsite,#,%x) isop #) { return }
      ban -u600 $chan $wildsite
      kick $chan $ialchan($wildsite,#,%x).nick No CLoneS!         
      write clones.txt $ialchan($wildsite,#,%x).nick
      inc %x    
    } 
    return  
  }
  if ($read(clones.txt,w,$nick)) { ban -ku600 $chan $wildsite CLone Nick }
}

try this this cOde Add nickS Auto.. if you want add nick with manual use this command... /help /write


i like that