Thread Tools Display Modes
11-14-22, 03:35 PM   #1
JahirahDK
An Aku'mai Servant
 
JahirahDK's Avatar
Join Date: Sep 2020
Posts: 38
Misdirect smart-macro

Hey everyone
I am trying to stitch together an intelligent Misdirection macro able to adapt and behave in accordance to circumstance....
Im looking to advance my current MD macro with some additional utility without having to rely addons...
Misdirection macro
/cast [@focus,exists,nodead,help][help,nodead][@pet,nodead] Misdirection

This is the functionality I'd like to add...
Is this possible to achieve with API and scripting?
If [@focus,noexists]
-- then set my current target as /focus and announce %t in party chat...
If [@focus,exists]
-- then bypass announcement and function normally
__________________
//Jahirah

Last edited by JahirahDK : 11-14-22 at 05:13 PM.
  Reply With Quote
11-14-22, 06:36 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
Better yet, it doesn't even require scripting.
/stopmacro lets you halt execution when a macro condition matches.
Code:
/cast [@focus,help,nodead][help,nodead][@pet] Misdirection
/stopmacro [@focus,help,nodead][nohelp][dead]
/focus
/p Misdirecting %t
Note: [help] implies [exists], you don't need to check both.
__________________
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

WoWInterface » AddOns, Compilations, Macros » Macro Help » Misdirect smart-macro

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off