Connecting a new world

Posted by Raj on Wed 30 Apr 2008 02:48 AM — 5 posts, 25,278 views.

#0
I do not know if this is possible, but i wanted to know if there is a way to have a script connect a different world.

I wanted the script to open a new world and connect to it, so i may do what i need. I tried searching for a command for this, but i could not find anything.

Thanks.
USA #1
There is the world.Open command. I do not know if there is a way to open a default world or anything, but you can at least set up a dummy mcl file which the script can load, change IP, port, and name as needed, then try connecting to the new mud. If you are using VBscript, then the world.Open command even automatically comes with a reference to this new world that is opened.

http://www.gammon.com.au/scripts/function.php?name=Open
Australia Forum Administrator #2
Here is an example of that: http://www.gammon.com.au/forum/?id=4331

Or what you can do in an existing world is script to change the IP address and port, disconnect the existing world and then reconnect to the new one.
#3
Thanks, that helped a lot. I have another quick question though. Is there a command to close the world? It'll mainly be there to make sure my client isn't cluttered with windows. Thanks again.
Australia Forum Administrator #4
See:

http://www.gammon.com.au/scripts/doc.php?command=Close

and:

http://www.gammon.com.au/scripts/doc.php?function=DoCommand