Timers and Aliases

Posted by Benton on Thu 03 Jul 2003 11:34 PM — 3 posts, 14,914 views.

#0
Is there a way to setup a timer to send a command to the world while still activating an alias?
USA #1
Yes.
Setup your alias like you world normally.
I.e. blah blah
sends to the mud: blah blah

Label it: blah
script: OnBlah

the script would be something like:

sub OnBlahScript (name, line, wilds)
world.doafter 30, "some other command"
end sub


Or something like that, if your using wilds, you'd do:
world.doafter 30, "some other command at " & wilds(1)
Or something to that affect.
If you want to adda perm timer, you'd world.addtimer instead.
Greece #2
Or, alternately, enter this in the "send" box and send to scripting:
EnableTimer "TimerName", True
Send "Blah blah"

The more I think of it, the more I see that the plugin idea was a stroke of genius... I don't use scripts at all, and I don't know what I was even doing without plugins/send to scripting in triggers...