loc and distance

kombat

Spammer
Joined
Feb 25, 2007
Messages
66
Reaction score
0
Points
0
im looking for something that goes like.......


if my distance to loc -200,300 is <150) /do this


its the loc part im trying to sort out :)


i need to be able to typ in a loc.
 
Code:
${Math.Distance[y,x,z:y,x,z]}


Code:
/if (${Math.Distance[${Me.Y},${Me.X}:-200,300]} < 150 ) /dothis
 
I used to get a lot of errors with math.distance. So if you get a j error and can not figure it out. its the Distance check.
 
Also, it defaults to distance from your toon's current location. So all you really need is:

/if (${Math.Distance[-200,300]} < 150 ) /dothis