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?
It isn't totally clear what the problem is. Can you post what you have done so far, and say in what way it isn't working?
See this post for how to copy stuff and put it into the forum:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4776
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....
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.
how would io go about making this script i never actually had to make a vb script before
would i just change the sendto in the trigger to script and pretty much just copy that stuff to it?
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