Target macro for raid
Heya,
just wanted to ask if there is a way to mark 2 Adds with the exact same Name... First target with skull , cycle to next target with same name and then mark it with the X? |
I create a global variable, GlobalMarker (/run GlobalMarker = 8) each session... then run this in a macro...
/run if GlobalMarker > 0 then SetRaidTarget("target",GlobalMarker) GlobalMarker = GlobalMarker - 1 else GlobalMarker = 8 SetRaidTarget("target",GlobalMarker) end note, between pulls, if you need to assure your next marker is a skull make a macro to use that does /run GlobalMarker = 8 it's hackish, but it works... This starts at skull and works it's way down.... It still requires you to target -> hit a macro button, but I'm certain in some time I can refine it to mouseover... I hope this helps. |
Quote:
I whipped up a macro using a different approach. It scans through the marker indices for an unused one, starting with skull downward. I also put in a safety feature to ignore units with a marker already set. Code:
local u="mouseover";if UnitExists(u) and not GetRaidTargetIndex(u) then for i=8,1,-1 do if not IsRaidMarkerActive(i) then SetRaidTarget(u,i);break;end end end |
Quote:
Adding swapping to mouseover worked perfectly for my macro. :banana: Thanks :banana: As an experienced programmer, I'm just getting into LUA and WoW addons/scripts, any advice or guides that show the builtin functions, IE IsRaidMarkerActive()... as i cannot find an exhaustive list anywhere. |
|
All times are GMT -6. The time now is 05:20 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI