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
➜ VBscript
➜ Trying to send to all worlds
Trying to send to all worlds
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Forestsofbliss
(6 posts) Bio
|
Date
| Mon 19 Jul 2004 06:45 PM (UTC) |
Message
| Ok, I've given my main char the following script, and I have an alias:
alias name: :*
send window: %1
script: sendtoallworlds
script:
Sub sendtoallworlds(name, command, wild)
dim otherworld
for each name in world.GetWorldList
set otherworld = world.getworld (name)
otherworld.send command
next
end Sub
What I want is to type :blah blah, and have blah blah
sent to every world that I have open. What it does is send
:blah blah, and does not drop the : for all worlds, and on top of that it sends just blah blah to my main world. I figure that the alias itself is sending the blah blah to the main world, which I know I can stop, but how do I get it to drop the :, cuz i keep avatar chatting all of my commands? Thanks for any help. | Top |
|
Posted by
| Nick Gammon
Australia (23,046 posts) Bio
Forum Administrator |
Date
| Reply #1 on Mon 19 Jul 2004 09:17 PM (UTC) |
Message
| The field "command" in your script is the entire command you type, hence the : in it. However the wildcard (the asterisk) is returned in wild (1), so what you want is this:
otherworld.send wild (1) |
- 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.
10,384 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top