Chevejo wrote:TyrantRC wrote:..
That would make it even possible to get the name of the target, doesnt it? Saw an similar script for retail
You can already do that by using UnitName("mouseover"), but only in the worldframe, it doesn't work for unitframes, if you want to do it for unitframes in general including lunaUF you need to use UnitName(GetMouseFocus().unit), both return a string you can save in variable. But I don't think is smart to use names of units in vanilla, especially in MaNGOS, since the field of vision sometimes does fucky thing to that variable, not to mention that mobs share names, so sometimes you don't get the target you want. I think the only good use for names of unit is to print them in the chat, otherwise I suggest using Unit general names(target, mouseover, targettarget, etc) as general unit management in macros.