kombat Spammer Joined Feb 25, 2007 Messages 66 Reaction score 0 Points 0 Feb 1, 2013 #1 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.
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.
T thedevil New member Joined Oct 18, 2008 Messages 15 Reaction score 0 Points 0 Feb 1, 2013 #2 Code: ${Math.Distance[y,x,z:y,x,z]} Code: /if (${Math.Distance[${Me.Y},${Me.X}:-200,300]} < 150 ) /dothis
Code: ${Math.Distance[y,x,z:y,x,z]} Code: /if (${Math.Distance[${Me.Y},${Me.X}:-200,300]} < 150 ) /dothis
JimJohnson Forum Jackass Joined Jul 12, 2006 Messages 8,528 Reaction score 11 Points 38 Feb 1, 2013 #3 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.
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.
htw Developer Joined Aug 27, 2006 Messages 13,194 Reaction score 374 Points 83 Location Albuquerque, NM Feb 2, 2013 #4 Also, it defaults to distance from your toon's current location. So all you really need is: /if (${Math.Distance[-200,300]} < 150 ) /dothis
Also, it defaults to distance from your toon's current location. So all you really need is: /if (${Math.Distance[-200,300]} < 150 ) /dothis