Need help with a macro you are writing? Ask here!
Moderator: MacroQuest Developers
-
Pickled
- a lesser mummy

- Posts: 34
- Joined: Tue Sep 16, 2003 11:29 am
Post
by Pickled » Mon Sep 20, 2004 10:43 am
Is there anyway to check for a PC in radius/range without using the /target nopcnear...
eg. I already have a target, and still want to check for pc in radius *without retargetting* using nopcnear.
-
z-roice
- a lesser mummy

- Posts: 62
- Joined: Sun Aug 08, 2004 5:25 am
Post
by z-roice » Mon Sep 20, 2004 11:24 am
Pickled wrote:Is there anyway to check for a PC in radius/range without using the /target nopcnear...
eg. I already have a target, and still want to check for pc in radius *without retargetting* using nopcnear.
/if ${NearestSpawn[pc radius 50].ID} - checks for pcs around you iwithin radius 50 .. dont have to change target for that
-
bushdaka
- a hill giant

- Posts: 185
- Joined: Wed Jun 16, 2004 11:01 am
Post
by bushdaka » Wed Sep 22, 2004 2:01 pm
Any idea if someone wanted to find the nearest pet in range how that might be accomplished? I guess maybe searching for 'pet' in the name? Of course a lot of false positives would result from that I guess.
-
Pickled
- a lesser mummy

- Posts: 34
- Joined: Tue Sep 16, 2003 11:29 am
Post
by Pickled » Fri Sep 24, 2004 5:13 am
/target pet radius xxx
-
blueninja
- a grimling bloodguard

- Posts: 541
- Joined: Thu Aug 28, 2003 7:03 am
- Location: Göteborg, Sweden
Post
by blueninja » Fri Sep 24, 2004 5:24 am
Replace "pc" with "pet" in z-roice's example.
-
anon_coward
- a lesser mummy

- Posts: 40
- Joined: Wed Mar 24, 2004 11:11 pm
Post
by anon_coward » Fri Oct 01, 2004 7:33 pm
I've had trouble using radius in spawn searches. As soon as I add a "radius ##" it returns no spawns. If I exclude that part it works fine. The only way I get any matches is if I set radius to some absurdly large value like "radius 10000". Anyone else having problems with this?
-
polanski
- decaying skeleton

- Posts: 3
- Joined: Tue Oct 05, 2004 3:26 am
Post
by polanski » Tue Oct 05, 2004 3:31 am
When i try using
/if ${NearestSpawn[pc radius 50].ID}
or
/if ${Spawn[pc radius 50].ID}
It will always be true because of my char being nearest PC and always under 50 range =/.
How should I change it to so it check others PC but not me? !${ME} && radius 50?? tried but wont work =/
Thx in advance
-
dman
- a hill giant

- Posts: 181
- Joined: Fri Dec 05, 2003 12:54 pm
Post
by dman » Tue Oct 05, 2004 8:02 am
One of the spawn search parameters is notid, and your char has a spawn id.
-
Night Hawk
- a grimling bloodguard

- Posts: 590
- Joined: Fri Aug 13, 2004 4:56 pm
Post
by Night Hawk » Tue Oct 05, 2004 9:00 am
${NearestSpawn[1, pc radius 50].ID} is you
${NearestSpawn[2, pc radius 50].ID} is not you
-
polanski
- decaying skeleton

- Posts: 3
- Joined: Tue Oct 05, 2004 3:26 am
Post
by polanski » Wed Oct 06, 2004 11:55 am
Thx nighthawk =) working great now =)