world.Connect

MUSHclient script function (Method)

Connects the world to the MUD server

Prototype

long Connect();

Data type meanings

Description

This connects the current world. Note that since connecting is "asynchronous" you are not actually connected when this command completes. A return value of eOK simply means that the connection process has successfully started.

You can use IsConnected to see if the world is currently connected.

VBscript example

world.connect

Jscript example

world.connect();

PerlScript example

$world->connect;

Python example

world.connect

Lua example

Connect()

Return value

eWorldOpen: world is already open
eOK: initiated connection

Return code meanings

See also

FunctionDescription
DisconnectDisconnects the world from the MUD server
IsConnectedTests to see if the world is connected to the MUD server
ResetIPResets the cached IP address of the world and proxy server