I got very little coding knowledge so here is my question:
For raiding with my guild I'am the "macro-man", my scripting knowledge is quite little i would say.
For pulling etc. we use a Countdown I've created( Incoming X-10-1-Go) with time delay.
First it was quite basic and i used the "/in seconds X" command provided by Chronos(i guess most people know it back from Closed Beta aka "Cosmos times" :) ).
Later when some macros(Tactics/Healing thing etc. etc.) got a bit longer and a large tactic Macro consisted of 3 single Macros i needed more space for Macro text so i decided to try Addons like SuperMacro/Megamacro to get more Macro space and because i got quite annoyed by Chronos because you
couldn't type while letting such a macro run.
Supermacro was kinda what i wanted, but sadly it has so many bugs.... its not really maintained as well and it has very many Button related problems as it does some kind of overlay over normal Buttons instead of replacing them which results in really nice spamming if the addon decided to put a macro key that isn't visible on your Frostbolt or so...
The only other addon i discovered on all UI sites was MegaMacro, its not maintained anymore i think and does not work bugfree as well, but the Bugs are not as much annoying as the SuperMacro ones.
But it didn't allow the / commands i used for my Macros in the "extended" Macro part, so i needed to change my macros to another form.
I edited my Macros and used: Chronos.schedule(Seconds,Event,arg1,arg2,arg3) instead of "/in secs X" to do everything i wanted to; it works quite well for my needs at least.
I already tried to "hack"(?) other Addons to use them as a Framework to create my Addon that execute those macros with a Dewdrop Menu or a /command but my knowledge is way to little to create that, so i sticked until now to the extended Macro thing, but i kinda think that such a addon as MegaMacro or Supermacro wont be useable anymore in 2.0 so i need to find a way to either create a Addon that can execute my functions on a /command or by a Dewdrop Menu or a new Macro extend addon that works in 2.0 as well.
My idea to create a addon was:
SLASH_Addonname1 = "/countdown";
SLASH_Addonname2 = "/Thaddius";
SLASH_Addonname3 = "/xxx";
SLASH_Addonname4 = "/xxx";
SlashCmdList["Addonname1"] = Countdown;
SlashCmdList["Addonname2"] = Thaddius;
Chronos.schedule(1,SendChatMessage,"*** INCOMING %T ***","RAID_WARNING", nil)
But this doesn't want to work somehow...
Even if it would work i got another Problem, I'am working with editable Variables:
local mt1= "Warrior1"
local mt2 = "Warrior2"
Chronos.schedule(1,SendChatMessage,"XXX gets tanked by:"..mt1.."/"..mt2,"RAID", nil)
So its easier to have an overview in long macros when you need to edit them fast.
My question is how do i pass on variables from a / command that i can use them in the function as with my Addon i couldnt edit the macros via a ingame frame is it just
/xxx arg1 arg2
and in the function
local mt1= "arg1"
I got no clue and reading wowwiki.com etc. doesn't really help me with my problems so please give me some advice! :)