need a pc detection macro

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

grayfox107
decaying skeleton
decaying skeleton
Posts: 5
Joined: Thu May 13, 2004 12:23 am

need a pc detection macro

Post by grayfox107 » Mon May 31, 2004 2:04 am

i need a macro that will detect a pc user within a x,y,z set of distance

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Mon May 31, 2004 8:28 am

So, target each PC in the zone within a loop. Run their loc thru a quick distance checking sub to see if they are within the area you are concerned about. Or... find a way to do the same thing all wrapped up in /target.
/shrug
Long ass weekend and I'm not coding an afk macro PC avoidance sub for ya.

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Mon May 31, 2004 9:31 am

There is no reason to /target them (target changes get sent to the server), it can all be done with Me.NearestSpawn.