detecting PC close to toon.

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

bobpoo812
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sun May 30, 2004 2:55 am

detecting PC close to toon.

Post by bobpoo812 » Sun May 30, 2004 2:58 am

working on a macro that will detect if a PC is nearby, this seems to detect me as well, is there a way to make it exclude me and my group?

Code: Select all

/if (${Spawn[pc noalert 1 radius ${pcradius}].ID})
this used to work, was there a recent change?

Falco72
a hill giant
a hill giant
Posts: 215
Joined: Fri Sep 26, 2003 3:24 am

Post by Falco72 » Sun May 30, 2004 3:09 am

It seems that search spawn text is a little bugged at the moment, but in the mean time, why don't you add you and your group IDs to the alert list, like:

Code: Select all

/alert clear 1
/for i 0 to ${Group}
   /alert add 1 id ${Group[${i}].ID}
/next i
/if (${Spawn[pc noalert 1 radius ${pcradius}].ID})