Quantcast
WoWInterface - View Single Post - Target macro for raid
View Single Post
10-06-20, 02:04 PM   #3
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 1,991
Originally Posted by seanjohn24 View Post
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...
All you really need to do is replace "target" with "mouseover".



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
Note: This doesn't work in classic because IsRaidMarkerActive() doesn't exist in that build.
__________________
ESOUI AddOns | WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote