[Home] [Downloads] [Search] [Help/forum]

MUSHclient scripting Setup

MUSHclient logo - 15K

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.

Help screen - 7K

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:

Script setup - 14K

Note that:

The subroutines to handle OnWorldOpen and so on are not very complicated in my test program. They are:

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


[Next] [Back] [Home]
Written by Nick Gammon - 5K

Comments to Gammon Software support

[Best viewed with any browser - 2K]    Internet Contents Rating Association (ICRA) - 2K    [Web site powered by FutureQuest.Net]

Page updated on Tuesday, 6 December 2005