Although the code might look a little dodgy, rest assure it works, and you shouldn't change anything in the scon part, and the tokenize part. Why am I tokenizing on $1- $1-? Well because there is a bug with the counter of $* not being reset after using it. Anyway, this'll work, and quite fast might I add.

Code:
on *:text:*:?:{
  if $nick == IdleRPG {
    tokenize 59 $1-
    var %a 
    scon -r inc % $+ a $(|,) set % $+ idlerpg_ $!+ % $+ a $*
    echo -t 4STATUS reply @ #Idle-RPG:
    tokenize 32 $1- $1-
    echo -t -> $*
  }
  else echo -t 4PM from $nick -> $1- 
  close -m $nick
}


But anyway, if you want a more common approach go with the thing LocutusofBorg gave you, it's more than fine. I added the part so it sets variables too.
Code:
on *:text:*:?:{
  if $nick == IdleRPG {
    tokenize 59 $1-
    echo -t 4STATUS reply @ #Idle-RPG:
    echo -t $*
    var %x = 1
    while %x <= 5 { 
      set %idlerpg_ $+ %x $($+($,%x),2)
      inc %x 
    }
  }
  else { echo -t 4PM from $nick -> $1- }
  close -m $nick
}


Greets