Install
=======
To install the chat system, you need to install the watcher package, the 
chatsys package and the common used include files. After that, little 
configuration is needed.

To install the common used include files, just move all the include files 
(.inc) of this folder (not including the ones in the sub folders) to your POL
root include folder (e.g. scripts/include/).

To install the watcher package, just move the watcher/ folder of this folder
to your root package folder (e.g. pkg/).

To install the chatsys package, just move the chatsys/ folder of this folder
to your root package folder.

You, now, should move the file htmlmessage.src of this folder to your script 
root folder (e.g. scripts/).

After that, compile htmlmessage.src, all the scripts in the watcher/ folder
and all the scripts in the chatsys/ folder. You should not have any problems.

The chat.src script that is supposed to be the player's text command to 
use the chat system is inside the cmd/player/ folder inside the chatsys/ 
folder. You need to configure your cmds.cfg to allow players use that command.

	http://docs.polserver.com/pol099/configfiles.php#cmds.cfg

Read the link above to learn how to write cmds.cfg.

After done all that, everything should be ok and the chat system should be
working.

New stuff
=========
This version uses the watcher script suggestion turley gave me. It also doesn't
have all the useless and senseless functions of croom.inc. After trimming 
croom.inc, there was no reason to keep it. For that, now, chat.inc has all
the chat-related functions.

This version should be a little faster and doesn't seem to have the 
"concurrency of players" problem (i.e. two or more players trying to join or
leave chatrooms would cause data loss).

The watcher package is a little documented in a file called plans inside the
watcher/ folder. Read that if you have any intentions of learning how it works
and using it in your shard.

The version 2.0 didn't have the reminder script working. The reminder script
isn't used by the chat system, but it may be in the future. So I thought it'd
be better to get that working now.

Bugs
====
Basic testing was performed. This is not the final version of this system.

Please, test and report those bugs in the POL forum thread you've downloaded
the package.

I cannot spot any bug. But I believe the reminder is too slow and badly 
programmed. It probably can be made better.

Old version
===========
If you want the old 1.0 version (and see some examples of how to not design 
eScript programs :-]), you can download it here:

	http://darvia.50webs.com/files/darvia_chat.tar

If you want version 2.0, go here:

	http://darvia.50webs.com/files/darvia_chat_2.0.tar

Notes
=====
1.All the scripts presented here were developed in linux and for pol099. They
may not work on older POL versions. It's very doubtful that they won't work
in windows or freebsd because, in theory, they should.
2. Read 'plans' inside the watcher/ folder to learn more about the watcher 
package.
