mIRC Homepage
Posted By: Wombat Deop protection script- Help wanted - 10/09/04 09:19 AM
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
Posted By: ATMA Re: Deop protection script- Help wanted - 10/09/04 11:05 AM
on *:deop:#: {
if (($opnick != $nick) && ($chan != #channel)) {
/msg l op #
/mode # -+ob $nick $address($nick,2)
/kick # $nick
}
}

untested
Posted By: Wombat Re: Deop protection script- Help wanted - 10/09/04 12:06 PM
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
Posted By: Zyzzyx26 Re: Deop protection script- Help wanted - 10/09/04 01:55 PM
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.
Posted By: Wombat Re: Deop protection script- Help wanted - 12/09/04 03:45 PM
nice that people wanna help, eventhough u dont understand me crazy
Posted By: Zyzzyx26 Re: Deop protection script- Help wanted - 12/09/04 03:57 PM
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.

Posted By: Wombat Re: Deop protection script- Help wanted - 15/09/04 02:38 PM
hehe, thnx for the help m8 laugh
Posted By: Zyzzyx26 Re: Deop protection script- Help wanted - 15/09/04 03:07 PM
Glad I could help smile
© mIRC Discussion Forums