root/trunk/sql/updates/146_world.sql @ 138

Revision 138, 3.5 kB (checked in by yumileroy, 17 years ago)

[svn] Enable linked spells: cast spells/remove auras when spells casted/spells hitting/auras removed. Add new table "spell_linked_spell". Some illustrations provided in sql.
Let trigger creature cast AOE spells when summoned. Illustration provided in sql.
Let active creatures always visible if possible. (seems does not work for now, need to find out why)

Original author: megamage
Date: 2008-10-30 11:32:10-05:00

Line 
1update creature_template set spell1 = 40836, flags_extra = 128, scriptname = '' where entry = 23336;
2
3DROP TABLE IF EXISTS `spell_linked_spell`;
4CREATE TABLE `spell_linked_spell` (
5  `spell_trigger` int(10) NOT NULL,
6  `spell_effect` int(10) NOT NULL default '0',
7  `type` smallint(3) unsigned NOT NULL default '0',
8  `comment` text NOT NULL default '',
9  PRIMARY KEY (`spell_trigger`)
10) ENGINE=MyISAM DEFAULT CHARSET=utf8;
11
12INSERT INTO spell_linked_spell
13   (`spell_trigger`, `spell_effect`, `type`, `comment`)
14VALUES
15   (44008, 45265, 1, 'Static Disruption Visual');
16
17INSERT INTO spell_linked_spell
18   (`spell_trigger`, `spell_effect`, `type`, `comment`)
19VALUES
20   (42052, 40118, 0, 'Volcanic Geyser Visual');
21
22INSERT INTO spell_linked_spell
23   (`spell_trigger`, `spell_effect`, `type`, `comment`)
24VALUES
25   (-41914, 41915, 0, 'Summon Parasitic Shadowfiend\r\n');
26
27INSERT INTO spell_linked_spell
28   (`spell_trigger`, `spell_effect`, `type`, `comment`)
29VALUES
30   (46021, 44852, 1, 'Spectral Realm Aura');
31
32INSERT INTO spell_linked_spell
33   (`spell_trigger`, `spell_effect`, `type`, `comment`)
34VALUES
35   (-46021, 44867, 0, 'Spectral Exhaustion');
36
37INSERT INTO spell_linked_spell
38   (`spell_trigger`, `spell_effect`, `type`, `comment`)
39VALUES
40   (-30410, 44032, 0, 'Manticron Cube Mind Exhaustion');
41
42INSERT INTO spell_linked_spell
43   (`spell_trigger`, `spell_effect`, `type`, `comment`)
44VALUES
45   (-45934, 7, 0, 'Dark Fiend Suicide');
46
47INSERT INTO spell_linked_spell
48   (`spell_trigger`, `spell_effect`, `type`, `comment`)
49VALUES
50   (45661, 45665, 1, 'Encapsulate\r\n');
51
52INSERT INTO spell_linked_spell
53   (`spell_trigger`, `spell_effect`, `type`, `comment`)
54VALUES
55   (40604, 40616, 1, 'Fel Rage Aura');
56
57INSERT INTO spell_linked_spell
58   (`spell_trigger`, `spell_effect`, `type`, `comment`)
59VALUES
60   (40616, 41625, 1, 'Fel Rage Aura');
61
62INSERT INTO spell_linked_spell
63   (`spell_trigger`, `spell_effect`, `type`, `comment`)
64VALUES
65   (41292, 42017, 1, 'Aura of Suffering');
66
67INSERT INTO spell_linked_spell
68   (`spell_trigger`, `spell_effect`, `type`, `comment`)
69VALUES
70   (-41292, -42017, 0, 'Aura of Suffering');
71
72INSERT INTO spell_linked_spell
73   (`spell_trigger`, `spell_effect`, `type`, `comment`)
74VALUES
75   (45347, -45348, 1, 'Remove Flame Touched');
76
77INSERT INTO spell_linked_spell
78   (`spell_trigger`, `spell_effect`, `type`, `comment`)
79VALUES
80   (45348, -45347, 1, 'Remove Dark Touched');
81
82INSERT INTO spell_linked_spell
83   (`spell_trigger`, `spell_effect`, `type`, `comment`)
84VALUES
85   (45248, 45347, 1, 'Apply Dark Touched');
86
87INSERT INTO spell_linked_spell
88   (`spell_trigger`, `spell_effect`, `type`, `comment`)
89VALUES
90   (45329, 45347, 1, 'Apply Dark Touched');
91
92INSERT INTO spell_linked_spell
93   (`spell_trigger`, `spell_effect`, `type`, `comment`)
94VALUES
95   (45256, 45347, 1, 'Apply Dark Touched');
96
97INSERT INTO spell_linked_spell
98   (`spell_trigger`, `spell_effect`, `type`, `comment`)
99VALUES
100   (45270, 45347, 1, 'Apply Dark Touched');
101
102INSERT INTO spell_linked_spell
103   (`spell_trigger`, `spell_effect`, `type`, `comment`)
104VALUES
105   (45342, 45348, 1, 'Apply Flame Touched');
106
107INSERT INTO spell_linked_spell
108   (`spell_trigger`, `spell_effect`, `type`, `comment`)
109VALUES
110   (46771, 45348, 1, 'Apply Flame Touched');
111
112INSERT INTO spell_linked_spell
113   (`spell_trigger`, `spell_effect`, `type`, `comment`)
114VALUES
115   (45271, 45347, 1, 'Apply Dark Touched');
116
117INSERT INTO spell_linked_spell
118   (`spell_trigger`, `spell_effect`, `type`, `comment`)
119VALUES
120   (45246, 45348, 1, 'Apply Flame Touched');
Note: See TracBrowser for help on using the browser.