Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, 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.
Entire forum
➜ MUSHclient
➜ General
➜ Delay on triggers?
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Yungen2003
USA (34 posts) Bio
|
Date
| Mon 01 Jan 2007 02:38 AM (UTC) |
Message
| basically i want to have 2 triggers matching on the same thing
i have an alias that is named execute
and the mud sends you may do another xpquest
the alias is named reco wich disconnects from the mud and reconnects i want the first trigger to execute reco and soon as its reconnected i want it to send recall u n e xpquest request recall ...any ideas? |
I belive a man should be judged by the quality of his work not the quality of his piss | Top |
|
Posted by
| Nick Gammon
Australia (23,070 posts) Bio
Forum Administrator |
Date
| Reply #1 on Tue 02 Jan 2007 06:44 AM (UTC) |
Message
| |
Posted by
| Yungen2003
USA (34 posts) Bio
|
Date
| Reply #2 on Tue 02 Jan 2007 09:21 AM (UTC) |
Message
| well i dont even know where to actually start the trigger
i have an alias labled reco
on the mud i play we usually send
"spams" for 15-20 mins wich is just sending 1 alias that sends enough commands to where you dont do anything for 15-20 mins but sometimes during that time something happens and you have to reconnect to clear your buffer well thats why i have an alias labled reco that fires a script to disconnect and reconnect here is how that alias looks
<aliases>
<alias
match="reco"
enabled="y"
send_to="12"
sequence="100"
>
<send>disconnect
connect</send>
</alias>
</aliases>
so lets say during a spam i get the message
You may now do another XP Quest!
i want it to fire that alias and also send to the world
Recall
vanish
u
n
e
xpquest request
recall
thats what im asking
if i can do it with one trigger awesome, i was thinking i might need 2 tho but i have to wait till the world actuall reconnects before i can send the
Recall
vanish etc.... |
I belive a man should be judged by the quality of his work not the quality of his piss | Top |
|
Posted by
| Nick Gammon
Australia (23,070 posts) Bio
Forum Administrator |
Date
| Reply #3 on Tue 02 Jan 2007 07:10 PM (UTC) |
Message
| To make a trigger call an alias you need to Execute it. Something like this should work (as VBscript commands as I gather that is what you are using):
world.Execute "reco" ' do reco alias
world.DoAfterSpecial 10, "doquest", 10 ' do quest alias
This will, after 10 seconds (the first argument) do alias "doquest". The second 10 means "execute".
Then make another alias "doquest" that does all the other stuff you want to do. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Yungen2003
USA (34 posts) Bio
|
Date
| Reply #4 on Tue 02 Jan 2007 09:47 PM (UTC) |
Message
| how would io go about making this script i never actually had to make a vb script before |
I belive a man should be judged by the quality of his work not the quality of his piss | Top |
|
Posted by
| Yungen2003
USA (34 posts) Bio
|
Date
| Reply #5 on Tue 02 Jan 2007 10:30 PM (UTC) |
Message
| would i just change the sendto in the trigger to script and pretty much just copy that stuff to it? |
I belive a man should be judged by the quality of his work not the quality of his piss | Top |
|
Posted by
| Nick Gammon
Australia (23,070 posts) Bio
Forum Administrator |
Date
| Reply #6 on Wed 03 Jan 2007 09:03 PM (UTC) |
Message
| Yes, pretty much. Read this page for information about scripting:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6030
If you are just starting out in scripting I would use Lua rather then VBscript. Lua is the recommended language for scripting these days. The syntax under Lua would be slightly different:
Execute ("reco") -- do reco alias
DoAfterSpecial (10, "doquest", 10) -- do quest alias
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
19,060 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top