Thanks. (Voice & Op)

By Vortex on Sep 24, 2005

Just another thank's for Voice or Op. You can customize it however you want. Even though it's kinda pointless to have one, just decided to make one out of my free time from being bored.
Paste in remotes ( Alt+R ).
[So when you get a voice it'll say 12 15Thanks15 15for15 15the15 15+15 %vnick 12 | And with Op: 12 15Thanks15 15for15 15the15 15@15 %opnick 12]

Comments

Sign in to comment.
Jethro   -  Oct 29, 2009

Instead of using the op and voice event, you can use $mode().op and $mode().voice identifiers like so:

on @*:RAWMODE:#: {
  if ($mode(1).op == $me) || ($mode(1).voice == $me) {
    msg # $iif($1 === +o,I opped myself.,$iif($1 === +v,I voiced myself.))
  }
  elseif ($mode(1).op) || ($mode(1).voice) {
    msg # $iif($1 === +o,Thanks for the $v2 $nick $+ !,$iif($1 === +v,Thanks for the $v2 $nick $+ !))
  }
}

This performs the exact, same function. I did, however, remove the color control codes.

 Respond  
csc2ya2   -  Oct 29, 2009

Looks like you missed a bit:

on :Op:#:{
if ($opnick == $me) && ($nick == $me) msg $chan I opped myself.
else if ($opnick == $me) msg $chan Thanks for the op $nick
}
on
:Voice:#:{
if ($vnick == $me) && ($nick == $me) msg $chan I voiced myself.
else if ($vnick == $me) msg $chan Thanks for the voice $nick
}

Without the if ($opnick == $me) and if ($vnick == $me) parts in the else statement, it thanks when anyone gets op or voice, which is probably not what you want.

I know this is an old snippet by the way....i'm just pointing this out in case anyone comes across it and decides to use it like I did the other day.

I also edited out the colours and changed the + and @ parts to suit my own use.

 Respond  
Naemuti   -  May 10, 2006

Um...you could just do an On Rawmode event and then have if statements for all of the +-vhoaq. Of course, this will only work on servers with vhoaq, but most do.

if ($1 == +v)
elseif ($1 == +h)

etc...

 Respond  
Raid   -  Oct 12, 2005

oops wrong bottom part :\

on *:voice:#: {
if ($vnick == $me ) {halt}

 Respond  
xDaeMoN   -  Oct 12, 2005

@ Raid, that won\'t work since $opnick is not an identifier in an On Voice event.

 Respond  
Raid   -  Oct 12, 2005

I added this when I made one of these.

on *:voice:#: {
if ($opnick == $me ) {halt}

That way it doesn\'t flood so bad when you get opped.

 Respond  
Vortex   -  Sep 27, 2005

Oh, yes I just noticed that. Heh heh my bad. Yeah thank\'s, AndrewMiller17

 Respond  
AndrewMiller17   -  Sep 27, 2005

Looks like you forgot to add the on *:op:#:{ at the top of your code. And the colors look good.

 Respond  
Vortex   -  Sep 24, 2005

Alright then I updated it. Thanks supergeo.

 Respond  
supergeo   -  Sep 24, 2005

You had lots of errors.... Updated code:
on :Op:#:{
if ($opnick == $me ) && ($nick == $me) msg $chan I opped myself.
else msg $chan 12 15Thanks15 15for15 15the15 15@15 $nick 12
}
on
:Voice:#:{
if ($vnick == $me) && ($nick == $me) msg $chan I voiced myself.
else msg $chan 12 15Thanks15 15for15 15the15 15+15 $nick 12
}

 Respond  
Vortex   -  Sep 24, 2005

I\'ll be updating this.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.