diff options
author | Wyrserth <Wyrserth@users.noreply.github.com> | 2019-06-23 21:17:55 +0200 |
---|---|---|
committer | Killyana <morphone1@gmail.com> | 2019-06-23 21:17:55 +0200 |
commit | e200c5f6761c9e1087309ddaeb3369b35266a13a (patch) | |
tree | 47a8f400451d64a4bf7ff1cd5c1b00d83c598bfe | |
parent | babadce78bcaff7a66fee28032c2c5690c5a6d79 (diff) |
DB/Creature: NPCs Rork Sharpchin and Olut Alegut can only sell their items if the related quests are rewarded
Closes #23482
-rw-r--r-- | sql/updates/world/3.3.5/2019_06_23_012_world.sql | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/updates/world/3.3.5/2019_06_23_012_world.sql b/sql/updates/world/3.3.5/2019_06_23_012_world.sql new file mode 100644 index 00000000000..ff1ce658779 --- /dev/null +++ b/sql/updates/world/3.3.5/2019_06_23_012_world.sql @@ -0,0 +1,10 @@ +-- +DELETE FROM `gossip_menu_option` WHERE `MenuID` IN (10214, 10255); +INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES +(10214, 0, 1, "I want to browse your goods", 3370, 3, 128, 0, 0, 0, 0, "", 0, 0), +(10255, 0, 1, "I want to browse your goods", 3370, 3, 128, 0, 0, 0, 0, "", 0, 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"); |