|
Joined: Feb 2006
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2006
Posts: 31 |
how to /hop and /kick the user wo deoped the bot
this is the first part and now he need to /hop and /kick the use who deoped the bot
on 1:deop:*: { if ($opnick == $me) { /msg $chan 6revance $nick } }
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
on *:deop:#:{
if ($opnick == $me) {
set $+(%,revenge.,$cid,$chan) $nick
hop $chan
}
}
on *:op:#:{
if ($opnick == $me) && ($eval($+(%,revenge.,$cid,$chan),2) ison $chan) {
kick $chan $v1 Don't deop me.
unset $+(%,revenge.,$cid,$chan)
}
} Be warned that if he also has a revenge script you could be flooded off. I think a better alternative would be to be more careful with who you op.
|
|
|
|
Joined: Feb 2006
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2006
Posts: 31 |
if i kick the bot he rejoin the channel than a bot sets op on my bot and he dont kick me
*** shadow sets mode -o on mirc *** mirc has left #shadow *** mirc has joined #shadow *** C sets mode +o on mirc
ty
im one of the 2 on that server who uses bots it is just a server of a game and it has a chat the admin uses bots and i use one the rest dont understand how to make one
Last edited by shadow007; 16/02/06 03:03 PM.
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
What version of mIRC are you using?
|
|
|
|
Joined: Feb 2006
Posts: 95
Babel fish
|
Babel fish
Joined: Feb 2006
Posts: 95 |
on *:op:#:{ if ($opnick == $me) && ($eval($+(%,revenge.,$cid,$chan),2) ison $chan) { kick $chan $v1 Don't deop me. unset $+(%,revenge.,$cid,$chan) } } ..with $v1.. wouldn't that be telling him to kick himself?
-blk-
|
|
|
|
Joined: Feb 2006
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2006
Posts: 31 |
im using the newest version of mirc
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
No. $v1 is $eval($+(%,revenge.,$cid,$chan),2), which is the nick that kicked him.
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
I don't know what to suggest then because this works for me. (16:20:47) <@hixxy> now deop me (16:21:08) * TP sets mode: -o hixxy (16:21:08) * Attempting to rejoin channel #hixxytest (16:21:08) * Rejoined channel #hixxytest (16:21:11) <hixxy> now op me (16:21:15) * TP sets mode: +o hixxy (16:21:15) * TP was kicked by hixxy (Don't deop me.)
|
|
|
|
Joined: Feb 2006
Posts: 31
Ameglian cow
|
OP
Ameglian cow
Joined: Feb 2006
Posts: 31 |
i just started whit mirc a week ago i dont know what jou mean?
can you post the ful script here
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
Put this code in a new file in remote. on *:deop:#:{
if ($opnick == $me) {
set $+(%,revenge.,$cid,$chan) $nick
hop $chan
}
}
on *:op:#:{
if ($opnick == $me) && ($eval($+(%,revenge.,$cid,$chan),2) ison $chan) {
kick $chan $v1 Don't deop me.
unset $+(%,revenge.,$cid,$chan)
}
} Hit Alt+R on your keyboard, in the window that opens (titled "Script Editor") go to the file menu, then click on New. Paste the above script there.
|
|
|
|
Joined: Feb 2006
Posts: 95
Babel fish
|
Babel fish
Joined: Feb 2006
Posts: 95 |
Oh, thought it would use the $opnick
-blk-
|
|
|
|
Joined: Sep 2005
Posts: 2,881
Hoopy frood
|
Hoopy frood
Joined: Sep 2005
Posts: 2,881 |
Nope, $v1/$v2 always use the last comparison in an if statement.
|
|
|
|
Joined: Feb 2006
Posts: 95
Babel fish
|
Babel fish
Joined: Feb 2006
Posts: 95 |
-blk-
|
|
|
|
|