Snip3 Thanker

By Snip3KitTy on Sep 15, 2010

Edited version of Crushed Snippet which can be found http://www.hawkee.com/snippet/7943/ << there

The edit i made was to add a voice counter and an Op counter so it will say the times you have been oped and voiced.

8/18/2010 Update - Halfop/Help counter added.
8/16/2010 Update - Now only counts the amount of times You are +o, +v or +h

Enjoy

menu status,nicklist,channel,menubar {
  Snip3 thanker
  ..Snip3 Thanker
  ...On/Off
  ....On:/set %thanks On | echo -a Snip3 thanker is now On $logo
  ....Off:/set %thanks Off | echo -a Snip3 thanker is now Off $logo
}
on 1:op:#: { 
  if ( $opnick == $me ) {
  inc %ops 1
  if ($opnick == $me) && (%thanks == On) { 
  msg $chan 7Thanks for your [11 +o 7] [11 $nick 7] Op number:4 %ops }
 }
}
on 1:help:#: {
  if ( $hnick == $me ) {
  inc %hops 1
  if ($hnick == $me) && (%thanks == On) {
  msg $chan 7Thanks for your (11 +h 7) (11 $nick 7) Hop number:4 %hops }
 }
}
on 1:voice:#: {
  if ( $vnick == $me ) { 
  inc %Voces 1 
  if ( $vnick == $me ) && ( %thanks == On ) {
    msg $chan 7Thanks for your [11 +v 7] [11 $nick 7] Voice number:4 %voces
    }
  }
}

Comments

Sign in to comment.
napa182   -  Sep 18, 2010

it's just redundant

 Respond  
Snip3KitTy   -  Sep 18, 2010

i added:


if ( $opnick == $me ) {
if ( $hnick == $me ) {
if ( $vnick == $me ) {]/code]

Twice so it would count only the ops given to the person ($me). you think i could get rid of the other one?
 Respond  
napa182   -  Sep 18, 2010

on ur updated version of it why do you have

if ( $opnick == $me ) {
if ( $hnick == $me ) {
if ( $vnick == $me ) {

twice in ur events?
also you have added that $logo that does nothing
like i said before you are better off using on rawmode for ur event...

 Respond  
Snip3KitTy   -  Sep 18, 2010

I think ill just keep it the way it is. Thanks for the comment and suggestion napa, always appreciated :)

 Respond  
Snip3KitTy   -  Sep 18, 2010

its fine im just saying lol, you use regex a lot XD. in other words, i was messing about lol

 Respond  
napa182   -  Sep 18, 2010

whats wrong with regex? if you dont like regex you can use $istok

$istok(+v +o,$1,32)
 Respond  
Snip3KitTy   -  Sep 18, 2010

you and your $regex lmao

 Respond  
napa182   -  Sep 18, 2010

no need for all the diff events. Just use the on rawmode also it's better to use groups instead of a global var for the on an off.

#thank off
On !*:rawmode:#: { 
  if ($regex($1,/\+[voh]/) && $2 = $me) {
    inc $+(%,$1) 1
    msg # 7Thanks for your [11 $1 7] [11 $nick 7] $replace($1,+o,OP,+h,Hop,+v,Voice) number:4 $($+(%,$1),2)  
  }
}
#thank end
menu status,channel,menubar {
  .Turn Snip3 Thanker $iif($group(#thank) = on,Off,On):{
    $+(.,$iif($group(#thank) = on,dis,en),able) #thank
    echo -a Snip3 thanker is now $group(#thank)
  }
}
 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.