Using the MUSHclient VB Reference

Posted by Onoitsu2 on Thu 23 Feb 2006 09:40 AM — 2 posts, 13,834 views.

USA #0
I would like to create a stand-alone app that can control MUSHclient, i have been working off of the Super Health Bar, and have a working version of that, BUT instead of using a plugin to call the bar I would like to run the bar myself and have it get the reference to a certain world I type in a textbox, or from a list in a pulldown that is retrieved from MUSHclient. I have tried many things to do this, and have come up with the closest way as being ...

Dim whatever as MUSHclient.World
set whatever = NEW MUSHclient.World

The 2nd line makes a new world, and makes it so I do not need to call it from a plugin... Here we go with another BUT ... That makes a NEW world, has no info in it, and is mostly unuseable for constant use, as it has nothing in it. You can put in a name, and address, and make some aliases and all that just fine, but I cannot get the reference to an already open world without first setting the "Reference to the MUSHclient.World object" from in a plugin :(

My question ... FINALLY ... LOL is:
Can I get a reference to a world object from MUSHclient without having to use a plugin to do so... and if so am I able to use a command such as:

whatever.GetWorldList() OR
whatever.GetWorld("Name") OR
whatever.WorldName()

Thank You,
Onoitsu2
Australia Forum Administrator #1
I'm not sure if this answers your question, but you can get the current worlds unique ID like this:

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

Then using that ID you can get a reference to the world:

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


You can do a similar thing to get other world's references. You don't have to be in a plugin to use these script functions.