aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/3148_mangos_7776_01_world_npc_spellclick_spells.sql8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/updates/3148_mangos_7776_01_world_npc_spellclick_spells.sql b/sql/updates/3148_mangos_7776_01_world_npc_spellclick_spells.sql
new file mode 100644
index 00000000000..c8cd342a7f7
--- /dev/null
+++ b/sql/updates/3148_mangos_7776_01_world_npc_spellclick_spells.sql
@@ -0,0 +1,8 @@
+ALTER TABLE db_version CHANGE COLUMN required_7720_01_mangos_mangos_string required_7776_01_mangos_npc_spellclick_spells bit;
+
+CREATE TABLE `npc_spellclick_spells` (
+ `npc_entry` INT UNSIGNED NOT NULL COMMENT 'reference to creature_template',
+ `spell_id` INT UNSIGNED NOT NULL COMMENT 'spell which should be casted ',
+ `quest_id` INT UNSIGNED NOT NULL COMMENT 'reference to quest_template',
+ `cast_flags` TINYINT UNSIGNED NOT NULL COMMENT 'first bit defines caster: 1=player, 0=creature; second bit defines target, same mapping as caster bit'
+) ENGINE = MYISAM DEFAULT CHARSET=utf8;