LF target macro

LF target macro

by wpzwang » Fri Feb 05, 2016 8:26 am

need a macro can get the target with a name.

like this /target abc ,now if have a target name aaa nearby, this macro will select aaa not abc.

i need it can select abc ,so anyone can help me?
wpzwang
Grunt
Grunt
 

Re: LF target macro

by Dreez » Fri Feb 05, 2016 10:45 am

If there is no exact match nearby /target (or TargetByName()) will always target similar matches

however this workaround should be what you are looking for:

Code: Select all
/run local t="wpzwang" TargetByName(t) if not(UnitName("target")==t)then TargetLastTarget()end
Dreez - PvP server
<Endzeit>
User avatar
Dreez
Knight-Lieutenant
Knight-Lieutenant
 


Return to Addons & macros