mIRC Home    About    Download    Register    News    Help

Print Thread
#18961 12/04/03 09:57 PM
B
bloupx
bloupx
B
hello,
i'd like to write an identifier but i'm cant think of how to do it.
here's what it should do

alias identifier {
if ($1 == 200) return 8
if ($1 == 100) return 16
if ($1 == 50) return 32
if ($1 == 25) return 64
}
that is basically it , except i want it to work for all numbers from 1-500.
if needed i'll $round the result.
ty for anyone's affort into this smile

#18962 13/04/03 01:52 AM
T
theRat
theRat
T
Code:
  
alias identifier {
if (( $isid ) && ( $1 isnum 1-500 )) {
return $calc( 200 / $1 * 8 )
}
}

#18963 13/04/03 01:54 AM
H
hatch
hatch
H
You are probably after this function: y = 1600 / x.
This should do it (for all numbers):
Code:
alias 1600_by_x {
  return $calc( 1600 / ( $1 ) )
}


hf,
--hatch


Link Copied to Clipboard