mIRC Home    About    Download    Register    News    Help

Print Thread
#142177 16/02/06 02:42 PM
Joined: Feb 2006
Posts: 31
S
Ameglian cow
OP Offline
Ameglian cow
S
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 } }


if someone has some nice scrips send them to
Triforce-wisdome@hotmail.com
#142178 16/02/06 02:48 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
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.

#142179 16/02/06 02:57 PM
Joined: Feb 2006
Posts: 31
S
Ameglian cow
OP Offline
Ameglian cow
S
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.

if someone has some nice scrips send them to
Triforce-wisdome@hotmail.com
#142180 16/02/06 04:06 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
What version of mIRC are you using?

#142181 16/02/06 04:06 PM
Joined: Feb 2006
Posts: 95
B
blk Offline
Babel fish
Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
Quote:
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-
#142182 16/02/06 04:11 PM
Joined: Feb 2006
Posts: 31
S
Ameglian cow
OP Offline
Ameglian cow
S
Joined: Feb 2006
Posts: 31
im using the newest version of mirc


if someone has some nice scrips send them to
Triforce-wisdome@hotmail.com
#142183 16/02/06 04:15 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
No. $v1 is $eval($+(%,revenge.,$cid,$chan),2), which is the nick that kicked him.

#142184 16/02/06 04:20 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
I don't know what to suggest then because this works for me.

Quote:
(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.)

#142185 16/02/06 04:21 PM
Joined: Feb 2006
Posts: 31
S
Ameglian cow
OP Offline
Ameglian cow
S
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


if someone has some nice scrips send them to
Triforce-wisdome@hotmail.com
#142186 16/02/06 04:23 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Put this code in a new file in remote.

Code:
on *:deop:#:{ 
  if ($opnick == $me) {
    set $+(%,revenge.,$cid,$chan) $nick
    hop $chan
  }
}
on *:op:#:{
  if ($opnick == $me) &amp;&amp; ($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.

#142187 16/02/06 04:56 PM
Joined: Feb 2006
Posts: 95
B
blk Offline
Babel fish
Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
Oh, thought it would use the $opnick


-blk-
#142188 16/02/06 05:04 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Nope, $v1/$v2 always use the last comparison in an if statement.

#142189 16/02/06 05:06 PM
Joined: Feb 2006
Posts: 95
B
blk Offline
Babel fish
Offline
Babel fish
B
Joined: Feb 2006
Posts: 95
oh, ok :tongue:


-blk-

Link Copied to Clipboard