Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-30-21, 12:10 PM   #1
plopek
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Aug 2014
Posts: 18
Macro that edit targets name

So I have a macro/script that ads a name of the target in another macro specified in the code to cast Tricks of the Trade on that target.

1).
Lua Code:
  1. /run T = UnitName("target")
  2. /run if not InCombatLockdown() then EditMacro('Tricks', nil, nil, '/cast [@'.. T ..',exists]Tricks of the Trade', nil); print('Tricks_Setup: ' .. T); end;
2).
Lua Code:
  1. /cast [@Plopek,exists]Tricks of the Trade
I would like to be able to add another "/cast Shadowstrike" line like you would normally do by pressing enter - so it would look like that after pressing first macro:

Lua Code:
  1. /cast [@Plopek,exists]Tricks of the Trade
  2. /cast Shadowstrike

Does anyone know if that possible?
Thank you in advance.
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » Macro Help » Macro that edit targets name


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