mIRC Home    About    Download    Register    News    Help

Print Thread
#18961 12/04/03 09:57 PM
Joined: Dec 2002
Posts: 124
B
bloupx Offline OP
Vogon poet
OP Offline
Vogon poet
B
Joined: Dec 2002
Posts: 124
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
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
Code:
  
alias identifier {
if (( $isid ) && ( $1 isnum 1-500 )) {
return $calc( 200 / $1 * 8 )
}
}


Code:
//if ( khaled isgod ) echo yes | else echo no
#18963 13/04/03 01:54 AM
Joined: Jan 2003
Posts: 20
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Jan 2003
Posts: 20
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


__________________
"Who cares. Out of sight, out of mind."

Link Copied to Clipboard