Quote:
Very nice work! Though I am trying to get it so it adds all the commands together per level. Instead of just having it show only the sound command of the level you are at. Show all that are available to the user for their current level.
That's not how it works, however the way I did it is wrong, it should be the other way around!
With what I made, level 11 would access to all triggers from level 11 onward but it should be backward, from level 11 to 10.

But anyway, yeah, you do have only one more trigger per level, so yeah $gettok is fine, you don't even need to set %soundN, just use %sound:

Code:
 var %sounds !chicken !elementalcohesion !nonono !igottheboons !bane !moo !pewpew !elephant !monkey !toot !doom !babyfart !matingcall
  if ($ulevel <= 9 ) {
    msg $chan you are $ulevel and have no sound commands.
  }
  else {
    msg $chan $nick $+ $chr(58) $gettok(%sounds,1- $calc($ulevel - 9),44)
  }
}


For the other script, you could do:
Code:
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
      }
    }
  }
}
I won't explain how it works so you can figure it out yourself, the idea is always the same anyway, but ask if you don't understand something.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel