mIRC Homepage
Posted By: Sableye2 clone kicker script wanted - 28/05/06 04:39 AM
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.
Posted By: MikeChat Re: clone kicker script wanted - 28/05/06 04:56 AM
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
Posted By: RusselB Re: clone kicker script wanted - 28/05/06 05:39 AM
You might also want to search sites like Hawkee or mIRC Scripting
Posted By: Sableye2 Re: clone kicker script wanted - 28/05/06 01:41 PM
I searched those sites. I found some stuff but nothing with only banning non-voiced member was found.
Posted By: stu1818 Re: clone kicker script wanted - 28/05/06 02:40 PM
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
Posted By: Sableye2 Re: clone kicker script wanted - 28/05/06 02:43 PM
So where do I add in the nicks of the ops, hops, and voiced?
Posted By: stu1818 Re: clone kicker script wanted - 29/05/06 12:20 AM
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
Posted By: Sableye2 Re: clone kicker script wanted - 29/05/06 01:35 AM
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?
Posted By: genius_at_work Re: clone kicker script wanted - 29/05/06 01:48 AM
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 .....
}
Posted By: Sableye2 Re: clone kicker script wanted - 29/05/06 02:48 AM
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!
}
Posted By: genius_at_work Re: clone kicker script wanted - 29/05/06 02:07 PM
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
Posted By: SCNDRL Re: clone kicker script wanted - 29/05/06 02:34 PM
ban -ku30 $chan $wildsite No clones
kick # $nick 8,4Clones are not allowed!
/ban -k means /kick Why did u Use Kick Command ,p
Posted By: Sableye2 Re: clone kicker script wanted - 29/05/06 02:49 PM
Thank you. Do I have to add in the names for the clones, or just the names of the people who are using clones?
Posted By: SCNDRL Re: clone kicker script wanted - 29/05/06 02:59 PM
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..
Posted By: Sableye2 Re: clone kicker script wanted - 29/05/06 03:45 PM
What would I put in clone.txt if I used this script?
Posted By: SCNDRL Re: clone kicker script wanted - 30/05/06 02:36 PM
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
© mIRC Discussion Forums