mode o/h/v counter

By PuNkTuReD on Jan 23, 2009

well this is just another op/help/voice counter
will count how many times youve recieved or taken said modes

on *:op:#: {
  if ($opnick == $me) { $iif(%top,inc %top 1,set %top 1) | msg $chan I have recieved +o %top time(s). }
  if ($nick == $me) { $iif(%ttop,inc %ttop 1,set %ttop 1) | msg $chan I have given a total of %ttop +o's. }
}
on *:deop:#: {
  if ($opnick == $me) { $iif(%tdeop,inc %tdeop 1,set %tdeop 1) | msg $chan I have lost my +o %tdeop time(s). }
  if ($nick == $me) { $iif(%ttdeop,inc %ttdeop 1,set %ttdeop 1) | msg $chan I have stolen a total of %ttdeop +o's. }
}
on *:help:#: {
  if ($hnick == $me) { $iif(%thelp,inc %thelp 1,set %thelp 1) | msg $chan I have recieved +h %thelp time(s). }
  if ($nick == $me) { $iif(%ttop,inc %tthelp 1,set %tthelp 1) | msg $chan I have given a total of %tthelp +h's. }
}
on *:dehelp:#: {
  if ($hnick == $me) { $iif(%tdehelp,inc %tdehelp 1,set %tdehelp 1) | msg $chan I have lost my +h %tdehelp time(s). }
  if ($nick == $me) { $iif(%ttdehelp,inc %ttdehelp 1,set %ttdehelp 1) | msg $chan I have stolen a total of %ttdehelp +h's. }
}
on *:voice:#: {
  if ($vnick == $me) { $iif(%tvoice,inc %tvoice 1,set %tvoice 1) | msg $chan I have recieved +v %tvoice time(s). }
  if ($nick == $me) { $iif(%ttvoice,inc %ttvoice 1,set %ttvoice 1) | msg $chan I have given a total of %ttvoice +v's. }
}
on *:devoice:#: {
  if ($vnick == $me) { $iif(%tdevoice,inc %tdevoice 1,set %tdevoice 1) | msg $chan I have lost my +v %tdevoice time(s). }
  if ($nick == $me) { $iif(%ttdevoice,inc %ttdevoice 1,set %ttdevoice 1) | msg $chan I have stolen a total of %ttdevoice +v's. }
}

Comments

Sign in to comment.
Jonesy44   -  Jan 27, 2009

It's simple enough if you look close enough at it x]

 Respond  
Aucun50   -  Jan 26, 2009

/me looks at napas code and get dizzy :(

 Respond  
Jonesy44   -  Jan 26, 2009

napa'd :(

 Respond  
napa182   -  Jan 23, 2009

lmao smartass

 Respond  
PuNkTuReD   -  Jan 23, 2009

lol i was waiting for you to do it for me napa182

 Respond  
napa182   -  Jan 23, 2009

why not use rawmode?

on *:rawmode:#:{
  if ($regex($1,/^([+-][ohv]{1})$/)) {
    if ($2 == $me && $nick != $me) { $iif($left($1,1) == +,inc $+(%,me,.,$1) 1,inc $+(%,me2,.,$1) 1) | msg # $iif($left($1,1) == +,I Have Been $1 For The $ord($($+(%,me,.,$1),2)) Time,I have lost my $+(+,$right($1,1)) For The $ord($($+(%,me2,.,$1),2)) Time.) }
    if ($2 != $me && $nick == $me) { $iif($left($1,1) == +,inc $+(%,my,.,$1) 1,inc $+(%,my2,.,$1) 1) | msg # $iif($left($1,1) == +,I Have Giving Out Mode $1 For The $ord($($+(%,my,.,$1),2)) Time,I have stolen a total of $($+(%,my2,.,$1),2) $+(+,$right($1,1),'s)) }
  }
}
 Respond  
PuNkTuReD   -  Jan 23, 2009

lol

 Respond  
Aucun50   -  Jan 23, 2009

Was wondering about that:

<~Aucun50> !op punktured

  • Aucun|B sets mode: +o PuNkTuReD
    <@PuNkTuReD> I have recieved +o 5 time(s).

I'm guessing you got it working good.

 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.