How to set default plugin directory via vbs ?

Posted by Twrx on Fri 19 Dec 2003 08:39 PM — 2 posts, 10,776 views.

#0
Hoi, is there a possibility to set the plugin/world dirs via vbs ?

I want to set the plugindir to the abspath not just
"./worlds/plugins"

i capture the Application dir like this:

left(world.getinfo(56),len(world.getinfo(56))-14)

and then append "worlds/plugins/"

but how to set it then ?

Australia Forum Administrator #1
The plugins directory is a global option, not a per-world option. It is stored in the Registry.

There is no command provided in MUSHclient itself to change the global options, however if you find a site that tells you how to change the Registry from VB you could do it.

However I would exercise caution. If you want to just do it for yourself, just change it in the MUSHclient global preferences. To do it from VB (eg. in a plugin) could have the undesirable side-effect of changing a global thing when the user would be only expecting your plugin to affect a particular world.