aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-19 18:44:20 -0600
committermegamage <none@none>2009-02-19 18:44:20 -0600
commite21b2c9baa506a265fddd50f65a69d2bb297cc96 (patch)
treeb8fab793711403664be8872ca9e80a9342cc6ab4 /sql
parent5076e99df193b311c3055ebc3316401dc52a7f15 (diff)
*Implemented gameobjects and creatures grouping (pools of them)
*Groups (called pools) can be also member of any game event Author: Neo2003 --HG-- branch : trunk
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/7299_01_mangos_pools.sql25
1 files changed, 25 insertions, 0 deletions
diff --git a/sql/updates/7299_01_mangos_pools.sql b/sql/updates/7299_01_mangos_pools.sql
new file mode 100644
index 00000000000..0b212fd7378
--- /dev/null
+++ b/sql/updates/7299_01_mangos_pools.sql
@@ -0,0 +1,25 @@
+CREATE TABLE `pool_creature` (
+ `guid` int(10) unsigned NOT NULL default '0',
+ `pool_entry` mediumint(8) unsigned NOT NULL default '0',
+ `chance` float unsigned NOT NULL default '0',
+ PRIMARY KEY (`pool_entry`,`guid`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+CREATE TABLE `pool_gameobject` (
+ `guid` int(10) unsigned NOT NULL default '0',
+ `pool_entry` mediumint(8) unsigned NOT NULL default '0',
+ `chance` float unsigned NOT NULL default '0',
+ PRIMARY KEY (`guid`,`pool_entry`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+CREATE TABLE `pool_template` (
+ `entry` mediumint(8) unsigned NOT NULL default '0' COMMENT 'Pool entry',
+ `max_limit` int(10) unsigned NOT NULL default '0' COMMENT 'Max number of objects (0) is no limit',
+ PRIMARY KEY (`entry`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+CREATE TABLE `game_event_pool` (
+ `pool_entry` mediumint(8) unsigned NOT NULL default '0' COMMENT 'Id of the pool',
+ `event` smallint(6) NOT NULL default '0' COMMENT 'Put negatives values to remove during event',
+ PRIMARY KEY (`pool_entry`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;