Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ Timers and Aliases
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Benton
(2 posts) Bio
|
| Date
| Thu 03 Jul 2003 11:34 PM (UTC) |
| Message
| | Is there a way to setup a timer to send a command to the world while still activating an alias? | | Top |
|
| Posted by
| David B
USA (80 posts) Bio
|
| Date
| Reply #1 on Fri 04 Jul 2003 08:42 AM (UTC) |
| Message
| 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. |
My code(with a LOT of Nicks help) to fame:
sub OnAutoCombo (TriggerName, TriggerLine, arrWildCards)
dim AutoCombo
AutoCombo = split (arrWildCards (1))
Dim i, attack
for i=lbound (AutoCombo ) to ubound (AutoCombo )
Select Case AutoCombo (i)
case "rp" attack = "punch right"
case "lp" attack = "punch left"
case "s" attack = "sweep"
case "r" attack = "roundhouse"
case else attack = "" ' unknown attack type
End Select
if i = ubound (AutoCombo ) then
world.send "throw " + world.getvariable ("attacker") + " down"
else
world.send attack + " " + world.GetVariable ("attacker")
end if
next
end sub
| | Top |
|
| Posted by
| Poromenos
Greece (1,037 posts) Bio
|
| Date
| Reply #2 on Fri 04 Jul 2003 09:48 PM (UTC) |
| Message
| 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... |
Vidi, Vici, Veni.
http://porocrom.poromenos.org/ Read it! | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
14,166 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top