diff options
| author | Malcrom <malcromdev@gmail.com> | 2011-03-01 18:33:24 +0000 |
|---|---|---|
| committer | Nay <dnpd.dd@gmail.com> | 2011-03-01 18:33:24 +0000 |
| commit | 849d50b9c2519392020f511a5595f77ef52c0f95 (patch) | |
| tree | 259466bf1520c8370b7d6c109d630f42cf68c07e /sql | |
| parent | c242c9db3e11e76a62eb4781096ae85c27c2d91d (diff) | |
DB/SAI: Replace core script by proper SmartAI script for quest Inoculation
Closes #681
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/scripts/world_scripts_full.sql | 1 | ||||
| -rw-r--r-- | sql/updates/world/2011_03_01_3_world_sai.sql | 31 | ||||
| -rw-r--r-- | sql/updates/world/2011_03_01_3_world_scriptname.sql | 1 |
3 files changed, 32 insertions, 1 deletions
diff --git a/sql/scripts/world_scripts_full.sql b/sql/scripts/world_scripts_full.sql index 3e787da3b0a..e962a3453ec 100644 --- a/sql/scripts/world_scripts_full.sql +++ b/sql/scripts/world_scripts_full.sql @@ -276,7 +276,6 @@ UPDATE `creature_template` SET `ScriptName`='npc_engineer_spark_overgrind' WHERE UPDATE `creature_template` SET `ScriptName`='npc_injured_draenei' WHERE `entry`=16971; UPDATE `creature_template` SET `ScriptName`='npc_magwin' WHERE `entry`=17312; UPDATE `creature_template` SET `ScriptName`='npc_geezle' WHERE `entry`=17318; -UPDATE `creature_template` SET `ScriptName`='npc_nestlewood_owlkin' WHERE `entry`=16518; UPDATE `creature_template` SET `ScriptName`='npc_draenei_survivor' WHERE `entry`=16483; UPDATE `creature_template` SET `ScriptName`='npc_death_ravager' WHERE `entry`=17556; UPDATE `creature_template` SET `ScriptName`='npc_stillpine_capitive' where `entry`=17375; diff --git a/sql/updates/world/2011_03_01_3_world_sai.sql b/sql/updates/world/2011_03_01_3_world_sai.sql new file mode 100644 index 00000000000..37a4afdf06c --- /dev/null +++ b/sql/updates/world/2011_03_01_3_world_sai.sql @@ -0,0 +1,31 @@ +-- Quest 9303 "Inoculation" +SET @OWL := 16518; -- Nestlewood Owlkin +SET @IOWL := 16534; -- Inoculated Nestlewood Owlkin +UPDATE `creature_template` SET `AIName`= 'SmartAI' WHERE `entry`=@OWL; +DELETE FROM `creature_ai_scripts` WHERE `creature_id`=@OWL; +DELETE FROM `smart_scripts` WHERE `source_type`=0 AND`entryorguid`=@OWL; +DELETE FROM `smart_scripts` WHERE `source_type`=9 AND`entryorguid`=@OWL*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 +(@OWL,0,0,0,8,0,100,0,29528,0,3000,3000,80,@OWL*100,0,0,0,0,0,1,0,0,0,0,0,0,0, 'on spellhit run script'), +(@OWL*100,9,0,0,0,0,100,0,3000,3000,0,0,66,0,0,0,0,0,0,7,0,0,0,0,0,0,0,'face player'), +(@OWL*100,9,1,0,0,0,100,0,0,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'say random text from groupid 0'), +(@OWL*100,9,2,0,0,0,100,0,0,0,0,0,36,@IOWL,0,0,0,0,0,1,0,0,0,0,0,0,0,'morph to entry'), +(@OWL*100,9,3,0,0,0,100,0,0,0,0,0,18,33024,0,0,0,0,0,1,0,0,0,0,0,0,0,'change unitflags'), +(@OWL*100,9,4,0,0,0,100,0,300,300,0,0,33,@IOWL,0,0,0,0,0,7,0,0,0,0,0,0,0,'give quest credit'), +(@OWL*100,9,5,0,0,0,100,0,500,500,0,0,89,15,0,0,0,0,0,1,0,0,0,0,0,0,0,'random movement'), +(@OWL*100,9,6,0,0,0,100,0,9000,9000,0,0,36,@OWL,0,0,0,0,0,1,0,0,0,0,0,0,0,'change entry back'), +(@OWL*100,9,7,0,0,0,100,0,0,0,0,0,19,256,0,0,0,0,0,1,0,0,0,0,0,0,0,'change unitflags back'), +(@OWL*100,9,8,0,0,0,100,0,0,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,'despawn'); + +-- NPC talk text insert from sniff +DELETE FROM `creature_text` WHERE `entry`=16518; +INSERT INTO `creature_text` (`entry`,`groupid`,`id`,`text`,`type`,`language`,`probability`,`emote`,`duration`,`sound`,`comment`) VALUES +(16518,0,0, 'The %s seems overjoyed.',2,0,100,0,0,0, 'Inoculated Nestlewood Owlkin'), +(16518,0,1, 'The %s seems disoriented.',2,0,100,0,0,0, 'Inoculated Nestlewood Owlkin'), +(16518,0,2, 'The %s doesn''t look like it minds the crystal''s effects.',2,0,100,0,0,0, 'Inoculated Nestlewood Owlkin'), +(16518,0,3, 'The %s didn''t like what just happened.',2,0,100,0,0,0, 'Inoculated Nestlewood Owlkin'), +(16518,0,4, 'The %s looks confused.',2,0,100,0,0,0, 'Inoculated Nestlewood Owlkin'), +(16518,0,5, 'The %s nods appreciatively.',2,0,100,0,0,0, 'Inoculated Nestlewood Owlkin'); + +-- spell does not target the innoculated owlkin and it is not spawned, so take spell requirement out of equation +UPDATE `quest_template` SET `ReqSpellCast1`=0 WHERE `entry`=9303; diff --git a/sql/updates/world/2011_03_01_3_world_scriptname.sql b/sql/updates/world/2011_03_01_3_world_scriptname.sql new file mode 100644 index 00000000000..3bd54857744 --- /dev/null +++ b/sql/updates/world/2011_03_01_3_world_scriptname.sql @@ -0,0 +1 @@ +UPDATE `creature_template` SET `ScriptName`='' WHERE `entry`=16518; |
