ZnoteAAC
========

### What is Znote AAC?

Znote AAC is a full-fledged website used together with an Open Tibia(OT) server. 
It aims to be super easy to install and compatible with all the popular OT distributions. 
It is created in PHP with a simple custom procedural framework. 

### Where do I download?

The stable version is available on otland, while the developement version is here on github.

* [Stable: Znote AAC 1.4](http://otland.net/threads/znote-aac-1-4-tfs-0-2-13-tfs-0-3-6-0-4.166722/)
* [Developement: Znote AAC 1.5] (https://github.com/Znote/ZnoteAAC/archive/master.zip)

**NOTE:** Developement version supports TFS 1.0, but you can expect bugs to occur. 

### Compatible OT distributions
Znote AAC primarily aims to be compatible with [Forgotten Server] (https://github.com/otland/forgottenserver)
Forgotten Server is commonly known as TFS (The Forgotten Server) and Znote AAC supports these versions:
* TFS 0.2.13+ (Since initial release)
* TFS 0.3.6+ (Since Znote AAC 1.2)
* TFS 1.0+ (Since Znote AAC 1.5)

### Installation instructions

1: Extract the .zip file to your web directory (Example: C:\UniServ\www\ )
Without modifying config.php, enter the website and wait for mysql connection error.
This will show you the rest of the instructions as well as the mysql schema.

2: Edit config.php and: 
- modify $config['TFSVersion'] with correct TFS version you are running. (TFS_02, TFS_03, TFS_10). 
- modify $config['page_admin_access'] with your admin account username(s).
- modify $config['salt'] with true or false if you have salt activated in config.lua(On the OT server) for password security.

3: Before inserting correct SQL connection details, visit the website ( http://127.0.0.1/ ), it will generate a mysql schema you should import to your OT servers database.

4: Follow the steps on the website and import the SQL schema for Znote AAC, and edit config.php with correct mysql details.

5: IF you have existing database from active OT server, enter the folder called "special" and convert the database for Znote AAC support ( http://127.0.0.1/special/ )

6: Enjoy Znote AAC. You can look around [HERE] (http://otland.net/forums/website-applications.118/) for plugins and resources to Znote AAC, for instance various free templates to use.

7: Please note that you need PHP cURL enabled to make Paypal payments work. 

### This is the developement repository for the Znote AAC project.
# TODO 1.5:
* Confirm TFS 1.0 LUA scripts works (Shop system, first items)
* Fix 1.5 milestone assigned issues.

# TODO 1.6:
* Recovery key
* Email system
* Character auction for shop points
* Database shop offers
* Manage shop offers without touching code
* Live TFS 1.0 integration

# Removed from TODO:
* TFS 1.0 Livestream
Reason: Not open source, not legally available on any official free TFS distributions.