aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWyrserth <Wyrserth@users.noreply.github.com>2019-06-23 21:17:55 +0200
committerShauren <shauren.trinity@gmail.com>2021-12-12 02:03:30 +0100
commitc082458fad3bdad114c527b431292656e6c52a7b (patch)
treeb23b898d20abb19931c02c927ded2891ccac28fc
parent800d0adaf675fd99803d22cf993d304d917a7d6d (diff)
DB/Creature: NPCs Rork Sharpchin and Olut Alegut can only sell their items if the related quests are rewarded
Closes #23482 (cherry picked from commit e200c5f6761c9e1087309ddaeb3369b35266a13a)
-rw-r--r--sql/updates/world/master/2021_12_11_49_world_2019_06_23_12_world.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/updates/world/master/2021_12_11_49_world_2019_06_23_12_world.sql b/sql/updates/world/master/2021_12_11_49_world_2019_06_23_12_world.sql
new file mode 100644
index 00000000000..a21bb572ec3
--- /dev/null
+++ b/sql/updates/world/master/2021_12_11_49_world_2019_06_23_12_world.sql
@@ -0,0 +1,10 @@
+--
+DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (10214, 10255);
+INSERT INTO `gossip_menu_option` (`MenuID`, `OptionIndex`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `VerifiedBuild`) VALUES
+(10214, 0, 1, "I want to browse your goods", 3370, 3, 128, 0),
+(10255, 0, 1, "I want to browse your goods", 3370, 3, 128, 0);
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup` IN (10214, 10255);
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
+(15, 10214, 0, 0, 0, 8, 0, 12870, 0, 0, 0, 0, 0, "", "NPC Rork Sharpchin can sell items only if quest 'Ancient Relics' is rewarded"),
+(15, 10255, 0, 0, 0, 8, 0, 12882, 0, 0, 0, 0, 0, "", "NPC Olut Alegut can sell items only if quest 'Ancient Relics' is rewarded");