MUSHclient scripting Setup
Updated 11th June 1997.
Downloading VBscript and JScript
To download the above scripting languages, please see the following Web page:http://www.microsoft.com/vbscript/
Preliminary scripting documentation
Some preliminary scripting information is included in the MUSHclient help file. Go to Help > Contents and find the "scripting" entry (see below). This will give quite a bit of information.
You may find that you don't have a "contents" tab. To fix this rename the files in your MUSHclient directory as follows:
| Old name | New name |
|---|---|
| MUSHCLI.EXE | MUSHCLIENT.EXE |
| MUSHCLI.HLP | MUSHCLIENT.HLP |
| MUSHCLI.CNT | MUSHCLIENT.CNT |
An example of setting up for scripting
A typical setup of the "scripts" configuration tab for using scripting would be:
Note that:
- Scripting is enabled.
- A script file has been selected (use NotePad to type it in).
- The "script prefix" allows you to type script commands into the command window.
- Some script subroutines have been defined ("OnWorldOpen" and so on) to be called at certain circumstances.
sub OnWorldOpen world.note "---------- World Open ------------" end sub sub OnWorldClose world.note "---------- World Close ------------" end sub sub OnWorldConnect world.note "---------- World Connect ------------" end sub sub OnWorldDisconnect world.note "---------- World Disconnect ------------" end sub