PDA

View Full Version : Editing multiline macros with lua, how?


damagepy
03-07-2007, 09:12 AM
I started to write a summon addon. Since I cant target anything from lua (Blizz changed it so the targeting must be a click) I am using a target macro for it. I want EditMacro to modify a macro to target the next name from the queue and start to summon it. The macro looks like this:
/target xy
/cast Ritual of Summoning

But I cant add 2 command to my macro with EditMacro since its input is a string, and I dont know if there are any newline symbol that I can use to create the macro above.
EditMacro(1,"zumtarget",753,"/target "..nextname ??? /cast Ritual of Summoning,1,0);

what should I add at ??? to put the /cast part to a new row? ; , |r etc not working as a separator. So my question is:
Is there any way to put 2 macro command to a single row with a separator character, or to use the EditMacro or any other command to make a macro that contains 2 or more commandrow?

Tunga
03-07-2007, 09:40 AM
You can target from a script, just not while in combat.

Duugu
03-07-2007, 08:09 PM
\n is a linefeed