First of all, read the file COPYRIGHT!

This file describes how to install this package.

This package need the Lua script-language package, it can be found
on ftp://ftp.icacd.puc-rio.br/pub/lua/.  The official homepage for
Lua is http://www.inf.puc-rio.br/~robertu/lua.html.
The Lua archive can also be found on the CircleMUD ftp site
(ftp://ftp.circlemud.org).

A small note: This system is not installed on any running mud.

==========================================================================
Installing Lua:

The Lua package itself must be patched before it can be used!
That is because the builtin "print" function otherwise prints to
standard output instead of to the mud.

If you got your copy of the Lua archive from the CircleMUD ftp site,
it is allready patched, and you can skip that step.

Copy the file lua_print.diff to the root directory of the Lua distrubution,
enter that directory, then invoke the program "patch -p0 < lua.diff".

Now you can build the libraries, but remember to look over the file "config"
and change it to your liking.

The files this trigger/script system needs are:
   lua.h        -- From the include directory.
   lualib.h     -- From the include directory.
   liblua.a     -- From the lib directory.
   liblualib.a  -- From the lib directory.

==========================================================================
Installation:

First, copy the following files to your Circle source directory:
  lua_script.c   -- Interface between the mud and the Lua script system.
  lua_funcs.c    -- C functions callable from Lua scripts.
  triggers.c     -- The base trigger system.
  triggers.h     -- Header file used by the trigger system.

Copy the triggers_lua.diff to the Circle root directory, then invoke
the command "patch -p0 < triggers_lua.diff" when standing in the
Circle root directory.

In Makefile.in, you may want to change the macros "LUAINCDIR" and
"LUALIBDIR" to reflect where you have installed the Lua package.

Reconfigure the source by executing the "configure" script.

Now enter the source directory, and type "make circle", when the make
is finnished, you have a mud with triggers that uses Lua scripts!

==========================================================================
How to contact the author:

You can reach me at the following addresses:

Email:
    pilen@fukt.hk-r.se
    pt94jpi@student.hk-r.se

Smail:
    Joachim Pileborg
    Tranbrsvgen 22:19
    37238 RONNEBY
    SWEDEN

Homepage:
    http://www.fukt.hk-r.se/~pilen/

==========================================================================
