WoWInterface - View Single Post - Macro that edit targets name
View Single Post
08-30-21, 12:10 PM   #1
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.

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;
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