on *:TEXT:!potato:#:{
if ((%floodpotato) || ($($+(%,floodpotato.,$nick),2))) { return }
set -u10 %floodpotato On
set -u15 %floodpotato. $+ $nick On
var %ID = $findID(%rosterFile, %rosterID, $nick)
if (%ID == 0) {
msg $chan /me $nick is not in the Points System.
}
else {
var %points = $readini(%rosterFile, $findID(%rosterFile, %rosterID, $nick), points)
var %level = %level. [ $+ [ $nick ] ]
var %views = $round($calc($readini(%rosterFile, $findID(%rosterFile, %rosterID, $nick), views) / 60), 2)
var %range 3-4.99 5-7.99 8-10.99 11-15.99 16-19.99 20-24.99
var %title †Spud†@†Newblet†@†Newbie†@†Newb†@†Mini Potato†@†Squishy Potato†@
var %hour 5 8 11 16 20 25
var %guser 10 10 10 11 11 12
if (%views <= 2.99) {
msg $chan $nick you are a †Niblet† with %views hours. Earn $calc(3 - %views) More hours to become a Spud.
set %level. $+ $nick Niblet
}
elseif (%views >= 25) {
msg $chan $nick you are a †Grand Puuba Elite Potato of the Dek† with %views hours.
if (%level != GrandPuubaElitePotatooftheDek) {
set %level. $+ $nick GrandPuubaElitePotatooftheDek
splay %soundlevels $+ GrandPuubaElitePotatooftheDekLevel.mp3
}
if ($nick != dreadfullydespized) {
;cnick -m0 $nick
guser -a 50 $nick
}
}
else {
var %a 1
while ($gettok(%range,%a,32) != $null) {
if (%views isnum $v1) {
msg $chan $nick you are a $gettok(%title,%a,64) with %views hours. Earn $calc($gettok(%hour,%a,32) - %views) More hours to become a $gettok(%title,$calc(%a + 1),64) $+ .
if ($istok(1 5 6,%a,32)) {
if (%level != $remove($gettok(%title,%a,64),†)) {
set %level. $+ $nick $v2
splay %soundlevels $+ $v2 $+ Level.mp3
}
}
;when you have only one command associated to an statement, you can ommit the { }
if ($nick != dreadfullydespized) guser -a $gettok(%guser,%a,32) $nick
break
}
inc %a
}
}
}
}