mIRC Homepage
Posted By: gomp Op - 02/08/06 05:55 AM
I got this dude that keeps oping me in a channe i am in, and I do not want op in that channel. How can I deope myself, whenerver I get op?
Posted By: RusselB Re: Op - 02/08/06 06:18 AM
Code:
 on *:op:#:$iif($opnick == $me,.mode $chan -o $me) 


Please note that as written, you will not be able to maintain full ops status in any channel. If this is for one specific channel, change # to the channel name or names separated by commas
Posted By: gomp Re: Op - 02/08/06 06:27 AM
Thank you!
Posted By: gomp Re: Op - 06/08/06 12:04 PM
How would I do thiswith +v as well?
I mean, one that keeps the op, but removes the +, when somone set it.

confused
Posted By: KingTomato Re: Op - 06/08/06 07:49 PM
on @*:VOICE:#: { if ($vnick == $me) /mode $chan -v $me }
Posted By: gomp Re: Op - 06/08/06 09:54 PM
Thank you! laugh

I am starting to start to elarnt his coding.

This is fun! wink
Posted By: gomp Re: Op - 07/08/06 05:02 AM
The thing is:


When I join a channel, this person there, gives automatic voice..

That did not help. (against it)

Is there a way to have me devoice myself in any "spesified" channel, whenever I get op-ed?

confused

I might use; on *:op:#:$iif($opnick == $me,.mode $chan -v $me)

But thank you for any replys! wink
Posted By: landonsandor Re: Op - 07/08/06 04:03 PM
you can use:

Code:
on @*:voice:#: {
  if ($vnick == $me) { mode # -v $me }
}


to deop yourself on ALL channels you are opped on if you get voiced and you want want it
Posted By: gomp Re: Op - 07/08/06 05:45 PM
I used

on *:op:#utvikling:$iif($opnick == $me,.mode $chan -v $me)

As it it only on/in that channel...

Now, I got a bot, named gomp, too.. Can I somehow make that include/devoise it too?

Like

on *:op:#utvikling:$iif($gomp == $gomp,.mode $chan -v $gomp)

confused
Posted By: landonsandor Re: Op - 07/08/06 09:40 PM
If your bot is a mirc bot you can use the same code. If you want your bot, named Gomp to devoice itself when it gets voice if opped, you can use the same code I gave you above. if you're looking to use "if I get opped devoice myself", then you can use:

Code:
on *:op:#utvikling: {
  if (($opnick == $me) && ($me isvoice #)) { mode # -v $me }
}


That would go in your BOT'S ALT + R. If YOU want to devoice your BOT instead of it doing it for itself, you would do:

Code:
on *:op:#utvikling: {
  if (($opnick == gomp) && (gomp isvoice #)) { mode # -v gomp }
}


you could also do this if you want to be the one to monitor you both:

Code:
on *:op:#utvikling: {
  if (($opnick == gomp) || ($opnick == $me) && ($opnick isvoice #)) { mode # -v $nick }
}
Posted By: gomp Re: Op - 08/08/06 09:36 AM
Sorry, that was just confusing...


I want to -v gomp, when ever someone give it a +v ...
Posted By: landonsandor Re: Op - 08/08/06 02:08 PM
Code:
on @*:voice:#channel: {
  if ($vnick == gomp) { mode # -v gomp }
}
Posted By: gomp Re: Op - 09/08/06 12:20 AM
Thnak you, and sorry for not understanding. smile
Posted By: landonsandor Re: Op - 09/08/06 04:14 PM
no problem, glad to be of help
© mIRC Discussion Forums