aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
authorRushor <Rushor@users.noreply.github.com>2020-02-28 19:21:50 +0100
committerGitHub <noreply@github.com>2020-02-28 19:21:50 +0100
commit0583445c05f92baf3ceb07aa842acb1d47804912 (patch)
treef98ef35bdc65bec3f085d5c80fe103706ecf96a1 /sql/updates
parent40542f01e3fec0bff2c6e5eadbe20e58f19b0fd8 (diff)
Scripts/Gameobject: Move Orb of Command script to SAI. (#24189)
* Scripts/Gameobject: Move Orb of Command script to SAI. * Scripts/Gameobject: Move Orb of Command script to SAI. * Rename 2020_12_23_00_world.sql to 2020_02_28_03_world.sql Co-authored-by: Giacomo Pozzoni <giacomopoz@gmail.com>
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/world/3.3.5/2020_02_28_03_world.sql18
1 files changed, 18 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2020_02_28_03_world.sql b/sql/updates/world/3.3.5/2020_02_28_03_world.sql
new file mode 100644
index 00000000000..b5f7d28f08f
--- /dev/null
+++ b/sql/updates/world/3.3.5/2020_02_28_03_world.sql
@@ -0,0 +1,18 @@
+-- Orb of Command (179879)
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=6001;
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=14 AND `SourceGroup`=6001;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
+(15,6001,0,0,0,8,0,7761,0,0,0,0,0,"","Show gossip option if quest '7761' is rewarded"),
+(14,6001,7155,0,0,8,0,7761,0,0,0,0,0,"","Show gossip text 7155 if quest '7761' rewarded");
+DELETE FROM `gossip_menu` WHERE `MenuID`=6001 AND `TextID`=7155;
+INSERT INTO `gossip_menu` (`MenuID`, `TextID`) VALUES (6001,7155);
+DELETE FROM `gossip_menu_option` WHERE `MenuID`=6001;
+INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES
+(6001,0,0,"<Place my hand on the orb.>" ,9859,1,1,0,0,0,0,"",0,0);
+
+-- Orb of Command SAI
+SET @ENTRY := 179879;
+UPDATE `gameobject_template` SET `AIName`="SmartGameObjectAI", `scriptname` = '' WHERE `entry`=@ENTRY;
+DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=1;
+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,1,0,0,62,0,100,0,6001,0,0,0,85,23460,0,0,0,0,0,7,0,0,0,0,0,0,0,"Orb of Command - On Gossip Option 0 Selected - Invoker Cast 'Teleport to Blackwing Lair DND'");