using /target id <spawn>

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

crazyshiza
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Aug 20, 2002 7:43 pm

using /target id <spawn>

Post by crazyshiza » Sun Sep 01, 2002 5:32 am

I want to use this command so I can go back to the correct mob when I'm fighting multiples of a mob with the same name. this command does not seem to work for me and ends up just selecting the closest mob of the same name.

crazyshiza
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Aug 20, 2002 7:43 pm

Post by crazyshiza » Tue Sep 03, 2002 3:48 pm

anyone know?

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Tue Sep 03, 2002 4:31 pm

Can you give the full line?
- Plazmic

crazyshiza
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Aug 20, 2002 7:43 pm

Post by crazyshiza » Tue Sep 03, 2002 4:49 pm

here is an example of the code

/varset v7 $target(name)
:TargetAgain
/target id $v7
/goto :TargetAgain

so this sets v7 equal to a spawn name which for example is "a_shrieker01", the problem is, the /target id $v7 will also target other shriekers even though they are different.

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Tue Sep 03, 2002 4:52 pm

try
/varset v7 $target(id)
:TargetAgain
/target id $v7
/goto :TargetAgain

This sets v7 to the spawn's internal ID (ie. 731) which is what /target id is expecting...
- Plazmic

crazyshiza
decaying skeleton
decaying skeleton
Posts: 9
Joined: Tue Aug 20, 2002 7:43 pm

Post by crazyshiza » Tue Sep 03, 2002 5:00 pm

w00t, thanks

that's what I was missing