From e91e4024db6844f3117f5b0cbc6135c6dd154274 Mon Sep 17 00:00:00 2001 From: Malcrom Date: Tue, 4 Jun 2013 12:27:34 -0230 Subject: DB/Conditions: Fix a couple condition errors and rename 2 sql files --- .../2013_06_04_00_world_game_event_creature.sql | 2 ++ sql/updates/world/2013_06_04_01_world_sai.sql | 22 ++++++++++++++++++++++ .../world/2013_06_04_02_world_conditions.sql | 5 +++++ .../2013_06_06_00_world_game_event_creature.sql | 2 -- sql/updates/world/2013_06_06_01_world_sai.sql | 22 ---------------------- 5 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 sql/updates/world/2013_06_04_00_world_game_event_creature.sql create mode 100644 sql/updates/world/2013_06_04_01_world_sai.sql create mode 100644 sql/updates/world/2013_06_04_02_world_conditions.sql delete mode 100644 sql/updates/world/2013_06_06_00_world_game_event_creature.sql delete mode 100644 sql/updates/world/2013_06_06_01_world_sai.sql (limited to 'sql') diff --git a/sql/updates/world/2013_06_04_00_world_game_event_creature.sql b/sql/updates/world/2013_06_04_00_world_game_event_creature.sql new file mode 100644 index 00000000000..fb4fc759528 --- /dev/null +++ b/sql/updates/world/2013_06_04_00_world_game_event_creature.sql @@ -0,0 +1,2 @@ +DELETE FROM `game_event_creature` WHERE `guid`=152120 AND `eventEntry`=24; +INSERT INTO `game_event_creature` (`guid`, `eventEntry`) VALUES (152120,24); diff --git a/sql/updates/world/2013_06_04_01_world_sai.sql b/sql/updates/world/2013_06_04_01_world_sai.sql new file mode 100644 index 00000000000..7b9c1b644bd --- /dev/null +++ b/sql/updates/world/2013_06_04_01_world_sai.sql @@ -0,0 +1,22 @@ +UPDATE `smart_scripts` SET `event_flags`=1 WHERE `entryorguid`=23580 AND `source_type`=0 AND `id`=0 AND `link`=1; + +-- Deep in the bowels of the Underhalls - 13042 +SET @OSTERKILGR := 30409; -- Apprentice Osterkilgr +SET @SPELL_BLAST := 60290; -- Blast Wave +SET @SPELL_FIREBALL := 14034; -- Fireball +SET @QUEST := 13042; -- Deep in the Bowels of the Underhalls +UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@OSTERKILGR; +DELETE FROM `creature_ai_scripts` WHERE `creature_id`=@OSTERKILGR; +DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@OSTERKILGR; +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 +(@OSTERKILGR,0,0,0,0,0,100,0,5000,7000,5000,7000,11,@SPELL_BLAST,0,0,0,0,0,5,0,0,0,0,0,0,0,'Apprentice Osterkilgr - In Combat - cast Blast Wave'), +(@OSTERKILGR,0,1,0,0,0,100,0,1000,2000,1000,2000,11,@SPELL_FIREBALL,0,0,0,0,0,5,0,0,0,0,0,0,0,'Apprentice Osterkilgr - In Combat - cast Fireball'), +(@OSTERKILGR,0,2,0,2,0,100,1,40,80,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Apprentice Osterkilgr - @80%HP - say text 0'), +(@OSTERKILGR,0,3,4,2,0,100,1,0,40,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Apprentice Osterkilgr - @40%HP - say text 1'), +(@OSTERKILGR,0,4,0,61,0,100,0,0,0,0,0,33,30412,0,0,0,0,0,7,0,0,0,0,0,0,0,'Apprentice Osterkilgr - At 40% HP - give kill credit'); +DELETE FROM `creature_ai_texts` WHERE `entry` IN (-10020,-10021); +DELETE FROM `creature_text` WHERE `entry`=@OSTERKILGR; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES +(@OSTERKILGR,0,0,'You''ve come for the doctor''s plans! You''ll only find death!',12,0,0,0,0,0,'Apprentice Osterkilgr - Say 0'), +(@OSTERKILGR,1,0,'The doctor entrusted me with the plans to Nergeld, our flesh giant amalgamation made entirely of vargul! It will be the most powerful creation of its kind and a whole legion of them will be created to destroy your pitiful forces!',12,0,0,0,0,0,'Apprentice Osterkilgr - Say 1'); diff --git a/sql/updates/world/2013_06_04_02_world_conditions.sql b/sql/updates/world/2013_06_04_02_world_conditions.sql new file mode 100644 index 00000000000..793a88b9d70 --- /dev/null +++ b/sql/updates/world/2013_06_04_02_world_conditions.sql @@ -0,0 +1,5 @@ +-- Add option conditions for Hunter trainers +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (15) AND `SourceGroup` IN (7368) AND `SourceEntry` IN (3,4); +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES +(15,7368,3,0,9,9454,0,0,0,'','Acteon - Show gossip option if player has quest 9454'), +(15,7368,4,0,9,10324,,0,0,'','Acteon - Show gossip option if player has quest 10324'); diff --git a/sql/updates/world/2013_06_06_00_world_game_event_creature.sql b/sql/updates/world/2013_06_06_00_world_game_event_creature.sql deleted file mode 100644 index fb4fc759528..00000000000 --- a/sql/updates/world/2013_06_06_00_world_game_event_creature.sql +++ /dev/null @@ -1,2 +0,0 @@ -DELETE FROM `game_event_creature` WHERE `guid`=152120 AND `eventEntry`=24; -INSERT INTO `game_event_creature` (`guid`, `eventEntry`) VALUES (152120,24); diff --git a/sql/updates/world/2013_06_06_01_world_sai.sql b/sql/updates/world/2013_06_06_01_world_sai.sql deleted file mode 100644 index 7b9c1b644bd..00000000000 --- a/sql/updates/world/2013_06_06_01_world_sai.sql +++ /dev/null @@ -1,22 +0,0 @@ -UPDATE `smart_scripts` SET `event_flags`=1 WHERE `entryorguid`=23580 AND `source_type`=0 AND `id`=0 AND `link`=1; - --- Deep in the bowels of the Underhalls - 13042 -SET @OSTERKILGR := 30409; -- Apprentice Osterkilgr -SET @SPELL_BLAST := 60290; -- Blast Wave -SET @SPELL_FIREBALL := 14034; -- Fireball -SET @QUEST := 13042; -- Deep in the Bowels of the Underhalls -UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@OSTERKILGR; -DELETE FROM `creature_ai_scripts` WHERE `creature_id`=@OSTERKILGR; -DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@OSTERKILGR; -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 -(@OSTERKILGR,0,0,0,0,0,100,0,5000,7000,5000,7000,11,@SPELL_BLAST,0,0,0,0,0,5,0,0,0,0,0,0,0,'Apprentice Osterkilgr - In Combat - cast Blast Wave'), -(@OSTERKILGR,0,1,0,0,0,100,0,1000,2000,1000,2000,11,@SPELL_FIREBALL,0,0,0,0,0,5,0,0,0,0,0,0,0,'Apprentice Osterkilgr - In Combat - cast Fireball'), -(@OSTERKILGR,0,2,0,2,0,100,1,40,80,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Apprentice Osterkilgr - @80%HP - say text 0'), -(@OSTERKILGR,0,3,4,2,0,100,1,0,40,0,0,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Apprentice Osterkilgr - @40%HP - say text 1'), -(@OSTERKILGR,0,4,0,61,0,100,0,0,0,0,0,33,30412,0,0,0,0,0,7,0,0,0,0,0,0,0,'Apprentice Osterkilgr - At 40% HP - give kill credit'); -DELETE FROM `creature_ai_texts` WHERE `entry` IN (-10020,-10021); -DELETE FROM `creature_text` WHERE `entry`=@OSTERKILGR; -INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES -(@OSTERKILGR,0,0,'You''ve come for the doctor''s plans! You''ll only find death!',12,0,0,0,0,0,'Apprentice Osterkilgr - Say 0'), -(@OSTERKILGR,1,0,'The doctor entrusted me with the plans to Nergeld, our flesh giant amalgamation made entirely of vargul! It will be the most powerful creation of its kind and a whole legion of them will be created to destroy your pitiful forces!',12,0,0,0,0,0,'Apprentice Osterkilgr - Say 1'); -- cgit v1.2.3