NOTE: I've had reports of this addon breaking with the patch. I suspect Ace may be interfering with the /in command (since it provides one of its own). I've added a secondary command on a completely separate entry (/ind) to avoid having the two clash. If you see any problems with the normal /in, please switch to /ind.
A simple addon to implement repeating and delaying non-secure macro code.
The command for delaying is "/in" (alias: "/delay"). It accepts a number (fixed- or floating-point), and a string of slash-command macro text, space-separated.
Example: /in 2.5 /say Hello.
You can also name commands, allowing you to later modify them by resending a slightly altered version of the message. To name a command, insert the name (sans any spaces) within square brackets after the delay. By later sending another command with the same name (case-insensitive), you can modify the original command by that name before it has a chance to execute. Example:
/in 2 [HI] /say Hello
/in 3 [HI] /say Hi
In that example, the original /in command is immediately modified to execute after 3 seconds instead of after 2, and to execute "/say Hi" instead of "/say Hello", by the second command.
The command for repeating is "/rpt". It accepts a number, a name within square brackets (sans spaces), and a string of slash-command macro text, space-separated.
Example: /rpt 2.5 [TEST] /s This is a test.
The above timer will execute after 2.5 seconds, saying "This is a test", then continue to spam it every 2.5 seconds afterwards, until canceled.
To cancel an existing timer, simply pass the command the parameter "cancel" followed a name (case-insensitive).
Example: /rpt cancel TEST.
Like the "/in" command, rpt timers can also be modified simply by sending another command by the same name.
This addon is released under the MIT license found here.
+ Added a /rpt command.
+ Added a [name] option.
+ Removed the dependency on PenduLib.
+ TOC bump.
+ Removed unused library.
+ Now uses the embedded PenduLib-1.0 timer library. Please report any issues you think may be related to this addons timer's ASAP.
+ Cleaned up the code a little. Now has more specialized handling of certain things. This should make it more efficient.
+ Changed how command info is picked up. Floating-point (decimal) delays are now accepted.