From 5343f8586a09fa44fb0cfef57280d4132f830473 Mon Sep 17 00:00:00 2001 From: Grimfeather <88028633+Grimfeather@users.noreply.github.com> Date: Sat, 24 Aug 2024 12:18:31 +0200 Subject: [PATCH] Update professions.sql - batch inserts - updating SQL code to batch inserts - changed guid values for inserts into `creature`. so it's easier to add more and avoid using the same guid. - added missing DELETE before INSERT --- sql/world/base/professions.sql | 186 +++++++++++++-------------------- 1 file changed, 74 insertions(+), 112 deletions(-) diff --git a/sql/world/base/professions.sql b/sql/world/base/professions.sql index 3dd2699..6ecec33 100644 --- a/sql/world/base/professions.sql +++ b/sql/world/base/professions.sql @@ -900,48 +900,30 @@ DELETE FROM `prospecting_loot_template` WHERE `Entry`=10620 AND `Item`=1; /* Create new pre T4 Leatherworking Trainer */ SET @lw_trainer_pre_t4 := 201050; -/* Add Knothide Leather */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32454, 10000, 165, 300, 0, 0); -/* Add Knothide Armor Kit */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32456, 15000, 165, 300, 0, 0); -/* Add Felscale Gloves */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32462, 15000, 165, 300, 0, 0); -/* Add Felscale Boots */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32463, 20000, 165, 310, 0, 0); -/* Add Felscale Pants */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32464, 20000, 165, 320, 0, 0); -/* Add Felscale Breastplate */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32465, 25000, 165, 335, 0, 0); -/* Add Scaled Draenic Pants */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32466, 15000, 165, 300, 0, 0); -/* Add Scaled Draenic Gloves */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32467, 20000, 165, 310, 0, 0); -/* Add Scaled Draenic Vest */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32468, 20000, 165, 325, 0, 0); -/* Add Scaled Draenic Boots */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32469, 25000, 165, 335, 0, 0); -/* Add Thick Draenic Gloves */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32470, 15000, 165, 300, 0, 0); -/* Add Thick Draenic Pants */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32471, 20000, 165, 315, 0, 0); -/* Add Thick Draenic Boots */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32472, 20000, 165, 320, 0, 0); -/* Add Thick Draenic Vest */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32473, 25000, 165, 330, 0, 0); -/* Add Wild Draenish Boots */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32478, 15000, 165, 300, 0, 0); -/* Add Wild Draenish Gloves */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32479, 20000, 165, 310, 0, 0); -/* Add Wild Draenish Leggings */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32480, 20000, 165, 320, 0, 0); -/* Add Wild Draenish Vest */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32481, 25000, 165, 330, 0, 0); -/* Add Master Leatherworker */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 32550, 100000, 165, 275, 50, 0); -/* Add Drums of War */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 35540, 20000, 165, 340, 0, 0); -/* Add Heavy Knothide Armor Kit */ -INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES (@lw_trainer_pre_t4, 44970, 50000, 165, 350, 0, 0); + +DELETE FROM `npc_trainer` WHERE `ID` = @lw_trainer_pre_t4; +INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSkillRank`, `ReqLevel`, `ReqSpell`) VALUES +(@lw_trainer_pre_t4, 32454, 10000, 165, 300, 0, 0), +(@lw_trainer_pre_t4, 32456, 15000, 165, 300, 0, 0), +(@lw_trainer_pre_t4, 32462, 15000, 165, 300, 0, 0), +(@lw_trainer_pre_t4, 32463, 20000, 165, 310, 0, 0), +(@lw_trainer_pre_t4, 32464, 20000, 165, 320, 0, 0), +(@lw_trainer_pre_t4, 32465, 25000, 165, 335, 0, 0), +(@lw_trainer_pre_t4, 32466, 15000, 165, 300, 0, 0), +(@lw_trainer_pre_t4, 32467, 20000, 165, 310, 0, 0), +(@lw_trainer_pre_t4, 32468, 20000, 165, 325, 0, 0), +(@lw_trainer_pre_t4, 32469, 25000, 165, 335, 0, 0), +(@lw_trainer_pre_t4, 32470, 15000, 165, 300, 0, 0), +(@lw_trainer_pre_t4, 32471, 20000, 165, 315, 0, 0), +(@lw_trainer_pre_t4, 32472, 20000, 165, 320, 0, 0), +(@lw_trainer_pre_t4, 32473, 25000, 165, 330, 0, 0), +(@lw_trainer_pre_t4, 32478, 15000, 165, 300, 0, 0), +(@lw_trainer_pre_t4, 32479, 20000, 165, 310, 0, 0), +(@lw_trainer_pre_t4, 32480, 20000, 165, 320, 0, 0), +(@lw_trainer_pre_t4, 32481, 25000, 165, 330, 0, 0), +(@lw_trainer_pre_t4, 32550, 100000, 165, 275, 50, 0), +(@lw_trainer_pre_t4, 35540, 20000, 165, 340, 0, 0), +(@lw_trainer_pre_t4, 44970, 50000, 165, 350, 0, 0); /* Darmari shouldn't train certain leatherworking recipes until progression tier 10 */ @@ -960,14 +942,15 @@ INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `b /* Add copy of Darmari to creature_locale */ DELETE FROM `creature_template_locale` WHERE `entry` = @Darmari; -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Darmari, 'deDE', 'Darmari', 'Lederverarbeitungslehrerin', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Darmari, 'esES', 'Darmari', 'Instructora de peletería', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Darmari, 'esMX', 'Darmari', 'Instructora de peletería', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Darmari, 'frFR', 'Darmari', 'Maître des travailleurs du cuir', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Darmari, 'koKR', '다마리', '전문 가죽세공인', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Darmari, 'ruRU', 'Дармари', 'Учитель кожевничества', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Darmari, 'zhCN', '达尔玛里', '制皮训练师', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Darmari, 'zhTW', '達瑪莉', '製皮訓練師', 18019); +INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES +(@Darmari, 'deDE', 'Darmari', 'Lederverarbeitungslehrerin', 18019), +(@Darmari, 'esES', 'Darmari', 'Instructora de peletería', 18019), +(@Darmari, 'esMX', 'Darmari', 'Instructora de peletería', 18019), +(@Darmari, 'frFR', 'Darmari', 'Maître des travailleurs du cuir', 18019), +(@Darmari, 'koKR', '다마리', '전문 가죽세공인', 18019), +(@Darmari, 'ruRU', 'Дармари', 'Учитель кожевничества', 18019), +(@Darmari, 'zhCN', '达尔玛里', '制皮训练师', 18019), +(@Darmari, 'zhTW', '達瑪莉', '製皮訓練師', 18019); /* Add copy of Darmari to creature_template_model */ DELETE FROM `creature_template_model` WHERE `CreatureID` = @Darmari; @@ -976,7 +959,7 @@ INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, /* Add copy of Darmari to creature */ DELETE FROM `creature` WHERE `id1` = @Darmari; INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) -VALUES (321001, @Darmari, 0, 0, 530, 0, 0, 1, 1, 1, -2060.92, 5256.68, -38.3819, 0.767945, 300, 0, 0, 3498, 0, 0, 0, 0, 0, '', 0, 0, NULL); +VALUES (619187, @Darmari, 0, 0, 530, 0, 0, 1, 1, 1, -2060.92, 5256.68, -38.3819, 0.767945, 300, 0, 0, 3498, 0, 0, 0, 0, 0, '', 0, 0, NULL); /* Add copy of Darmari to creature_equip_template */ DELETE FROM `creature_equip_template` WHERE `CreatureID` = @Darmari; @@ -1003,14 +986,15 @@ INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `b /* Add copy of Barim to creature_template_locale */ DELETE FROM `creature_template_locale` WHERE `entry` = @Barim; -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Barim, 'deDE', 'Barim Spalthuf', 'Lederverarbeitungslehrer', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Barim, 'esES', 'Barim Pezuña Partida', 'Instructor de peletería', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Barim, 'esMX', 'Barim Pezuña Partida', 'Instructor de peletería', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Barim, 'frFR', 'Barim Sabot-Fendu', 'Maître des travailleurs du cuir', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Barim, 'koKR', '바림 스필트후프', '전문 가죽세공인', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Barim, 'ruRU', 'Барим Треснувшее Копыто', 'Учитель кожевничества', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Barim, 'zhCN', '巴里姆·裂蹄', '制皮训练师', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Barim, 'zhTW', '巴瑞姆·裂蹄', '製皮訓練師', 18019); +INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES +(@Barim, 'deDE', 'Barim Spalthuf', 'Lederverarbeitungslehrer', 18019), +(@Barim, 'esES', 'Barim Pezuña Partida', 'Instructor de peletería', 18019), +(@Barim, 'esMX', 'Barim Pezuña Partida', 'Instructor de peletería', 18019), +(@Barim, 'frFR', 'Barim Sabot-Fendu', 'Maître des travailleurs du cuir', 18019), +(@Barim, 'koKR', '바림 스필트후프', '전문 가죽세공인', 18019), +(@Barim, 'ruRU', 'Барим Треснувшее Копыто', 'Учитель кожевничества', 18019), +(@Barim, 'zhCN', '巴里姆·裂蹄', '制皮训练师', 18019), +(@Barim, 'zhTW', '巴瑞姆·裂蹄', '製皮訓練師', 18019); /* Add copy of Barim to creature_template_model */ DELETE FROM `creature_template_model` WHERE `CreatureID` = @Barim; @@ -1019,7 +1003,7 @@ INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, /* Add copy of Barim to creature */ DELETE FROM `creature` WHERE `id1` = @Barim; INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) -VALUES (321005, @Barim, 0, 0, 530, 0, 0, 1, 1, 1, 148.588, 2636.02, 86.018, 1.27409, 300, 0, 0, 3113, 0, 0, 0, 0, 0, '', 0, 0, NULL); +VALUES (618754, @Barim, 0, 0, 530, 0, 0, 1, 1, 1, 148.588, 2636.02, 86.018, 1.27409, 300, 0, 0, 3113, 0, 0, 0, 0, 0, '', 0, 0, NULL); /* Add copy of Barim to creature_equip_template */ DELETE FROM `creature_equip_template` WHERE `CreatureID` = @Barim; @@ -1031,23 +1015,11 @@ INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSki /* Add vendor items to copy of Barim */ DELETE FROM `npc_vendor` WHERE `entry` = @Barim; -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 2320, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 2321, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 2325, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 2604, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 2605, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 4289, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 4291, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 4340, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 4341, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 4342, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 6260, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 6261, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 7005, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 8343, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 10290, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 14341, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Barim, 0, 38426, 0, 0, 0, 0); +INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES +(@Barim, 0, 2320, 0, 0, 0, 0), (@Barim, 0, 2321, 0, 0, 0, 0), (@Barim, 0, 2325, 0, 0, 0, 0), (@Barim, 0, 2604, 0, 0, 0, 0), (@Barim, 0, 2605, 0, 0, 0, 0), +(@Barim, 0, 4289, 0, 0, 0, 0), (@Barim, 0, 4291, 0, 0, 0, 0), (@Barim, 0, 4340, 0, 0, 0, 0), (@Barim, 0, 4341, 0, 0, 0, 0), (@Barim, 0, 4342, 0, 0, 0, 0), +(@Barim, 0, 6260, 0, 0, 0, 0), (@Barim, 0, 6261, 0, 0, 0, 0), (@Barim, 0, 7005, 0, 0, 0, 0), (@Barim, 0, 8343, 0, 0, 0, 0), (@Barim, 0, 10290, 0, 0, 0, 0), +(@Barim, 0, 14341, 0, 0, 0, 0), (@Barim, 0, 38426, 0, 0, 0, 0); /* Brumman shouldn't train certain leatherworking recipes until progression tier 10 */ @@ -1066,14 +1038,15 @@ INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `b /* Add copy of Brumman to creature_template_locale */ DELETE FROM `creature_template_locale` WHERE `entry` = @Brumman; -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Brumman, 'deDE', 'Brumman', 'Lederverarbeitungslehrer', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Brumman, 'esES', 'Brumman', 'Instructor de peletería', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Brumman, 'esMX', 'Brumman', 'Instructor de peletería', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Brumman, 'frFR', 'Brumman', 'Maître des travailleurs du cuir', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Brumman, 'koKR', '브룸만', '전문 가죽세공인', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Brumman, 'ruRU', 'Брумман', 'Учитель кожевничества', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Brumman, 'zhCN', '布鲁曼', '制皮训练师', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Brumman, 'zhTW', '布魯曼恩', '製皮訓練師', 18019); +INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES +(@Brumman, 'deDE', 'Brumman', 'Lederverarbeitungslehrer', 18019), +(@Brumman, 'esES', 'Brumman', 'Instructor de peletería', 18019), +(@Brumman, 'esMX', 'Brumman', 'Instructor de peletería', 18019), +(@Brumman, 'frFR', 'Brumman', 'Maître des travailleurs du cuir', 18019), +(@Brumman, 'koKR', '브룸만', '전문 가죽세공인', 18019), +(@Brumman, 'ruRU', 'Брумман', 'Учитель кожевничества', 18019), +(@Brumman, 'zhCN', '布鲁曼', '制皮训练师', 18019), +(@Brumman, 'zhTW', '布魯曼恩', '製皮訓練師', 18019); /* Add copy of Brumman to creature_template_model */ DELETE FROM `creature_template_model` WHERE `CreatureID` = @Brumman; @@ -1082,7 +1055,7 @@ INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, /* Add copy of Brumman to creature */ DELETE FROM `creature` WHERE `id1` = @Brumman; INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) -VALUES (321006, @Brumman, 0, 0, 530, 0, 0, 1, 1, 1, -721.657, 2745.26, 94.0548, 3.45575, 300, 0, 0, 3113, 0, 0, 0, 0, 0, '', 0, 0, NULL); +VALUES (618771, @Brumman, 0, 0, 530, 0, 0, 1, 1, 1, -721.657, 2745.26, 94.0548, 3.45575, 300, 0, 0, 3113, 0, 0, 0, 0, 0, '', 0, 0, NULL); /* Add copy of Brumman to creature_equip_template */ DELETE FROM `creature_equip_template` WHERE `CreatureID` = @Brumman; @@ -1094,23 +1067,11 @@ INSERT INTO `npc_trainer` (`ID`, `SpellID`, `MoneyCost`, `ReqSkillLine`, `ReqSki /* Add vendor items to copy of Brumman */ DELETE FROM `npc_vendor` WHERE `entry` = @Brumman; -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 2320, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 2321, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 2325, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 2604, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 2605, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 4289, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 4291, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 4340, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 4341, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 4342, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 6260, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 6261, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 7005, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 8343, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 10290, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 14341, 0, 0, 0, 0); -INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES (@Brumman, 0, 38426, 0, 0, 0, 0); +INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES +(@Brumman, 0, 2320, 0, 0, 0, 0), (@Brumman, 0, 2321, 0, 0, 0, 0), (@Brumman, 0, 2325, 0, 0, 0, 0), (@Brumman, 0, 2604, 0, 0, 0, 0), (@Brumman, 0, 2605, 0, 0, 0, 0), +(@Brumman, 0, 4289, 0, 0, 0, 0), (@Brumman, 0, 4291, 0, 0, 0, 0), (@Brumman, 0, 4340, 0, 0, 0, 0), (@Brumman, 0, 4341, 0, 0, 0, 0), (@Brumman, 0, 4342, 0, 0, 0, 0), +(@Brumman, 0, 6260, 0, 0, 0, 0), (@Brumman, 0, 6261, 0, 0, 0, 0), (@Brumman, 0, 7005, 0, 0, 0, 0), (@Brumman, 0, 8343, 0, 0, 0, 0), (@Brumman, 0, 10290, 0, 0, 0, 0), +(@Brumman, 0, 14341, 0, 0, 0, 0), (@Brumman, 0, 38426, 0, 0, 0, 0); /* Grikka shouldn't train certain leatherworking recipes until progression tier 10 */ @@ -1129,14 +1090,15 @@ INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `b /* Add copy of Grikka to creature_template_locale */ DELETE FROM `creature_template_locale` WHERE `entry` = @Grikka; -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Grikka, 'deDE', 'Grikka', 'Lederverarbeitungslehrerin', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Grikka, 'esES', 'Grikka', 'Instructora de peletería', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Grikka, 'esMX', 'Grikka', 'Instructora de peletería', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Grikka, 'frFR', 'Grikka', 'Maître des travailleurs du cuir', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Grikka, 'koKR', '그리카', '전문 가죽세공인', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Grikka, 'ruRU', 'Грикка', 'Учитель кожевничества', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Grikka, 'zhCN', '格里卡', '制皮训练师', 18019); -INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES (@Grikka, 'zhTW', '葛利卡', '製皮訓練師', 18019); +INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES +(@Grikka, 'deDE', 'Grikka', 'Lederverarbeitungslehrerin', 18019), +(@Grikka, 'esES', 'Grikka', 'Instructora de peletería', 18019), +(@Grikka, 'esMX', 'Grikka', 'Instructora de peletería', 18019), +(@Grikka, 'frFR', 'Grikka', 'Maître des travailleurs du cuir', 18019), +(@Grikka, 'koKR', '그리카', '전문 가죽세공인', 18019), +(@Grikka, 'ruRU', 'Грикка', 'Учитель кожевничества', 18019), +(@Grikka, 'zhCN', '格里卡', '制皮训练师', 18019), +(@Grikka, 'zhTW', '葛利卡', '製皮訓練師', 18019); /* Add copy of Grikka to creature_template_model */ DELETE FROM `creature_template_model` WHERE `CreatureID` = @Grikka; @@ -1145,7 +1107,7 @@ INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, /* Add copy of Grikka to creature */ DELETE FROM `creature` WHERE `id1` = @Grikka; INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) -VALUES (321007, @Grikka, 0, 0, 530, 0, 0, 1, 1, 0, 2039.82, 4675.43, 150.074, 0.977384, 300, 0, 0, 3815, 0, 0, 0, 0, 0, '', 0, 0, NULL); +VALUES (621087, @Grikka, 0, 0, 530, 0, 0, 1, 1, 0, 2039.82, 4675.43, 150.074, 0.977384, 300, 0, 0, 3815, 0, 0, 0, 0, 0, '', 0, 0, NULL); /* Add correct leatherworking recipes to copy of Grikka */ DELETE FROM `npc_trainer` WHERE `ID` = @Grikka;