A forum for reporting bugs NOT related to custom plugins.
Moderator: MacroQuest Developers
-
TheAFKBard
- a ghoul

- Posts: 133
- Joined: Tue Dec 30, 2003 9:48 pm
Post
by TheAFKBard » Wed Aug 04, 2004 2:05 pm
There are some people who choose to name their characters similarly. If there is one person named Player and another named Playertoo and I use /target Player in a macro or from the command line when Playertoo is closer, Playertoo will be targetted.
It would be useful to have /target =Player or something similar.
-
Drumstix42
- a grimling bloodguard

- Posts: 808
- Joined: Mon May 03, 2004 4:25 pm
Post
by Drumstix42 » Wed Aug 04, 2004 4:40 pm
have you tried:
/target "player"
(just a guess)
-
oorglebot6000
- a lesser mummy

- Posts: 34
- Joined: Sun Jun 13, 2004 12:41 pm
Post
by oorglebot6000 » Thu Aug 05, 2004 12:24 am
Perhaps another method would be by going by their class. For example, if Player is a cleric, and Playertoo is a warrior, you could do "/target player cleric" or "/target player warrior". If they use the same class... f them

. (or try what drumstix42 suggested)
-
Reverend
- orc pawn

- Posts: 13
- Joined: Sat Feb 21, 2004 12:27 pm
Post
by Reverend » Thu Aug 05, 2004 9:31 am
oorglebot6000 wrote:Perhaps another method would be by going by their class. For example, if Player is a cleric, and Playertoo is a warrior, you could do "/target player cleric" or "/target player warrior". If they use the same class... f them

. (or try what drumstix42 suggested)
Thank you very much.
-
TheAFKBard
- a ghoul

- Posts: 133
- Joined: Tue Dec 30, 2003 9:48 pm
Post
by TheAFKBard » Thu Aug 05, 2004 10:17 am
Targetting by class will work for manual targetting, but my feature request will allow macros that either store the target as a variable or use a name as a parameter to not need a bunch of contrivances.
-
Caladine
- a hill giant

- Posts: 164
- Joined: Fri Feb 13, 2004 9:29 pm
Post
by Caladine » Thu Aug 05, 2004 10:27 am
I'll have to check tonight, but I'm pretty sure that enclosing it in quotes will do what you're looking for. If not, I'll post the code here how to add what you want, it's a simple addition.
-
eqjoe
- a grimling bloodguard

- Posts: 984
- Joined: Sat Sep 28, 2002 12:26 pm
Post
by eqjoe » Thu Aug 05, 2004 11:54 am
I sometimes have to us /target pc "name" to get the player and not his corpse. I also find myself doing a /target pc "name" <class>. While its a pain in the ass, if you need to hotkey a target /target id works best.
-j
-
Mimatas
- a hill giant

- Posts: 262
- Joined: Wed Mar 10, 2004 4:22 pm
Post
by Mimatas » Thu Aug 05, 2004 12:38 pm
Does the target ID change when a mob dies? I'm thinking that may be a good way to ensure that I loot the correct corpse in a hunting macro (sorry for being off topic.. just got me thinking)
-
Caladine
- a hill giant

- Posts: 164
- Joined: Fri Feb 13, 2004 9:29 pm
Post
by Caladine » Thu Aug 05, 2004 1:31 pm
The ID won't change when the target dies, fortunately. It's still the same "spawn", just in a different state. :)
-
blueninja
- a grimling bloodguard

- Posts: 541
- Joined: Thu Aug 28, 2003 7:03 am
- Location: Göteborg, Sweden
Post
by blueninja » Thu Aug 05, 2004 1:59 pm
Assuming the name of the spawn you are looking for is in ${Name}..
Find a spawnid using
/varset MyID ${Me.NearestSpawn[${Name}].ID}
and compare it to the name you want to target using
${Spawn[id ${MyID}].Name.Equal[${Name}]}
If the name matches do
/target id ${MyID}
If it doesn't match get the next id using
${Me.NearestSpawn[${x},${Name}].ID}
and compare using Name.Equal[] again. Keep looking (by increasing x, start at 2) until you find the correct name or id is null (meaning there was no matching spawn).
-
blueninja
- a grimling bloodguard

- Posts: 541
- Joined: Thu Aug 28, 2003 7:03 am
- Location: Göteborg, Sweden
Post
by blueninja » Fri Aug 06, 2004 1:13 pm