This is the only Op Thanker you'll ever need, This Op Thanker is made using Rawmode, Using Rawmode is much better than using Op or Deop because when a user does something like this:
Nick1 sets mode: -o+o-o+o Nick2 Nick2 Nick2 Nick2
It doesn't flood the channel and earn you a kick.
on *:RAWMODE:#:{
if (+q isin $1) && ($me isin $2) { inc %cf 1 | msg $chan Thanks for the ~ $nick $+ ! That's number: %cf $+ . | halt }
if (+a isin $1) && ($me isin $2) { inc %sop 1 | msg $chan Thanks for the & $nick $+ ! That's number: %sop $+ . | halt }
if (+o isin $1) && ($me isin $2) { inc %aop 1 | msg $chan Thanks for the @ $nick $+ ! That's number: %aop $+ . | halt }
if (+h isin $1) && ($me isin $2) { inc %hop 1 | msg $chan Thanks for the % $nick $+ ! That's number: %hop $+ . | halt }
if (+v isin $1) && ($me isin $2) { inc %vop 1 | msg $chan Thanks for the + $nick $+ ! That's number: %vop $+ . | halt }
if (-q isin $1) && ($me isin $2) { inc %dcf 1 | msg $chan Don't take my ~ $nick $+ ! That's number: %dcf $+ . | halt }
if (-a isin $1) && ($me isin $2) { inc %dsop 1 | msg $chan Don't take my & $nick $+ ! That's number: %dsop $+ . | halt }
if (-o isin $1) && ($me isin $2) { inc %daop 1 | msg $chan Don't take my @ $nick $+ ! That's number: %daop $+ . | halt }
if (-h isin $1) && ($me isin $2) { inc %dhop 1 | msg $chan Don't take my % $nick $+ ! That's number: %dhop $+ . | halt }
if (-v isin $1) && ($me isin $2) { inc %dvop 1 | msg $chan Don't take my + $nick $+ ! That's number: %dvop $+ . | halt }
}
on *:RAWMODE:#:{
if ($me isin $2) {
if (+q isin $1) inc %cf | msg $chan Thanks for the ~ $nick $+ ! That\'s number: %cf $+ .
if (+a isin $1) inc %sop | msg $chan Thanks for the & $nick $+ ! That\'s number: %sop $+ .
if (+o isin $1) inc %aop | msg $chan Thanks for the @ $nick $+ ! That\'s number: %aop $+ .
if (+h isin $1) inc %hop | msg $chan Thanks for the % $nick $+ ! That\'s number: %hop $+ .
if (+v isin $1) inc %vop | msg $chan Thanks for the + $nick $+ ! That\'s number: %vop $+ .
if (-q isin $1) inc %dcf | msg $chan Don\'t take my ~ $nick $+ ! That\'s number: %dcf $+ .
if (-a isin $1) inc %dsop | msg $chan Don\'t take my & $nick $+ ! That\'s number: %dsop $+ .
if (-o isin $1) inc %daop | msg $chan Don\'t take my @ $nick $+ ! That\'s number: %daop $+ .
if (-h isin $1) inc %dhop | msg $chan Don\'t take my % $nick $+ ! That\'s number: %dhop $+ .
if (-v isin $1) inc %dvop | msg $chan Don\'t take my + $nick $+ ! That\'s number: %dvop $+ .
}
halt
}
you dont need halt and if ($me isin $2) every line ;)
This is most likely not ripped if that\'s what your saying. A lot of people on here use rawmode in various ways, the author decided to use it in the most simple way.
To the author, I would find a way to make this an original snippet. Perhaps the ability to disable certain rawmodes? Perhaps use a local variable and use $gettok\'s to define if the status is on? Here is an example of what I am suggesting:
on *:RAWMODE:#:{
if ($gettok(%modez,1,44) = on) {
if (+q isin $1) && ($me isin $2) { inc %cf 1 | msg $chan Thanks for the ~ $nick $+ ! That\'s number: %cf $+ . | halt }
if (-q isin $1) && ($me isin $2) { inc %dcf 1 | msg $chan Don\'t take my ~ $nick $+ ! That\'s number: %dcf $+ . | halt }
}
if ($gettok(%modez,2,44) = on) {
if (+a isin $1) && ($me isin $2) { inc %sop 1 | msg $chan Thanks for the & $nick $+ ! That\'s number: %sop $+ . | halt }
if (-a isin $1) && ($me isin $2) { inc %dsop 1 | msg $chan Don\'t take my & $nick $+ ! That\'s number: %dsop $+ . | halt }
}
if ($gettok(%modez,3,44) = on) {
if (+o isin $1) && ($me isin $2) { inc %aop 1 | msg $chan Thanks for the @ $nick $+ ! That\'s number: %aop $+ . | halt }
if (-o isin $1) && ($me isin $2) { inc %daop 1 | msg $chan Don\'t take my @ $nick $+ ! That\'s number: %daop $+ . | halt }
}
if ($gettok(%modez,4,44) = on) {
if (+h isin $1) && ($me isin $2) { inc %hop 1 | msg $chan Thanks for the % $nick $+ ! That\'s number: %hop $+ . | halt }
if (-h isin $1) && ($me isin $2) { inc %dhop 1 | msg $chan Don\'t take my % $nick $+ ! That\'s number: %dhop $+ . | halt }
}
if ($gettok(%modez,5,44) = on) {
if (+v isin $1) && ($me isin $2) { inc %vop 1 | msg $chan Thanks for the + $nick $+ ! That\'s number: %vop $+ . | halt }
if (-v isin $1) && ($me isin $2) { inc %dvop 1 | msg $chan Don\'t take my + $nick $+ ! That\'s number: %dvop $+ . | halt }
}
}
menu channel {
Status thanker:
.Owner On/Off:$iif($gettok(%modez,1,44) = on,set %modez $reptok(%modez,on,off,1,44),set %modez $reptok(%modez,off,on,1,44)
.Admin On/Off:$iif($gettok(%modez,2,44) = on,set %modez $reptok(%modez,on,off,2,44),set %modez $reptok(%modez,off,on,2,44)
.Op On/Off:$iif($gettok(%modez,3,44) = on,set %modez $reptok(%modez,on,off,3,44),set %modez $reptok(%modez,off,on,3,44)
.Hop On/Off:$iif($gettok(%modez,4,44) = on,set %modez $reptok(%modez,on,off,4,44),set %modez $reptok(%modez,off,on,4,44)
.Voice On/Off:$iif($gettok(%modez,5,44) = on,set %modez $reptok(%modez,on,off,5,44),set %modez $reptok(%modez,off,on,5,44)
}
This code is untested.
http://www.hawkee.com/snippet/3076/
Its almost same, just the above script some more features :)