MUD scripts
Welcome to my MUD scripts page. I intend to develop a full MUD bot.

Below is a Pyton script, which is to be used with the KMuddy MUD client. It was written for the The Two Towers LP MUD. So if you want to use it for other types of MUDs, you'll have to do some tweaking.

Download the file:  mys.py

You must enable stdout, stderr(not sent to mud), and advanced commands in the script configuration pane.

What does it do:

  • It catches all MUD output and user input, parses it, and generates events (like new room entered)
  • Has a couple of triggers, and you can easily add new ones with python's regular expressions.
  • Has list of known locations associated with MUD rooms. When you enter a certain room that the script knows of, it will tell you the name of the location.
  • It keeps track of the movement commands, and may return to the last known location with "g ret" command.
  • You may use "g place" for any location the script knows, and it will do a breadth-first search and issue commands to get you there.
  • It knows some special locations like shops, banks. So "g shop" will go to the nearest known shop.
  • Some other stuff: a locations stack "g push" and "g pop", a locations queue "g prev"; "g selloff": will go to a shop, sell everything, and then return.

    More to come. If you do something interesting with it, I'ld like to hear from you.


    Last updated: $Date: 2004/02/16 02:45:07 $