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.
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
You might also want to search sites like
Hawkee or
mIRC Scripting
I searched those sites. I found some stuff but nothing with only banning non-voiced member was found.
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
So where do I add in the nicks of the ops, hops, and voiced?
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
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?
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 .....
}
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!
}
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
ban -ku30 $chan $wildsite No clones
kick # $nick 8,4Clones are not allowed!
/ban -k means /kick Why did u Use Kick Command ,p
Thank you. Do I have to add in the names for the clones, or just the names of the people who are using clones?
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..
What would I put in clone.txt if I used this script?
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