choria - 2D MMORPG
by Alan Witkowski

Latest version can be found at:
http://choria.googlecode.com

Source code at:
https://github.com/jazztickets/choria/tree/classic

----BUILDING----

Requires:
	irrlicht 1.8
	sqlite3
	OpenGL
	cmake

To install irrlicht 1.8 easily, run:
	
	./install_irrlicht.sh

Install dependencies:
	
	sudo apt-get install cmake libsqlite3-dev

Compiling:

	mkdir build
	cd build
	cmake ..
	make -j`nproc`

To install:
	sudo make install

To uninstall:
	cat install_manifest.txt | xargs sudo rm

----COMMAND-LINE ARGUMENTS----

to host a game
-host

open the mapeditor
-mapeditor

show login screen
-connect

set login information
-login username password

----HOW TO PLAY----

Use Arrow keys or mouse to walk around.
During battle, hit 1-8 to use a skill.
Hit B or I to open your inventory.
Hit S or K to open your skill page. Every level you get 3 skill points to spend. All skills must be equipped to your skillbar before they're activated.
Hit C to see character stats.
Hit enter to type a message to other players in your current map.
Hit A to attack other players in PvP zones.
Hit T to trade with other players.
Hit Q to teleport back to town.

----MAP EDITOR----

Hit N to start a new map
Hit L to load a map
Hit S to save
Hit W to change from wall/nonwall
Hit T to open up texture list
Hit B to change brush options
Hit +/- to change event #
Hit 1-4 to select current brush mode
Hit F1-F4 to change brush size

LMB places a tile
Ctrl+LMB copies an existing tile
RMB scrolls the map
Mousewheel changes current zone

----DATABASE WEB TOOL----

The design tool allows you to modify the game stats easily.

1. Clone the git repo and checkout the classic branch
git clone git://github.com/jazztickets/choria.git ~/choria
cd ~/choria
git checkout classic

1. Install apache2, php5 and php5-sqlite packages.

sudo apt-get install apache2 php5 php5-sqlite

2. Create a link to [choria_path]/assets/webtool in your web directory

sudo ln -s ~/choria/assets/webtool /var/www/choria

3. Make the sqlite database and database directory writable by the web user (e.g. www-data)

chgrp www-data ~/choria/working/database -R
chmod g+w ~/choria/working/database -R

Then open your browser and go to "http://localhost/choria"
