aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author15ZenoX92 <ZenoX92@users.noreply.github.com>2019-05-09 19:40:31 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-04 00:43:33 +0100
commit505fde8e2ce4c0730c15ac15bc7ab94dbb90cf7b (patch)
treec61ea3df6f550a25cb62ab2f38127e0327b8bf3b
parentedba766e8a10c261624aa9a4b331f019eef701f3 (diff)
DB/Gossip: Wooden Outhouse
Closes #23255 (cherry picked from commit dc145323a9b35b5e18059bcf39574f3f1dff4c37)
-rw-r--r--sql/updates/world/master/2021_12_03_11_world_2019_05_09_01_world_335.sql17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/updates/world/master/2021_12_03_11_world_2019_05_09_01_world_335.sql b/sql/updates/world/master/2021_12_03_11_world_2019_05_09_01_world_335.sql
new file mode 100644
index 00000000000..0c083b98d04
--- /dev/null
+++ b/sql/updates/world/master/2021_12_03_11_world_2019_05_09_01_world_335.sql
@@ -0,0 +1,17 @@
+-- Wooden Outhouse
+DELETE FROM `smart_scripts` WHERE `entryorguid`=173265 AND `source_type`=1 AND `id`=4;
+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`, `event_param5`, `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
+(173265,1,4,0,62,0,100,0,2387,0,0,0,0,70,60,0,0,0,0,0,14,47578,173266,0,0,0,0,0,"Wooden Outhouse - On Gossip Option Selected - Respawn Gameobject 'Goodsteel Ledger'");
+
+DELETE FROM `gossip_menu_option` WHERE `MenuID`=2387;
+INSERT INTO `gossip_menu_option` (`MenuID`, `OptionIndex`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `VerifiedBuild`) VALUES
+(2387,0,0,"Um... sorry to bother you, but could I see Goodsteel's ledger again... if you're not using it.",5410,1,1,0);
+
+DELETE FROM `gossip_menu_option_action` WHERE `MenuID`=2387;
+INSERT INTO `gossip_menu_option_action` (`MenuID`, `OptionIndex`, `ActionMenuID`, `ActionPoiID`) VALUES
+(2387,0,2386,0);
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=2387;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
+(15,2387,0,0,0,9,0,4450,0,0,0,0,0,"","Show gossip option if quest 'Ledger from Tanaris' is taken"),
+(15,2387,0,0,0,2,0,11727,1,1,1,0,0,"","Show gossip option if player does not have item 'Goodsteel Ledger'");