Howdy! I'm a little new at this whole setting up triggers bit so I thought I'd ask you folks if you could help me.
What I'm trying to do is spam an alias about 10 times, sleep for 60 seconds, wake up and do it again. I want this to repeat until I give a command for it to stop.
How long does it take the commands to get proccessed? If we can incorperate that into this it will make it much easier.
Basically, all youll need is a timer, with for 60 seconds plus however long it takes for the 10 commands to get sent and go through the server, and back to you.
Your timer would consist of this:
wake
spam
spam
spam
spam
spam
spam
spam
spam
spam
spam
sleep
and then you'd give it a name (label) and then use an alias to turn it on, and another to turn it off (the aliases: send to script, send: enabletimer "[timer's label]", 1 or 0 (1 for on, 0 for off).
If you need to have it spam something thats an alias, then youll need to send to script (for the timer), and then send...
send "wake"
world.execute "spam alias"
world.execute "spam alias"
world.execute "spam alias"
world.execute "spam alias"
world.execute "spam alias"
world.execute "spam alias"
world.execute "spam alias"
world.execute "spam alias"
world.execute "spam alias"
world.execute "spam alias"
send "sleep"
And of course, if there is a variable time for the things to happen, then its still doable, although a bit more complicated. We'll need some real output from the mud and such (so we can trigger on, and know what were dealing with) to write the script.
(edit: for archive purposes, changed to world.execute as per nicks following post)
Also, you'll need to turn scripting on, and set it to VBScript (in game > config > scripting).