I need to write some sort of alias that finds any command or commands that are input between curvy brackets {}, and that plays well with other plugins like multiple_send, for example.
For example, if I input this:
#12 {buy 20 heal;empty bag @container;drop bag}
I want the alias to send the following:
buy 20 heal
empty bag @container
drop bag
buy 20 heal
empty bag @container
drop bag
buy 20 heal
empty bag @container
drop bag
... (to 12)
I've tried messing with this before, but it's totally beyond my scripting capabilities thus far. Obviously, I already have the ";" character set to be my separator, but that doesn't particularly help this alias.
Any clue on where to start with this one?
For example, if I input this:
#12 {buy 20 heal;empty bag @container;drop bag}
I want the alias to send the following:
buy 20 heal
empty bag @container
drop bag
buy 20 heal
empty bag @container
drop bag
buy 20 heal
empty bag @container
drop bag
... (to 12)
I've tried messing with this before, but it's totally beyond my scripting capabilities thus far. Obviously, I already have the ";" character set to be my separator, but that doesn't particularly help this alias.
Any clue on where to start with this one?