Macro to /Stop Attack

Macro to /Stop Attack

by Doomstriker » Mon Jan 25, 2016 3:16 am

Hi there,

I'm trying to make the below macro (I have SuperMacro addon btw) so after both command lines have been executed, I can then bandage if I need to.

/Stopattack
/Cast Intimidating Shout

Of course, /stopattack doesn't work. Please tell me a command that will stop me from melee attacking


Thanks!
Doomstriker
Private
Private
 

Re: Macro to /Stop Attack

by Youfie » Mon Jan 25, 2016 3:30 am

/script ClearTarget();
/script TargetLasttarget();

You're welcome! :)
User avatar
Youfie
Knight-Lieutenant
Knight-Lieutenant
 

Re: Macro to /Stop Attack

by Doomstriker » Fri Jan 29, 2016 5:14 am

[string "TargetLasttarget();"]:1: attempt to call global TargetLasttarget' (a nil value)

The error message above is what I get when I try to perform the below macro

/Script ClearTarget();
/Script TargetLasttarget();
/Cast Intimidating Shout
Doomstriker
Private
Private
 

Re: Macro to /Stop Attack

by Axtroz » Fri Jan 29, 2016 7:17 am

There's a typo. It's TargetLastTarget();
LUA functions are case sensitive.
Axtroz
Tester
 

Re: Macro to /Stop Attack

by Youfie » Fri Jan 29, 2016 7:46 am

Axtroz wrote:There's a typo. It's TargetLastTarget();
LUA functions are case sensitive.

Oh yeah, my bad, forgot the capital T :)
User avatar
Youfie
Knight-Lieutenant
Knight-Lieutenant
 

Re: Macro to /Stop Attack

by Doomstriker » Sat Jan 30, 2016 5:04 am

It works now, thanks!


/Script ClearTarget();
/Script TargetLastTarget();
/Cast Intimidating Shout
Doomstriker
Private
Private
 


Return to Addons & macros