Help with code
Posted: Thu Aug 12, 2004 2:46 pm
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)I'm sure it's something simple, but if anyone can help, thanks.
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}]}]}]}]}