mIRC Home    About    Download    Register    News    Help

Print Thread
annoying (biggest nick) #81585 01/05/04 07:33 PM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
ok i made a little identifyier that tells me the biggets nickname in the specified channel.... but for some reason its not quiet working too speed and its starting to annoy the [censored] out of me

Code:
alias bignick {
  var %a = 1
  var %b = $nick($1, 0)
  set %bignick $+ . $+ $1 $nick($1, %a)
  while (%a <= %b) {
    var %lent = $len($nick($1, %a))
    if (%lent >= $len(%bignick $+ . $+ $1)) { set %bignick $+ . $+ $1 $nick($1, %a) }
    inc %a
  }
  return $len(%bignick $+ . $+ $1)
}


help and improvements welcome smile


Need amazing web design for low price: http://www.matrixn3t.net
Re: annoying (biggest nick) #81586 01/05/04 07:57 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
alias bignick {
  var %i = 2, %bignick = $nick($1,1)
  while $nick($1,%i) {
    if $len($nick($1,%i)) > $len(%bignick) { %bignick = $nick($1,%i) }
    inc %i
  }
  return $iif($prop == len,$len(%bignick),%bignick)
}


$bignick(#channel) - returns the longest nickname.
$bignick(#channel).len - returns the length of the longest nickname.


New username: hixxy
Re: annoying (biggest nick) #81587 02/05/04 01:30 AM
Joined: Dec 2002
Posts: 397
A
ATMA Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
thank you ;/


Need amazing web design for low price: http://www.matrixn3t.net
Re: annoying (biggest nick) #81588 02/05/04 01:46 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
yw smile


New username: hixxy