|
Joined: May 2006
Posts: 87
Babel fish
|
OP
Babel fish
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.
|
|
|
|
Joined: Dec 2002
Posts: 1,245
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
You might also want to search sites like Hawkee or mIRC Scripting
|
|
|
|
Joined: May 2006
Posts: 87
Babel fish
|
OP
Babel fish
Joined: May 2006
Posts: 87 |
I searched those sites. I found some stuff but nothing with only banning non-voiced member was found.
|
|
|
|
Joined: May 2006
Posts: 2
Bowl of petunias
|
Bowl of petunias
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
|
|
|
|
Joined: May 2006
Posts: 87
Babel fish
|
OP
Babel fish
Joined: May 2006
Posts: 87 |
So where do I add in the nicks of the ops, hops, and voiced?
|
|
|
|
Joined: May 2006
Posts: 2
Bowl of petunias
|
Bowl of petunias
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
|
|
|
|
Joined: May 2006
Posts: 87
Babel fish
|
OP
Babel fish
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?
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
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 ..... }
|
|
|
|
Joined: May 2006
Posts: 87
Babel fish
|
OP
Babel fish
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! }
|
|
|
|
Joined: Oct 2005
Posts: 1,741
Hoopy frood
|
Hoopy frood
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
|
|
|
|
Joined: Dec 2005
Posts: 58
Babel fish
|
Babel fish
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
|
|
|
|
Joined: May 2006
Posts: 87
Babel fish
|
OP
Babel fish
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?
|
|
|
|
Joined: Dec 2005
Posts: 58
Babel fish
|
Babel fish
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
|
|
|
|
Joined: May 2006
Posts: 87
Babel fish
|
OP
Babel fish
Joined: May 2006
Posts: 87 |
What would I put in clone.txt if I used this script?
|
|
|
|
Joined: Dec 2005
Posts: 58
Babel fish
|
Babel fish
Joined: Dec 2005
Posts: 58 |
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
|
|
|
|
|