Macro help! (script)

I’m trying to make a macro that does two things:

1: Will make me autoattack my current target on keypress BUT not cancel on subsequent presses
(eg. so “/cast attack” won’t work, as it’ll stop attacking if I press it again)

For the auto-attack I used to use

/script if not IsCurrentAction(13) then UseAction(13) end;

Where 13 is the actionbar button with attack on, but doesn’t seem to work anymore. (May be ElvUI blocking it though??)

2: Will mark the current target as skull on keypress, and also will not remove marker on subsequent presses.

For the marker I know I can use this script to set the maker

/run SetRaidTarget(“target”, 8)

But, then pressing the button again will remove the marker from the target.

The ultimate goal is to have 1 button that’ll;
a) cast an ability [eg. heroic strike]
b) make me attack the target, but not stop attacking on subsequent press [if I don’t have rage for heroic strike, it won’t attack automatically]
c) mark my target as skull without removing it.

I’m not 100% sure, but I think the /script macros don’t work anymore.
Somebody wiser might be able to help you with clarification on that, and maybe your macro too if they do work :slight_smile:

Your macro is much more complicated than it needs to be I think, simply use:

#showtooltip [Name of Ability]
/startattack
/cast [Name of Ability]

I can’t help you with the raid marker though, it isn’t something I’ve used

/run if GetRaidTargetIndex("target") == nil then SetRaidTarget("target", 8) end
1 Like

Ohh yeah, just tried it and that’s the attack part sorted :smiley:

In my infinite wisdom I was under the impression that “/startattack” didn’t work in classic so I didn’t even bother trying it…

This old post may help?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.