Script to send a "quit" to mud avoiding auto-reconnect

Posted by Welcomb on Thu 03 Jul 2003 05:17 PM — 2 posts, 12,234 views.

#0
I want to alias a script that will execute a few commands before quiting the MUD. What I did was use World.send "quit" to initiate a quit on the server.

However, the auto-reconnect will think it's a server disconnect and auto reconnect for me. I tried putting World.disconnect after sending "quit" but it disconnects too quickly for me to see the final few text (which are sometimes important) from the server. Or in cases where I'm not allowed to quit, World.disconnect will disconnect me all the same.
Australia Forum Administrator #1
The "quit" command should disable auto-reconnect. However in a doing a world.send "quit" bypasses that.

There is a simple, simple solution. :)

Instead of:

world.send "quit"

Do:

world.execute "quit"


What this does is simulate typing "quit" and thus the auto-reconnect stops it reconnecting. I am assuming that your alias is not itself called "quit" or you will get a loop.

However if this is the case, you can work around this in various ways. :)