aboutsummaryrefslogtreecommitdiff
path: root/sql/world.sql
diff options
context:
space:
mode:
authorw12x <none@none>2008-10-21 03:58:38 -0500
committerw12x <none@none>2008-10-21 03:58:38 -0500
commit5e1c19e4d9b6e2deb247e6ce6b25ea132b8118d4 (patch)
tree57a6e1b306028999076e3e80bb52cadbc4af24e1 /sql/world.sql
parent23ff96ded9d418402b78832fd0555c781942eb5b (diff)
[svn] Implement a new table (spell_disabled) to allow disabling some spells for players and / or creatures. To disable a spell for a players and pets, set 2^0 in the disable_mask, to disable for creatures, set 2^1. The comment field is optional. Original patch provided by Craker.
--HG-- branch : trunk
Diffstat (limited to 'sql/world.sql')
-rw-r--r--sql/world.sql21
1 files changed, 21 insertions, 0 deletions
diff --git a/sql/world.sql b/sql/world.sql
index cbccf3b4b5c..2f9772636c4 100644
--- a/sql/world.sql
+++ b/sql/world.sql
@@ -2947,6 +2947,27 @@ LOCK TABLES `spell_chain` WRITE;
UNLOCK TABLES;
--
+-- Table structure for table `spell_disabled`
+--
+
+DROP TABLE IF EXISTS `spell_disabled`;
+CREATE TABLE `spell_disabled` (
+ `entry` int(11) unsigned NOT NULL default '0' COMMENT 'Spell entry',
+ `disable_mask` int(8) unsigned NOT NULL default '0',
+ `comment` varchar(64) NOT NULL default '',
+ PRIMARY KEY (`entry`)
+) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Disabled Spell System';
+
+--
+-- Dumping data for table `spell_disabled`
+--
+
+LOCK TABLES `spell_disabled` WRITE;
+/*!40000 ALTER TABLE `spell_disabled` DISABLE KEYS */;
+/*!40000 ALTER TABLE `spell_disabled` ENABLE KEYS */;
+UNLOCK TABLES;
+
+--
-- Table structure for table `spell_elixir`
--