aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2013-08-30 23:09:01 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2013-08-30 23:09:01 +0200
commit3f6296b65ebd63849f67895f7ab6280b8828da28 (patch)
treec5462efbc819912b93aaa4402d46c709fb61f8e2 /sql
parent7ecf4fdec147af7da51541aae9de4d91aff05ad6 (diff)
parent4f10e6b89ab95e76e9f0de3f8ad4b8bd4ac1de84 (diff)
Merge branch 'master' of github.com:TrinityCore/TrinityCore
Diffstat (limited to 'sql')
-rw-r--r--sql/updates/world/2013_08_30_07_world_eai_sai.sql (renamed from sql/updates/world/2013_08_30_06_world_eai_sai.sql)0
-rw-r--r--sql/updates/world/2013_08_30_08_world_sai.sql42
-rw-r--r--sql/updates/world/2013_08_30_09_world_spell_script_names.sql4
3 files changed, 46 insertions, 0 deletions
diff --git a/sql/updates/world/2013_08_30_06_world_eai_sai.sql b/sql/updates/world/2013_08_30_07_world_eai_sai.sql
index f0f16330486..f0f16330486 100644
--- a/sql/updates/world/2013_08_30_06_world_eai_sai.sql
+++ b/sql/updates/world/2013_08_30_07_world_eai_sai.sql
diff --git a/sql/updates/world/2013_08_30_08_world_sai.sql b/sql/updates/world/2013_08_30_08_world_sai.sql
new file mode 100644
index 00000000000..1c29787edb7
--- /dev/null
+++ b/sql/updates/world/2013_08_30_08_world_sai.sql
@@ -0,0 +1,42 @@
+-- Deeprun Rat Roundup (6661)
+
+SET @QUEST := 6661; -- Random Comment
+SET @NPC_RAT := 13016; -- Deeprun Rat
+SET @NPC_ENTHRALLED_RAT := 13017; -- Enthralled Deeprun Rat
+SET @NPC_MONTY := 12997; -- Monty <Rat Extermination Specialist>
+SET @SPELL_FLUTE := 21050; -- Melodious Rapture
+SET @SPELL_FLUTE_VISUAL := 21051; -- Melodious Rapture Visual (DND)
+SET @SPELL_BASH := 21052; -- Monty Bashes Rats (DND)
+
+UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@NPC_RAT;
+UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@NPC_ENTHRALLED_RAT;
+UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@NPC_MONTY;
+
+UPDATE `creature_model_info` SET `bounding_radius`=1,`combat_reach`=1,`gender`=2 WHERE `modelid`=1141; -- Deeprun Rat
+-- Addon data for creature 13016 (Deeprun Rat)
+DELETE FROM `creature_template_addon` WHERE `entry`=@NPC_RAT;
+INSERT INTO `creature_template_addon` (`entry`,`mount`,`bytes1`,`bytes2`,`emote`,`auras`) VALUES
+(@NPC_RAT,0,0,1,0, ''); -- Deeprun Rat
+
+DELETE FROM `smart_scripts` WHERE `entryorguid` IN (@NPC_RAT,@NPC_ENTHRALLED_RAT,@NPC_MONTY);
+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
+(@NPC_RAT,0,0,1,8,0,100,1,@SPELL_FLUTE,0,0,0,12,@NPC_ENTHRALLED_RAT,2,120000,0,0,0,1,0,0,0,0,0,0,0,'Deeprun Rat - On Spellhit - Summon Enthralled Rat'),
+(@NPC_RAT,0,1,0,61,0,100,0,0,0,0,0,41,100,1,0,0,0,0,1,0,0,0,0,0,0,0,'Deeprun Rat - On link - Despawn'),
+--
+(@NPC_ENTHRALLED_RAT,0,0,1,54,0,100,0,0,0,0,0,2,35,0,0,0,0,0,1,0,0,0,0,0,0,0,'Deeprun Rat - Just summoned - Update Faction'),
+(@NPC_ENTHRALLED_RAT,0,1,2,61,0,100,0,0,0,0,0,33,@NPC_ENTHRALLED_RAT,0,0,0,0,0,21,5,0,0,0,0,0,0,'Deeprun Rat - On Link - Give Q credit'),
+(@NPC_ENTHRALLED_RAT,0,2,3,61,0,100,0,0,0,0,0,11,@SPELL_FLUTE_VISUAL,0,0,0,0,0,1,0,0,0,0,0,0,0,'Deeprun Rat - On Link - Set Flute Visual'),
+(@NPC_ENTHRALLED_RAT,0,3,4,61,0,100,0,0,0,0,0,29,0,0,0,0,0,0,21,5,0,0,0,0,0,0,'Deeprun Rat - On Link - Follow Player'),
+(@NPC_ENTHRALLED_RAT,0,4,0,61,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0,'Deeprun Rat - On LInk- Set Phase 1'),
+(@NPC_ENTHRALLED_RAT,0,5,0,8,1,100,0,@SPELL_BASH,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Deeprun Rat - On Spellhit - Despawn'),
+--
+(@NPC_MONTY,0,0,1,20,0,100,0,@QUEST,0,0,0,11,@SPELL_BASH,0,0,0,0,0,1,0,0,0,0,0,0,0,'Monty - On Reward Quest - Cast Bash'),
+(@NPC_MONTY,0,1,0,61,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'Monty - On Reward Quest - Talk');
+
+DELETE FROM `creature_text` WHERE `entry`=@NPC_MONTY;
+INSERT INTO `creature_text` (`entry`, `groupid`, `id`, `text`, `type`, `language`, `probability`, `emote`, `duration`, `sound`, `comment`) VALUES
+(@NPC_MONTY,0,0,'Into the box me pretties! Thats it. One by one ye go.',12,0,0,0,0,0,'Monty');
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceEntry`=@SPELL_BASH;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
+(13,1,@SPELL_BASH,0,0,31,0,3,@NPC_ENTHRALLED_RAT,0,0,0,'','Spell Bash target rats');
diff --git a/sql/updates/world/2013_08_30_09_world_spell_script_names.sql b/sql/updates/world/2013_08_30_09_world_spell_script_names.sql
new file mode 100644
index 00000000000..d9857b0e789
--- /dev/null
+++ b/sql/updates/world/2013_08_30_09_world_spell_script_names.sql
@@ -0,0 +1,4 @@
+DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_rotface_vile_gas_trigger';
+INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
+(72285, 'spell_rotface_vile_gas_trigger'),
+(72288, 'spell_rotface_vile_gas_trigger');