mIRC Home    About    Download    Register    News    Help

Print Thread
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

Joined: Dec 2002
Posts: 397
A
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
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.
Joined: Feb 2004
Posts: 714
Z
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
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

Joined: Feb 2004
Posts: 714
Z
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
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

Joined: Feb 2004
Posts: 714
Z
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

Link Copied to Clipboard