aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorMalcrom <malcromdev@gmail.com>2011-04-22 19:56:16 +0100
committerNay <dnpd.dd@gmail.com>2011-04-22 19:56:16 +0100
commit5a5d266e00ffb6ec2acd1ba8b102215b5f1c844d (patch)
tree8fe0bf32098b2060b725713d04876e3097bbbe13 /sql
parent4bf9a6f4a4bb15ed1380b9e1738f76f5ff24084f (diff)
DB/SAI: Add 6172 & 6177 & 33788 scripts and remove their core scripts.
Diffstat (limited to 'sql')
-rw-r--r--sql/scripts/world_script_texts.sql1
-rw-r--r--sql/scripts/world_scripts_full.sql4
-rw-r--r--sql/updates/world/2011_04_23_07_world_script_texts.sql1
-rw-r--r--sql/updates/world/2011_04_23_07_world_scriptname.sql1
-rw-r--r--sql/updates/world/2011_04_23_07_world_smart_scripts.sql129
5 files changed, 132 insertions, 4 deletions
diff --git a/sql/scripts/world_script_texts.sql b/sql/scripts/world_script_texts.sql
index 46b9b0789b1..341fcc1960a 100644
--- a/sql/scripts/world_script_texts.sql
+++ b/sql/scripts/world_script_texts.sql
@@ -131,7 +131,6 @@ INSERT INTO `script_texts` (`npc_entry`,`entry`,`content_default`,`content_loc1`
(0,-1000184,'Yes Master, all goes along as planned.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,7,0,'engineer_spark SAY_TEXT'),
(0,-1000185,'%s puts the shell to his ear.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,2,7,0,'engineer_spark EMOTE_SHELL'),
(0,-1000186,'Now I cut you!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,1,7,0,'engineer_spark SAY_ATTACK'),
- (0,-1000187,'Thank you, dear $C, you just saved my life.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,7,0,'faulk SAY_HEAL'),
(0,-1000188,'Deployment sucessful. Trespassers will be neutralized.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,'converted_sentry SAY_CONVERTED_1'),
(0,-1000189,'Objective acquired. Initiating security routines.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,'converted_sentry SAY_CONVERTED_2'),
(0,-1000190,'In Nagrand, food hunt ogre!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,0,0,' SAY_LUMP_0'),
diff --git a/sql/scripts/world_scripts_full.sql b/sql/scripts/world_scripts_full.sql
index 56767828c8b..e387e2f7788 100644
--- a/sql/scripts/world_scripts_full.sql
+++ b/sql/scripts/world_scripts_full.sql
@@ -592,11 +592,9 @@ UPDATE `creature_template` SET `ScriptName`='npc_aged_dying_ancient_kodo' WHERE
UPDATE `gameobject_template` SET `ScriptName`='go_iruxos' WHERE `entry`=176581;
UPDATE `creature_template` SET `ScriptName`='npc_dalinda' WHERE `entry`=5644;
-
/* DIRE MAUL */
/* DUN MOROGH */
-UPDATE `creature_template` SET `ScriptName`='npc_narm_faulk' WHERE `entry`=6177;
/* DUROTAR */
UPDATE `creature_template` SET `ScriptName`='npc_lazy_peon' WHERE `entry`=10556;
@@ -619,6 +617,7 @@ UPDATE `creature_template` SET `ScriptName`='npc_private_hendel' WHERE `entry`=4
UPDATE `creature_template` SET `ScriptName`='npc_zelfrax' WHERE `entry`=23864;
UPDATE `creature_template` SET `ScriptName`='npc_stinky' WHERE `entry`=4880;
UPDATE `creature_template` SET `ScriptName`='npc_theramore_guard' WHERE `entry`=4979;
+
/* EASTERN PLAGUELANDS */
UPDATE `creature_template` SET `ScriptName`='mobs_ghoul_flayer' WHERE `entry` IN (8530,8531,8532);
UPDATE `creature_template` SET `ScriptName`='npc_augustus_the_touched' WHERE `entry`=12384;
@@ -626,7 +625,6 @@ UPDATE `creature_template` SET `ScriptName`='npc_darrowshire_spirit' WHERE `entr
UPDATE `creature_template` SET `ScriptName`='npc_tirion_fordring' WHERE `entry`=1855;
/* ELWYNN FOREST */
-UPDATE `creature_template` SET `ScriptName`='npc_henze_faulk' WHERE `entry`=6172;
/* EVERSONG WOODS */
UPDATE `creature_template` SET `ScriptName`='npc_prospector_anvilward' WHERE `entry`=15420;
diff --git a/sql/updates/world/2011_04_23_07_world_script_texts.sql b/sql/updates/world/2011_04_23_07_world_script_texts.sql
new file mode 100644
index 00000000000..6b2ac8db2d4
--- /dev/null
+++ b/sql/updates/world/2011_04_23_07_world_script_texts.sql
@@ -0,0 +1 @@
+DELETE FROM `script_texts` WHERE `npc_entry`=0 AND `entry`=-1000187;
diff --git a/sql/updates/world/2011_04_23_07_world_scriptname.sql b/sql/updates/world/2011_04_23_07_world_scriptname.sql
new file mode 100644
index 00000000000..656d2bb8d44
--- /dev/null
+++ b/sql/updates/world/2011_04_23_07_world_scriptname.sql
@@ -0,0 +1 @@
+UPDATE `creature_template` SET `ScriptName`='' WHERE `entry` IN (6172,6177); -- Henze Faulk & Narm Faulk
diff --git a/sql/updates/world/2011_04_23_07_world_smart_scripts.sql b/sql/updates/world/2011_04_23_07_world_smart_scripts.sql
new file mode 100644
index 00000000000..fa7ebba48ad
--- /dev/null
+++ b/sql/updates/world/2011_04_23_07_world_smart_scripts.sql
@@ -0,0 +1,129 @@
+-- SAI for Henze Faulk
+SET @ENTRY := 6172;
+UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid` IN (@ENTRY*100);
+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
+-- AI
+(@ENTRY,0,0,1,11,0,100,0,0,0,0,0,11,29266,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Henze Faulk - On spawn - add aura'),
+(@ENTRY,0,1,2,61,0,100,0,0,0,0,0,81,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Henze Faulk - Script - set npcflags'),
+(@ENTRY,0,2,0,61,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Henze Faulk - On spawn - set phase 1'),
+(@ENTRY,0,3,0,8,1,100,0,8593,0,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Henze Faulk - On spellhit - run script (phase 1)'),
+-- Script
+(@ENTRY*100,9,0,0,0,0,100,0,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Henze Faulk - Script - set phase 0'),
+(@ENTRY*100,9,1,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Henze Faulk - Script - turn to player'),
+(@ENTRY*100,9,2,0,0,0,100,0,1000,1000,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Henze Faulk - Script - say text'),
+(@ENTRY*100,9,3,0,0,0,100,0,1500,1500,0,0,81,2,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Henze Faulk - Script - set npcflags'),
+(@ENTRY*100,9,4,0,0,0,100,0,120000,120000,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Henze Faulk - Script - evade (reset script)');
+-- NPC talk text insert
+DELETE FROM `creature_text` WHERE `entry`=@ENTRY;
+INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
+(@ENTRY,0,0, 'Thank you, dear $C, you just saved my life.',0,7,100,1,0,0, 'Henze Faulk');
+-- Scripting cleanup
+UPDATE `creature_template` SET `ScriptName`= '',`RegenHealth`=0 WHERE `entry`=@ENTRY;
+UPDATE `creature_template_addon` SET `auras`='' WHERE `entry`=@ENTRY;
+
+-- SAI for Narm Faulk
+SET @ENTRY := 6177;
+UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid` IN (@ENTRY*100);
+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
+-- AI
+(@ENTRY,0,0,1,11,0,100,0,0,0,0,0,11,29266,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Narm Faulk - On spawn - add aura'),
+(@ENTRY,0,1,2,61,0,100,0,0,0,0,0,81,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Narm Faulk - Script - set npcflags'),
+(@ENTRY,0,2,0,61,0,100,0,0,0,0,0,22,1,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Narm Faulk - On spawn - set phase 1'),
+(@ENTRY,0,3,0,8,1,100,0,8593,0,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Narm Faulk - On spellhit - run script (phase 1)'),
+-- Script
+(@ENTRY*100,9,0,0,0,0,100,0,0,0,0,0,22,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Narm Faulk - Script - set phase 0'),
+(@ENTRY*100,9,1,0,0,0,100,0,1000,1000,0,0,66,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Narm Faulk - Script - turn to player'),
+(@ENTRY*100,9,2,0,0,0,100,0,1000,1000,0,0,1,0,0,0,0,0,0,7,0,0,0,0,0,0,0, 'Narm Faulk - Script - say text'),
+(@ENTRY*100,9,3,0,0,0,100,0,1500,1500,0,0,81,2,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Narm Faulk - Script - set npcflags'),
+(@ENTRY*100,9,4,0,0,0,100,0,120000,120000,0,0,24,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Narm Faulk - Script - evade (reset script)');
+-- NPC talk text insert
+DELETE FROM `creature_text` WHERE `entry`=@ENTRY;
+INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
+(@ENTRY,0,0, 'Thank you, dear $C, you just saved my life.',0,7,100,1,0,0, 'Narm Faulk');
+-- Scripting cleanup
+UPDATE `creature_template` SET `ScriptName`= '',`RegenHealth`=0 WHERE `entry`=@ENTRY;
+UPDATE `creature_template_addon` SET `auras`='' WHERE `entry`=@ENTRY;
+
+-- SAI for Fhyron Shadesong
+SET @ENTRY := 33788;
+UPDATE `creature` SET `spawndist`=0,`MovementType`=0,`position_x`=8570.943,`position_y`=1008.467,`position_z`=548.2927 WHERE `guid`=85201;
+UPDATE `creature_template` SET `AIName`='SmartAI' WHERE `entry`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `source_type`=0 AND `entryorguid`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `source_type`=9 AND `entryorguid`=@ENTRY*100;
+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
+(@ENTRY,0,0,0,11,0,100,0,0,0,0,0,53,0,@ENTRY,1,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - On spawn - Start WP movement'),
+(@ENTRY,0,1,0,40,0,100,0,8,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 8 - run script'),
+(@ENTRY,0,2,0,40,0,100,0,10,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 10 - run script'),
+(@ENTRY,0,3,0,40,0,100,0,12,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 12 - run script'),
+(@ENTRY,0,4,0,40,0,100,0,14,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 14 - run script'),
+(@ENTRY,0,5,0,40,0,100,0,15,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 15 - run script'),
+(@ENTRY,0,6,0,40,0,100,0,17,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 17 - run script'),
+(@ENTRY,0,7,0,40,0,100,0,18,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 18 - run script'),
+(@ENTRY,0,8,0,40,0,100,0,20,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 20 - run script'),
+(@ENTRY,0,9,0,40,0,100,0,21,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 21 - run script'),
+(@ENTRY,0,10,0,40,0,100,0,26,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 26 - run script'),
+(@ENTRY,0,11,0,40,0,100,0,28,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 28 - run script'),
+(@ENTRY,0,12,0,40,0,100,0,31,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 31 - run script'),
+(@ENTRY,0,13,0,40,0,100,0,33,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 33 - run script'),
+(@ENTRY,0,14,0,40,0,100,0,38,@ENTRY,0,0,80,@ENTRY*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Reach wp 38 - run script'),
+(@ENTRY*100,9,0,0,0,0,100,0,0,0,0,0,54,8000,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Script - Pause path'),
+(@ENTRY*100,9,1,0,0,0,100,0,100,100,0,0,66,0,0,0,0,0,0,19,33787,0,0,0,0,0,0, 'Fhyron Shadesong - Script - turn to Tournament Druid Spell Target'),
+(@ENTRY*100,9,2,0,0,0,100,0,100,100,0,0,11,63678,0,0,0,0,0,19,33787,0,0,0,0,0,0, 'Fhyron Shadesong - Script - Cast Earthliving Visual on Tournament Druid Spell Target'),
+(@ENTRY*100,9,3,0,0,0,50,0,4000,4000,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0, 'Fhyron Shadesong - Script - say text 0');
+-- NPC talk text insert from sniff
+DELETE FROM `creature_text` WHERE `entry`=@ENTRY;
+INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES
+(@ENTRY,0,0, 'Help shield us from these cutting winds, little sapling.',0,7,100,2,0,0, 'Fhyron Shadesong'),
+(@ENTRY,0,1, 'There you are',0,7,100,273,0,0, 'Fhyron Shadesong'),
+(@ENTRY,0,2, 'Grow, little one.',0,7,100,273,0,0, 'Fhyron Shadesong');
+-- Waypoints for Fhyron Shadesong from sniff
+DELETE FROM `waypoints` WHERE `entry`=@ENTRY;
+INSERT INTO `waypoints` (`entry`,`pointid`,`position_x`,`position_y`,`position_z`,`point_comment`) VALUES
+(@ENTRY,1,8567.44,973.9194,547.9177, 'Fhyron Shadesong'),
+(@ENTRY,2,8568.162,947.0933,547.8038, 'Fhyron Shadesong'),
+(@ENTRY,3,8566.031,913.37,548.2927, 'Fhyron Shadesong'),
+(@ENTRY,4,8564.706,894.527,547.6705, 'Fhyron Shadesong'),
+(@ENTRY,5,8567.681,876.0731,547.5937, 'Fhyron Shadesong'),
+(@ENTRY,6,8578.911,863.8034,548.4218, 'Fhyron Shadesong'),
+(@ENTRY,7,8590.869,849.7815,547.6718, 'Fhyron Shadesong'),
+(@ENTRY,8,8603.909,853.178,548.1281, 'Fhyron Shadesong'),
+(@ENTRY,9,8599.38,855.512,547.715, 'Fhyron Shadesong'),
+(@ENTRY,10,8591.701,868.5342,549.3784, 'Fhyron Shadesong'),
+(@ENTRY,11,8586.77,871.798,547.876, 'Fhyron Shadesong'),
+(@ENTRY,12,8586.149,883.8123,549.2509, 'Fhyron Shadesong'),
+(@ENTRY,13,8583.74,886.251,548.96, 'Fhyron Shadesong'),
+(@ENTRY,14,8582.075,903.0688,550.0374, 'Fhyron Shadesong'),
+(@ENTRY,15,8585.078,918.2136,548.6675, 'Fhyron Shadesong'),
+(@ENTRY,16,8581.65,944.137,547.897, 'Fhyron Shadesong'),
+(@ENTRY,17,8582.839,948.3386,547.6221, 'Fhyron Shadesong'),
+(@ENTRY,18,8565.45,986.6495,549.3403, 'Fhyron Shadesong'),
+(@ENTRY,19,8570.5,989.399,547.629, 'Fhyron Shadesong'),
+(@ENTRY,20,8576.626,1006.561,549.2132, 'Fhyron Shadesong'),
+(@ENTRY,21,8586.87,1008.438,548.1278, 'Fhyron Shadesong'),
+(@ENTRY,22,8590.46,1005.12,547.563, 'Fhyron Shadesong'),
+(@ENTRY,23,8599.41,1007.08,547.419, 'Fhyron Shadesong'),
+(@ENTRY,24,8602.17,1013.39,548.185, 'Fhyron Shadesong'),
+(@ENTRY,25,8604.88,1030.23,556.734, 'Fhyron Shadesong'),
+(@ENTRY,26,8612.658,1035.293,558.3499, 'Fhyron Shadesong'),
+(@ENTRY,27,8611.47,1039.23,558.735, 'Fhyron Shadesong'),
+(@ENTRY,28,8613.692,1042.313,558.3265, 'Fhyron Shadesong'),
+(@ENTRY,29,8603.88,1044.65,558.38, 'Fhyron Shadesong'),
+(@ENTRY,30,8598.02,1072.57,557.923, 'Fhyron Shadesong'),
+(@ENTRY,31,8602.397,1081.373,558.2934, 'Fhyron Shadesong'),
+(@ENTRY,32,8597.45,1089.27,557.317, 'Fhyron Shadesong'),
+(@ENTRY,33,8600.864,1092.901,557.4839, 'Fhyron Shadesong'),
+(@ENTRY,34,8593.38,1084.72,556.817, 'Fhyron Shadesong'),
+(@ENTRY,35,8578.9,1068.6,557.38, 'Fhyron Shadesong'),
+(@ENTRY,36,8563.31,1065.51,554.057, 'Fhyron Shadesong'),
+(@ENTRY,37,8549.85,1061.87,550.61, 'Fhyron Shadesong'),
+(@ENTRY,38,8547.754,1051.273,550.2899, 'Fhyron Shadesong'),
+(@ENTRY,39,8544.317,1042.702,549.2928, 'Fhyron Shadesong'),
+(@ENTRY,40,8557.891,1029.923,548.1677, 'Fhyron Shadesong'),
+(@ENTRY,41,8566.168,1017.246,548.1677, 'Fhyron Shadesong'),
+(@ENTRY,42,8570.943,1008.467,548.2927, 'Fhyron Shadesong');
+-- Change InhabitType for 33787 "Tournament Druid Spell Target"
+UPDATE `creature_template` SET `InhabitType`=1 WHERE `entry`=33787;