mIRC Home    About    Download    Register    News    Help

Print Thread
Deop protection script- Help wanted #97250 10/09/04 09:19 AM
Joined: Sep 2004
Posts: 4
W
Wombat Offline OP
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Sep 2004
Posts: 4
Hello all!

im trying to learn how to script in mirc, but i have some problem, perhaps some of u can help me with this.
----
on *:deop:#: {
if ($opnick != $nick) ($chan != #channel) {
/msg l op # | /timer 1 2 mode # -o+b $nick $address($nick,2) | /kick # $nick

} }
----
It keeps kicking itself in the end, but banning the person that deoped me.
Whats wrong with it? i cant spot the problem

Re: Deop protection script- Help wanted #97251 10/09/04 11:05 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
on *:deop:#: {
if (($opnick != $nick) && ($chan != #channel)) {
/msg l op #
/mode # -+ob $nick $address($nick,2)
/kick # $nick
}
}

untested

Last edited by ATMA; 10/09/04 11:06 AM.

Need amazing web design for low price: http://www.matrixn3t.net
Re: Deop protection script- Help wanted #97252 10/09/04 12:06 PM
Joined: Sep 2004
Posts: 4
W
Wombat Offline OP
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Sep 2004
Posts: 4
thanx m8, but i it goes too fast so L dosent op me before the script have run the 2 other commands and it ignores a timer if a add one, allso it dosent regenise urself, so if any1 else gets deoped it will ban the one doing the deoping, could be cool if it only worked on me. ill try working on it but surgestions would be nice smile

sorry for any spelling errors

Last edited by Wombat; 10/09/04 12:44 PM.
Re: Deop protection script- Help wanted #97253 10/09/04 01:55 PM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Code:
on [color:red]![/color]*:deop:#: {
if ($opnick != $nick) [color:blue]&&[/color] ($chan != #channel) {
 msg L op # 
 .timer 1 2 mode # -o+b $nick $address($nick,2) 
 kick # $nick
 }
}
The red ! indicates that the script should not be performed if you triggered it, so that will keep you from kicking yourself. I didn't quite understand your last post, about the timer issue, but you can increase the timer if L takes longer to op you.

Hope this can help,
Zyzzyx.


"All we are saying is give peace a chance" -- John Lennon
Re: Deop protection script- Help wanted #97254 12/09/04 03:45 PM
Joined: Sep 2004
Posts: 4
W
Wombat Offline OP
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Sep 2004
Posts: 4
nice that people wanna help, eventhough u dont understand me crazy

Re: Deop protection script- Help wanted #97255 12/09/04 03:57 PM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
If you want the script only to work when some deop you, try this:
Code:
on !*:deop:#: if ($me == $opnick) { msg L # op | .timerDeop 1 3 ban -k $nick $wildsite Don't deop me. }
The -k in the /ban command will kick the person you are banning without having to add the /kick command.

I hope I understood you this time,
Zyzzyx.



"All we are saying is give peace a chance" -- John Lennon
Re: Deop protection script- Help wanted #97256 15/09/04 02:38 PM
Joined: Sep 2004
Posts: 4
W
Wombat Offline OP
Self-satisified door
OP Offline
Self-satisified door
W
Joined: Sep 2004
Posts: 4
hehe, thnx for the help m8 laugh

Re: Deop protection script- Help wanted #97257 15/09/04 03:07 PM
Joined: Feb 2004
Posts: 714
Z
Zyzzyx26 Offline
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Glad I could help smile


"All we are saying is give peace a chance" -- John Lennon