Quick World Address Change

Posted by Jcet on Tue 06 Jan 2004 04:59 AM — 3 posts, 14,237 views.

USA #0
Here's my situation;

I build a MUD, and I constantly have to change the world's Address to connect to my local server or online server. That job gets quite tidieous.

So basically my suggestion is, Make the world Address input box a combo box, that has all previous Addresses used.

OR, simply have it so you may have multiple addresses per world. So that you may, perhaps right-click on a reference to the world(For example: The 1,2,3,4,5,6,7,8,9,10 buttons)
and select the address you wish to connect to.

Thank you for your time.

-Jcet
USA #1
These can easily be changed via the SetOption (for port) and SetAlphaOption (for host) commands. You can just make an alias to switch between online and offline versions of the info.
Australia Forum Administrator #2
Just what I was going to say. Make an alias like this:


<aliases>
  <alias
   match="site1"
   enabled="y"
   send_to="12"
   sequence="100"
  >
  <send>SetAlphaOption "site", "127.0.0.1"
SetOption "port", 5000</send>
  </alias>
</aliases>


That will change the world address (site) and port number (port). Then close and re-open the world.

Another approach is to have two different world files, but use the "include" directive to share things like triggers etc. (or use plugins).

You could make a macro key call the alias, so that F2 might be "site1" (as given above), and have a second alias "site2" that is the other site, and make F3 send "site2". Then changing world addresses is a single keystroke. That is less work than bringing up the world configuration, using a combo-box etc.