diff options
| author | Vincent-Michael <Vincent_Michael@gmx.de> | 2013-08-30 23:46:24 +0200 |
|---|---|---|
| committer | Vincent-Michael <Vincent_Michael@gmx.de> | 2013-08-30 23:46:24 +0200 |
| commit | 38bb6fe8e7935d91cc9e487c73a966689146d8f2 (patch) | |
| tree | 348d72809628705ca88e05c29927de12fbba9870 /sql | |
| parent | 224c5c5d3d4876f6cf05c37d7183205b1b9b565f (diff) | |
| parent | 3f6296b65ebd63849f67895f7ab6280b8828da28 (diff) | |
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts:
src/server/game/AI/EventAI/CreatureEventAIMgr.cpp
src/server/game/Entities/Creature/Creature.h
src/server/game/Entities/Player/Player.cpp
src/server/game/Globals/ObjectMgr.cpp
src/server/game/Handlers/CharacterHandler.cpp
src/server/game/Quests/QuestDef.cpp
src/server/game/Quests/QuestDef.h
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) | 2 | ||||
| -rw-r--r-- | sql/updates/world/2013_08_30_08_world_sai.sql | 42 | ||||
| -rw-r--r-- | sql/updates/world/2013_08_30_09_world_spell_script_names.sql | 4 |
3 files changed, 47 insertions, 1 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 33814d2cc36..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 @@ -11,7 +11,7 @@ DELETE FROM `creature_ai_scripts` WHERE `action1_type`=27; UPDATE `smart_scripts` SET `action_type`=33, `action_param2`=0 WHERE `source_type`=0 AND `action_type`=27; -- by VM -- all quests that used RequiredSpellCastX fields -UPDATE `quest_template` SET `SpecialFlags`=`SpecialFlags`|32 WHERE `entry` IN +UPDATE `quest_template` SET `SpecialFlags`=`SpecialFlags`|32 WHERE `Id` IN (28,29,532,553,849,877,905,974,2118,2932,2994,3825,5096,5163,5165,5441, 6124,6129,6381,6395,6661,8346,8889,9066,9169,9193,9275,9294,9391,9440, 9444,9447,9489,9526,9600,9629,9667,9685,9720,9805,9824,9874,9910,10011, 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'); |
