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
➜ Commands across Multiple Windows & muilti line sending
|
Commands across Multiple Windows & muilti line sending
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Yohan
(2 posts) Bio
|
| Date
| Fri 03 May 2002 04:25 AM (UTC) |
| Message
| Hi Everyone,
I have just started using Mushclient and have a few questions
1. I play Fallout MUD. You are allowed to have 3 characters at the same time. In fact it is a requirement to get into the more dangerous areas.
How do I set it up so when I type a command in one window it automatically sends the same command to the other 2?
e.g Move south (In the first window) - And then all 3 charcters move south at the same time.
The second question is about muiltiple command sending.
Can you create a switch where you press one key and it does the following:
open pack <enter>
get food <enter>
eat food <enter>
close pack <enter>
I was a bit confused as to how to set this sort of thing up. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Fri 03 May 2002 05:28 AM (UTC) |
| Message
| The quick way of sending to all worlds is to use the Game menu -> Send To All Worlds (Ctrl+Alt+S).
You could use this for general things like "kill dragon".
For moving, you could be more sophisticated and set up an alias and a bit of scripting.
For the world where you are doing the typing (or to all worlds if necessary), set up an alias like this:
Alias: ^(n|north|s|south|e|east|w|west|u|up|d|down|ne|nw|se|sw)$
Regular expression: checked
Label: all
Script: SendToAll
Then add a small routine to the script file (exampscript.vbs), at the end ...
Sub SendToAll (AliasName, AliasLine, arrWildcard)
For Each name In world.GetWorldList
world.getworld (name).send arrWildcard (1)
Next
End Sub
What this will do, is every time you type "north" (or "n"), "south" etc. the alias will trap it, and then using "GetWorldList" find the names of all open worlds, and send the command to all of them.
The words between the vertical bars in the alias are what will be matched on. For instance, you could add "flee" like this:
Alias: ^(n|north|s|south|e|east|w|west|u|up|d|down|ne|nw|se|sw|flee)$
Quote:
Can you create a switch where you press one key and it does the following:
open pack <enter>
get food <enter>
eat food <enter>
close pack <enter>
Use the world configuration, "macros" dialog, choose a key (eg F3) and then just type that into what is to be sent when you press F3. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Yohan
(2 posts) Bio
|
| Date
| Reply #2 on Fri 03 May 2002 03:11 PM (UTC) |
| Message
| Thanks Nick, Im pleased it can do these things.
I have tried zMud and a few others and Mushclient is definately the fastest of them all, and is more user friendly.
30 Aussie dollars coming your way soon. | | 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.
12,691 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top