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
}
}
}
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)
}
}