Originally Posted by manly
Well, you can do a call to an addon like you typed in a macro. I don't know if you can call stopcasting in a mod (maybe you can since it does not trigger a gcd), but I know that thanks to the ChatEdit_HandleChatType exploit you can know every time a macro is ran, and 'remove' some lines that were meant to be executed. Like /cast fireball. Imagine that all your casts go through that method, and that method isn't allowed under any circumstance to add new stuff, or type new stuff (since it would be trivial to code conditional macros). However, theres conveniently a method that you can call at that level that removes the current active line. If I recall correctly its something along the lines of 'escape()'.
|
/script StopMacro(); spits back "hey dummy, stop using protected blizzard functions", so thats a nogo, since to call it in the addon function you'd need it to be executable in this fashion. That'd be a loophole that would get fixed anyway once it hit mass consumption.
Thats a nasty loophole in the ChatEdit object though, basically bypasses the no conditional macros system, since you can just have a macro with a list of actions and selectively remove them on execution.