i have been using this small alias to search for nicks in the nicklist and it works well except it counts from 1 to 50 and again and again instead of starting with 51 in the next row of 50 and 101 in the third row of 50 and so on.

anyway to edit this to achieve that?

thanks in advance,

heres the code i use:

Code

alias NSearch {
  if ($nick(#,$me,@&~%)) || (o isin $usermode)  {
    if ($len($1) == 1 && $1 == *) { halt }
    var %o,%i = 1
    while ($nick(#,%i,r)) {
      if ( $1 iswm $v1) {
        %o = $addtok(%o,$v2,32)
      }
      inc %i
    }
    if (%o) {
      while %o {
        echo #  $regsubex($gettok(%o,1-50,32), /(\S+)/g, $+(04,$chr(44),00,$chr(32),$chr(40)) $+ \n $+ $chr(41) $+(12,$chr(44),00)\t)  
        %o = $deltok(%o,1-50,32)
      }
    }
  }
}