Page 1 of 1

Help with code

Posted: Thu Aug 12, 2004 2:46 pm
by Aarrow
Can anyone help me with this code... kinda a noob, never really programed that much, etc.
What I'm trying to do is display if you're close enough to cast on something (If you are it will display 0, if not, it will display how much closer you need to be)

Code: Select all

${If[${Math.Calc[${Target.Distance}-${If[${Me.Gem[1].Range}==0,,${Me.Gem[1].Range}]}]}<=0,0,${Int[${Math.Calc[${Target.Distance}-${If[${Me.Gem[1].Range}==0,,${Me.Gem[1].Range}]}]}]}]}
I'm sure it's something simple, but if anyone can help, thanks.

Posted: Thu Aug 12, 2004 2:54 pm
by aChallenged1
/em looks around and notices that this is not the help forum and walks away.

Posted: Thu Aug 12, 2004 2:58 pm
by Aarrow
err, oops... :oops:
I saw a bunch of other help posts here, but moving to the help forum now.