Connect on Disconnect toggle from a script, etc.

Posted by Shadowfyr on Sat 27 Oct 2001 06:22 AM — 4 posts, 12,927 views.

USA #0
There are a number of cases where connecting on a disconnect is very helpful. 1) Network lag terminating the connection. 2) Mud reboot, 3) A problem with the comp or ISP that causes the modem to disconnect. However, there is one that you don't want it. That is when you quit the mud for the day and forget to turn it back off. Not only do you have to turn it off and then quit again, you also have to explain to everyone that sees you log back on that you forgot to turn it off... lol

I think it wuld be nice to add a way to toggle this off and on from a script. That way it could be automatically turned off in the startup script or in a script used to quit.

And speaking of scripts, etc... It may be helpful in the future to allow testing of scripts/aliases when offline (and not in a little tiny window using the system font). Some other clients already do this and it makes figuring out how to correctly display things in a multiline tell or other situations when you don't want to do it online a lot easier.

Also with colors. Love using custom colors, but... there are not enough of them. Several other people I know of that use mushclient have said the same. It is easy to run out of them and there is not any real reason for using the 16 color set, when with the addition of mxp you can use more colors to talk to other people than you can use with triggers. And on some muds that lack MXP support, room names and other things can get eaten by forcing it on in order to get the added colors.

Really wish that you could turn off the flash=italics without turning off italics too. It messes up ansi art when on, but if off you can't use it at all. Same with bold, which when you don't want it (which is usually when using the upper 16 ansi colors) makes the text hard to read, so you have to turn it off too, even if you want to use it in some cases. Maybe just a switch that says 'Ansi colors effect font style [x]' would be helpful.
Australia Forum Administrator #1
For the connect on disconnect you should be able to do that in a script by calling a script on "world disconnect" (see script configuration tab) and then call "world.connect" to reconnect again.

You could maintain some variable that you set that tells you whether to reconnect or not (eg. clear the variable on a quit).

Your suggestions have been added as suggestions #414, 415, 416 and 417.


USA #2
Can I say, "Duh"... Didn't even occure to me to use world.connect and world.disconnect with a script to do this. Though, ironically I did already set up a world.connect script to automatically turn on the quit alias I use, to prevent my accidentally dropping all my character equipment.

I am starting to worry that my script file may eventually be longer than the source code for your entire program though. lol

Thanks. ;)
Australia Forum Administrator #3
Version 3.19 now lets you script a reconnect when disconnected action. See the release notes for an example.