Working vanilla pvp system for mod-individual-progression (#847)

optional pvp system based on mod-pvp-titles
pvp items are now hidden on pvp vendors until you have the required rank for them.
This commit is contained in:
valsan-azerty-boi
2025-11-13 04:39:05 +01:00
committed by GitHub
parent 19feffa88e
commit 46ab361885
10 changed files with 1376 additions and 296 deletions

View File

@@ -88,3 +88,23 @@ SET @WPID := 6700000;
DELETE FROM `creature_addon` WHERE `guid` IN (@CGUID+88, @CGUID+89, @CGUID+105, @CGUID+106, @CGUID+114, @CGUID+133, @CGUID+138, @CGUID+139);
DELETE FROM `waypoint_data` WHERE `id` IN (@WPID+880, @WPID+890, @WPID+1050, @WPID+1060, @WPID+1140, @WPID+1330, @WPID+1380, @WPID+1390);
DELETE FROM `creature_addon` WHERE `guid` IN (@CGUID+164, @CGUID+165, @CGUID+181, @CGUID+182, @CGUID+190, @CGUID+209, @CGUID+214, @CGUID+215);
-- pvp rank requirements no longer needed
UPDATE `item_template` SET `requiredhonorrank` = 0 WHERE `entry` IN
(18241, 18242, 18243, 18244, 18245, 18246, 18247, 18248, 18834, 18845, 18846, 18849, 18850, 18851, 18852, 18853, 18854, 18856, 18857, 18858, 18859, 18862, 18863, 18864, 29592, 29593);
UPDATE `item_template` SET `requiredhonorrank` = 0
WHERE `entry` IN (15196, 15198, 16342, 18440, 18441, 18442, 18443, 18444, 16315, 16336, 16337, 18448, 18449, 18454, 18455, 18452, 18453, 18445, 18447, 18456, 18457, 16401,
16403, 23278, 23279, 16393, 16397, 23280, 23281, 17562, 17564, 23282, 23283, 23274, 23275, 16392, 16396, 23284, 23285, 29594, 29595, 16405, 16406, 23286, 23287, 17594, 17596, 23288, 23289, 16369, 16391, 23290, 23291,
16425, 23292, 16426, 23293, 23294, 16422, 23295, 16421, 17567, 23296, 17568, 23297, 23272, 23273, 16417, 23298, 16419, 23299, 29596, 29597, 16430, 23300, 16431, 23301, 17599, 23302, 17600, 23303, 16414, 23304, 16413, 23305,
23306, 16428, 16427, 23307, 16416, 17598, 16423, 23308, 23309, 16424, 23310, 17569, 23311, 17566, 23276, 23277, 23312, 23313, 16420, 16418, 29598, 29599, 16429, 23314, 16432, 23315, 17601, 23316, 23317, 23318, 23319, 16415,
16462, 16463, 16467, 16459, 16448, 16450, 17583, 17584, 17579, 16472, 16471, 16475, 16446, 16454, 16456, 29606, 29607, 29608, 16483, 16484, 16479, 17608, 17603, 17607, 16437, 16440, 16442,
16466, 16465, 16468, 17578, 16441, 16452, 16451, 16449, 17581, 17580, 17602, 16473, 16474, 16476, 16453, 16457, 16455, 29609, 29610, 29611, 16477, 16478, 16480, 17604, 17605, 16444, 16443,
12584, 18825, 18827, 18830, 18833, 18836, 18838, 18843, 18847, 18855, 18865, 18867, 18869, 18873, 18876, 23451, 23452, 23453, 23454, 23455, 23456,
15197, 15199, 15200, 16335, 18428, 16341, 18427, 18461, 16340, 18434, 18436, 16497, 18435, 16532, 18432, 18429, 18430, 16486, 18437,
16531, 16530, 22843, 22862, 16494, 16496, 22863, 22852, 17576, 17577, 22865, 22855, 29600, 29601, 22864, 16498, 16499, 22856, 22857, 16519, 22867, 16518, 16343, 30710, 16509, 22868, 16510, 22858, 17616, 17617, 22869, 22859, 16485, 16487, 22870, 22860,
16517, 16525, 16529, 22874, 16527, 22875, 16493, 16504, 22877, 22878, 16502, 16495, 17574, 17575, 17571, 22881, 17572, 22884, 29602, 29603, 22879, 16500, 16505, 16508, 22880, 16522, 16520, 22876, 16523, 22887, 16513, 16512, 16511, 22872, 22873, 16515, 17615, 22882, 17614, 17611, 22885, 17612, 16488, 22883, 16490, 16491, 22886,
16526, 23251, 16528, 23252, 23253, 16503, 23254, 16501, 23255, 17570, 17573, 23256, 29604, 29605, 16506, 23257, 16507, 23258, 23259, 16521, 23260, 16524, 16514, 23244, 16516, 23243, 17610, 23261, 23262, 17613, 23263, 16489, 23264, 16492,
16569, 16572, 16571, 16567, 16570, 16556, 16554, 16553, 16555, 16552, 17589, 17586, 17587, 17588, 17593, 29612, 29613, 29614, 16559, 16557, 16564, 16560, 16558, 16573, 16576, 16574, 16579, 16575, 16546, 16545, 16548, 16547, 16543, 17618, 17619, 17621, 17620, 17625, 16539, 16538, 16540, 16537, 16534,
16565, 16566, 16568, 16551, 16549, 16550, 17591, 17590, 17592, 29615, 29616, 29617, 16563, 16561, 16562, 16577, 16578, 16580, 16541, 16542, 16544, 17623, 17622, 17624, 16536, 16533, 16535,
18831, 23459, 23464, 16345, 18866, 18828, 18837, 23457, 23465, 18877, 18848, 18871, 18868, 23461, 23467, 18840, 18835, 18844, 18826, 23458, 23466, 18860, 23462, 23468, 23469, 18874);

View File

@@ -124,24 +124,30 @@ UPDATE `creature_template` SET `scale`=0.7, `npcflag`=2, `faction`=29, `gossip_m
SET @Stonehide := 112793; -- Brave Stonehide <Officer Accessories Quartermaster>, Vanilla
SET @Zarg := 112794; -- Stone Guard Zarg <Food and Drink>, Vanilla
SET @Hola := 112795; -- First Sergeant Hola'mahi, Vanilla
SET @Bork := 112796; -- Raider Bork <Mount Quartermaster>, Vanilla
SET @TH_Classic := 26396; -- Sergeant Thunderhorn, Vanilla
SET @TH_TBC := 14581; -- Sergeant Thunderhorn, TBC
SET @LP_Classic := 12792; -- Lady Palanseer <Armor Quartermaster>, Vanilla
SET @LP_TBC := 26397; -- Lady Palanseer <Armor Quartermaster>, TBC
DELETE FROM `creature_template` WHERE `entry` IN (@Stonehide, @Zarg, @Hola);
DELETE FROM `creature_template` WHERE `entry` IN (@Stonehide, @Zarg, @Hola, @Bork);
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`,
`exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`,
`BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`,
`lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`,
`RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
(@Stonehide, 0, 0, 0, 0, 0, 'Brave Stonehide', 'Officer Accessories Quartermaster', NULL, 0, 55, 55, 0, 125, 128, 1, 1.14286, 1, 1, 18, 1, 0, 0, 2.9, 2000, 2000, 1, 1, 1, 256, 2048, 0, 0, 0, 0, 0, 0, 7, 4096, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 2, 1, 1, 1, 0, 0, 1, 0, 0, 0, 'npc_ipp_pre_tbc', 12340),
(@Zarg, 0, 0, 0, 0, 0, 'Stone Guard Zarg', 'Food and Drink', NULL, 0, 55, 55, 0, 125, 130, 1, 1.14286, 1, 1, 18, 1, 0, 0, 1.05, 2000, 1606, 1, 1, 1, 768, 2048, 0, 0, 0, 0, 0, 0, 7, 4096, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 2, 1, 1, 1, 0, 0, 1, 0, 0, 0, 'npc_ipp_pre_tbc', 12340),
(@Hola, 0, 0, 0, 0, 0, 'First Sergeant Hola\'mahi', 'Reagent Vendor', NULL, 0, 55, 55, 0, 125, 130, 1, 1.14286, 1, 1, 18, 1, 0, 0, 1.2, 2000, 1551, 1, 1, 1, 768, 2048, 0, 0, 0, 0, 0, 0, 7, 4096, 0, 0, 0, 0, 0, 0, 0, '', 1, 1, 2, 1, 1, 1, 0, 0, 1, 0, 0, 0, 'npc_ipp_pre_tbc', 12340);
(@Stonehide,0,0,0,0,0,'Brave Stonehide','Officer Accessories Quartermaster',NULL,0,55,55,0,125,128,1,1.14286,1,1,18,1,0,0,2.9,2000,2000,1,1,1,256,2048,0,0,0,0,0,0,7,4096,0,0,0,0,0,0,0,'',0,1,2,1,1,1,0,0,1,0,0,0,'npc_ipp_pre_tbc',12340),
(@Zarg,0,0,0,0,0,'Stone Guard Zarg','Food and Drink',NULL,0,55,55,0,125,130,1,1.14286,1,1,18,1,0,0,1.05,2000,1606,1,1,1,768,2048,0,0,0,0,0,0,7,4096,0,0,0,0,0,0,0,'',0,1,2,1,1,1,0,0,1,0,0,0,'npc_ipp_pre_tbc',12340),
(@Hola,0,0,0,0,0,'First Sergeant Hola\'mahi','Reagent Vendor',NULL,0,55,55,0,125,130,1,1.14286,1,1,18,1,0,0,1.2,2000,1551,1,1,1,768,2048,0,0,0,0,0,0,7,4096,0,0,0,0,0,0,0,'',1,1,2,1,1,1,0,0,1,0,0,0,'npc_ipp_pre_tbc',12340),
(@Bork,0,0,0,0,0,'Raider Bork','Mount Quartermaster',NULL,0,55,55,0,1074,128,1,1.14286,1,1,18,1,0,0,1.05,2000,1606,1,1,1,768,2048,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'',0,1,2,1,1,1,0,0,1,0,0,0,'npc_ipp_pre_tbc',0);
DELETE FROM `creature_template_locale` WHERE `entry` IN (@Stonehide, @Zarg, @Hola);
DELETE FROM `creature_template_addon` WHERE `entry` IN (@Bork);
INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES
(@Bork, 0, 0, 0, 0, 0, 0, NULL);
DELETE FROM `creature_template_locale` WHERE `entry` IN (@Stonehide, @Zarg, @Hola, @Bork);
INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES
--
(@Stonehide, 'deDE', 'Kriegerheldin Steinfell', 'Rüstmeisterin für Zubehör', 18019),
@@ -169,13 +175,23 @@ INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `Ver
(@Hola, 'koKR', ' ', ' ', 18019),
(@Hola, 'ruRU', 'Первый сержант Хола\'махи', 'Реагенты', 18019),
(@Hola, 'zhCN', '一等军士长霍拉麦', '材料商', 18019),
(@Hola, 'zhTW', '一等士官霍拉麥', '施法材料', 18019);
(@Hola, 'zhTW', '一等士官霍拉麥', '施法材料', 18019),
--
(@Bork, 'deDE', 'Räuber Bork', 'Rüstmeister für Kriegsreittiere', 18019),
(@Bork, 'esES', 'Asaltante Bork', 'Intendente de monturas de guerra', 18019),
(@Bork, 'esMX', 'Asaltante Bork', 'Intendente de monturas de guerra', 18019),
(@Bork, 'frFR', 'Ecumeur Bork', 'Intendant des montures de guerre', 18019),
(@Bork, 'koKR', '공격대원 보르크', '전투 탈것 병참장교', 18019),
(@Bork, 'ruRU', 'Налетчик Борк', 'Начальник снабжения верховыми животными', 18019),
(@Bork, 'zhCN', '狼骑兵波尔克', '战争坐骑军需官', 18019),
(@Bork, 'zhTW', '狼騎兵波爾克', '戰爭坐騎軍需官', 18019);
DELETE FROM `creature_template_model` WHERE `CreatureID` IN (@Stonehide, @Zarg, @Hola);
DELETE FROM `creature_template_model` WHERE `CreatureID` IN (@Stonehide, @Zarg, @Hola, @Bork);
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
(@Stonehide, 0, 12675, 1, 1, 12340),
(@Zarg, 0, 12676, 1, 1, 12340),
(@Hola, 0, 12677, 1, 1, 12340);
(@Stonehide, 0, 12675, 1, 1, 0),
(@Zarg, 0, 12676, 1, 1, 0),
(@Hola, 0, 12677, 1, 1, 0),
(@Bork, 0, 12678, 1, 1, 0);
UPDATE `creature_template` SET `subname` = 'Officer Accessories Quartermaster' WHERE `entry` = 12793;
UPDATE `creature_template` SET `subname` = 'Weapons Quartermaster' WHERE `entry` = 12794;
@@ -183,28 +199,29 @@ UPDATE `creature_template` SET `subname` = 'Armor Quartermaster' WHERE `entry`
UPDATE `creature_template` SET `subname` = 'Mount Quartermaster' WHERE `entry` = 12796;
UPDATE `creature_template` SET `ScriptName` = 'npc_ipp_pre_tbc' WHERE `entry` IN (12799, @TH_Classic, @LP_Classic);
UPDATE `creature_template` SET `ScriptName` = 'npc_ipp_tbc' WHERE `entry` IN (12788, 12793, 12794, 12795, 19850, 20278, 23396, 23447, @TH_TBC, @LP_TBC);
UPDATE `creature_template` SET `ScriptName` = 'npc_ipp_tbc' WHERE `entry` IN (12788, 12793, 12794, 12795, 12796, 19850, 20278, 23396, 23447, @TH_TBC, @LP_TBC);
UPDATE `creature_template_addon` SET `mount` = 0 WHERE `entry` = 12796;
DELETE FROM `creature` WHERE `guid` IN (125688, 125690, 125694, 125695, 612792, 612793, 612794, 612795, 612796, 612799, 614581, 620278, 623396, 623447, 626396, 626397);
INSERT INTO `creature` (`guid`, `id1`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES
INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES
--
(612799, 12799, 1, 1632.21, -4262.19, 49.027, 3.63029, 430), -- Sergeant Ba'sha <Accessories Quartermaster>, Vanilla
(612792, @LP_Classic, 1, 1669.78, -4200.1, 56.3815, 3.61023, 180), -- Lady Palanseer <Armor Quartermaster>, Vanilla
(626397, @LP_TBC, 1, 1669.78, -4200.1, 56.3815, 3.61023, 180), -- Lady Palanseer <Armor Quartermaster>, TBC
(612793, @Stonehide, 1, 1657.6, -4191.97, 56.383, 4.52365, 180), -- Brave Stonehide <Officer Accessories Quartermaster>, Vanilla
(125690, 12793, 1, 1672.24, -4206.81, 56.3827, 3.30568, 180), -- Brave Stonehide <Officer Accessories Quartermaster>, TBC
(612794, @Zarg, 1, 1641.65, -4197.52, 56.3823, 5.41219, 180), -- Stone Guard Zarg <Food and Drink>, Vanilla
(125688, 12794, 1, 1641.65, -4197.52, 56.3823, 5.41219, 180), -- Stone Guard Zarg <Weapons Quartermaster>, TBC
(612795, @Hola, 1, 1673.9, -4216, 56.3826, 2.93578, 180), -- First Sergeant Hola'mahi <Reagent Vendor>, Vanilla
(125695, 12795, 1, 1673.9, -4216, 56.3826, 2.93578, 180), -- First Sergeant Hola'mahi <Armor Quartermaster>, TBC
(626396, @TH_Classic, 1, 1644.52, -4195.26, 56.3826, 5.43078, 180), -- Sergeant Thunderhorn <Weapons Quartermaster>, Vanilla
(614581, @TH_TBC, 1, 1669.09, -4196.78, 56.4831, 4.10416, 180), -- Sergeant Thunderhorn <Weapons Quartermaster>, TBC
(612796, 12796, 1, 1674.43, -4212.55, 56.3829, 3.00254, 180), -- Raider Bork <Mount Quartermaster>
(623447, 23447, 1, 1644.52, -4195.26, 56.3826, 5.43078, 180), -- Sergeant Kien <Armor Quartermaster>, TBC
(620278, 20278, 1, 1654.25, -4189.82, 56.3825, 4.71787, 180), -- Vixton Pinchwhistle <Arena Vendor>, TBC
(623396, 23396, 1, 1660.37, -4190.74, 56.3817, 4.54116, 180); -- Krixel Pinchwhistle <Arena Vendor>, TBC
(612799, 12799, 1, 1, 1, 1632.21, -4262.19, 49.027, 3.63029, 430), -- Sergeant Ba'sha <Accessories Quartermaster>, Vanilla
(612792, @LP_Classic, 1, 1, 1, 1669.78, -4200.1, 56.3815, 3.61023, 180), -- Lady Palanseer <Armor Quartermaster>, Vanilla
(626397, @LP_TBC, 1, 1, 1, 1669.78, -4200.1, 56.3815, 3.61023, 180), -- Lady Palanseer <Armor Quartermaster>, TBC
(612793, @Stonehide, 1, 1, 1, 1657.6, -4191.97, 56.383, 4.52365, 180), -- Brave Stonehide <Officer Accessories Quartermaster>, Vanilla
(125690, 12793, 1, 1, 1, 1672.24, -4206.81, 56.3827, 3.30568, 180), -- Brave Stonehide <Officer Accessories Quartermaster>, TBC
(612794, @Zarg, 1, 1, 1, 1641.65, -4197.52, 56.3823, 5.41219, 180), -- Stone Guard Zarg <Food and Drink>, Vanilla
(125688, 12794, 1, 1, 1, 1641.65, -4197.52, 56.3823, 5.41219, 180), -- Stone Guard Zarg <Weapons Quartermaster>, TBC
(612795, @Hola, 1, 1, 1, 1673.9, -4216, 56.3826, 2.93578, 180), -- First Sergeant Hola'mahi <Reagent Vendor>, Vanilla
(125695, 12795, 1, 1, 1, 1673.9, -4216, 56.3826, 2.93578, 180), -- First Sergeant Hola'mahi <Armor Quartermaster>, TBC
(626396, @TH_Classic, 1, 1, 1, 1644.52, -4195.26, 56.3826, 5.43078, 180), -- Sergeant Thunderhorn <Weapons Quartermaster>, Vanilla
(614581, @TH_TBC, 1, 1, 1, 1669.09, -4196.78, 56.4831, 4.10416, 180), -- Sergeant Thunderhorn <Weapons Quartermaster>, TBC
(125694, 12796, 1, 1, 1, 1674.43, -4212.55, 56.3829, 3.00254, 180), -- Raider Bork <Mount Quartermaster>, TBC
(612796, @Bork, 1, 1, 1, 1674.43, -4212.55, 56.3829, 3.00254, 180), -- Raider Bork <Mount Quartermaster>, Vanilla
(623447, 23447, 1, 1, 1, 1644.52, -4195.26, 56.3826, 5.43078, 180), -- Sergeant Kien <Armor Quartermaster>, TBC
(620278, 20278, 1, 1, 1, 1654.25, -4189.82, 56.3825, 4.71787, 180), -- Vixton Pinchwhistle <Arena Vendor>, TBC
(623396, 23396, 1, 1, 1, 1660.37, -4190.74, 56.3817, 4.54116, 180); -- Krixel Pinchwhistle <Arena Vendor>, TBC
-- Brave Stonehide <Officer Accessories Quartermaster> - Vanilla
@@ -272,6 +289,10 @@ DELETE FROM `npc_vendor` WHERE `entry`= 12796;
INSERT INTO `npc_vendor` (`entry`, `item`, `ExtendedCost`) VALUES
(12796, 18245, 423), (12796, 18246, 423), (12796, 18247, 423), (12796, 18248, 423), (12796, 34129, 423);
DELETE FROM `npc_vendor` WHERE `entry`= @Bork;
INSERT INTO `npc_vendor` (`entry`, `item`, `ExtendedCost`) VALUES
(@Bork, 18245, 423), (@Bork, 18246, 423), (@Bork, 18247, 423), (@Bork, 18248, 423);
-- Vixton Pinchwhistle <Arena Vendor> - TBC
DELETE FROM `npc_vendor` WHERE `entry` = 20278;
INSERT INTO `npc_vendor` (`entry`, `item`, `maxcount`, `incrtime`, `ExtendedCost`) VALUES
@@ -480,7 +501,6 @@ DELETE FROM `creature` WHERE `id1` IN
34060, -- Doris Volanthius <Veteran Armor Quartermaster>
34063); -- Blood Guard Zar'shi <Northrend Armor Quartermaster>
/* NPC Garyl - Remove non-Vanilla Tabards */
DELETE FROM `npc_vendor` WHERE `entry`= 5188 AND `item` IN (15197, 15199, 19031, 19505, 24004, 31773, 31775, 31776, 31777, 31778, 31779, 31780, 31781, 31804, 32445, 32828, 35221);

View File

@@ -90,27 +90,31 @@ INSERT INTO `npc_trainer` (`ID`, `SpellID`) VALUES
SET @Biggins := 112781; -- Master Sergeant Biggins <Officer Accessories Quartermaster>, Vanilla
SET @Karter := 112783; -- Lieutenant Karter, <Mount Vendor>, Vanilla
SET @Clate := 112785; -- Stone Guard Zarg <Food and Drink>, Vanilla
SET @Wrynn := 629611; -- creating copy with 'npc_king_varian_wrynn' script, to prevent AC worldserver error for not using the script
DELETE FROM `creature_template` WHERE `entry` IN (@Biggins, @Clate, @Wrynn);
DELETE FROM `creature_template` WHERE `entry` IN (@Biggins, @Karter, @Clate, @Wrynn);
INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`,
`exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`,
`BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`,
`lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`,
`RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES
--
(@Biggins, 0, 0, 0, 0, 0, 'Master Sergeant Biggins', 'Officer Accessories Quartermaster', NULL, 0, 55, 55, 0, 1078, 128, 1, 1.14286, 1, 1, 18, 1, 0, 0, 1.05, 2000, 2000, 1, 1, 1, 768, 2048, 0, 0, 0, 0, 0, 0, 7, 4096, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 2, 1, 2.6, 1, 0, 0, 1, 0, 0, 0, 'npc_ipp_pre_tbc', 12340),
(@Clate, 0, 0, 0, 0, 0, 'Sergeant Major Clate', 'Food and Drink', NULL, 0, 55, 55, 0, 123, 4224, 1, 1.14286, 1, 1, 18, 1, 0, 0, 2.15, 2000, 2000, 1, 1, 1, 768, 2048, 0, 0, 0, 0, 0, 0, 7, 4096, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 2, 1, 2.6, 1, 0, 0, 1, 0, 0, 0, 'npc_ipp_pre_tbc', 12340),
(@Wrynn, 0, 0, 0, 0, 0, 'King Varian Wrynn', 'King of Stormwind', '', 9834, 63, 63, 2, 1733, 3, 1, 1.42857, 1, 1, 20, 1, 3, 0, 35, 2000, 2000, 1, 1, 1, 0, 2048, 0, 0, 0, 0, 0, 0, 7, 76, 0, 0, 0, 0, 0, 700000, 750000, '', 0, 1, 400, 20, 1, 1, 1, 144, 1, 617299839, 0, 0, 'npc_king_varian_wrynn', 12340);
(@Biggins,0,0,0,0,0,'Master Sergeant Biggins','Officer Accessories Quartermaster',NULL,0,55,55,0,1078,128,1,1.14286,1,1,18,1,0,0,1.05,2000,2000,1,1,1,768,2048,0,0,0,0,0,0,7,4096,0,0,0,0,0,0,0,'',0,1,2,1,2.6,1,0,0,1,0,0,0,'npc_ipp_pre_tbc',0),
(@Karter,0,0,0,0,0,'Lieutenant Karter','Mount Vendor',NULL,0,55,55,0,1078,128,1,1.14286,1,1,18,1,0,0,1.05,2000,2000,1,1,1,768,2048,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,'',0,1,2,1,2.6,1,0,0,1,0,0,0,'npc_ipp_pre_tbc',0),
(@Clate,0,0,0,0,0,'Sergeant Major Clate','Food and Drink',NULL,0,55,55,0,123,4224,1,1.14286,1,1,18,1,0,0,2.15,2000,2000,1,1,1,768,2048,0,0,0,0,0,0,7,4096,0,0,0,0,0,0,0,'',0,1,2,1,2.6,1,0,0,1,0,0,0,'npc_ipp_pre_tbc',0),
(@Wrynn,0,0,0,0,0,'King Varian Wrynn','King of Stormwind','',9834,63,63,2,1733,3,1,1.42857,1,1,20,1,3,0,35,2000,2000,1,1,1,0,2048,0,0,0,0,0,0,7,76,0,0,0,0,0,700000,750000,'',0,1,400,20,1,1,1,144,1,617299839,0,0,'npc_king_varian_wrynn',0);
DELETE FROM `creature_template_addon` WHERE `entry` IN (@Biggins, @Clate, @Wrynn);
DELETE FROM `creature_template_addon` WHERE `entry` IN (@Biggins, @Karter, @Clate, @Wrynn);
INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES
(@Biggins, 0, 0, 0, 1, 0, 0, NULL),
(@Karter, 0, 0, 0, 0, 0, 0, NULL),
(@Clate, 0, 0, 0, 0, 0, 0, NULL),
(@Wrynn, 0, 0, 0, 1, 0, 3, NULL);
DELETE FROM `creature_template_locale` WHERE `entry` IN (@Biggins, @Clate, @Wrynn);
DELETE FROM `creature_template_locale` WHERE `entry` IN (@Biggins, @Karter, @Clate, @Wrynn);
INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `VerifiedBuild`) VALUES
(@Biggins, 'deDE', 'Hauptfeldwebel Biggins', 'Rüstmeister für Zubehör', 18019),
(@Biggins, 'esES', 'Sargento primero Biggins', 'Intendente de accesorios', 18019),
@@ -121,6 +125,15 @@ INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `Ver
(@Biggins, 'zhCN', '军士长贝金斯', '杂货军需官', 18019),
(@Biggins, 'zhTW', '上士貝金斯', '雜貨軍需官', 18019),
--
(@Karter, 'deDE', 'Leutnant Karter','Rüstmeisterin für Kriegsreittiere', 18019),
(@Karter, 'esES', 'Teniente Karter','Intendente de monturas de guerra', 18019),
(@Karter, 'esMX', 'Teniente Karter','Intendente de monturas de guerra', 18019),
(@Karter, 'frFR', 'Lieutenant Karter','Intendante des montures de guerre', 18019),
(@Karter, 'koKR', '부관 칼터','전투 탈것 병참장교', 18019),
(@Karter, 'ruRU', 'Лейтенант Картер','Начальник снабжения верховыми животными', 18019),
(@Karter, 'zhCN', '卡特尔中尉','战争坐骑军需官', 18019),
(@Karter, 'zhTW', '卡特爾中尉','戰爭軍需官', 18019),
--
(@Clate, 'deDE', 'Stabsfeldwebel Clate', 'Speis & Trank', 18019),
(@Clate, 'esES', 'Alférez Clate', 'Alimentos y bebidas', 18019),
(@Clate, 'esMX', 'Alférez Clate', 'Alimentos y bebidas', 18019),
@@ -139,9 +152,10 @@ INSERT INTO `creature_template_locale` (`entry`, `locale`, `Name`, `Title`, `Ver
(@Wrynn, 'zhCN', '瓦里安·乌瑞恩国王', '暴风城国王', 18019),
(@Wrynn, 'zhTW', '瓦里安·烏瑞恩國王', '暴風之王', 18019);
DELETE FROM `creature_template_model` WHERE `CreatureID` IN (@Biggins, @Clate, @Wrynn);
DELETE FROM `creature_template_model` WHERE `CreatureID` IN (@Biggins, @Karter, @Clate, @Wrynn);
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES
(@Biggins, 0, 12669, 1, 1, 12340),
(@Karter, 0, 12922, 1, 1, 12340),
(@Clate, 0, 12925, 1, 1, 12340),
(@Wrynn, 0, 28127, 1, 1, 12340);
@@ -151,27 +165,28 @@ UPDATE `creature_template` SET `subname` = 'Armor Quartermaster' WHERE `entry` =
UPDATE `creature_template` SET `npcflag` = 4224 WHERE `entry` IN (24671, 24672);
UPDATE `creature_template` SET `ScriptName` = 'npc_ipp_pre_tbc' WHERE `entry` IN (12805, 26393, 26394);
UPDATE `creature_template` SET `ScriptName` = 'npc_ipp_tbc' WHERE `entry` IN (12781, 12784, 12785, 20278, 23396, 23446, 24671, 24672);
UPDATE `creature_template` SET `ScriptName` = 'npc_ipp_tbc' WHERE `entry` IN (12781, 12783, 12784, 12785, 20278, 23396, 23446, 24671, 24672);
UPDATE `creature_template_addon` SET `mount` = 0 WHERE `entry` = 12783;
DELETE FROM `creature` WHERE `guid` IN (133928, 133926, 133929, 612781, 612783, 612785, 623446, 624671, 624672, 612777, 626394, 720278, 723396);
INSERT INTO `creature` (`guid`, `id1`, `map`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES
DELETE FROM `creature` WHERE `guid` IN (133928, 133926, 133929, 612781, 133927, 612783, 612785, 623446, 624671, 624672, 612777, 626394, 720278, 723396);
INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`) VALUES
--
(612781, @Biggins, 0, -8777.4, 417.124, 103.921, 6.23553, 180), -- Master Sergeant Biggins <Officer Accessories Quartermaster>, Vanilla
(133926, 12781, 0, -8777.4, 417.124, 103.921, 6.23553, 180), -- Master Sergeant Biggins <Officer Accessories Quartermaster>, TBC
(612785, @Clate, 0, -8771.31, 401.973, 109.665, 0.659191, 180), -- Sergeant Major Clate <Food and Drink>, Vanilla
(133929, 12785, 0, -8771.31, 401.973, 109.665, 0.659191, 180), -- Sergeant Major Clate <Armor Quartermaster>, TBC
(626394, 26394, 0, -8778.3, 432.142, 105.309, 4.17386, 180), -- Captain O'Neal <Weapons Quartermaster>, Vanilla
(624671, 24671, 0, -8778.3, 432.142, 105.309, 4.17386, 180), -- Captain O'Neal <Weapons Quartermaster>, TBC
(612777, 12777, 0, -8768.77, 401.647, 109.665, 2.22999, 180), -- Captain Dirgehammer <Armor Quartermaster>, Vanilla
(624672, 24672, 0, -8773.33, 427.279, 105.233, 3.84677, 180), -- Captain Dirgehammer <Armor Quartermaster>, TBC
(133928, 12784, 0, -8764.6, 413.632, 103.922, 0.693375, 180), -- Lieutenant Jackspring <Weapons Quartermaster>, TBC
(720278, 20278, 0, -8789.08, 425.681, 105.233, 5.68294, 180), -- Vixton Pinchwhistle <Arena Vendor>, TBC
(723396, 23396, 0, -8786.12, 428.386, 105.233, 5.5871, 180), -- Krixel Pinchwhistle <Arena Vendor>, TBC
(623446, 23446, 0, -8785.74, 420.484, 105.233, 0.701937, 180), -- Lieutenant Tristia <Armor Quartermaster>, TBC
(612783, 12783, 0, -8779.7, 432.158, 105.233, 5.36374, 180); -- Lieutenant Karter <Mount Vendor>
(612781, @Biggins, 0, 1, 1, -8777.4, 417.124, 103.921, 6.23553, 180), -- Master Sergeant Biggins <Officer Accessories Quartermaster>, Vanilla
(133926, 12781, 0, 1, 1, -8777.4, 417.124, 103.921, 6.23553, 180), -- Master Sergeant Biggins <Officer Accessories Quartermaster>, TBC
(612785, @Clate, 0, 1, 1, -8771.31, 401.973, 109.665, 0.659191, 180), -- Sergeant Major Clate <Food and Drink>, Vanilla
(133929, 12785, 0, 1, 1, -8771.31, 401.973, 109.665, 0.659191, 180), -- Sergeant Major Clate <Armor Quartermaster>, TBC
(626394, 26394, 0, 1, 1, -8778.3, 432.142, 105.309, 4.17386, 180), -- Captain O'Neal <Weapons Quartermaster>, Vanilla
(624671, 24671, 0, 1, 1, -8778.3, 432.142, 105.309, 4.17386, 180), -- Captain O'Neal <Weapons Quartermaster>, TBC
(612777, 12777, 0, 1, 1, -8768.77, 401.647, 109.665, 2.22999, 180), -- Captain Dirgehammer <Armor Quartermaster>, Vanilla
(624672, 24672, 0, 1, 1, -8773.33, 427.279, 105.233, 3.84677, 180), -- Captain Dirgehammer <Armor Quartermaster>, TBC
(133928, 12784, 0, 1, 1, -8764.6, 413.632, 103.922, 0.693375, 180), -- Lieutenant Jackspring <Weapons Quartermaster>, TBC
(720278, 20278, 0, 1, 1, -8789.08, 425.681, 105.233, 5.68294, 180), -- Vixton Pinchwhistle <Arena Vendor>, TBC
(723396, 23396, 0, 1, 1, -8786.12, 428.386, 105.233, 5.5871, 180), -- Krixel Pinchwhistle <Arena Vendor>, TBC
(623446, 23446, 0, 1, 1, -8785.74, 420.484, 105.233, 0.701937, 180), -- Lieutenant Tristia <Armor Quartermaster>, TBC
(133927, 12783, 0, 1, 1, -8779.7, 432.158, 105.233, 5.36374, 180), -- Lieutenant Karter <Mount Vendor>, TBC
(612783, @Karter, 0, 1, 1, -8779.7, 432.158, 105.233, 5.36374, 180); -- Lieutenant Karter <Mount Vendor>, Vanilla
-- Master Sergeant Biggins <Officer Accessories Quartermaster> - Vanilla
@@ -197,11 +212,16 @@ INSERT INTO `npc_vendor` (`entry`, `item`, `maxcount`, `incrtime`, `ExtendedCost
-- Officer Areyn <Accessories Quartermaster>
DELETE FROM `npc_vendor` WHERE `entry` = 12805;
INSERT INTO `npc_vendor` (`entry`, `item`, `ExtendedCost`) VALUES
(12805, 18445, 492), (12805, 18447, 931), (12805, 18448, 492), (12805, 18449, 931), (12805, 18454, 492),
(12805, 18455, 931), (12805, 18456, 492), (12805, 18457, 931), (12805, 18854, 634), (12805, 18856, 634),
(12805, 18858, 634), (12805, 18859, 634), (12805, 18862, 634), (12805, 18863, 634), (12805, 18864, 634);
(12805, 18445, 492), (12805, 18447, 931), (12805, 18448, 492), (12805, 18449, 931), (12805, 18454, 492), (12805, 18455, 931), (12805, 18456, 492), (12805, 18457, 931),
(12805, 18664, 0), (12805, 18854, 634), (12805, 18856, 634), (12805, 18858, 634), (12805, 18859, 634), (12805, 18862, 634), (12805, 18863, 634), (12805, 18864, 634),
(12805, 18442, 838), (12805, 18444, 930), (12805, 18443, 491), (12805, 15196, 1007), (12805, 18440, 1050), (12805, 18441, 986), (12805, 16342, 774);
-- Lieutenant Karter <War Mount Quartermaster>
-- Lieutenant Karter <War Mount Quartermaster> - Vanilla
DELETE FROM `npc_vendor` WHERE `entry` = @Karter;
INSERT INTO `npc_vendor` (`entry`, `item`, `ExtendedCost`) VALUES
(@Karter, 18241, 423), (@Karter, 18242, 423), (@Karter, 18243, 423), (@Karter, 18244, 423);
-- Lieutenant Karter <War Mount Quartermaster> - TBC
DELETE FROM `npc_vendor` WHERE `entry` = 12783;
INSERT INTO `npc_vendor` (`entry`, `item`, `ExtendedCost`) VALUES
(12783, 18241, 423), (12783, 18242, 423), (12783, 18243, 423), (12783, 18244, 423), (12783, 35906, 423);
@@ -299,7 +319,6 @@ INSERT INTO `npc_vendor` (`entry`, `item`, `maxcount`, `incrtime`, `ExtendedCost
(24672, 31632, 0, 0, 2263), (24672, 31633, 0, 0, 2265), (24672, 31634, 0, 0, 2267), (24672, 31640, 0, 0, 2259), (24672, 31641, 0, 0, 2261), (24672, 31642, 0, 0, 2263),
(24672, 31643, 0, 0, 2265), (24672, 31644, 0, 0, 2267);
/* Hide certain vendor items until the player has reached the progression tier for them */
DELETE FROM `conditions` WHERE `SourceGroup` IN (12777, 12782, 12783, 26394);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`,
@@ -382,7 +401,6 @@ INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry
UPDATE `gameobject` SET `ScriptName` = 'gobject_ipp_pre_tbc' WHERE `guid` IN (61936, 61940, 61942, 61944, 61945, 61946, 61947, 61949, 61951);
UPDATE `creature` SET `ScriptName` = 'npc_ipp_tbc' WHERE `id1` = 19848; -- Harbinger Ennarth
-- WotLK pvp vendors
DELETE FROM `creature` WHERE `id1` IN
(12782, -- Captain O'Neal <Weapons Quartermaster>