Macro for marking targets in raids/dungeons

Macro for marking targets in raids/dungeons

by ClitYeastWood » Sun Jun 21, 2015 8:44 pm

Hello,

I am unsure if this is a well known macro. Anyhow, I feel like this is a good macro for any player whos in charge
of marking targets.

/run SetRaidTarget("target", 8) = Skull

/run SetRaidTarget("target", 7) = Cross

/run SetRaidTarget("target", 6) = Square

/run SetRaidTarget("target", 5) = Moon

/run SetRaidTarget("target", 4) = Triangle

/run SetRaidTarget("target", 3) = Purple

/run SetRaidTarget("target", 2) = Circle

/run SetRaidTarget("target", 1) = Star

/run SetRaidTarget("target", 0) = Removes the mark
ClitYeastWood
Tester
 

Re: Macro for marking targets in raids/dungeons

by folde » Mon Jun 22, 2015 6:42 am

Never used macros but very usefull too us noobs out here :)

Can I change the "/run SetRaidTarget("target", 7) = Cross" to "/run SetRaidTarget("target", F7) = Cross" for F1-F10 keys?
folde
Private
Private
 

Re: Macro for marking targets in raids/dungeons

by Aggronaught » Tue Jun 23, 2015 12:43 am

folde wrote:Never used macros but very usefull too us noobs out here :)

Can I change the "/run SetRaidTarget("target", 7) = Cross" to "/run SetRaidTarget("target", F7) = Cross" for F1-F10 keys?

That's not how it works, those numbers indicate which Mark.it is, 7 tells the game that you want to mark it with cross. You don't need the part after the equal sign. Those are the descriptions. In any case, there is a keybinding section that lets you bind keys to these marks so that you don't need macros, unless you want to click I guess.
User avatar
Aggronaught
Sergeant
Sergeant
 

Re: Macro for marking targets in raids/dungeons

by DEDRICK » Mon Jul 13, 2015 1:30 pm

folde wrote:Never used macros but very usefull too us noobs out here :)

Can I change the "/run SetRaidTarget("target", 7) = Cross" to "/run SetRaidTarget("target", F7) = Cross" for F1-F10 keys?


You can just Keybind them all, these are just so you can put them on your bars. I use the Numpad for all my marking needs
Cachecow - Tauren Warrior
DEDRICK
Sergeant
Sergeant
 

Re: Macro for marking targets in raids/dungeons

by Guybrush » Mon Jul 13, 2015 1:49 pm

Sort of related. Anyone know a way to target a mob with a specific mark?
Does the WoW API even allow it?
Guybrush
Sergeant Major
Sergeant Major
 

Re: Macro for marking targets in raids/dungeons

by Meck » Mon Jul 13, 2015 4:18 pm

Looking through the API right now and it seems that GetRaidTargetIndex might do the trick:

http://wowwiki.wikia.com/API_GetRaidTargetIndex

I'll test it today.

Edit: Yeah, it works.
Meck
Tester
 

Re: Macro for marking targets in raids/dungeons

by Liandri » Mon Jul 13, 2015 4:35 pm

There is a way to target mobs with raid targets placed on them.

/run for i=1,13 do TargetNearestEnemy();if GetRaidTargetIndex("target")==X then do return;end;end;end;

Underlined characters: 13 represents the number of mobs to cycle through. Increase it to suit your needs. X represents the number of the raid target index. (8 is skull etc)
Liandri
Tester
 

Re: Macro for marking targets in raids/dungeons

by LYQ » Mon Jul 13, 2015 5:09 pm

there will never be a way which works 100% flawless to target a mob with a certain mark.
the best method (imo) would be checking if any raidmember is targeting the wanted marked mob
LYQ / Virose
Talentsaver (viewtopic.php?f=63&t=15429) - Totemtimers Enhanced (viewtopic.php?f=63&t=24422)
NostalriusAcceptTrade (viewtopic.php?f=63&t=31729)
User avatar
LYQ
Sergeant Major
Sergeant Major
 

Re: Macro for marking targets in raids/dungeons

by Lorilay » Mon Jul 13, 2015 7:09 pm

If you don't want to put them on your bars, LuckyCharms is a mod that does this and has hotkeys available.
Lorilay
Sergeant Major
Sergeant Major
 

Re: Macro for marking targets in raids/dungeons

by Aunstic » Mon Jul 13, 2015 7:38 pm

LYQ wrote:there will never be a way which works 100% flawless to target a mob with a certain mark.
the best method (imo) would be checking if any raidmember is targeting the wanted marked mob

Any possible method to set IDs on a target locally and have something along the lines of using Unit GUID, SetRaidTarget, and RaidTargetIndex? Ever since I noticed the marks being removed when a mob is killed, I thought about it. ClassicFocus reinforced my idea even more because the target is always in focus no matter what you have targeted at the time.
Image
User avatar
Aunstic
Knight-Lieutenant
Knight-Lieutenant
 

Next

Return to Addons & macros