From 002740884d77f23d290f140fed6b71d7b09020d9 Mon Sep 17 00:00:00 2001 From: Grimfeather <88028633+Grimfeather@users.noreply.github.com> Date: Fri, 11 Oct 2024 20:00:41 +0200 Subject: [PATCH] Update zone_thunder_bluff.sql Fixed the gossip menu "train me" buttons now showing up. sorted the sql file in the same style as zone_undercity --- sql/world/base/zone_thunder_bluff.sql | 210 ++++++++++++++------------ 1 file changed, 110 insertions(+), 100 deletions(-) diff --git a/sql/world/base/zone_thunder_bluff.sql b/sql/world/base/zone_thunder_bluff.sql index 311e160..2bf8be8 100644 --- a/sql/world/base/zone_thunder_bluff.sql +++ b/sql/world/base/zone_thunder_bluff.sql @@ -1,90 +1,20 @@ --- Karn Stonehoof -DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=1017 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; -INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES (15, 1017, 0, 7, 164, 50, 'Show menu if blacksmithing is 50 or higher'); - --- Bena Winterhoof -DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=4128 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; -INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES (15, 4128, 0, 7, 171, 50, 'Show menu if alchemy is 50 or higher'); - --- Teg Dawnstrider -DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=4165 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; -INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES (15, 4165, 0, 7, 333, 50, 'Show menu if enchanting is 50 or higher'); - --- Tarn -DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=4207 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; -INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES (15, 4207, 0, 7, 165, 50, 'Show menu if leatherworking is 50 or higher'); - --- Una -DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=4242 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; -INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES (15, 4242, 0, 7, 165, 125, 'Show menu if leatherworking is 125 or higher'); - --- Tepa -DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=4351 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; -INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES (15, 4351, 0, 7, 197, 50, 'Show menu if tailoring is 50 or higher'); - --- Taim Ragetotem -DELETE FROM `creature` WHERE `id1`=7427; -INSERT INTO `creature` (`id1`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES (7427, 1, -1384.29, -98.6163, 159.018, 2.87979, 300); - --- Kergul Bloodaxe -DELETE FROM `creature` WHERE `id1`=10360; -INSERT INTO `creature` (`id1`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES (10360, 1, -1381.29, -75.9809, 160.602, 3.19395, 300); - --- Martin Lindsey -DELETE FROM `creature` WHERE `id1`=12198; -INSERT INTO `creature` (`id1`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES (12198, 1, -995.143, 217.173, 104.729, 4.46804, 500); - --- Remove WotLK Battlemasters -DELETE FROM `creature` WHERE `id1`=34978; -DELETE FROM `creature` WHERE `id1`=34976; - -- Karn Stonehoof UPDATE `creature_template` SET `subname`='Expert Blacksmith' WHERE `entry`=2998; --- Kurm Stonehoof -UPDATE `creature_template` SET `subname`='Mining Supplier' WHERE `entry`=3002; - -- Tepa -UPDATE `creature_template` SET `subname`='Expert Tailor' WHERE `entry`=3004; +UPDATE `creature_template` SET `subname`='Expert Tailor', `type_flags`=134217728 WHERE `entry`=3004; -- Una -UPDATE `creature_template` SET `subname`='Artisan Leatherworker' WHERE `entry`=3007; +UPDATE `creature_template` SET `subname`='Artisan Leatherworker', `type_flags`=134217728 WHERE `entry`=3007; -- Mak UPDATE `creature_template` SET `subname`='Journeyman Leatherworker', `npcflag`=81, `trainer_type`=2 WHERE `entry`=3008; -- Bena Winterhoof -UPDATE `creature_template` SET `subname`='Expert Alchemist' WHERE `entry`=3009; +UPDATE `creature_template` SET `subname`='Expert Alchemist', `type_flags`=134217728 WHERE `entry`=3009; -- Teg Dawnstrider -UPDATE `creature_template` SET `subname`='Expert Enchanter' WHERE `entry`=3011; - --- Kard Ragetotem -UPDATE `creature_template` SET `subname`='Sword and Dagger Merchant' WHERE `entry`=3021; - --- Naal Mistrunner -UPDATE `creature_template` SET `subname`='Cooking Supplier' WHERE `entry`=3027; - --- Sewa Mistrunner -UPDATE `creature_template` SET `subname`='Fishing Supplier' WHERE `entry`=3029; - --- Cairne Bloodhoof -UPDATE `creature_template` SET `minlevel`=63, `maxlevel`=63 WHERE `entry`=3057; - --- Honor Guard -UPDATE `creature_template` SET `minlevel`=60, `maxlevel`=60, `rank`=0 WHERE `entry`=3083; - --- Bluffwatcher -UPDATE `creature_template` SET `minlevel`=55, `maxlevel`=55, `faction`=105 WHERE `entry`=3084; - --- Chepi -UPDATE `creature_template` SET `subname`='Reagent Vendor' WHERE `entry`=8361; - --- Kuruk -UPDATE `creature_template` SET `subname`='General Goods Vendor' WHERE `entry`=8362; - --- Shadi Mistrunner -UPDATE `creature_template` SET `subname`='Trade Goods Supplier' WHERE `entry`=8363; +UPDATE `creature_template` SET `subname`='Expert Enchanter', `type_flags`=134217728 WHERE `entry`=3011; -- Thrag Stonehoof UPDATE `creature_template` SET `subname`='Journeyman Blacksmith', `npcflag`=81, `trainer_type`=2 WHERE `entry`=10278; @@ -99,33 +29,8 @@ UPDATE `creature_template` SET `subname`='Journeyman Tailor', `npcflag`=81, `tra UPDATE `creature_template` SET `subname`='Journeyman Enchanter', `npcflag`=81, `trainer_type`=2 WHERE `entry`=11071; -- Tarn -UPDATE `creature_template` SET `subname`='Expert Leatherworker', `npcflag`=81, `trainer_type`=2 WHERE `entry`=11084; +UPDATE `creature_template` SET `subname`='Expert Leatherworker', `npcflag`=81, `trainer_type`=2, `type_flags`=134217728 WHERE `entry`=11084; --- Hunter Sagewind -UPDATE `creature_template` SET `minlevel`=60, `maxlevel`=60 WHERE `entry`=14440; - --- Hunter Ragetotem -UPDATE `creature_template` SET `minlevel`=60, `maxlevel`=60 WHERE `entry`=14441; - --- Bena Winterhoof -DELETE FROM `gossip_menu_option` WHERE `MenuID`=4128; -INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES (4128, 0, 3, 'Train me.', 3266, 5, 16); - --- Teg Dawnstrider -DELETE FROM `gossip_menu_option` WHERE `MenuID`=4165; -INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES (4165, 0, 3, 'Train me.', 3266, 5, 16); - --- Tarn -DELETE FROM `gossip_menu_option` WHERE `MenuID`=4207; -INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES (4207, 0, 3, 'Train me.', 3266, 5, 16); - --- Una -DELETE FROM `gossip_menu_option` WHERE `MenuID`=4242; -INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES (4242, 0, 3, 'Train me.', 3266, 5, 16); - --- Tepa -DELETE FROM `gossip_menu_option` WHERE `MenuID`=4351; -INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES (4351, 0, 3, 'Train me.', 3266, 5, 16); -- Pand Stonebinder DELETE FROM `npc_trainer` WHERE `ID`=2798; @@ -202,6 +107,111 @@ DELETE FROM `npc_trainer` WHERE `ID`=11084; INSERT INTO `npc_trainer` (`ID`, `SpellID`) VALUES (11084, -380000); INSERT INTO `npc_trainer` (`ID`, `SpellID`) VALUES (11084, -380001); + +-- Bena Winterhoof +DELETE FROM `gossip_menu_option` WHERE `MenuID`=4128; +INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES (4128, 0, 3, 'Train me.', 3266, 5, 16); + +-- Teg Dawnstrider +DELETE FROM `gossip_menu_option` WHERE `MenuID`=4165; +INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES (4165, 0, 3, 'Train me.', 3266, 5, 16); + +-- Tarn +DELETE FROM `gossip_menu_option` WHERE `MenuID`=4207; +INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES (4207, 0, 3, 'Train me.', 3266, 5, 16); + +-- Una +DELETE FROM `gossip_menu_option` WHERE `MenuID`=4242; +INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES (4242, 0, 3, 'Train me.', 3266, 5, 16); + +-- Tepa +DELETE FROM `gossip_menu_option` WHERE `MenuID`=4351; +INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`) VALUES (4351, 0, 3, 'Train me.', 3266, 5, 16); + + +-- Karn Stonehoof +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=1017 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES +(15, 1017, 0, 7, 164, 50, 'Show menu if blacksmithing is 50 or higher'); + +-- Bena Winterhoof +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=4128 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES +(15, 4128, 0, 7, 171, 50, 'Show menu if alchemy is 50 or higher'); + +-- Teg Dawnstrider +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=4165 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES +(15, 4165, 0, 7, 333, 50, 'Show menu if enchanting is 50 or higher'); + +-- Tarn +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=4207 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES +(15, 4207, 0, 7, 165, 50, 'Show menu if leatherworking is 50 or higher'); + +-- Una +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=4242 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES +(15, 4242, 0, 7, 165, 125, 'Show menu if leatherworking is 125 or higher'); + +-- Tepa +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=4351 AND `SourceEntry`=0 AND `ConditionTypeOrReference`=7; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `ConditionTypeOrReference`, `ConditionValue1`, `ConditionValue2`, `Comment`) VALUES +(15, 4351, 0, 7, 197, 50, 'Show menu if tailoring is 50 or higher'); + + +-- Taim Ragetotem +DELETE FROM `creature` WHERE `id1`=7427; +INSERT INTO `creature` (`id1`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES (7427, 1, -1384.29, -98.6163, 159.018, 2.87979, 300); + +-- Kergul Bloodaxe +DELETE FROM `creature` WHERE `id1`=10360; +INSERT INTO `creature` (`id1`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES (10360, 1, -1381.29, -75.9809, 160.602, 3.19395, 300); + +-- Martin Lindsey +DELETE FROM `creature` WHERE `id1`=12198; +INSERT INTO `creature` (`id1`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES (12198, 1, -995.143, 217.173, 104.729, 4.46804, 500); + +-- Remove WotLK Battlemasters +DELETE FROM `creature` WHERE `id1`=34978; +DELETE FROM `creature` WHERE `id1`=34976; + +-- Hunter Sagewind +UPDATE `creature_template` SET `minlevel`=60, `maxlevel`=60 WHERE `entry`=14440; + +-- Hunter Ragetotem +UPDATE `creature_template` SET `minlevel`=60, `maxlevel`=60 WHERE `entry`=14441; + +-- Kard Ragetotem +UPDATE `creature_template` SET `subname`='Sword and Dagger Merchant' WHERE `entry`=3021; + +-- Naal Mistrunner +UPDATE `creature_template` SET `subname`='Cooking Supplier' WHERE `entry`=3027; + +-- Sewa Mistrunner +UPDATE `creature_template` SET `subname`='Fishing Supplier' WHERE `entry`=3029; + +-- Cairne Bloodhoof +UPDATE `creature_template` SET `minlevel`=63, `maxlevel`=63 WHERE `entry`=3057; + +-- Honor Guard +UPDATE `creature_template` SET `minlevel`=60, `maxlevel`=60, `rank`=0 WHERE `entry`=3083; + +-- Bluffwatcher +UPDATE `creature_template` SET `minlevel`=55, `maxlevel`=55, `faction`=105 WHERE `entry`=3084; + +-- Chepi +UPDATE `creature_template` SET `subname`='Reagent Vendor' WHERE `entry`=8361; + +-- Kuruk +UPDATE `creature_template` SET `subname`='General Goods Vendor' WHERE `entry`=8362; + +-- Shadi Mistrunner +UPDATE `creature_template` SET `subname`='Trade Goods Supplier' WHERE `entry`=8363; + +-- Kurm Stonehoof +UPDATE `creature_template` SET `subname`='Mining Supplier' WHERE `entry`=3002; + -- Kurm Stonehoof DELETE FROM `npc_vendor` WHERE `entry`=3002 AND `item` IN (20815, 20824);