Edit: Updated it to allow for the ability to specify distance.
Code: Select all
| -- Range.mac
|
| Program by MPonthePC.
| Date: 5/08/2005
| Version: 0.2
|
| Overview: Warns if you are out of a specified range of your target via popup.
| Usage: /macro range distance (distance numeric value)
| NOTE: Distance defaults at 100, which is the default for complete heal.
|
| * ex: /macro range 200
#turbo
Sub Main
/declare spellrng int outer 100
/echo Range to Target Checker Activated.
/if (${Defined[Param0]}) {
/varset spellrng ${Param0}
/echo Current range is set at ${spellrng}
} else /echo No range specified setting range to 100
:Loop
/if (${Target.Distance}>=${spellrng}) /popup ${Target.CleanName} is Out of Range! Get Closer.
/if (${Target.Distance}<${spellrng}) /goto :Loop
/delay 1S
/if (${Target.ID}) /goto :Loop
/return



