server/sql
Schmoozerd 8c29893310 [11964] Implement new conditions system
Tree-like design idea by Faramir118, thanks for that!

* Add `conditions` table to store conditions.
* REPLACE current handling of conditions for the *_loot_template tables
  Convert the old conditions in *_loot_template to the new system by SQL-Queries
* ADD support for new conditions to gossip_menu and gossip_menu_option.
  If for these tables no condition_id (new system) is provided, the old conditions will still be used
* Add a small helper python script to contrib/convertConditions, see README there for details
* Add new command to reload the `conditions` table (.reload conditions)
* Add two Meta-Condition types CONDITION_AND (-1) and CONDITION_OR (-2) which are used as:
  value1 (as condition_entry) AND / OR value2 (as condition_entry)

  With these meta-conditions it is possible to create tree like and very complicated combined conditions (like HasAura && (HasItem || HasQuest))

NOTE about conversion:
For easier convertion all the old table data is still preserved, but will be removed eventually (within a circle of the moon approximately)
The python script will not create an optimal initial fill of the `conditions` table. You might want to tweak it manually or suggest some optimized algorithm :)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
2012-04-15 23:06:00 +02:00
..
tools [11875] Update Copyright notice to year 2012 2012-01-16 17:43:59 +01:00
updates [11964] Implement new conditions system 2012-04-15 23:06:00 +02:00
characters.sql [11785] Implement dungeon encounters (DBC part), thanks to rsa for porting it to mangos 2011-09-04 13:15:22 +03:00
create_mysql.sql [11019] Improve the security for the MySQL DB 2011-01-16 20:34:39 +01:00
drop_mysql.sql Imported MaNGOS revision 6767 from http://mangos.svn.sourceforge.net/svnroot/mangos/trunk/ 2008-10-14 00:29:20 +02:00
mangos.sql [11964] Implement new conditions system 2012-04-15 23:06:00 +02:00
mangos_spell_check.sql [11372] Convert tabs to 4 spaces 2011-04-17 01:34:51 +02:00
postgre_compatibility_addon.sql [11372] Convert tabs to 4 spaces 2011-04-17 01:34:51 +02:00
realmd.sql [11372] Convert tabs to 4 spaces 2011-04-17 01:34:51 +02:00