aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAokromes <Aokromes@users.noreply.github.com>2015-03-23 01:28:17 +0100
committerNayd <dnpd.dd@gmail.com>2015-03-24 10:26:51 +0000
commitd90a161619a96f8259a4d2052f6524393f7245e8 (patch)
tree146fb9163bba931066df036af52359bae9bf7a74
parentcdb037c0b9a00008b89fa7cad39a6639aa3ffbc3 (diff)
DB/Quest Veil Lithic: Preemptive Strike
By Killyana, closes #12564 (cherry picked from commit 15492ecaf2fac0a29b015f51b3ca579d4000f97e)
-rw-r--r--sql/updates/world/2015_03_23_04_world.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/updates/world/2015_03_23_04_world.sql b/sql/updates/world/2015_03_23_04_world.sql
new file mode 100644
index 00000000000..1425f517d0a
--- /dev/null
+++ b/sql/updates/world/2015_03_23_04_world.sql
@@ -0,0 +1,15 @@
+--
+SET @Bird1 :=22337;
+SET @Bird2 :=22339;
+SET @Egg :=185211;
+
+UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry` IN (@Bird2);
+UPDATE `gameobject_template` SET `AIName`='SmartGameObjectAI' WHERE `entry` IN (@Egg);
+
+DELETE FROM `smart_scripts` WHERE `entryorguid`=@Egg*100 AND `source_type`=9;
+DELETE FROM `smart_scripts` WHERE `entryorguid`=@Egg*100+1 AND `source_type`=9;
+DELETE FROM `smart_scripts` WHERE `entryorguid`=@Egg AND `source_type`=1;
+INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
+(@Egg, 1, 0, 0, 70, 0, 100, 0, 2, 0, 0, 0, 87, @Egg*100, @Egg*100+1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cursed egg - On State 2 - Action random action list'),
+(@Egg*100, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, @Bird2, 3, 15000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cursed egg - Action list - Summon'),
+(@Egg*100+1, 9, 0, 0, 0, 0, 100, 0, 0, 0, 0, 0, 12, @Bird1, 3, 40000, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Cursed egg - Action list - Summon');