diff --git a/sql/custom/auth/2026_09_26_00_auth_classic_beta_70009.sql b/sql/custom/auth/2026_09_26_00_auth_classic_beta_70009.sql new file mode 100644 index 0000000000..23fe2483ba --- /dev/null +++ b/sql/custom/auth/2026_09_26_00_auth_classic_beta_70009.sql @@ -0,0 +1,8 @@ +-- WoW Classic beta client (wow_classic_beta, WowB.exe) 1.60.1.70009 +DELETE FROM `build_info` WHERE `build`=70009; +INSERT INTO `build_info` (`build`,`majorVersion`,`minorVersion`,`bugfixVersion`,`hotfixVersion`) VALUES +(70009,1,60,1,NULL); + +-- No auth key is known for Win-x64-WoWB 70009 yet; see Network.SkipBuildAuthKeyCheck in worldserver.conf + +UPDATE `realmlist` SET `gamebuild`=70009 WHERE `id`=1; diff --git a/sql/custom/hotfixes/2026_09_26_00_hotfixes_classic_70009_layouts.sql b/sql/custom/hotfixes/2026_09_26_00_hotfixes_classic_70009_layouts.sql new file mode 100644 index 0000000000..55f251072c --- /dev/null +++ b/sql/custom/hotfixes/2026_09_26_00_hotfixes_classic_70009_layouts.sql @@ -0,0 +1,94 @@ +-- WoW Classic beta 1.60.1.70009 DB2 layouts: hotfix table columns matching DB2LoadInfo.h / HotfixDatabase.cpp + +-- AreaTable.db2 (9995B797) +ALTER TABLE `area_table` ADD `ExplorationLevel` tinyint NOT NULL DEFAULT '0' AFTER `UwZoneMusic`; + +-- Cfg_Regions.db2 (66694D4D) +ALTER TABLE `cfg_regions` ADD `Name` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci AFTER `Tag`; + +DROP TABLE IF EXISTS `cfg_regions_locale`; +CREATE TABLE `cfg_regions_locale` ( + `ID` int unsigned NOT NULL DEFAULT '0', + `locale` varchar(4) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, + `Name_lang` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci, + `VerifiedBuild` int NOT NULL DEFAULT '0', + PRIMARY KEY (`ID`,`locale`,`VerifiedBuild`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci +/*!50500 PARTITION BY LIST COLUMNS(locale) +(PARTITION deDE VALUES IN ('deDE') ENGINE = InnoDB, + PARTITION esES VALUES IN ('esES') ENGINE = InnoDB, + PARTITION esMX VALUES IN ('esMX') ENGINE = InnoDB, + PARTITION frFR VALUES IN ('frFR') ENGINE = InnoDB, + PARTITION itIT VALUES IN ('itIT') ENGINE = InnoDB, + PARTITION koKR VALUES IN ('koKR') ENGINE = InnoDB, + PARTITION ptBR VALUES IN ('ptBR') ENGINE = InnoDB, + PARTITION ruRU VALUES IN ('ruRU') ENGINE = InnoDB, + PARTITION zhCN VALUES IN ('zhCN') ENGINE = InnoDB, + PARTITION zhTW VALUES IN ('zhTW') ENGINE = InnoDB) */; + +-- CharacterLoadout.db2 (713CE8BB) +ALTER TABLE `character_loadout` ADD `Field_1_60_1_69876_003` int NOT NULL DEFAULT '0' AFTER `ItemContext`; + +-- CurrencyTypes.db2 (EBEAF439) +ALTER TABLE `currency_types` ADD `MaxQtyCurveID` int NOT NULL DEFAULT '0' AFTER `AccountTransferPercentage`; + +-- Faction.db2 (6D443C38) +ALTER TABLE `faction` ADD `RenownThresholdCurveID` int NOT NULL DEFAULT '0' AFTER `RenownCurrencyID`; + +-- GlobalCurve.db2 (1DC57BDD) +ALTER TABLE `global_curve` ADD `Subtype` int NOT NULL DEFAULT '0' AFTER `Type`; + +-- Item.db2 (9A2A4834) - Unknown1200 is AmmunitionType in this layout (same u8 column, kept name) +ALTER TABLE `item` ADD `ItemPetFoodID` int NOT NULL DEFAULT '0' AFTER `SheatheType`; + +-- ItemSparse.db2 (6FCC3191) +ALTER TABLE `item_sparse` ADD `AmmunitionType` tinyint unsigned NOT NULL DEFAULT '0' AFTER `OverallQualityID`; + +-- Map.db2 (D43AFAC3) +ALTER TABLE `map` ADD `OceanLiquidTypeID` int NOT NULL DEFAULT '0' AFTER `WdtFileDataID`; + +-- NameGen.db2 (584300FA) +ALTER TABLE `name_gen` ADD `NameType` tinyint unsigned NOT NULL DEFAULT '0' AFTER `Sex`; + +-- PlayerDataElementAccount.db2 / PlayerDataElementCharacter.db2 (C513161B) +ALTER TABLE `player_data_element_account` ADD `Field_12_1_5_69594_004` int NOT NULL DEFAULT '0' AFTER `Unknown1125`; +ALTER TABLE `player_data_element_character` ADD `Field_12_1_5_69594_004` int NOT NULL DEFAULT '0' AFTER `Unknown1125`; + +-- SkillLineAbility.db2 (224F7EA0) +ALTER TABLE `skill_line_ability` + ADD `Field_5_5_4_67090_0141` int NOT NULL DEFAULT '0' AFTER `SkillupSkillLineID`, + ADD `Field_5_5_4_67090_0142` int NOT NULL DEFAULT '0' AFTER `Field_5_5_4_67090_0141`; + +-- SpellItemEnchantment.db2 (952B72B2) - most columns widened to 32 bit, ConditionID maps to Field_12_1_5_69594_011 +ALTER TABLE `spell_item_enchantment` + MODIFY `Charges` int unsigned NOT NULL DEFAULT '0', + MODIFY `Effect1` int unsigned NOT NULL DEFAULT '0', + MODIFY `Effect2` int unsigned NOT NULL DEFAULT '0', + MODIFY `Effect3` int unsigned NOT NULL DEFAULT '0', + MODIFY `EffectPointsMin1` int NOT NULL DEFAULT '0', + MODIFY `EffectPointsMin2` int NOT NULL DEFAULT '0', + MODIFY `EffectPointsMin3` int NOT NULL DEFAULT '0', + MODIFY `ScalingClass` int NOT NULL DEFAULT '0', + MODIFY `ScalingClassRestricted` int NOT NULL DEFAULT '0', + MODIFY `ConditionID` int unsigned NOT NULL DEFAULT '0', + MODIFY `RequiredSkillID` int unsigned NOT NULL DEFAULT '0', + MODIFY `RequiredSkillRank` int unsigned NOT NULL DEFAULT '0', + MODIFY `MinLevel` int unsigned NOT NULL DEFAULT '0', + MODIFY `MaxLevel` int unsigned NOT NULL DEFAULT '0', + ADD `Field_12_1_5_69594_021` int NOT NULL DEFAULT '0' AFTER `TransmogCost`; + +-- SpellProcsPerMinuteMod.db2 (A89F22A1) +ALTER TABLE `spell_procs_per_minute_mod` ADD `Field_12_1_5_69594_003` int NOT NULL DEFAULT '0' AFTER `Coeff`; + +-- SpellVisualMissile.db2 (EC765EB2) +ALTER TABLE `spell_visual_missile` + ADD `Field_12_1_5_69594_018` int NOT NULL DEFAULT '0' AFTER `Unused1100`, + ADD `Field_12_1_5_69594_019` int NOT NULL DEFAULT '0' AFTER `Field_12_1_5_69594_018`, + ADD `Field_12_1_5_69594_020` int NOT NULL DEFAULT '0' AFTER `Field_12_1_5_69594_019`, + ADD `Field_12_1_5_69594_021` int NOT NULL DEFAULT '0' AFTER `Field_12_1_5_69594_020`; + +-- TraitCurrency.db2 (A8B0874B) +ALTER TABLE `trait_currency` ADD `SourcedMax` int NOT NULL DEFAULT '0' AFTER `PlayerDataElementCharacterID`; + +-- TraitCurrencySource.db2 (4C49B6AA) +ALTER TABLE `trait_currency_source` ADD `SuperDistrictSetID` int NOT NULL DEFAULT '0' AFTER `TraitNodeEntryID`; diff --git a/sql/custom/world/2026_09_27_00_world_classic_skyborne.sql b/sql/custom/world/2026_09_27_00_world_classic_skyborne.sql new file mode 100644 index 0000000000..76e0a99497 --- /dev/null +++ b/sql/custom/world/2026_09_27_00_world_classic_skyborne.sql @@ -0,0 +1,46 @@ +-- WoW Classic 1.60.1.70009 ("WoW Forever"): enable the Skyborne races +-- ChrRaces 95 = High Order Skyborne (Alliance), 96 = Windshaper Skyborne (Horde); starting zone Zephras Isle (map 2991, area 16593) +-- Class combinations from the client's CharBaseInfo.db2: +-- 95: Warrior, Hunter, Rogue, Mage, Druid +-- 96: Warrior, Hunter, Rogue, Shaman, Druid + +DELETE FROM `race_unlock_requirement` WHERE `raceID` IN (95, 96); +INSERT INTO `race_unlock_requirement` (`raceID`, `expansion`, `achievementId`) VALUES +(95, 0, 0), +(96, 0, 0); + +DELETE FROM `class_expansion_requirement` WHERE `RaceID` IN (95, 96); +INSERT INTO `class_expansion_requirement` (`ClassID`, `RaceID`, `ActiveExpansionLevel`, `AccountExpansionLevel`) VALUES +(1, 95, 0, 0), (3, 95, 0, 0), (4, 95, 0, 0), (8, 95, 0, 0), (11, 95, 0, 0), +(1, 96, 0, 0), (3, 96, 0, 0), (4, 96, 0, 0), (7, 96, 0, 0), (11, 96, 0, 0); + +-- Start position: Zephras Isle settlement (client CollectableSourceVendorSparse vendor position, area 16593) +DELETE FROM `playercreateinfo` WHERE `race` IN (95, 96); +INSERT INTO `playercreateinfo` (`race`, `class`, `map`, `position_x`, `position_y`, `position_z`, `orientation`) VALUES +(95, 1, 2991, 2148.17, 711.715, 662.367, 0), +(95, 3, 2991, 2148.17, 711.715, 662.367, 0), +(95, 4, 2991, 2148.17, 711.715, 662.367, 0), +(95, 8, 2991, 2148.17, 711.715, 662.367, 0), +(95, 11, 2991, 2148.17, 711.715, 662.367, 0), +(96, 1, 2991, 2148.17, 711.715, 662.367, 0), +(96, 3, 2991, 2148.17, 711.715, 662.367, 0), +(96, 4, 2991, 2148.17, 711.715, 662.367, 0), +(96, 7, 2991, 2148.17, 711.715, 662.367, 0), +(96, 11, 2991, 2148.17, 711.715, 662.367, 0); + +-- Action bars: copied from existing races with the same class (Human, Night Elf for Druid, Orc for Shaman) +DELETE FROM `playercreateinfo_action` WHERE `race` IN (95, 96); +INSERT INTO `playercreateinfo_action` (`race`, `class`, `button`, `action`, `type`) +SELECT 95, `class`, `button`, `action`, `type` FROM `playercreateinfo_action` WHERE `race` = 1 AND `class` IN (1, 3, 4, 8); +INSERT INTO `playercreateinfo_action` (`race`, `class`, `button`, `action`, `type`) +SELECT 95, `class`, `button`, `action`, `type` FROM `playercreateinfo_action` WHERE `race` = 4 AND `class` = 11; +INSERT INTO `playercreateinfo_action` (`race`, `class`, `button`, `action`, `type`) +SELECT 96, `class`, `button`, `action`, `type` FROM `playercreateinfo_action` WHERE `race` = 2 AND `class` IN (1, 3, 4, 7); +INSERT INTO `playercreateinfo_action` (`race`, `class`, `button`, `action`, `type`) +SELECT 96, `class`, `button`, `action`, `type` FROM `playercreateinfo_action` WHERE `race` = 4 AND `class` = 11; + +-- Base stat modifiers (required: worldserver aborts without level 1 stats); placeholder = Blood Elf values (high elven descent) +DELETE FROM `player_racestats` WHERE `race` IN (95, 96); +INSERT INTO `player_racestats` (`race`, `str`, `agi`, `sta`, `inte`, `spi`) VALUES +(95, -3, 1, 0, 2, 0), +(96, -3, 1, 0, 2, 0); diff --git a/sql/custom/world/2026_09_27_01_world_classic_northshire.sql b/sql/custom/world/2026_09_27_01_world_classic_northshire.sql new file mode 100644 index 0000000000..eaf3f67ae0 --- /dev/null +++ b/sql/custom/world/2026_09_27_01_world_classic_northshire.sql @@ -0,0 +1,231 @@ +-- WoW Classic 1.60.1.70009 ("WoW Forever"): replace the retail (Cataclysm) Northshire Valley with vanilla 1.12 data from VMaNGOS. +-- Requires the VMaNGOS world database imported as schema `vmangos_world` (release db_latest, GPL-2) on the same MySQL server. +-- Area: map 0, x -9200..-8600, y -500..250. VMaNGOS rows are filtered to patch 1.12 (patch index 10). + +SET @XMIN := -9200, @XMAX := -8600, @YMIN := -500, @YMAX := 250; +SET @GUID_BASE := 20000000; -- new creature/gameobject guids = base + VMaNGOS guid +SET @OBJECTIVE_BASE := 90000000; -- quest_objectives.ID = base + quest * 10 + index +SET @REF_BASE := 900000; -- reference_loot_template entries = base + VMaNGOS reference id + +-- --------------------------------------------------------------------------------------------------------------------- +-- Helper tables (in vmangos_world): 1.12 rows only +-- --------------------------------------------------------------------------------------------------------------------- +DROP TABLE IF EXISTS vmangos_world.ns_creature_template; +CREATE TABLE vmangos_world.ns_creature_template AS +SELECT t.* FROM vmangos_world.creature_template t +JOIN (SELECT entry, MAX(patch) AS p FROM vmangos_world.creature_template WHERE patch <= 10 GROUP BY entry) l ON l.entry = t.entry AND l.p = t.patch; +ALTER TABLE vmangos_world.ns_creature_template ADD PRIMARY KEY (entry); + +DROP TABLE IF EXISTS vmangos_world.ns_quest_template; +CREATE TABLE vmangos_world.ns_quest_template AS +SELECT q.* FROM vmangos_world.quest_template q +JOIN (SELECT entry, MAX(patch) AS p FROM vmangos_world.quest_template WHERE patch <= 10 GROUP BY entry) l ON l.entry = q.entry AND l.p = q.patch; +ALTER TABLE vmangos_world.ns_quest_template ADD PRIMARY KEY (entry); + +DROP TABLE IF EXISTS vmangos_world.ns_creature; +CREATE TABLE vmangos_world.ns_creature AS +SELECT * FROM vmangos_world.creature +WHERE map = 0 AND position_x BETWEEN @XMIN AND @XMAX AND position_y BETWEEN @YMIN AND @YMAX AND patch_min <= 10 AND patch_max >= 10; + +DROP TABLE IF EXISTS vmangos_world.ns_gameobject; +CREATE TABLE vmangos_world.ns_gameobject AS +SELECT g.* FROM vmangos_world.gameobject g +JOIN world.gameobject_template t ON t.entry = g.id +WHERE g.map = 0 AND g.position_x BETWEEN @XMIN AND @XMAX AND g.position_y BETWEEN @YMIN AND @YMAX AND g.patch_min <= 10 AND g.patch_max >= 10; + +DROP TABLE IF EXISTS vmangos_world.ns_entries; +CREATE TABLE vmangos_world.ns_entries (entry INT UNSIGNED PRIMARY KEY) +SELECT DISTINCT c.id AS entry FROM vmangos_world.ns_creature c JOIN world.creature_template w ON w.entry = c.id; + +-- quests started or ended by Northshire creatures +DROP TABLE IF EXISTS vmangos_world.ns_quests; +CREATE TABLE vmangos_world.ns_quests (quest INT UNSIGNED PRIMARY KEY) +SELECT DISTINCT r.quest FROM ( + SELECT id, quest FROM vmangos_world.creature_questrelation WHERE patch_min <= 10 AND patch_max >= 10 + UNION SELECT id, quest FROM vmangos_world.creature_involvedrelation WHERE patch_min <= 10 AND patch_max >= 10) r +JOIN vmangos_world.ns_entries e ON e.entry = r.id +JOIN world.quest_template w ON w.ID = r.quest +JOIN vmangos_world.ns_quest_template q ON q.entry = r.quest; + +-- --------------------------------------------------------------------------------------------------------------------- +-- Remove retail spawns in the area (and rows linked to them) +-- --------------------------------------------------------------------------------------------------------------------- +DROP TABLE IF EXISTS vmangos_world.ns_old_creature; +CREATE TABLE vmangos_world.ns_old_creature (guid BIGINT UNSIGNED PRIMARY KEY) +SELECT guid FROM world.creature WHERE map = 0 AND position_x BETWEEN @XMIN AND @XMAX AND position_y BETWEEN @YMIN AND @YMAX; + +DROP TABLE IF EXISTS vmangos_world.ns_old_gameobject; +CREATE TABLE vmangos_world.ns_old_gameobject (guid BIGINT UNSIGNED PRIMARY KEY) +SELECT guid FROM world.gameobject WHERE map = 0 AND position_x BETWEEN @XMIN AND @XMAX AND position_y BETWEEN @YMIN AND @YMAX; + +DELETE a FROM world.creature_addon a JOIN vmangos_world.ns_old_creature o ON o.guid = a.guid; +DELETE f FROM world.creature_formations f JOIN vmangos_world.ns_old_creature o ON o.guid = f.memberGUID OR o.guid = f.leaderGUID; +DELETE e FROM world.game_event_creature e JOIN vmangos_world.ns_old_creature o ON o.guid = e.guid; +DELETE s FROM world.spawn_group s JOIN vmangos_world.ns_old_creature o ON o.guid = s.spawnId WHERE s.spawnType = 0; +DELETE p FROM world.pool_members p JOIN vmangos_world.ns_old_creature o ON o.guid = p.spawnId WHERE p.type = 0; +DELETE c FROM world.creature c JOIN vmangos_world.ns_old_creature o ON o.guid = c.guid; + +DELETE a FROM world.gameobject_addon a JOIN vmangos_world.ns_old_gameobject o ON o.guid = a.guid; +DELETE e FROM world.game_event_gameobject e JOIN vmangos_world.ns_old_gameobject o ON o.guid = e.guid; +DELETE s FROM world.spawn_group s JOIN vmangos_world.ns_old_gameobject o ON o.guid = s.spawnId WHERE s.spawnType = 1; +DELETE p FROM world.pool_members p JOIN vmangos_world.ns_old_gameobject o ON o.guid = p.spawnId WHERE p.type = 1; +DELETE g FROM world.gameobject g JOIN vmangos_world.ns_old_gameobject o ON o.guid = g.guid; + +-- --------------------------------------------------------------------------------------------------------------------- +-- Vanilla spawns (waypoint paths not imported yet: waypoint movers stand still) +-- --------------------------------------------------------------------------------------------------------------------- +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, phaseUseFlags, PhaseId, PhaseGroup, terrainSwapMap, modelid, + equipment_id, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, currentwaypoint, curHealthPct, MovementType, + npcflag, unit_flags, unit_flags2, unit_flags3, ScriptName, StringId, VerifiedBuild) +SELECT @GUID_BASE + c.guid, c.id, 0, 0, 0, '0', 0, 0, 0, -1, 0, + IF(t.equipment_id > 0, 1, 0), c.position_x, c.position_y, c.position_z, c.orientation, c.spawntimesecsmin, c.wander_distance, 0, 100, + IF(c.movement_type = 1, 1, 0), NULL, NULL, NULL, NULL, '', NULL, 0 +FROM vmangos_world.ns_creature c +JOIN vmangos_world.ns_entries e ON e.entry = c.id +JOIN vmangos_world.ns_creature_template t ON t.entry = c.id; + +INSERT INTO world.gameobject (guid, id, map, zoneId, areaId, spawnDifficulties, phaseUseFlags, PhaseId, PhaseGroup, terrainSwapMap, + position_x, position_y, position_z, orientation, rotation0, rotation1, rotation2, rotation3, spawntimesecs, animprogress, state, ScriptName, StringId, VerifiedBuild) +SELECT @GUID_BASE + g.guid, g.id, 0, 0, 0, '0', 0, 0, 0, -1, + g.position_x, g.position_y, g.position_z, g.orientation, g.rotation0, g.rotation1, g.rotation2, g.rotation3, g.spawntimesecsmin, g.animprogress, g.state, '', NULL, 0 +FROM vmangos_world.ns_gameobject g; + +-- --------------------------------------------------------------------------------------------------------------------- +-- Creature models, equipment, levels, loot +-- --------------------------------------------------------------------------------------------------------------------- +DELETE m FROM world.creature_template_model m JOIN vmangos_world.ns_entries e ON e.entry = m.CreatureID; +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) +SELECT entry, 0, display_id1, IF(display_scale1 > 0, display_scale1, 1), IF(display_probability1 > 0, display_probability1, 1), 0 FROM vmangos_world.ns_creature_template JOIN vmangos_world.ns_entries USING (entry) WHERE display_id1 > 0 +UNION ALL SELECT entry, 1, display_id2, IF(display_scale2 > 0, display_scale2, 1), display_probability2, 0 FROM vmangos_world.ns_creature_template JOIN vmangos_world.ns_entries USING (entry) WHERE display_id2 > 0 +UNION ALL SELECT entry, 2, display_id3, IF(display_scale3 > 0, display_scale3, 1), display_probability3, 0 FROM vmangos_world.ns_creature_template JOIN vmangos_world.ns_entries USING (entry) WHERE display_id3 > 0 +UNION ALL SELECT entry, 3, display_id4, IF(display_scale4 > 0, display_scale4, 1), display_probability4, 0 FROM vmangos_world.ns_creature_template JOIN vmangos_world.ns_entries USING (entry) WHERE display_id4 > 0; + +DELETE q FROM world.creature_equip_template q JOIN vmangos_world.ns_entries e ON e.entry = q.CreatureID; +INSERT INTO world.creature_equip_template (CreatureID, ID, ItemID1, AppearanceModID1, ItemVisual1, ItemID2, AppearanceModID2, ItemVisual2, ItemID3, AppearanceModID3, ItemVisual3, VerifiedBuild) +SELECT t.entry, 1, q.item1, 0, 0, q.item2, 0, 0, q.item3, 0, 0, 0 +FROM vmangos_world.ns_creature_template t +JOIN vmangos_world.ns_entries e ON e.entry = t.entry +JOIN (SELECT entry, ANY_VALUE(item1) AS item1, ANY_VALUE(item2) AS item2, ANY_VALUE(item3) AS item3 FROM vmangos_world.creature_equip_template WHERE patch_min <= 10 AND patch_max >= 10 GROUP BY entry) q ON q.entry = t.equipment_id +WHERE t.equipment_id > 0; + +CREATE TABLE IF NOT EXISTS world.creature_classic_level ( + entry INT UNSIGNED NOT NULL, + level_min TINYINT UNSIGNED NOT NULL, + level_max TINYINT UNSIGNED NOT NULL, + PRIMARY KEY (entry) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Classic 1.60: fixed vanilla creature levels (replaces ContentTuning scaling)'; +REPLACE INTO world.creature_classic_level (entry, level_min, level_max) +SELECT t.entry, t.level_min, t.level_max FROM vmangos_world.ns_creature_template t JOIN vmangos_world.ns_entries e ON e.entry = t.entry; + +-- loot: vanilla tables for the imported creatures (loot id = VMaNGOS loot_id), references copied with an id offset +UPDATE world.creature_template_difficulty d +JOIN vmangos_world.ns_creature_template t ON t.entry = d.Entry +JOIN vmangos_world.ns_entries e ON e.entry = d.Entry +SET d.LootID = t.loot_id, d.SkinLootID = t.skinning_loot_id, d.PickPocketLootID = t.pickpocket_loot_id, d.GoldMin = t.gold_min, d.GoldMax = t.gold_max +WHERE d.DifficultyID = 0; + +DROP TABLE IF EXISTS vmangos_world.ns_loot_ids; +CREATE TABLE vmangos_world.ns_loot_ids (id INT UNSIGNED PRIMARY KEY) +SELECT DISTINCT t.loot_id AS id FROM vmangos_world.ns_creature_template t JOIN vmangos_world.ns_entries e ON e.entry = t.entry WHERE t.loot_id > 0; + +DELETE l FROM world.creature_loot_template l JOIN vmangos_world.ns_loot_ids i ON i.id = l.Entry; +INSERT IGNORE INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) +SELECT l.entry, IF(l.mincountOrRef < 0, 1, 0), IF(l.mincountOrRef < 0, @REF_BASE - l.mincountOrRef, l.item), ABS(l.ChanceOrQuestChance), + l.ChanceOrQuestChance < 0, 1, l.groupid, IF(l.mincountOrRef < 0, 1, l.mincountOrRef), l.maxcount, 'VMaNGOS 1.12' +FROM vmangos_world.creature_loot_template l JOIN vmangos_world.ns_loot_ids i ON i.id = l.entry +WHERE l.patch_min <= 10 AND l.patch_max >= 10; + +DROP TABLE IF EXISTS vmangos_world.ns_ref_ids; +CREATE TABLE vmangos_world.ns_ref_ids (id INT UNSIGNED PRIMARY KEY) +SELECT DISTINCT -l.mincountOrRef AS id FROM vmangos_world.creature_loot_template l JOIN vmangos_world.ns_loot_ids i ON i.id = l.entry +WHERE l.mincountOrRef < 0 AND l.patch_min <= 10 AND l.patch_max >= 10; + +DELETE r FROM world.reference_loot_template r JOIN vmangos_world.ns_ref_ids i ON r.Entry = @REF_BASE + i.id; +INSERT IGNORE INTO world.reference_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) +SELECT @REF_BASE + l.entry, 0, l.item, ABS(l.ChanceOrQuestChance), l.ChanceOrQuestChance < 0, 1, l.groupid, l.mincountOrRef, l.maxcount, 'VMaNGOS 1.12' +FROM vmangos_world.reference_loot_template l JOIN vmangos_world.ns_ref_ids i ON i.id = l.entry +WHERE l.mincountOrRef > 0 AND l.patch_min <= 10 AND l.patch_max >= 10; + +-- --------------------------------------------------------------------------------------------------------------------- +-- Quests: vanilla text, objectives, rewards, chain; no auto-accept (retail flag 0x80000 dropped) +-- --------------------------------------------------------------------------------------------------------------------- +UPDATE world.quest_template w JOIN vmangos_world.ns_quest_template q ON q.entry = w.ID JOIN vmangos_world.ns_quests n ON n.quest = w.ID +SET w.LogTitle = q.Title, w.LogDescription = q.Objectives, w.QuestDescription = q.Details, w.AreaDescription = '', w.QuestCompletionLog = q.EndText, + w.QuestSortID = q.ZoneOrSort, w.QuestInfoID = q.Type, w.SuggestedGroupNum = q.SuggestedPlayers, w.Flags = q.QuestFlags, w.FlagsEx = 0, + w.RewardNextQuest = q.NextQuestInChain, w.StartItem = q.SrcItemId, w.RewardSpell = IF(q.RewSpellCast > 0, q.RewSpellCast, q.RewSpell), + w.RewardItem1 = q.RewItemId1, w.RewardAmount1 = q.RewItemCount1, w.RewardItem2 = q.RewItemId2, w.RewardAmount2 = q.RewItemCount2, + w.RewardItem3 = q.RewItemId3, w.RewardAmount3 = q.RewItemCount3, w.RewardItem4 = q.RewItemId4, w.RewardAmount4 = q.RewItemCount4, + w.ItemDrop1 = q.ReqSourceId1, w.ItemDropQuantity1 = q.ReqSourceCount1, w.ItemDrop2 = q.ReqSourceId2, w.ItemDropQuantity2 = q.ReqSourceCount2, + w.ItemDrop3 = q.ReqSourceId3, w.ItemDropQuantity3 = q.ReqSourceCount3, w.ItemDrop4 = q.ReqSourceId4, w.ItemDropQuantity4 = q.ReqSourceCount4, + w.RewardChoiceItemID1 = q.RewChoiceItemId1, w.RewardChoiceItemQuantity1 = q.RewChoiceItemCount1, w.RewardChoiceItemDisplayID1 = 0, + w.RewardChoiceItemID2 = q.RewChoiceItemId2, w.RewardChoiceItemQuantity2 = q.RewChoiceItemCount2, w.RewardChoiceItemDisplayID2 = 0, + w.RewardChoiceItemID3 = q.RewChoiceItemId3, w.RewardChoiceItemQuantity3 = q.RewChoiceItemCount3, w.RewardChoiceItemDisplayID3 = 0, + w.RewardChoiceItemID4 = q.RewChoiceItemId4, w.RewardChoiceItemQuantity4 = q.RewChoiceItemCount4, w.RewardChoiceItemDisplayID4 = 0, + w.RewardChoiceItemID5 = q.RewChoiceItemId5, w.RewardChoiceItemQuantity5 = q.RewChoiceItemCount5, w.RewardChoiceItemDisplayID5 = 0, + w.RewardChoiceItemID6 = q.RewChoiceItemId6, w.RewardChoiceItemQuantity6 = q.RewChoiceItemCount6, w.RewardChoiceItemDisplayID6 = 0, + w.RewardFactionID1 = q.RewRepFaction1, w.RewardFactionValue1 = 0, w.RewardFactionOverride1 = q.RewRepValue1 * 100, + w.RewardFactionID2 = q.RewRepFaction2, w.RewardFactionValue2 = 0, w.RewardFactionOverride2 = q.RewRepValue2 * 100, + w.RewardFactionID3 = q.RewRepFaction3, w.RewardFactionValue3 = 0, w.RewardFactionOverride3 = q.RewRepValue3 * 100, + w.RewardFactionID4 = q.RewRepFaction4, w.RewardFactionValue4 = 0, w.RewardFactionOverride4 = q.RewRepValue4 * 100, + w.RewardFactionID5 = q.RewRepFaction5, w.RewardFactionValue5 = 0, w.RewardFactionOverride5 = q.RewRepValue5 * 100, + w.TimeAllowed = q.LimitTime, w.AllowableRaces = IF(q.RequiredRaces = 0, 18446744073709551615, q.RequiredRaces), + w.POIContinent = q.PointMapId, w.POIx = q.PointX, w.POIy = q.PointY, w.POIPriority = q.PointOpt; + +REPLACE INTO world.quest_template_addon (ID, MaxLevel, AllowableClasses, SourceSpellID, PrevQuestID, NextQuestID, ExclusiveGroup, BreadcrumbForQuestId, + RewardMailTemplateID, RewardMailDelay, RequiredSkillID, RequiredSkillPoints, RequiredMinRepFaction, RequiredMaxRepFaction, RequiredMinRepValue, + RequiredMaxRepValue, ProvidedItemCount, SpecialFlags, ScriptName) +SELECT q.entry, 0, q.RequiredClasses, q.SrcSpell, q.PrevQuestId, q.NextQuestId, q.ExclusiveGroup, q.BreadcrumbForQuestId, + q.RewMailTemplateId, q.RewMailDelaySecs, q.RequiredSkill, q.RequiredSkillValue, q.RequiredMinRepFaction, q.RequiredMaxRepFaction, q.RequiredMinRepValue, + q.RequiredMaxRepValue, q.SrcItemCount, q.SpecialFlags & 1, '' +FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry; + +REPLACE INTO world.quest_offer_reward (ID, Emote1, Emote2, Emote3, Emote4, EmoteDelay1, EmoteDelay2, EmoteDelay3, EmoteDelay4, RewardText, VerifiedBuild) +SELECT q.entry, q.OfferRewardEmote1, q.OfferRewardEmote2, q.OfferRewardEmote3, q.OfferRewardEmote4, + q.OfferRewardEmoteDelay1, q.OfferRewardEmoteDelay2, q.OfferRewardEmoteDelay3, q.OfferRewardEmoteDelay4, q.OfferRewardText, 0 +FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry; + +REPLACE INTO world.quest_request_items (ID, EmoteOnComplete, EmoteOnIncomplete, EmoteOnCompleteDelay, EmoteOnIncompleteDelay, CompletionText, VerifiedBuild) +SELECT q.entry, q.CompleteEmote, q.IncompleteEmote, 0, 0, q.RequestItemsText, 0 +FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry +WHERE q.RequestItemsText IS NOT NULL AND q.RequestItemsText <> ''; + +-- objectives: kill / gameobject (negative ReqCreatureOrGOId) first, then items +DELETE o FROM world.quest_objectives o JOIN vmangos_world.ns_quests n ON n.quest = o.QuestID; +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) +SELECT @OBJECTIVE_BASE + quest * 10 + idx, quest, type, idx, idx, obj, amount, 0, 0, 0, 0, 0, 1, descr, 0 FROM ( + SELECT q.entry AS quest, 0 AS idx, IF(q.ReqCreatureOrGOId1 < 0, 2, 0) AS type, ABS(q.ReqCreatureOrGOId1) AS obj, q.ReqCreatureOrGOCount1 AS amount, q.ObjectiveText1 AS descr FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry WHERE q.ReqCreatureOrGOId1 <> 0 + UNION ALL SELECT q.entry, 1, IF(q.ReqCreatureOrGOId2 < 0, 2, 0), ABS(q.ReqCreatureOrGOId2), q.ReqCreatureOrGOCount2, q.ObjectiveText2 FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry WHERE q.ReqCreatureOrGOId2 <> 0 + UNION ALL SELECT q.entry, 2, IF(q.ReqCreatureOrGOId3 < 0, 2, 0), ABS(q.ReqCreatureOrGOId3), q.ReqCreatureOrGOCount3, q.ObjectiveText3 FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry WHERE q.ReqCreatureOrGOId3 <> 0 + UNION ALL SELECT q.entry, 3, IF(q.ReqCreatureOrGOId4 < 0, 2, 0), ABS(q.ReqCreatureOrGOId4), q.ReqCreatureOrGOCount4, q.ObjectiveText4 FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry WHERE q.ReqCreatureOrGOId4 <> 0 + UNION ALL SELECT q.entry, 4, 1, q.ReqItemId1, q.ReqItemCount1, '' FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry WHERE q.ReqItemId1 <> 0 + UNION ALL SELECT q.entry, 5, 1, q.ReqItemId2, q.ReqItemCount2, '' FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry WHERE q.ReqItemId2 <> 0 + UNION ALL SELECT q.entry, 6, 1, q.ReqItemId3, q.ReqItemCount3, '' FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry WHERE q.ReqItemId3 <> 0 + UNION ALL SELECT q.entry, 7, 1, q.ReqItemId4, q.ReqItemCount4, '' FROM vmangos_world.ns_quest_template q JOIN vmangos_world.ns_quests n ON n.quest = q.entry WHERE q.ReqItemId4 <> 0 +) x; + +-- quest givers / enders: Northshire creatures get exactly their vanilla quests; the imported quests keep only vanilla givers/enders +DELETE s FROM world.creature_queststarter s JOIN vmangos_world.ns_entries e ON e.entry = s.id; +DELETE s FROM world.creature_queststarter s JOIN vmangos_world.ns_quests n ON n.quest = s.quest; +DELETE s FROM world.creature_questender s JOIN vmangos_world.ns_entries e ON e.entry = s.id; +DELETE s FROM world.creature_questender s JOIN vmangos_world.ns_quests n ON n.quest = s.quest; +DELETE s FROM world.gameobject_queststarter s JOIN vmangos_world.ns_quests n ON n.quest = s.quest; +DELETE s FROM world.gameobject_questender s JOIN vmangos_world.ns_quests n ON n.quest = s.quest; + +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) +SELECT DISTINCT r.id, r.quest, 0 FROM vmangos_world.creature_questrelation r JOIN world.creature_template t ON t.entry = r.id JOIN world.quest_template q ON q.ID = r.quest +LEFT JOIN vmangos_world.ns_entries e ON e.entry = r.id LEFT JOIN vmangos_world.ns_quests n ON n.quest = r.quest +WHERE r.patch_min <= 10 AND r.patch_max >= 10 AND (e.entry IS NOT NULL OR n.quest IS NOT NULL); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) +SELECT DISTINCT r.id, r.quest, 0 FROM vmangos_world.creature_involvedrelation r JOIN world.creature_template t ON t.entry = r.id JOIN world.quest_template q ON q.ID = r.quest +LEFT JOIN vmangos_world.ns_entries e ON e.entry = r.id LEFT JOIN vmangos_world.ns_quests n ON n.quest = r.quest +WHERE r.patch_min <= 10 AND r.patch_max >= 10 AND (e.entry IS NOT NULL OR n.quest IS NOT NULL); +INSERT IGNORE INTO world.gameobject_queststarter (id, quest, VerifiedBuild) +SELECT DISTINCT r.id, r.quest, 0 FROM vmangos_world.gameobject_questrelation r JOIN world.gameobject_template t ON t.entry = r.id JOIN vmangos_world.ns_quests n ON n.quest = r.quest +WHERE r.patch_min <= 10 AND r.patch_max >= 10; +INSERT IGNORE INTO world.gameobject_questender (id, quest, VerifiedBuild) +SELECT DISTINCT r.id, r.quest, 0 FROM vmangos_world.gameobject_involvedrelation r JOIN world.gameobject_template t ON t.entry = r.id JOIN vmangos_world.ns_quests n ON n.quest = r.quest +WHERE r.patch_min <= 10 AND r.patch_max >= 10; + +-- TDB disables these old quests ("Deprecated quest") and marks them Expansion -2: re-enable the vanilla versions +DELETE d FROM world.disables d JOIN vmangos_world.ns_quests n ON n.quest = d.entry WHERE d.sourceType = 1; +UPDATE world.quest_template w JOIN vmangos_world.ns_quests n ON n.quest = w.ID SET w.Expansion = 0, w.ContentTuningID = 0; diff --git a/sql/custom/world/2026_09_27_02_world_classic_trainers.sql b/sql/custom/world/2026_09_27_02_world_classic_trainers.sql new file mode 100644 index 0000000000..245ed4f0ee --- /dev/null +++ b/sql/custom/world/2026_09_27_02_world_classic_trainers.sql @@ -0,0 +1,51 @@ +-- WoW Classic 1.60.1.70009: vanilla trainers for the imported Northshire creatures (VMaNGOS npc_trainer_template, build 5875 = 1.12.1). +-- Requires 2026_09_27_01_world_classic_northshire.sql (helper tables vmangos_world.ns_*). +-- VMaNGOS trainer lists hold the "teach" spell; the learned spell (effect 36 = LEARN_SPELL, EffectTriggerSpell) is what TC's trainer_spell wants. + +SET @TRAINER_BASE := 60000; -- trainer.Id = base + VMaNGOS trainer_id +SET @GOSSIP_OPTION_BASE := 9000000; -- gossip_menu_option.GossipOptionID = base + creature entry + +DROP TABLE IF EXISTS vmangos_world.ns_spell; +CREATE TABLE vmangos_world.ns_spell AS +SELECT s.entry, s.effect1, s.effectTriggerSpell1 FROM vmangos_world.spell_template s +JOIN (SELECT entry, MAX(build) AS b FROM vmangos_world.spell_template WHERE build <= 5875 GROUP BY entry) l ON l.entry = s.entry AND l.b = s.build; +ALTER TABLE vmangos_world.ns_spell ADD PRIMARY KEY (entry); + +DROP TABLE IF EXISTS vmangos_world.ns_trainers; +CREATE TABLE vmangos_world.ns_trainers (entry INT UNSIGNED PRIMARY KEY, trainer_id INT UNSIGNED, trainer_type TINYINT UNSIGNED) +SELECT t.entry, t.trainer_id, t.trainer_type FROM vmangos_world.ns_creature_template t JOIN vmangos_world.ns_entries e ON e.entry = t.entry WHERE t.trainer_id > 0; + +-- trainer lists +DELETE t FROM world.trainer t JOIN (SELECT DISTINCT trainer_id FROM vmangos_world.ns_trainers) n ON t.Id = @TRAINER_BASE + n.trainer_id; +INSERT INTO world.trainer (Id, Type, Greeting, VerifiedBuild) +SELECT DISTINCT @TRAINER_BASE + n.trainer_id, n.trainer_type, COALESCE(g.content_default, ''), 0 +FROM vmangos_world.ns_trainers n LEFT JOIN vmangos_world.npc_trainer_greeting g ON g.entry = n.entry; + +DELETE s FROM world.trainer_spell s JOIN (SELECT DISTINCT trainer_id FROM vmangos_world.ns_trainers) n ON s.TrainerId = @TRAINER_BASE + n.trainer_id; +INSERT IGNORE INTO world.trainer_spell (TrainerId, SpellId, MoneyCost, ReqSkillLine, ReqSkillRank, ReqAbility1, ReqAbility2, ReqAbility3, ReqLevel, VerifiedBuild) +SELECT @TRAINER_BASE + x.entry, x.learned, x.spellcost, x.reqskill, x.reqskillvalue, COALESCE(c.prev_spell, 0), 0, 0, x.reqlevel, 0 +FROM ( + SELECT t.entry, IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell) AS learned, t.spellcost, t.reqskill, t.reqskillvalue, t.reqlevel + FROM vmangos_world.npc_trainer_template t + JOIN (SELECT DISTINCT trainer_id FROM vmangos_world.ns_trainers) n ON n.trainer_id = t.entry + LEFT JOIN vmangos_world.ns_spell s ON s.entry = t.spell + WHERE t.build_min <= 5875 AND t.build_max >= 5875 +) x +LEFT JOIN (SELECT spell_id, ANY_VALUE(prev_spell) AS prev_spell FROM vmangos_world.spell_chain WHERE build_min <= 5875 AND build_max >= 5875 GROUP BY spell_id) c ON c.spell_id = x.learned; + +-- "I require training." option in each trainer's gossip menu, linked to its trainer list +DELETE o FROM world.gossip_menu_option o JOIN vmangos_world.ns_trainers n ON o.GossipOptionID = @GOSSIP_OPTION_BASE + n.entry; +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText, OptionBroadcastTextID, Language, Flags, ActionMenuID, ActionPoiID, + GossipNpcOptionID, BoxCoded, BoxMoney, BoxText, BoxBroadcastTextID, SpellID, OverrideIconID, VerifiedBuild) +SELECT g.MenuID, @GOSSIP_OPTION_BASE + n.entry, (SELECT COALESCE(MAX(o.OptionID) + 1, 0) FROM world.gossip_menu_option o WHERE o.MenuID = g.MenuID), + 3, 'I require training.', 0, 0, 0, 0, 0, NULL, 0, 0, '', 0, NULL, NULL, 0 +FROM vmangos_world.ns_trainers n JOIN world.creature_template_gossip g ON g.CreatureID = n.entry; + +DELETE c FROM world.creature_trainer c JOIN vmangos_world.ns_trainers n ON n.entry = c.CreatureID; +INSERT INTO world.creature_trainer (CreatureID, TrainerID, MenuID, OptionID) +SELECT n.entry, @TRAINER_BASE + n.trainer_id, o.MenuID, o.OptionID +FROM vmangos_world.ns_trainers n JOIN world.gossip_menu_option o ON o.GossipOptionID = @GOSSIP_OPTION_BASE + n.entry; + +-- NPC flags: gossip + trainer (+ class trainer / profession trainer) +UPDATE world.creature_template t JOIN vmangos_world.ns_trainers n ON n.entry = t.entry +SET t.npcflag = t.npcflag | 0x1 | 0x10 | IF(n.trainer_type = 0, 0x20, IF(n.trainer_type = 2, 0x40, 0)); diff --git a/sql/custom/world/2026_09_27_03_world_classic_vendors.sql b/sql/custom/world/2026_09_27_03_world_classic_vendors.sql new file mode 100644 index 0000000000..32b3663e42 --- /dev/null +++ b/sql/custom/world/2026_09_27_03_world_classic_vendors.sql @@ -0,0 +1,38 @@ +-- WoW Classic 1.60.1.70009: vanilla vendors for the imported Northshire creatures (VMaNGOS npc_vendor). +-- Requires 2026_09_27_01_world_classic_northshire.sql (helper tables vmangos_world.ns_*). +-- The Classic client does not open a merchant for NPCs that only carry the vendor flag: vendors get the gossip flag and a +-- gossip menu with a "browse goods" option (same path trainers use). + +SET @MENU_BASE := 91000000; -- gossip_menu.MenuID = base + creature entry (only for vendors without a menu) +SET @GOSSIP_OPTION_BASE := 9100000; -- gossip_menu_option.GossipOptionID = base + creature entry + +DROP TABLE IF EXISTS vmangos_world.ns_vendors; +CREATE TABLE vmangos_world.ns_vendors (entry INT UNSIGNED PRIMARY KEY, npc_flags INT UNSIGNED) +SELECT t.entry, t.npc_flags FROM vmangos_world.ns_creature_template t JOIN vmangos_world.ns_entries e ON e.entry = t.entry WHERE t.npc_flags & 0x4; + +-- item lists +DELETE v FROM world.npc_vendor v JOIN vmangos_world.ns_vendors n ON n.entry = v.entry; +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type, BonusListIDs, PlayerConditionID, IgnoreFiltering, VerifiedBuild) +SELECT v.entry, v.slot, v.item, v.maxcount, v.incrtime, 0, 1, NULL, 0, 0, 0 +FROM vmangos_world.npc_vendor v JOIN vmangos_world.ns_vendors n ON n.entry = v.entry; + +-- gossip menu for vendors that have none (text 68 = generic greeting) +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) +SELECT n.entry, @MENU_BASE + n.entry, 0 FROM vmangos_world.ns_vendors n +LEFT JOIN world.creature_template_gossip c ON c.CreatureID = n.entry WHERE c.CreatureID IS NULL; +-- the menu itself must exist too, otherwise TC hides the gossip flag (Player::CanSeeGossipOn) +DELETE g FROM world.gossip_menu g JOIN vmangos_world.ns_vendors n ON g.MenuID = @MENU_BASE + n.entry; +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) +SELECT c.MenuID, 68, 0 FROM vmangos_world.ns_vendors n JOIN world.creature_template_gossip c ON c.CreatureID = n.entry AND c.MenuID = @MENU_BASE + n.entry; + +-- "browse goods" option +DELETE o FROM world.gossip_menu_option o JOIN vmangos_world.ns_vendors n ON o.GossipOptionID = @GOSSIP_OPTION_BASE + n.entry; +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText, OptionBroadcastTextID, Language, Flags, ActionMenuID, ActionPoiID, + GossipNpcOptionID, BoxCoded, BoxMoney, BoxText, BoxBroadcastTextID, SpellID, OverrideIconID, VerifiedBuild) +SELECT c.MenuID, @GOSSIP_OPTION_BASE + n.entry, (SELECT COALESCE(MAX(o.OptionID) + 1, 0) FROM world.gossip_menu_option o WHERE o.MenuID = c.MenuID), + 1, 'I want to browse your goods.', 0, 0, 0, 0, 0, NULL, 0, 0, '', 0, NULL, NULL, 0 +FROM vmangos_world.ns_vendors n JOIN world.creature_template_gossip c ON c.CreatureID = n.entry; + +-- flags: gossip + vendor (+ repair when the vanilla vendor could repair: 1.12 flag 0x4000) +UPDATE world.creature_template t JOIN vmangos_world.ns_vendors n ON n.entry = t.entry +SET t.npcflag = t.npcflag | 0x1 | 0x80 | IF(n.npc_flags & 0x4000, 0x1000, 0); diff --git a/sql/custom/world/2026_09_28_00_world_zephras.sql b/sql/custom/world/2026_09_28_00_world_zephras.sql new file mode 100644 index 0000000000..cd09b297c9 --- /dev/null +++ b/sql/custom/world/2026_09_28_00_world_zephras.sql @@ -0,0 +1,509 @@ +-- WoW Classic 1.60.1.70009: Zephras Isle (Skyborne starting zone) from real-beta recordings +-- generated by classic_re/zephras_import.py from F:/wow stuff/classic_re/beta_data/2026-09-28_0057 +-- creatures 33, spawns 53, quests 18 + +DELETE FROM world.creature_template WHERE entry IN (249363,250873,250926,250937,251143,251160,251169,251361,251362,251363,251364,251365,251366,251368,251371,251373,251374,251376,251379,251389,251402,251404,251437,251487,251537,251964,251965,252095,255002,255979,257551,257554,263113); +DELETE FROM world.creature_template_model WHERE CreatureID IN (249363,250873,250926,250937,251143,251160,251169,251361,251362,251363,251364,251365,251366,251368,251371,251373,251374,251376,251379,251389,251402,251404,251437,251487,251537,251964,251965,252095,255002,255979,257551,257554,263113); +DELETE FROM world.creature_template_difficulty WHERE Entry IN (249363,250873,250926,250937,251143,251160,251169,251361,251362,251363,251364,251365,251366,251368,251371,251373,251374,251376,251379,251389,251402,251404,251437,251487,251537,251964,251965,252095,255002,255979,257551,257554,263113); +DELETE FROM world.creature_classic_level WHERE entry IN (249363,250873,250926,250937,251143,251160,251169,251361,251362,251363,251364,251365,251366,251368,251371,251373,251374,251376,251379,251389,251402,251404,251437,251487,251537,251964,251965,252095,255002,255979,257551,257554,263113); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (249363, 'Yala Windwatcher', NULL, NULL, 35, 3, 1, 1.14286, 1, 0, 2000, 2000, 1, 0, 0, 10, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (249363, 0, 136971, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136971, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (249363, 0, 0, 1.35, 1, 328944, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (249363, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (250873, 'Juvenile Vuldren', NULL, NULL, 7, 0, 1, 1.14286, 1, 0, 2000, 2000, 1, 319, 0, 1, '', 1, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (250873, 0, 136536, 0.6, 0.3, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136536, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (250873, 0, 0, 1, 1, 330483, 134217729, 0, 0, 250873, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (250873, 1, 1); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (250926, 'Scrawny Ursera', NULL, NULL, 14, 0, 1, 1.14286, 1, 0, 2000, 2000, 1, 4, 0, 1, '', 1, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (250926, 0, 136607, 0.7, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136607, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (250926, 1, 136608, 0.8, 0.5, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136608, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (250926, 0, 0, 1, 1, 330536, 134217729, 0, 0, 250926, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (250926, 3, 4); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (250937, 'Ursera Scavenger', NULL, NULL, 14, 0, 1, 1.14286, 1, 0, 2000, 2000, 1, 4, 0, 1, '', 1, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (250937, 0, 136605, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136605, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (250937, 1, 136604, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136604, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (250937, 0, 0, 1, 1, 330547, 134217729, 0, 0, 250937, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (250937, 4, 4); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251143, 'Roiling Winds', NULL, NULL, 14, 0, 1, 1.14286, 1, 0, 2000, 2000, 1, 0, 0, 10, '', 1, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251143, 0, 137907, 0.7, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (137907, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251143, 0, 0, 1, 1, 331947, 134217728, 0, 0, 251143, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251143, 2, 3); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251160, 'Al\'Aketh Convert', NULL, NULL, 14, 0, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 1, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251160, 0, 137690, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (137690, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251160, 1, 137691, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (137691, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251160, 2, 143529, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (143529, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251160, 3, 143530, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (143530, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251160, 4, 143531, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (143531, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251160, 0, 0, 1, 1, 331964, 134217728, 0, 0, 251160, 1, 5); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251160, 2, 3); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251169, 'Pesky Cirrusfly', NULL, NULL, 7, 0, 1, 1.14286, 1, 0, 2000, 2000, 8, 0, 0, 1, '', 1, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251169, 0, 139279, 0.3, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (139279, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251169, 0, 0, 1, 1, 331973, 134217728, 0, 0, 251169, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251169, 1, 1); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251361, 'Rorian the Dayseeker', NULL, NULL, 35, 3, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251361, 0, 136966, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136966, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251361, 0, 0, 1, 1, 332168, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251361, 20, 20); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251362, 'Ailee Farheart', 'Rangers of Thendal Grove', NULL, 35, 3, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251362, 0, 136968, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136968, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251362, 0, 0, 1, 1, 332169, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251362, 1, 1); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251363, 'Dalia the Collector', NULL, NULL, 35, 2, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251363, 0, 137697, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (137697, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251363, 0, 0, 1, 1, 332170, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251363, 1, 1); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251364, 'Destin Thriceforged', 'Weapon Merchant', NULL, 35, 4225, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251364, 0, 136969, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136969, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251364, 0, 0, 1, 1, 332171, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251364, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251365, 'Jolee Brightmeadows', 'Cloth & Leather Armor', NULL, 35, 4225, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251365, 0, 138156, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (138156, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251365, 0, 0, 1, 1, 332172, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251365, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251366, 'Aetheen of the Gales', 'Elder of Zephras Isle', NULL, 35, 2, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251366, 0, 137339, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (137339, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251366, 0, 0, 1, 1, 332173, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251366, 10, 10); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251368, 'Elatrell Featherlight', 'Rangers of Thendal Grove', NULL, 35, 2, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251368, 0, 136967, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136967, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251368, 0, 0, 1, 1, 332175, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251368, 20, 20); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251371, 'Falorne Fallwind', 'High Order', NULL, 35, 1, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251371, 0, 136972, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136972, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251371, 0, 0, 1, 1, 332178, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251371, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251373, 'Xyton Silverwind', 'Druid Trainer', 'trainer', 35, 51, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 11, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251373, 0, 136974, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136974, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251373, 0, 0, 1, 1, 332180, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251373, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251374, 'Windshaper Boro', 'Shaman Trainer', 'trainer', 35, 49, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 7, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251374, 0, 136975, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136975, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251374, 0, 0, 1, 1, 332181, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251374, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251376, 'Tai\'ree Farsight', 'Hunter Trainer', 'trainer', 35, 49, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 3, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251376, 0, 136976, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136976, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251376, 0, 0, 1, 1, 332183, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251376, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251379, 'Dorii Brightwhisper', 'Mage Trainer', 'trainer', 35, 49, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 8, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251379, 0, 136977, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136977, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251379, 0, 0, 1, 1, 332186, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251379, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251389, 'Akeri Duskblade', 'Rogue Trainer', 'trainer', 35, 49, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 4, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251389, 0, 136981, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136981, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251389, 0, 0, 1, 1, 332196, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251389, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251402, 'Cirrusfly Soldier', NULL, NULL, 14, 0, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 1, '', 1, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251402, 0, 136992, 0.75, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136992, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251402, 0, 0, 1.1, 1, 332209, 134217728, 0, 0, 251402, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251402, 2, 2); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251404, 'Cirrusfly Queen', NULL, NULL, 14, 0, 1, 1.14286, 1, 0, 2000, 2000, 1, 0, 0, 1, '', 1, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251404, 0, 136996, 1.5, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136996, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251404, 0, 0, 1.7, 1, 332211, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251404, 3, 3); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251437, 'Fireflies', NULL, NULL, 188, 0, 1, 1.14286, 1, 0, 2000, 2000, 1, 0, 0, 8, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251437, 0, 137015, 2, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (137015, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251437, 0, 0, 1.35, 1, 332245, 1207959552, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251437, 1, 1); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251487, 'Ventaari Brightwish', 'Windshapers', NULL, 35, 3, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251487, 0, 139694, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (139694, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251487, 0, 0, 1, 1, 332295, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251487, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251537, 'Uualia Suncrest', 'General Goods', NULL, 35, 4225, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251537, 0, 136970, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136970, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251537, 0, 0, 1, 1, 332345, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251537, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251964, 'Blademaster Ren', 'Warrior Trainer', 'trainer', 35, 49, 1, 1.14286, 1, 0, 2000, 2000, 1, 0, 1, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251964, 0, 138170, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (138170, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251964, 0, 0, 1, 1, 332788, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251964, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (251965, 'Fevrath Skyhammer', 'Armorer & Shieldcrafter', NULL, 35, 4225, 1, 1.14286, 1, 0, 2000, 2000, 1, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (251965, 0, 139401, 1, 100, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (139401, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (251965, 0, 0, 1, 1, 332789, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (251965, 5, 5); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (252095, 'Hanaa Nightwind', 'Rangers of Thendal Grove', NULL, 35, 2, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (252095, 0, 137338, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (137338, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (252095, 0, 0, 1, 1, 332923, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (252095, 10, 10); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (255002, 'Ryff', 'Tai\'ree Farsight\'s Companion', NULL, 35, 0, 1, 1.14286, 1, 0, 2000, 2000, 1, 0, 0, 1, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (255002, 0, 136536, 0.4, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (136536, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (255002, 0, 0, 1.25, 1, 335909, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (255002, 6, 6); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (255979, 'Thendal Grove Ranger', NULL, NULL, 35, 0, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (255979, 0, 139403, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (139403, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (255979, 1, 139404, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (139404, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (255979, 2, 139405, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (139405, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (255979, 3, 139409, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (139409, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (255979, 4, 139411, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (139411, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (255979, 5, 139412, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (139412, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (255979, 0, 0, 1, 1, 339019, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (255979, 10, 10); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (257551, 'Valreaa Valewind', 'Rangers of Thendal Grove', NULL, 35, 2, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (257551, 0, 139409, 1, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (139409, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (257551, 0, 0, 1, 1, 340625, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (257551, 10, 10); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (257554, 'Halaan Hawk-Eye', 'Rangers of Thendal Grove', NULL, 35, 3, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (257554, 0, 143583, 1.2, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (143583, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (257554, 0, 0, 1, 1, 340628, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (257554, 10, 10); +INSERT INTO world.creature_template (entry, name, subname, IconName, faction, npcflag, speed_walk, speed_run, scale, Classification, BaseAttackTime, RangeAttackTime, unit_class, family, trainer_class, type, AIName, MovementType, ScriptName) VALUES (263113, 'Myriaal Mistwake', 'Rangers of Thendal Grove', NULL, 35, 3, 1, 1.14286, 1, 0, 2000, 2000, 2, 0, 0, 7, '', 0, ''); +INSERT INTO world.creature_template_model (CreatureID, Idx, CreatureDisplayID, DisplayScale, Probability, VerifiedBuild) VALUES (263113, 0, 143516, 0.95, 1, 0); +INSERT IGNORE INTO world.creature_model_info (DisplayID, BoundingRadius, CombatReach, DisplayID_Other_Gender, VerifiedBuild) VALUES (143516, 0.389, 1.5, 0, 0); +INSERT INTO world.creature_template_difficulty (Entry, DifficultyID, HealthScalingExpansion, HealthModifier, ManaModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, LootID, GoldMin, GoldMax) VALUES (263113, 0, 0, 1, 1, 346419, 134217728, 0, 0, 0, 0, 0); +INSERT INTO world.creature_classic_level (entry, level_min, level_max) VALUES (263113, 10, 10); + +DELETE FROM world.creature WHERE guid BETWEEN 21000000 AND 21099999; +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000000, 6491, 2991, 16593, 0, '0', 4122.50, 1939.00, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000001, 249363, 2991, 16593, 0, '0', 4131.12, 1605.82, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000002, 249363, 2991, 16593, 0, '0', 4143.35, 1600.82, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000003, 250873, 2991, 16593, 0, '0', 4009.48, 1827.66, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000004, 250873, 2991, 16593, 0, '0', 3980.19, 1728.14, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000005, 250926, 2991, 16593, 0, '0', 4007.26, 1828.77, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000006, 250926, 2991, 16593, 0, '0', 4071.70, 1878.40, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000007, 250926, 2991, 16593, 0, '0', 4013.00, 1932.70, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000008, 250926, 2991, 16593, 0, '0', 3945.60, 2014.00, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000009, 250926, 2991, 16593, 0, '0', 3887.10, 2101.10, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000010, 250937, 2991, 16593, 0, '0', 3937.50, 2092.30, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000011, 251143, 2991, 16593, 0, '0', 4108.87, 1616.38, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000012, 251143, 2991, 16593, 0, '0', 4173.02, 1589.14, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000013, 251143, 2991, 16593, 0, '0', 4231.98, 1581.36, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000014, 251160, 2991, 16593, 0, '0', 4177.84, 1566.35, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000015, 251160, 2991, 16593, 0, '0', 4253.49, 1598.59, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000016, 251169, 2991, 16593, 0, '0', 3991.31, 1733.14, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000017, 251169, 2991, 16593, 0, '0', 3933.84, 1676.99, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000018, 251361, 2991, 16593, 0, '0', 4085.13, 1885.48, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000019, 251362, 2991, 16593, 0, '0', 4098.11, 1849.89, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000020, 251362, 2991, 16593, 0, '0', 4090.33, 1848.23, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000021, 251363, 2991, 16593, 0, '0', 4063.25, 1821.54, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000022, 251364, 2991, 16593, 0, '0', 4087.36, 1836.00, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000023, 251364, 2991, 16593, 0, '0', 4085.13, 1817.65, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000024, 251365, 2991, 16593, 0, '0', 4086.99, 1832.10, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000025, 251365, 2991, 16593, 0, '0', 4082.17, 1813.20, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000026, 251366, 2991, 16593, 0, '0', 4081.43, 1855.45, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000027, 251368, 2991, 16593, 0, '0', 4048.79, 1816.54, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000028, 251368, 2991, 16593, 0, '0', 4038.78, 1815.42, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000029, 251371, 2991, 16593, 0, '0', 4036.18, 1818.20, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000030, 251373, 2991, 16593, 0, '0', 4087.73, 1904.38, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000031, 251373, 2991, 16593, 0, '0', 4090.70, 1912.16, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000032, 251374, 2991, 16593, 0, '0', 4080.68, 1846.56, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000033, 251376, 2991, 16593, 0, '0', 4098.11, 1849.89, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000034, 251379, 2991, 16593, 0, '0', 4079.20, 1917.72, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000035, 251389, 2991, 16593, 0, '0', 4057.69, 1810.98, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000036, 251402, 2991, 16593, 0, '0', 3906.76, 1614.16, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000037, 251404, 2991, 16593, 0, '0', 3903.80, 1638.62, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000038, 251404, 2991, 16593, 0, '0', 3900.83, 1554.11, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000039, 251437, 2991, 16593, 0, '0', 3906.39, 1597.48, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000040, 251487, 2991, 16593, 0, '0', 4051.39, 1856.57, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000041, 251537, 2991, 16593, 0, '0', 4042.86, 1843.78, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000042, 251537, 2991, 16593, 0, '0', 4047.68, 1851.01, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000043, 251964, 2991, 16593, 0, '0', 4056.21, 1802.08, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000044, 251965, 2991, 16593, 0, '0', 4087.36, 1836.00, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000045, 251965, 2991, 16593, 0, '0', 4086.99, 1822.10, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000046, 252095, 2991, 16593, 0, '0', 3837.20, 2101.20, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000047, 255002, 2991, 16593, 0, '0', 4078.46, 1863.79, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000048, 255979, 2991, 16593, 0, '0', 4053.98, 1794.30, -15000, 0, 90, 5, 1, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000049, 257551, 2991, 16593, 0, '0', 4064.74, 1868.80, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000050, 257551, 2991, 16593, 0, '0', 4026.17, 1871.02, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000051, 257554, 2991, 16593, 0, '0', 4063.25, 1797.63, -15000, 0, 300, 0, 0, 100); +INSERT INTO world.creature (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, spawntimesecs, wander_distance, MovementType, curHealthPct) VALUES (21000052, 263113, 2991, 16593, 0, '0', 4059.92, 1801.52, -15000, 0, 300, 0, 0, 100); + +DELETE FROM world.gameobject_template WHERE entry IN (578266,613286,616907,616992,617753,618329,658836,660931,677333); +INSERT INTO world.gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, size, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, Data29, Data30, Data31, Data32, Data33, Data34, ContentTuningId, RequiredLevel) VALUES (578266, 10, 114002, 'Wind Bridge', '', '', '', 0.7, 0, 0, 0, 3000, 0, 0, 0, 0, 0, 0, 1256704, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO world.gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, size, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, Data29, Data30, Data31, Data32, Data33, Data34, ContentTuningId, RequiredLevel) VALUES (613286, 3, 129569, 'Raw Windstone', '', '', '', 0.4, 4088, 136901, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 147551, 0, 0, 5121, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 2180, 1); +INSERT INTO world.gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, size, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, Data29, Data30, Data31, Data32, Data33, Data34, ContentTuningId, RequiredLevel) VALUES (616907, 3, 129569, 'Windstone', '', '', '', 0.5, 4088, 137592, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5121, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 2180, 1); +INSERT INTO world.gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, size, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, Data29, Data30, Data31, Data32, Data33, Data34, ContentTuningId, RequiredLevel) VALUES (616992, 8, 124181, 'Elemental Convergence', '', '', '', 1, 2271, 25, 616510, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO world.gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, size, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, Data29, Data30, Data31, Data32, Data33, Data34, ContentTuningId, RequiredLevel) VALUES (617753, 5, 118137, 'Skywall Orb', '', '', '', 0.5, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO world.gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, size, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, Data29, Data30, Data31, Data32, Data33, Data34, ContentTuningId, RequiredLevel) VALUES (618329, 3, 120538, 'Construct Parts', '', '', '', 1, 57, 137445, 0, 1, 0, 0, 0, 0, 93737, 0, 0, 0, 0, 0, 0, 0, 0, 148436, 0, 0, 4097, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2180, 1); +INSERT INTO world.gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, size, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, Data29, Data30, Data31, Data32, Data33, Data34, ContentTuningId, RequiredLevel) VALUES (658836, 10, 129569, 'On the Shal\'nan', '', '', '', 0.15, 0, 0, 0, 3000, 0, 0, 0, 10727, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 5841, 1); +INSERT INTO world.gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, size, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, Data29, Data30, Data31, Data32, Data33, Data34, ContentTuningId, RequiredLevel) VALUES (660931, 5, 129426, 'Windwell Vortex', '', '', '', 0.35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +INSERT INTO world.gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, size, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, Data24, Data25, Data26, Data27, Data28, Data29, Data30, Data31, Data32, Data33, Data34, ContentTuningId, RequiredLevel) VALUES (677333, 5, 102883, 'Cirrusfly Hive', '', '', '', 0.35, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); +DELETE FROM world.gameobject WHERE guid BETWEEN 21000000 AND 21099999; +INSERT INTO world.gameobject (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, rotation0, rotation1, rotation2, rotation3, spawntimesecs, animprogress, state) VALUES (21000000, 613286, 2991, 16593, 0, '0', 4128.52, 1847.11, -15000, 0, 0, 0, 0, 1, 120, 255, 1); +INSERT INTO world.gameobject (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, rotation0, rotation1, rotation2, rotation3, spawntimesecs, animprogress, state) VALUES (21000001, 613286, 2991, 16593, 0, '0', 4074.38, 1814.31, -15000, 0, 0, 0, 0, 1, 120, 255, 1); +INSERT INTO world.gameobject (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, rotation0, rotation1, rotation2, rotation3, spawntimesecs, animprogress, state) VALUES (21000002, 613286, 2991, 16593, 0, '0', 3893.04, 1845.45, -15000, 0, 0, 0, 0, 1, 120, 255, 1); +INSERT INTO world.gameobject (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, rotation0, rotation1, rotation2, rotation3, spawntimesecs, animprogress, state) VALUES (21000003, 613286, 2991, 16593, 0, '0', 3875.99, 1711.46, -15000, 0, 0, 0, 0, 1, 120, 255, 1); +INSERT INTO world.gameobject (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, rotation0, rotation1, rotation2, rotation3, spawntimesecs, animprogress, state) VALUES (21000004, 613286, 2991, 16593, 0, '0', 3917.52, 1631.40, -15000, 0, 0, 0, 0, 1, 120, 255, 1); +INSERT INTO world.gameobject (guid, id, map, zoneId, areaId, spawnDifficulties, position_x, position_y, position_z, orientation, rotation0, rotation1, rotation2, rotation3, spawntimesecs, animprogress, state) VALUES (21000005, 613286, 2991, 16593, 0, '0', 4039.52, 1639.18, -15000, 0, 0, 0, 0, 1, 120, 255, 1); + +DELETE FROM world.quest_template WHERE ID IN (92460,92461,92462,92463,92464,92465,92469,92470,92471,92473,92474,92485,92544,92598,93318,93552,94414,94897); +DELETE FROM world.quest_template_addon WHERE ID IN (92460,92461,92462,92463,92464,92465,92469,92470,92471,92473,92474,92485,92544,92598,93318,93552,94414,94897); +DELETE FROM world.quest_objectives WHERE QuestID IN (92460,92461,92462,92463,92464,92465,92469,92470,92471,92473,92474,92485,92544,92598,93318,93552,94414,94897); +DELETE FROM world.creature_queststarter WHERE quest IN (92460,92461,92462,92463,92464,92465,92469,92470,92471,92473,92474,92485,92544,92598,93318,93552,94414,94897); +DELETE FROM world.creature_questender WHERE quest IN (92460,92461,92462,92463,92464,92465,92469,92470,92471,92473,92474,92485,92544,92598,93318,93552,94414,94897); +DELETE FROM world.gameobject_queststarter WHERE quest IN (92460,92461,92462,92463,92464,92465,92469,92470,92471,92473,92474,92485,92544,92598,93318,93552,94414,94897); +DELETE FROM world.gameobject_questender WHERE quest IN (92460,92461,92462,92463,92464,92465,92469,92470,92471,92473,92474,92485,92544,92598,93318,93552,94414,94897); +DELETE FROM world.disables WHERE entry IN (92460,92461,92462,92463,92464,92465,92469,92470,92471,92473,92474,92485,92544,92598,93318,93552,94414,94897) AND sourceType = 1; +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92460, 2, 0, 0, 16593, 0, 0, 92461, 3, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Coming of Age', 'Speak with Rorian the Dayseeker in Thendal Grove.', 'Look at you, bright eyed and ready for adventure! We\'ve been awaiting your arrival and anticipating your much needed help here in Thendal Village. I imagine you are brimming with both nerves and excitement for what is to come. After all, you only get to come of age once in a lifetime.\n\n\n\nGo, seek out our village leader Rorian the Dayseeker at the entrance to the greatfather tree just west of here. He will get you started on your journey.', '', '', '', '', '', '', 264908, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 2, 0, 7, 2779, 2, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92460, 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92461, 2, 0, 0, 16593, 0, 0, 0, 5, 1, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Harmony in Balance', 'Slay 8 Vuldren Juveniles in Thendal Grove.', 'We live in times of great uncertainty for our people. We face unprecedented challenges that may require bold solutions, but we also must contend with the ordinary and mundane here in Thendal Grove. Take, for example, the recent unsustainable rise in the vuldren population.\n\nThe vuldren are a vital part of our ecosystem. However, imbalances must be corrected to maintain the delicate harmony that all creatures in Thendal Grove share.\n\nHead east and cull some of the vuldren there.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 257281, 1, 0, 257280, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92461, 92460); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (464765, 92461, 0, 0, 0, 250873, 8, 542740, 32, 0, 0, 0, 1, '', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92462, 2, 0, 0, 16593, 0, 0, 0, 5, 1, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Infestation Investigation', 'Slay 8 Pesky Cirrusflies in Thendal Grove.', 'One of our rangers recently reported an infestation of cirrusflies here in Thendal Grove. \n\nCirrusflies can be dangerous if the swarm is allowed to grow too large, so please head to the eastern end of the Grove and exterminate as many as you can.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92462, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (464767, 92462, 0, 0, 2, 251169, 8, 7922, 32, 0, 0, 0, 1, '', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92463, 2, 0, 0, 16593, 0, 0, 0, 6, 1, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'The Cirrusfly Queen', 'Destroy the Cirrusfly Queen in Thendal Grove.', 'If the forest is as thick with these insects as it sounds, simply killing the workers won\'t be enough.\n\nGo deeper into the forest and find the queen. She\'ll be close to the hive and surrounded by bigger and more aggressive soldiers, so be careful.\n\nPut her down and return here when it\'s done. That\'ll be one less problem to think about around here.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 263408, 1, 0, 263409, 1, 0, 263410, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92463, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (464771, 92463, 0, 0, 3, 251404, 1, 1634693699, 32, 0, 0, 0, 1, '', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92464, 2, 0, 0, 16593, 0, 0, 92465, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Elemental Unrest', 'Speak to the Yala Windwatcher in Thendal Grove.', 'Ever since our elemental benefactors left us, it seems that we are simply moving from one unrest to another. The problem we face now is that the manifestations of the winds near the standing stones to the northeast are agitated.\n\nNot truly self-aware like the sentient wind spirits that once lived here, these simple sprites respond in kind to forces, emotions, and intentions of the creatures around them. \n\nMy apprentice Yala Windwatcher went to observe them. Seek her out and discover what she\'s learned.', 'Learn more about the agitated winds.', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92464, 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92465, 2, 0, 0, 16593, 0, 0, 92469, 5, 1, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Agitators', 'Slay $2oa Roiling Winds and $1oa Al\'Aketh Converts in Thendal Grove.', 'The Al\'Aketh cult is a blight upon this island. These cultists are surely the ones responsible for agitating the simple wind sprites that reside here and turning them violent.\n\nRegrettably, we\'ll need to disperse these roiling winds here before they harm someone. We also need to send a clear message to the cult that they are not welcome in the grove.\n\nWill you lend me your aid, $c?', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92465, 92464); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (464772, 92465, 0, 0, 0, 251160, 7, 0, 32, 0, 0, 0, 1, '', 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (464773, 92465, 0, 1, 1, 251143, 6, 976896, 32, 0, 0, 0, 1, 'Roiling Winds destroyed', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92469, 2, 0, 0, 16593, 0, 0, 92470, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Return to Rorian', 'Bring word of the Al\'Aketh to Rorian the Dayseeker in Thendal Grove.', 'You\'ve done enough here, $c. I\'ll stay and clean up any stragglers down there.\n\nHead back to the Village and tell Rorian about the cult\'s presence. He will not be pleased.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 257277, 1, 0, 257272, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92469, 92465); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92470, 2, 0, 0, 16593, 0, 0, 92472, 6, 1, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Foul Matriarch', 'Slay 8 Ursera Scavengers and collect the head of the den mother, Urs\'anah in Thendal Grove.', 'Rorian informed you that I\'ve been watching you. I now offer you a test of resolve. However, be warned--it will send you into great danger.\n\nGo to the caves to the south. Thin out the ursera\'s numbers there, and find their matriarch, one the rangers call "Urs\'anah". Put her down and bring me proof of her demise. Once you have done that, you will have taken an important step on your path.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 258882, 1, 0, 257282, 1, 0, 257283, 1, 0, 257276, 1, 0, 273879, 1, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92470, 92471); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (464780, 92470, 0, 0, 1, 250937, 8, 0, 32, 0, 0, 0, 1, '', 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (464781, 92470, 1, 1, 2, 252665, 1, -514204395, 32, 1, 0, 0, 1, '', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92471, 2, 0, 0, 16593, 0, 0, 92470, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Aetheen of the Gales', 'Speak with Aetheen of the Gales in Thendal Grove.', 'You may not realize this but everything you\'ve done has been a trial of sorts. A test for what is to come for you. It\'s a big island out there, and Zephras needs spirited young adventurers such as yourself if we are to survive the trials our people face.\n\nThe one called Aetheen of the Gales is one of the leaders of our people here on Zephras Isle, and she has been watching you. She has a task that you must complete. Speak with her to learn more.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 1, 0, 7, 2779, 1, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92471, 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92473, 2, 0, 0, 16593, 0, 0, 0, 5, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Aggressive Encroachment', 'Collect 6 Scrawny Ursera Claws from Scrawny Ursera in Thendal Grove.', 'The ursera den to the southwest is rapidly becoming a problem. Just last week the rangers had to kill an adolescent ursera who wandered too close to the village and attempted to attack a boy playing near the base of the elder tree in the center of the village.\n\nWe were fortunate that the boy escaped with his life. Hunger and desperation makes these beasts too dangerous to be left unchecked. Go south and put the scrawniest among the ursera down. Bring me their claws as proof when it is done.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 257257, 1, 0, 257264, 1, 0, 257263, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92473, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (464786, 92473, 1, 0, 2, 251918, 6, 0, 32, 1, 0, 0, 1, '', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92474, 2, 0, 0, 16593, 0, 0, 0, 3, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 12884901888, 0, 0, 0, 'Falling With Style', 'Jump from the top of the watchtower in Thendal Grove and use your Walk on Air ability to slow your fall.', 'Well hello there, $n! Want to play a game?\n\nAll you\'ve got to do is step up on that ledge... then jump! Use your innate ability to walk on the air to slow your fall and see how far forward you can float.\n\nThe rules are made up and the points don\'t matter, but you get bonus points if you can land right in front of Rorian the Dayseeker and startle him! He won\'t like it but I\'ll certainly get a good laugh if you can get him all worked up! Hah!', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92474, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (471661, 92474, 14, 0, 0, 224937, 1, 1852729702, 48, 0, 0, 0, 1, '', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92485, 2, 0, 0, -263, 0, 0, 0, 3, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 282420, 16777216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'A Student of Nature', 'Read the Folded Parchment then speak with Xyton Silverwind in Thendal Grove.', 'While you were away dealing with our vuldren problem, our resident druid trainer--Xyton Silverwind--left this note for you. Read it as soon as you can, and then seek out Silverwind on the ground floor of this great tree just behind me.\n\nHeed his words and his counsel, he can teach you much.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92485, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (478266, 92485, 1, 0, 0, 282420, 1, 0, 32, 0, 0, 0, 1, '', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92544, 2, 0, 0, 16593, 0, 0, 0, 6, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Al\'Aketh Thugs', 'Slay 6 Al\'Aketh Brutes, 4 Al\'Aketh Neophytes, and Malduko Cloudcrush in Thendal Grove.', 'A band of Al\'Aketh cult ruffians have taken up residence near the temple ruins just southwest of here, led by a real monster called Malduko Cloudcrush. This rabble has no doubt been dispatched here by High Priestess Lorthuna at the Shrine of Akir to attack travelers and coerce our people into joining the cult.\n\nI need to stay here at my post to alert travelers leaving the grove of the danger, but I would be grateful if you could do something about those cultists and their leader for me.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92544, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (464979, 92544, 0, 0, 0, 251145, 6, 1131570547, 32, 0, 0, 0, 1, '', 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (464980, 92544, 0, 1, 1, 251448, 4, 808464432, 32, 0, 0, 0, 1, '', 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (467909, 92544, 0, 2, 2, 256935, 1, 0, 32, 0, 0, 0, 1, '', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (92598, 2, 0, 0, 16593, 0, 0, 0, 3, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2097152, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 8589934592, 0, 0, 0, 'The Gift of Skysight', 'Use your Skysight racial ability at the Elemental Convergence in Thendal Grove.', 'As a Windshaper, you have the ability to use the sacred skysight gifted to us by the elemental spirits. Travel to the standing stones to the northeast of the village. Find the elemental convergence there and use your gift.\n\nYou\'ll find that you may draw upon the skysight anywhere, but its boon is much more powerful if you do so in the presence of an elemental convergence. You may at times receive other bits of wisdom from the spirits that are drawn to such places of power, as well.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 5, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (92598, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (465193, 92598, 14, 0, 0, 219372, 1, 0, 32, 0, 0, 0, 1, 'Use Skysight near the Elemental Convergence', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (93318, 2, 0, 0, 16593, 1, 0, 0, 5, 1, 6, 1, 0, 0, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'WANTED: Vulgara the Insatiable', 'Kill Vulgara the Insatiable in the Shen\'dar Highlands and bring her head to Danarii Bellowveil.', 'By order of Constable Aonda of the Peacekeepers, a bounty is hereby placed upon the scourge of the highlands, Vulgara the Insatiable. Last spotted on a hilltop rise just southwest of Shen\'dar Village, the winged vuldren terror is highly dangerous and should be approached with caution.\n\nDeliver the beast\'s head to Danarii Bellowveil to receive your reward.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 257943, 1, 0, 257255, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (93318, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (466418, 93318, 1, 0, 1, 257942, 1, 32491, 32, 1, 0, 0, 1, '', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (93552, 2, 0, 0, 16593, 0, 0, 0, 5, 1, 5, 1, 0, 0, 0, 0, 0, 0, 0, 0, 33554440, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'Harvesting Windstones', 'Collect 15 Windstone Clusters from Raw Windstones in Thendal Grove.', 'Windstones are a critical resource on Zephras Isle as they contain the raw, concentrated energy of the winds themselves. The wind elementals who used to live here on zephras with us vanished several centuries ago, and since then, the magic that sustains this island is slowly fading. Not without limitations, the windstones are still a reliable energy source, and are incredibly valuable to us.\n\nYou\'ll find raw windstones scattered around the grove, think you can help me harvest them?', '', '', '', '', '', '', 255663, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 247840, 1, 0, 247841, 1, 0, 247846, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 3, 0, 7, 2779, 3, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (93552, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (466739, 93552, 1, 0, 1, 258772, 15, 0, 32, 1, 0, 0, 1, '', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (94414, 2, 0, 0, 16593, 0, 0, 0, 3, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 536870920, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'The Anchors of Zephras', 'Speak with Halaan Hawk-Eye and borrow his gift to view the anchor pylon in the distance.', 'Greetings, young $n. I often times come here to look upon the ancient anchor pylon. Gifts from the spirits of the winds, they bind and sustain our island. Of late however, their magic has grown unstable and inconsistent.\n\nThey suffer no distress I can see. Their splendor has not changed.\n\nIf you\'d like, I can lend you my gift to look upon them yourself.', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2778, 1, 0, 7, 2779, 1, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (94414, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (468541, 94414, 14, 0, 1, 221135, 1, 0, 32, 0, 0, 0, 1, 'View the Anchor Pylon', 0); +INSERT INTO world.quest_template (ID, QuestType, QuestPackageID, ContentTuningID, QuestSortID, QuestInfoID, SuggestedGroupNum, RewardNextQuest, RewardXPDifficulty, RewardXPMultiplier, RewardMoneyDifficulty, RewardMoneyMultiplier, RewardBonusMoney, RewardDisplaySpell1, RewardDisplaySpell2, RewardDisplaySpell3, RewardSpell, RewardHonor, RewardKillHonor, StartItem, Flags, FlagsEx, FlagsEx2, FlagsEx3, POIContinent, POIx, POIy, POIPriority, RewardTitle, RewardSkillLineID, RewardNumSkillUps, PortraitGiver, PortraitGiverMount, PortraitGiverModelSceneID, PortraitTurnIn, RewardFactionFlags, AcceptedSoundKitID, CompleteSoundKitID, AreaGroupID, TimeAllowed, AllowableRaces, Expansion, ManagedWorldStateID, QuestSessionBonus, LogTitle, LogDescription, QuestDescription, AreaDescription, PortraitGiverText, PortraitGiverName, PortraitTurnInText, PortraitTurnInName, QuestCompletionLog, RewardItem1, RewardAmount1, ItemDrop1, ItemDropQuantity1, RewardCurrencyID1, RewardCurrencyQty1, RewardItem2, RewardAmount2, ItemDrop2, ItemDropQuantity2, RewardCurrencyID2, RewardCurrencyQty2, RewardItem3, RewardAmount3, ItemDrop3, ItemDropQuantity3, RewardCurrencyID3, RewardCurrencyQty3, RewardItem4, RewardAmount4, ItemDrop4, ItemDropQuantity4, RewardCurrencyID4, RewardCurrencyQty4, RewardChoiceItemID1, RewardChoiceItemQuantity1, RewardChoiceItemDisplayID1, RewardChoiceItemID2, RewardChoiceItemQuantity2, RewardChoiceItemDisplayID2, RewardChoiceItemID3, RewardChoiceItemQuantity3, RewardChoiceItemDisplayID3, RewardChoiceItemID4, RewardChoiceItemQuantity4, RewardChoiceItemDisplayID4, RewardChoiceItemID5, RewardChoiceItemQuantity5, RewardChoiceItemDisplayID5, RewardChoiceItemID6, RewardChoiceItemQuantity6, RewardChoiceItemDisplayID6, RewardFactionID1, RewardFactionValue1, RewardFactionOverride1, RewardFactionCapIn1, RewardFactionID2, RewardFactionValue2, RewardFactionOverride2, RewardFactionCapIn2, RewardFactionID3, RewardFactionValue3, RewardFactionOverride3, RewardFactionCapIn3, RewardFactionID4, RewardFactionValue4, RewardFactionOverride4, RewardFactionCapIn4, RewardFactionID5, RewardFactionValue5, RewardFactionOverride5, RewardFactionCapIn5) VALUES (94897, 2, 0, 0, 16593, 0, 0, 0, 5, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1048584, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 890, 878, 0, 0, 18446744073709551615, 0, 0, 0, 'The Fate of a Loved One', 'Find Resaan in the Ruins of Ban\'aethal.', 'If you are traveling to Ban\'aethal, I have a selfish request. My love, Resaan... I believe is no longer a part of this world. He had tried to go back to get supplies even though I begged him to stay. It has been over a week already and I fear the worst.\n\nPlease, if you find him bring him home. If he has perished then I beg you to please bring me his heirloom.', '', '', '', '', '', '', 0, 0, 266434, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7, 0, 0, 0, 7); +INSERT INTO world.quest_template_addon (ID, PrevQuestID) VALUES (94897, 0); +INSERT INTO world.quest_objectives (ID, QuestID, Type, `Order`, StorageIndex, ObjectID, Amount, ConditionalAmount, Flags, Flags2, ProgressBarWeight, ParentObjectiveID, Visible, Description, VerifiedBuild) VALUES (469317, 94897, 1, 0, 1, 266434, 1, 1734815332, 32, 1, 0, 0, 1, '', 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (249363, 92465, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (249363, 92469, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (251361, 92461, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (251361, 92464, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (251361, 92471, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (251361, 92485, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (251362, 92460, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (251363, 93552, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (251366, 92470, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (251368, 92462, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (251368, 92463, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (251487, 92598, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (252095, 92544, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (257551, 92473, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (257554, 94414, 0); +INSERT IGNORE INTO world.creature_queststarter (id, quest, VerifiedBuild) VALUES (263113, 92474, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (249363, 92464, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (249363, 92465, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (251361, 92460, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (251361, 92461, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (251361, 92469, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (251361, 92474, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (251363, 93552, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (251366, 92471, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (251368, 92462, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (251368, 92463, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (251373, 92485, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (251487, 92598, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (257551, 92473, 0); +INSERT IGNORE INTO world.creature_questender (id, quest, VerifiedBuild) VALUES (257554, 94414, 0); + +DELETE FROM world.npc_vendor WHERE entry IN (251364,251365,251373,251374,251376,251379,251389,251537,251964,251965); +DELETE FROM world.creature_template_gossip WHERE CreatureID IN (251364,251365,251373,251374,251376,251379,251389,251537,251964,251965); +DELETE FROM world.gossip_menu WHERE MenuID IN (SELECT 92000000 + entry FROM world.creature_template WHERE entry IN (251364,251365,251373,251374,251376,251379,251389,251537,251964,251965)); +DELETE FROM world.gossip_menu_option WHERE GossipOptionID IN (SELECT 9200000 + entry FROM world.creature_template WHERE entry IN (251364,251365,251373,251374,251376,251379,251389,251537,251964,251965)); +DELETE FROM world.creature_trainer WHERE CreatureID IN (251364,251365,251373,251374,251376,251379,251389,251537,251964,251965); +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) VALUES (92251364, 68, 0); +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) VALUES (251364, 92251364, 0); +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText) VALUES (92251364, 9451364, 0, 1, 'I want to browse your goods.'); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251364, 1, 2131, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251364, 2, 1194, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251364, 3, 2134, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251364, 4, 2479, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251364, 5, 2130, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251364, 6, 2480, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251364, 7, 2139, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251364, 8, 2132, 0, 0, 0, 1); +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) VALUES (92251365, 68, 0); +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) VALUES (251365, 92251365, 0); +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText) VALUES (92251365, 9451365, 0, 1, 'I want to browse your goods.'); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 1, 2121, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 2, 3599, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 3, 2120, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 4, 2117, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 5, 3600, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 6, 2119, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 7, 2127, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 8, 2122, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 9, 2126, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 10, 2123, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 11, 2124, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251365, 12, 2125, 0, 0, 0, 1); +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) VALUES (92251373, 68, 0); +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) VALUES (251373, 92251373, 0); +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText) VALUES (92251373, 9451373, 0, 3, 'I require training.'); +INSERT INTO world.creature_trainer (CreatureID, TrainerID, MenuID, OptionID) VALUES (251373, 60017, 92251373, 0); +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) VALUES (92251374, 68, 0); +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) VALUES (251374, 92251374, 0); +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText) VALUES (92251374, 9451374, 0, 3, 'I require training.'); +INSERT INTO world.creature_trainer (CreatureID, TrainerID, MenuID, OptionID) VALUES (251374, 60010, 92251374, 0); +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) VALUES (92251376, 68, 0); +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) VALUES (251376, 92251376, 0); +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText) VALUES (92251376, 9451376, 0, 3, 'I require training.'); +INSERT INTO world.creature_trainer (CreatureID, TrainerID, MenuID, OptionID) VALUES (251376, 60020, 92251376, 0); +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) VALUES (92251379, 68, 0); +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) VALUES (251379, 92251379, 0); +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText) VALUES (92251379, 9451379, 0, 3, 'I require training.'); +INSERT INTO world.creature_trainer (CreatureID, TrainerID, MenuID, OptionID) VALUES (251379, 60001, 92251379, 0); +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) VALUES (92251389, 68, 0); +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) VALUES (251389, 92251389, 0); +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText) VALUES (92251389, 9451389, 0, 3, 'I require training.'); +INSERT INTO world.creature_trainer (CreatureID, TrainerID, MenuID, OptionID) VALUES (251389, 60026, 92251389, 0); +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) VALUES (92251537, 68, 0); +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) VALUES (251537, 92251537, 0); +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText) VALUES (92251537, 9451537, 0, 1, 'I want to browse your goods.'); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 1, 4540, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 2, 159, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 3, 2512, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 4, 2516, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 5, 3111, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 6, 2947, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 7, 7005, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 8, 2901, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 9, 277115, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 10, 277114, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251537, 11, 277113, 0, 0, 0, 1); +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) VALUES (92251964, 68, 0); +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) VALUES (251964, 92251964, 0); +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText) VALUES (92251964, 9451964, 0, 3, 'I require training.'); +INSERT INTO world.creature_trainer (CreatureID, TrainerID, MenuID, OptionID) VALUES (251964, 60023, 92251964, 0); +INSERT INTO world.gossip_menu (MenuID, TextID, VerifiedBuild) VALUES (92251965, 68, 0); +INSERT INTO world.creature_template_gossip (CreatureID, MenuID, VerifiedBuild) VALUES (251965, 92251965, 0); +INSERT INTO world.gossip_menu_option (MenuID, GossipOptionID, OptionID, OptionNpc, OptionText) VALUES (92251965, 9451965, 0, 1, 'I want to browse your goods.'); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251965, 1, 2379, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251965, 2, 2381, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251965, 3, 2380, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251965, 4, 2383, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251965, 5, 2384, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251965, 6, 2385, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251965, 7, 17184, 0, 0, 0, 1); +INSERT IGNORE INTO world.npc_vendor (entry, slot, item, maxcount, incrtime, ExtendedCost, type) VALUES (251965, 8, 2129, 0, 0, 0, 1); +DELETE FROM world.trainer WHERE Id = 60023; +INSERT INTO world.trainer (Id, Type, Greeting, VerifiedBuild) VALUES (60023, 0, '', 0); +DELETE FROM world.trainer_spell WHERE TrainerId = 60023; +INSERT IGNORE INTO world.trainer_spell (TrainerId, SpellId, MoneyCost, ReqSkillLine, ReqSkillRank, ReqAbility1, ReqAbility2, ReqAbility3, ReqLevel, VerifiedBuild) SELECT 60023, IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell), t.spellcost, t.reqskill, t.reqskillvalue, COALESCE(c.prev_spell, 0), 0, 0, t.reqlevel, 0 FROM vmangos_world.npc_trainer_template t LEFT JOIN vmangos_world.ns_spell s ON s.entry = t.spell LEFT JOIN (SELECT spell_id, ANY_VALUE(prev_spell) AS prev_spell FROM vmangos_world.spell_chain WHERE build_min <= 5875 AND build_max >= 5875 GROUP BY spell_id) c ON c.spell_id = IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell) WHERE t.entry = 23 AND t.build_min <= 5875 AND t.build_max >= 5875; +DELETE FROM world.trainer WHERE Id = 60020; +INSERT INTO world.trainer (Id, Type, Greeting, VerifiedBuild) VALUES (60020, 0, '', 0); +DELETE FROM world.trainer_spell WHERE TrainerId = 60020; +INSERT IGNORE INTO world.trainer_spell (TrainerId, SpellId, MoneyCost, ReqSkillLine, ReqSkillRank, ReqAbility1, ReqAbility2, ReqAbility3, ReqLevel, VerifiedBuild) SELECT 60020, IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell), t.spellcost, t.reqskill, t.reqskillvalue, COALESCE(c.prev_spell, 0), 0, 0, t.reqlevel, 0 FROM vmangos_world.npc_trainer_template t LEFT JOIN vmangos_world.ns_spell s ON s.entry = t.spell LEFT JOIN (SELECT spell_id, ANY_VALUE(prev_spell) AS prev_spell FROM vmangos_world.spell_chain WHERE build_min <= 5875 AND build_max >= 5875 GROUP BY spell_id) c ON c.spell_id = IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell) WHERE t.entry = 20 AND t.build_min <= 5875 AND t.build_max >= 5875; +DELETE FROM world.trainer WHERE Id = 60026; +INSERT INTO world.trainer (Id, Type, Greeting, VerifiedBuild) VALUES (60026, 0, '', 0); +DELETE FROM world.trainer_spell WHERE TrainerId = 60026; +INSERT IGNORE INTO world.trainer_spell (TrainerId, SpellId, MoneyCost, ReqSkillLine, ReqSkillRank, ReqAbility1, ReqAbility2, ReqAbility3, ReqLevel, VerifiedBuild) SELECT 60026, IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell), t.spellcost, t.reqskill, t.reqskillvalue, COALESCE(c.prev_spell, 0), 0, 0, t.reqlevel, 0 FROM vmangos_world.npc_trainer_template t LEFT JOIN vmangos_world.ns_spell s ON s.entry = t.spell LEFT JOIN (SELECT spell_id, ANY_VALUE(prev_spell) AS prev_spell FROM vmangos_world.spell_chain WHERE build_min <= 5875 AND build_max >= 5875 GROUP BY spell_id) c ON c.spell_id = IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell) WHERE t.entry = 26 AND t.build_min <= 5875 AND t.build_max >= 5875; +DELETE FROM world.trainer WHERE Id = 60010; +INSERT INTO world.trainer (Id, Type, Greeting, VerifiedBuild) VALUES (60010, 0, '', 0); +DELETE FROM world.trainer_spell WHERE TrainerId = 60010; +INSERT IGNORE INTO world.trainer_spell (TrainerId, SpellId, MoneyCost, ReqSkillLine, ReqSkillRank, ReqAbility1, ReqAbility2, ReqAbility3, ReqLevel, VerifiedBuild) SELECT 60010, IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell), t.spellcost, t.reqskill, t.reqskillvalue, COALESCE(c.prev_spell, 0), 0, 0, t.reqlevel, 0 FROM vmangos_world.npc_trainer_template t LEFT JOIN vmangos_world.ns_spell s ON s.entry = t.spell LEFT JOIN (SELECT spell_id, ANY_VALUE(prev_spell) AS prev_spell FROM vmangos_world.spell_chain WHERE build_min <= 5875 AND build_max >= 5875 GROUP BY spell_id) c ON c.spell_id = IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell) WHERE t.entry = 10 AND t.build_min <= 5875 AND t.build_max >= 5875; +DELETE FROM world.trainer WHERE Id = 60001; +INSERT INTO world.trainer (Id, Type, Greeting, VerifiedBuild) VALUES (60001, 0, '', 0); +DELETE FROM world.trainer_spell WHERE TrainerId = 60001; +INSERT IGNORE INTO world.trainer_spell (TrainerId, SpellId, MoneyCost, ReqSkillLine, ReqSkillRank, ReqAbility1, ReqAbility2, ReqAbility3, ReqLevel, VerifiedBuild) SELECT 60001, IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell), t.spellcost, t.reqskill, t.reqskillvalue, COALESCE(c.prev_spell, 0), 0, 0, t.reqlevel, 0 FROM vmangos_world.npc_trainer_template t LEFT JOIN vmangos_world.ns_spell s ON s.entry = t.spell LEFT JOIN (SELECT spell_id, ANY_VALUE(prev_spell) AS prev_spell FROM vmangos_world.spell_chain WHERE build_min <= 5875 AND build_max >= 5875 GROUP BY spell_id) c ON c.spell_id = IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell) WHERE t.entry = 1 AND t.build_min <= 5875 AND t.build_max >= 5875; +DELETE FROM world.trainer WHERE Id = 60017; +INSERT INTO world.trainer (Id, Type, Greeting, VerifiedBuild) VALUES (60017, 0, '', 0); +DELETE FROM world.trainer_spell WHERE TrainerId = 60017; +INSERT IGNORE INTO world.trainer_spell (TrainerId, SpellId, MoneyCost, ReqSkillLine, ReqSkillRank, ReqAbility1, ReqAbility2, ReqAbility3, ReqLevel, VerifiedBuild) SELECT 60017, IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell), t.spellcost, t.reqskill, t.reqskillvalue, COALESCE(c.prev_spell, 0), 0, 0, t.reqlevel, 0 FROM vmangos_world.npc_trainer_template t LEFT JOIN vmangos_world.ns_spell s ON s.entry = t.spell LEFT JOIN (SELECT spell_id, ANY_VALUE(prev_spell) AS prev_spell FROM vmangos_world.spell_chain WHERE build_min <= 5875 AND build_max >= 5875 GROUP BY spell_id) c ON c.spell_id = IF(s.effect1 = 36 AND s.effectTriggerSpell1 > 0, s.effectTriggerSpell1, t.spell) WHERE t.entry = 17 AND t.build_min <= 5875 AND t.build_max >= 5875; + +DELETE FROM world.creature_loot_template WHERE Entry = 250873; +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250873, 0, 1366, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250873, 0, 1370, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250873, 0, 1376, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250873, 0, 2672, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250873, 0, 3363, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250873, 0, 4865, 50, 0, 1, 0, 1, 1, 'Zephras beta 4/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250873, 0, 7073, 87.5, 0, 1, 0, 1, 1, 'Zephras beta 7/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250873, 0, 7074, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +DELETE FROM world.creature_loot_template WHERE Entry = 250926; +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250926, 0, 1374, 9.09, 0, 1, 0, 1, 1, 'Zephras beta 1/11'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250926, 0, 1376, 9.09, 0, 1, 0, 1, 1, 'Zephras beta 1/11'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250926, 0, 251918, 63.64, 1, 1, 0, 1, 1, 'Zephras beta 7/11'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250926, 0, 251925, 63.64, 0, 1, 0, 1, 1, 'Zephras beta 7/11'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250926, 0, 7073, 45.45, 0, 1, 0, 1, 1, 'Zephras beta 5/11'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250926, 0, 7074, 27.27, 0, 1, 0, 1, 1, 'Zephras beta 3/11'); +DELETE FROM world.creature_loot_template WHERE Entry = 250937; +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250937, 0, 1372, 100, 0, 1, 0, 1, 1, 'Zephras beta 1/1'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (250937, 0, 7073, 100, 0, 1, 0, 1, 1, 'Zephras beta 1/1'); +DELETE FROM world.creature_loot_template WHERE Entry = 251143; +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251143, 0, 251930, 33.33, 0, 1, 0, 1, 1, 'Zephras beta 2/6'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251143, 0, 251931, 66.67, 0, 1, 0, 1, 1, 'Zephras beta 4/6'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251143, 0, 2652, 16.67, 0, 1, 0, 1, 1, 'Zephras beta 1/6'); +DELETE FROM world.creature_loot_template WHERE Entry = 251160; +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251160, 0, 1369, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251160, 0, 1378, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251160, 0, 159, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251160, 0, 2589, 50, 0, 1, 0, 1, 1, 'Zephras beta 4/8'); +DELETE FROM world.creature_loot_template WHERE Entry = 251169; +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251169, 0, 1377, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251169, 0, 251927, 62.5, 0, 1, 0, 1, 1, 'Zephras beta 5/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251169, 0, 251928, 37.5, 0, 1, 0, 1, 1, 'Zephras beta 3/8'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251169, 0, 3365, 12.5, 0, 1, 0, 1, 1, 'Zephras beta 1/8'); +DELETE FROM world.creature_loot_template WHERE Entry = 251402; +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251402, 0, 1369, 50, 0, 1, 0, 1, 1, 'Zephras beta 1/2'); +INSERT INTO world.creature_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (251402, 0, 251927, 100, 0, 1, 0, 1, 1, 'Zephras beta 2/2'); + +DELETE FROM world.gameobject_loot_template WHERE Entry = 136901; +INSERT INTO world.gameobject_loot_template (Entry, ItemType, Item, Chance, QuestRequired, LootMode, GroupId, MinCount, MaxCount, Comment) VALUES (136901, 0, 258772, 100, 1, 1, 0, 1, 3, 'Zephras beta 7/7'); + +-- Skyborne start: first login spot of the recorded Windshaper (Horde); High Order uses it too until recorded +UPDATE world.playercreateinfo SET map = 2991, position_x = 4098.11, position_y = 1849.89, position_z = -15000, orientation = 0 WHERE race IN (95, 96); diff --git a/src/server/bnetserver/Services/GameUtilitiesService.cpp b/src/server/bnetserver/Services/GameUtilitiesService.cpp index d97ec8a7b3..ae7339280e 100644 --- a/src/server/bnetserver/Services/GameUtilitiesService.cpp +++ b/src/server/bnetserver/Services/GameUtilitiesService.cpp @@ -67,10 +67,35 @@ std::vector GameUtilities::CompressJson(std::string const& json) return compressed; } +static void LogClientRequestParams(Session const* session, std::vector> const& params) +{ + if (!sLog->ShouldLog("session.rpc", LOG_LEVEL_DEBUG)) + return; + + for (auto const& [name, value] : params) + { + std::string valueText = std::visit([](T const& v) -> std::string + { + if constexpr (std::is_same_v) + return v; + else if constexpr (std::is_same_v>) + return ByteArrayToHexStr(v); + else if constexpr (std::is_arithmetic_v) + return std::to_string(v); + else + return ""; + }, value); + + TC_LOG_DEBUG("session.rpc", "{} ClientRequest param {} = {}", session->GetClientInfo(), name, valueText); + } +} + uint32 GameUtilities::HandleClientRequest(Session* session, std::vector>& params, std::vector>& responseValues) { + LogClientRequestParams(session, params); + auto command = std::ranges::find_if(params, [](std::string_view paramName) { return paramName.starts_with("Command_"sv); }, Trinity::Containers::MapKey); @@ -93,6 +118,8 @@ uint32 GameUtilities::HandleClientRequest(Session* session, return JoinRealm(session, params, responseValues); case Trinity::HashFnv1a<>::GetHash("Command_FetchBleepProxiesRequest_v1"sv): return GetBleepProxies(session, params, responseValues); + case Trinity::HashFnv1a<>::GetHash("Command_SuperDistrictListRequest_v1"sv): + return GetSuperDistrictList(session, params, responseValues); default: break; } @@ -106,6 +133,8 @@ uint32 GameUtilities::HandleGetAllValuesForAttribute(Session const* session, std if (!session->IsAuthed()) return ERROR_DENIED; + TC_LOG_DEBUG("session.rpc", "{} GetAllValuesForAttribute {}", session->GetClientInfo(), command); + switch (Trinity::HashFnv1a<>::GetHash(command)) { case Trinity::HashFnv1a<>::GetHash("Command_RealmListRequest_v1"sv): @@ -148,6 +177,35 @@ uint32 GameUtilities::GetLastCharPlayed(Session const* session, responseValues.emplace_back("Param_LastPlayedTime"sv, int64(lastPlayerChar->LastPlayedTime)); responseValues.emplace_back("Param_UtilityInfo"sv, std::move(utilityInfoJson)); } + else if (Variant const* contentSetFilter = FindParamValue(params, "Param_ContentSetIDFilter")) + { + // Classic (1.60+) clients pick a realm for the selected super district (gameplay ruleset) this way: + // Command_LastCharPlayedRequest_v1 + Param_ContentSetIDFilter = Cfg_SuperDistrict.ContentSetID. Hand them our realm. + int64 contentSetId = std::visit([](T const& v) -> int64 + { + if constexpr (std::is_arithmetic_v) + return int64(v); + else + return -1; + }, *contentSetFilter); + + Optional realmId = sRealmList->GetFirstRealmId(); + if (contentSetId >= 0 && realmId) + { + std::string realmEntryJson = sRealmList->GetRealmEntryJSON(*realmId, session->GetBuild(), session->GetGameAccountInfo()->SecurityLevel); + TC_LOG_DEBUG("session.rpc", "{} LastCharPlayed for content set {} -> realm entry {}", session->GetClientInfo(), contentSetId, realmEntryJson); + if (!realmEntryJson.empty()) + { + ::JSON::RealmList::UtilityInfo utilityInfo; + utilityInfo.set_realmpermissions(0x200); + + // the client requires Param_LastPlayedTime (int) right after Param_RealmEntry, otherwise it discards the realm + responseValues.emplace_back("Param_RealmEntry"sv, CompressJson("JamJSONRealmEntry:" + realmEntryJson)); + responseValues.emplace_back("Param_LastPlayedTime"sv, int64(time(nullptr))); + responseValues.emplace_back("Param_UtilityInfo"sv, CompressJson("JSONUtilityInfo:" + ::JSON::Serialize(utilityInfo))); + } + } + } return ERROR_OK; } @@ -283,6 +341,34 @@ uint32 GameUtilities::GetBleepProxies(Session const* /*session*/, return ERROR_OK; } + +// Classic (1.60+) clients ask for their "super districts" (gameplay rulesets: Normal, PvP, Roleplay, Hardcore...) before requesting the realm list. +// JSONSuperDistrictList { superDistricts: [JamJSONSuperDistrictEntry { superDistrictID, disallowLogin, holdDownUntilTime }] } +// superDistrictID refers to Cfg_SuperDistrict.db2 (IDs 1-5 in 1.60.1.70009). +uint32 GameUtilities::GetSuperDistrictList(Session const* session, + std::vector>& /*params*/, + std::vector>& responseValues) +{ + std::string superDistricts; + for (uint32 superDistrictId = 1; superDistrictId <= 5; ++superDistrictId) + { + if (!superDistricts.empty()) + superDistricts += ','; + + superDistricts += Trinity::StringFormat(R"({{"superDistrictID":{},"disallowLogin":false,"holdDownUntilTime":0}})", superDistrictId); + } + + std::string json = Trinity::StringFormat(R"(JSONSuperDistrictList:{{"superDistricts":[{}]}})", superDistricts); + TC_LOG_DEBUG("session.rpc", "{} Param_SuperDistrictList = {}", session->GetClientInfo(), json); + + std::vector superDistrictListJson = CompressJson(json); + if (superDistrictListJson.empty()) + return ERROR_UTIL_SERVER_FAILED_TO_SERIALIZE_RESPONSE; + + responseValues.emplace_back("Param_SuperDistrictList"sv, std::move(superDistrictListJson)); + + return ERROR_OK; +} } namespace V1 diff --git a/src/server/bnetserver/Services/GameUtilitiesService.h b/src/server/bnetserver/Services/GameUtilitiesService.h index c6505554eb..dc9a52d0bc 100644 --- a/src/server/bnetserver/Services/GameUtilitiesService.h +++ b/src/server/bnetserver/Services/GameUtilitiesService.h @@ -54,6 +54,8 @@ namespace Battlenet::Services std::vector>& responseValues); static uint32 GetBleepProxies(Session const* session, std::vector>& params, std::vector>& responseValues); + static uint32 GetSuperDistrictList(Session const* session, std::vector>& params, + std::vector>& responseValues); }; } diff --git a/src/server/database/Database/Implementation/HotfixDatabase.cpp b/src/server/database/Database/Implementation/HotfixDatabase.cpp index 432382c991..4a809b2b04 100644 --- a/src/server/database/Database/Implementation/HotfixDatabase.cpp +++ b/src/server/database/Database/Implementation/HotfixDatabase.cpp @@ -82,7 +82,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() // AreaTable.db2 PrepareStatement(HOTFIX_SEL_AREA_TABLE, "SELECT ID, ZoneName, AreaName, ContinentID, ParentAreaID, AreaBit, SoundProviderPref, " - "SoundProviderPrefUnderwater, AmbienceID, UwAmbience, ZoneMusic, UwZoneMusic, IntroSound, UwIntroSound, FactionGroupMask, AmbientMultiplier, " + "SoundProviderPrefUnderwater, AmbienceID, UwAmbience, ZoneMusic, UwZoneMusic, ExplorationLevel, IntroSound, UwIntroSound, FactionGroupMask, AmbientMultiplier, " "MountFlags, PvpCombatWorldStateID, WildBattlePetLevelMin, WildBattlePetLevelMax, WindSettingsID, ContentTuningID, Flags1, Flags2, " "LiquidTypeID1, LiquidTypeID2, LiquidTypeID3, LiquidTypeID4 FROM area_table WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_AREA_TABLE, "SELECT MAX(ID) + 1 FROM area_table", CONNECTION_SYNCH); @@ -317,9 +317,10 @@ void HotfixDatabaseConnection::DoPrepareStatements() PREPARE_LOCALE_STMT(HOTFIX_SEL_CFG_CATEGORIES, "SELECT ID, Name_lang FROM cfg_categories_locale WHERE (`VerifiedBuild` > 0) = ? AND locale = ?", CONNECTION_SYNCH); // CfgRegions.db2 - PrepareStatement(HOTFIX_SEL_CFG_REGIONS, "SELECT ID, Tag, RegionID, Raidorigin, RegionGroupMask, ChallengeOrigin, TimeEventRegionGroupID" + PrepareStatement(HOTFIX_SEL_CFG_REGIONS, "SELECT ID, Tag, Name, RegionID, Raidorigin, RegionGroupMask, ChallengeOrigin, TimeEventRegionGroupID" " FROM cfg_regions WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_CFG_REGIONS, "SELECT MAX(ID) + 1 FROM cfg_regions", CONNECTION_SYNCH); + PREPARE_LOCALE_STMT(HOTFIX_SEL_CFG_REGIONS, "SELECT ID, Name_lang FROM cfg_regions_locale WHERE (`VerifiedBuild` > 0) = ? AND locale = ?", CONNECTION_SYNCH); // ChallengeModeItemBonusOverride.db2 PrepareStatement(HOTFIX_SEL_CHALLENGE_MODE_ITEM_BONUS_OVERRIDE, "SELECT ID, ItemBonusTreeGroupID, DstItemBonusTreeID, Value, " @@ -338,7 +339,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() " AND locale = ?", CONNECTION_SYNCH); // CharacterLoadout.db2 - PrepareStatement(HOTFIX_SEL_CHARACTER_LOADOUT, "SELECT ID, ChrClassID, Purpose, ItemContext, RaceMask1, RaceMask2 FROM character_loadout" + PrepareStatement(HOTFIX_SEL_CHARACTER_LOADOUT, "SELECT ID, ChrClassID, Purpose, ItemContext, Field_1_60_1_69876_003, RaceMask1, RaceMask2 FROM character_loadout" " WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_CHARACTER_LOADOUT, "SELECT MAX(ID) + 1 FROM character_loadout", CONNECTION_SYNCH); @@ -567,7 +568,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() // CurrencyTypes.db2 PrepareStatement(HOTFIX_SEL_CURRENCY_TYPES, "SELECT ID, Name, Description, CategoryID, InventoryIconFileID, SpellWeight, SpellCategory, MaxQty, " "MaxEarnablePerWeek, Quality, FactionID, ItemGroupSoundsID, XpQuestDifficulty, AwardConditionID, MaxQtyWorldStateID, " - "RechargingAmountPerCycle, RechargingCycleDurationMS, AccountTransferPercentage, OrderIndex, RecraftReagentCountPercentage, OrderSource, " + "RechargingAmountPerCycle, RechargingCycleDurationMS, AccountTransferPercentage, MaxQtyCurveID, OrderIndex, RecraftReagentCountPercentage, OrderSource, " "MCRCurrencyID, Flags1, Flags2 FROM currency_types WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_CURRENCY_TYPES, "SELECT MAX(ID) + 1 FROM currency_types", CONNECTION_SYNCH); PREPARE_LOCALE_STMT(HOTFIX_SEL_CURRENCY_TYPES, "SELECT ID, Name_lang, Description_lang FROM currency_types_locale WHERE (`VerifiedBuild` > 0) = ?" @@ -645,7 +646,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() // Faction.db2 PrepareStatement(HOTFIX_SEL_FACTION, "SELECT ID, Name, Description, ReputationIndex, ParentFactionID, Expansion, FriendshipRepID, Flags, " - "ParagonFactionID, RenownFactionID, RenownCurrencyID, ReputationClassMask1, ReputationClassMask2, ReputationClassMask3, ReputationClassMask4, " + "ParagonFactionID, RenownFactionID, RenownCurrencyID, RenownThresholdCurveID, ReputationClassMask1, ReputationClassMask2, ReputationClassMask3, ReputationClassMask4, " "ReputationFlags1, ReputationFlags2, ReputationFlags3, ReputationFlags4, ReputationBase1, ReputationBase2, ReputationBase3, ReputationBase4, " "ReputationMax1, ReputationMax2, ReputationMax3, ReputationMax4, ParentFactionMod1, ParentFactionMod2, ParentFactionCap1, ParentFactionCap2, " "ReputationRaceMask11, ReputationRaceMask12, ReputationRaceMask21, ReputationRaceMask22, ReputationRaceMask31, ReputationRaceMask32, " @@ -792,7 +793,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() PREPARE_MAX_ID_STMT(HOTFIX_SEL_GEM_PROPERTIES, "SELECT MAX(ID) + 1 FROM gem_properties", CONNECTION_SYNCH); // GlobalCurve.db2 - PrepareStatement(HOTFIX_SEL_GLOBAL_CURVE, "SELECT ID, CurveID, Type FROM global_curve WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); + PrepareStatement(HOTFIX_SEL_GLOBAL_CURVE, "SELECT ID, CurveID, Type, Subtype FROM global_curve WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_GLOBAL_CURVE, "SELECT MAX(ID) + 1 FROM global_curve", CONNECTION_SYNCH); // GlyphBindableSpell.db2 @@ -866,7 +867,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() PREPARE_MAX_ID_STMT(HOTFIX_SEL_IMPORT_PRICE_WEAPON, "SELECT MAX(ID) + 1 FROM import_price_weapon", CONNECTION_SYNCH); // Item.db2 - PrepareStatement(HOTFIX_SEL_ITEM, "SELECT ID, ClassID, SubclassID, Material, InventoryType, SheatheType, SoundOverrideSubclassID, IconFileDataID, " + PrepareStatement(HOTFIX_SEL_ITEM, "SELECT ID, ClassID, SubclassID, Material, InventoryType, SheatheType, ItemPetFoodID, SoundOverrideSubclassID, IconFileDataID, " "ItemGroupSoundsID, ContentTuningID, ModifiedCraftingReagentItemID, Unknown1200, CraftingQualityID, ItemSquishEraID, " "RecraftReagentCountPercentage, OrderSource FROM item WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_ITEM, "SELECT MAX(ID) + 1 FROM item", CONNECTION_SYNCH); @@ -1076,7 +1077,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() "RequiredTransmogHoliday, RequiredHoliday, GemProperties, SocketMatchEnchantmentId, TotemCategoryID, InstanceBound, ZoneBound1, ZoneBound2, " "ItemSet, LockID, PageID, ItemDelay, MinFactionID, RequiredSkillRank, RequiredSkill, ItemLevel, AllowableClass, ArtifactID, SpellWeight, " "SpellWeightCategory, SocketType1, SocketType2, SocketType3, SheatheType, Material, PageMaterialID, Bonding, DamageDamageType, " - "ContainerSlots, RequiredPVPMedal, RequiredPVPRank, RequiredLevel, InventoryType, OverallQualityID FROM item_sparse" + "ContainerSlots, RequiredPVPMedal, RequiredPVPRank, RequiredLevel, InventoryType, OverallQualityID, AmmunitionType FROM item_sparse" " WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_ITEM_SPARSE, "SELECT MAX(ID) + 1 FROM item_sparse", CONNECTION_SYNCH); PREPARE_LOCALE_STMT(HOTFIX_SEL_ITEM_SPARSE, "SELECT ID, Description_lang, Display3_lang, Display2_lang, Display1_lang, Display_lang" @@ -1196,7 +1197,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() // Map.db2 PrepareStatement(HOTFIX_SEL_MAP, "SELECT ID, Directory, MapName, MapDescription0, MapDescription1, PvpShortDescription, PvpLongDescription, " "CorpseX, CorpseY, MapType, InstanceType, ExpansionID, AreaTableID, LoadingScreenID, TimeOfDayOverride, ParentMapID, CosmeticParentMapID, " - "TimeOffset, MinimapIconScale, CorpseMapID, MaxPlayers, WindSettingsID, ZmpFileDataID, WdtFileDataID, NavigationMaxDistance, " + "TimeOffset, MinimapIconScale, CorpseMapID, MaxPlayers, WindSettingsID, ZmpFileDataID, WdtFileDataID, OceanLiquidTypeID, NavigationMaxDistance, " "PreloadFileDataID, Flags1, Flags2, Flags3 FROM map WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_MAP, "SELECT MAX(ID) + 1 FROM map", CONNECTION_SYNCH); PREPARE_LOCALE_STMT(HOTFIX_SEL_MAP, "SELECT ID, MapName_lang, MapDescription0_lang, MapDescription1_lang, PvpShortDescription_lang, " @@ -1278,7 +1279,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() PREPARE_MAX_ID_STMT(HOTFIX_SEL_MYTHIC_PLUS_SEASON, "SELECT MAX(ID) + 1 FROM mythic_plus_season", CONNECTION_SYNCH); // NameGen.db2 - PrepareStatement(HOTFIX_SEL_NAME_GEN, "SELECT ID, Name, RaceID, Sex FROM name_gen WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); + PrepareStatement(HOTFIX_SEL_NAME_GEN, "SELECT ID, Name, RaceID, Sex, NameType FROM name_gen WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_NAME_GEN, "SELECT MAX(ID) + 1 FROM name_gen", CONNECTION_SYNCH); // NamesProfanity.db2 @@ -1360,12 +1361,12 @@ void HotfixDatabaseConnection::DoPrepareStatements() " AND locale = ?", CONNECTION_SYNCH); // PlayerDataElementAccount.db2 - PrepareStatement(HOTFIX_SEL_PLAYER_DATA_ELEMENT_ACCOUNT, "SELECT ID, StorageIndex, Type, Unknown1125 FROM player_data_element_account" + PrepareStatement(HOTFIX_SEL_PLAYER_DATA_ELEMENT_ACCOUNT, "SELECT ID, StorageIndex, Type, Unknown1125, Field_12_1_5_69594_004 FROM player_data_element_account" " WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_PLAYER_DATA_ELEMENT_ACCOUNT, "SELECT MAX(ID) + 1 FROM player_data_element_account", CONNECTION_SYNCH); // PlayerDataElementCharacter.db2 - PrepareStatement(HOTFIX_SEL_PLAYER_DATA_ELEMENT_CHARACTER, "SELECT ID, StorageIndex, Type, Unknown1125 FROM player_data_element_character" + PrepareStatement(HOTFIX_SEL_PLAYER_DATA_ELEMENT_CHARACTER, "SELECT ID, StorageIndex, Type, Unknown1125, Field_12_1_5_69594_004 FROM player_data_element_character" " WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_PLAYER_DATA_ELEMENT_CHARACTER, "SELECT MAX(ID) + 1 FROM player_data_element_character", CONNECTION_SYNCH); @@ -1538,7 +1539,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() // SkillLineAbility.db2 PrepareStatement(HOTFIX_SEL_SKILL_LINE_ABILITY, "SELECT AbilityVerb, AbilityAllVerb, ID, SkillLine, Spell, MinSkillLineRank, ClassMask, " "SupercedesSpell, AcquireMethod, TrivialSkillLineRankHigh, TrivialSkillLineRankLow, Flags, NumSkillUps, UniqueBit, TradeSkillCategoryID, " - "SkillupSkillLineID, RaceMask1, RaceMask2 FROM skill_line_ability WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); + "SkillupSkillLineID, Field_5_5_4_67090_0141, Field_5_5_4_67090_0142, RaceMask1, RaceMask2 FROM skill_line_ability WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_SKILL_LINE_ABILITY, "SELECT MAX(ID) + 1 FROM skill_line_ability", CONNECTION_SYNCH); PREPARE_LOCALE_STMT(HOTFIX_SEL_SKILL_LINE_ABILITY, "SELECT ID, AbilityVerb_lang, AbilityAllVerb_lang FROM skill_line_ability_locale" " WHERE (`VerifiedBuild` > 0) = ? AND locale = ?", CONNECTION_SYNCH); @@ -1656,11 +1657,11 @@ void HotfixDatabaseConnection::DoPrepareStatements() PREPARE_MAX_ID_STMT(HOTFIX_SEL_SPELL_INTERRUPTS, "SELECT MAX(ID) + 1 FROM spell_interrupts", CONNECTION_SYNCH); // SpellItemEnchantment.db2 - PrepareStatement(HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT, "SELECT ID, Name, HordeName, Duration, EffectArg1, EffectArg2, EffectArg3, Flags, " - "EffectScalingPoints1, EffectScalingPoints2, EffectScalingPoints3, IconFileDataID, MinItemLevel, MaxItemLevel, TransmogUseConditionID, " - "TransmogCost, EffectPointsMin1, EffectPointsMin2, EffectPointsMin3, ItemVisual, RequiredSkillID, RequiredSkillRank, ItemLevel, Charges, " - "Effect1, Effect2, Effect3, ScalingClass, ScalingClassRestricted, ConditionID, MinLevel, MaxLevel FROM spell_item_enchantment" - " WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); + PrepareStatement(HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT, "SELECT ID, Name, HordeName, Duration, Charges, Effect1, Effect2, Effect3, EffectPointsMin1, " + "EffectPointsMin2, EffectPointsMin3, EffectArg1, EffectArg2, EffectArg3, Flags, EffectScalingPoints1, EffectScalingPoints2, " + "EffectScalingPoints3, ScalingClass, ScalingClassRestricted, ConditionID, RequiredSkillID, RequiredSkillRank, MinLevel, MaxLevel, " + "IconFileDataID, MinItemLevel, MaxItemLevel, TransmogUseConditionID, TransmogCost, Field_12_1_5_69594_021, ItemVisual, ItemLevel" + " FROM spell_item_enchantment WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT, "SELECT MAX(ID) + 1 FROM spell_item_enchantment", CONNECTION_SYNCH); PREPARE_LOCALE_STMT(HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT, "SELECT ID, Name_lang, HordeName_lang FROM spell_item_enchantment_locale" " WHERE (`VerifiedBuild` > 0) = ? AND locale = ?", CONNECTION_SYNCH); @@ -1720,7 +1721,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() PREPARE_MAX_ID_STMT(HOTFIX_SEL_SPELL_PROCS_PER_MINUTE, "SELECT MAX(ID) + 1 FROM spell_procs_per_minute", CONNECTION_SYNCH); // SpellProcsPerMinuteMod.db2 - PrepareStatement(HOTFIX_SEL_SPELL_PROCS_PER_MINUTE_MOD, "SELECT ID, Type, Param, Coeff, SpellProcsPerMinuteID FROM spell_procs_per_minute_mod" + PrepareStatement(HOTFIX_SEL_SPELL_PROCS_PER_MINUTE_MOD, "SELECT ID, Type, Param, Coeff, Field_12_1_5_69594_003, SpellProcsPerMinuteID FROM spell_procs_per_minute_mod" " WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_SPELL_PROCS_PER_MINUTE_MOD, "SELECT MAX(ID) + 1 FROM spell_procs_per_minute_mod", CONNECTION_SYNCH); @@ -1801,6 +1802,7 @@ void HotfixDatabaseConnection::DoPrepareStatements() PrepareStatement(HOTFIX_SEL_SPELL_VISUAL_MISSILE, "SELECT CastOffset1, CastOffset2, CastOffset3, ImpactOffset1, ImpactOffset2, ImpactOffset3, ID, " "SpellVisualEffectNameID, SoundEntriesID, Attachment, DestinationAttachment, CastPositionerID, ImpactPositionerID, FollowGroundHeight, " "FollowGroundDropSpeed, FollowGroundApproach, Flags, SpellMissileMotionID, AnimKitID, ClutterLevel, DecayTimeAfterImpact, Unused1100, " + "Field_12_1_5_69594_018, Field_12_1_5_69594_019, Field_12_1_5_69594_020, Field_12_1_5_69594_021, " "SpellVisualMissileSetID FROM spell_visual_missile WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_SPELL_VISUAL_MISSILE, "SELECT MAX(ID) + 1 FROM spell_visual_missile", CONNECTION_SYNCH); @@ -1876,12 +1878,12 @@ void HotfixDatabaseConnection::DoPrepareStatements() // TraitCurrency.db2 PrepareStatement(HOTFIX_SEL_TRAIT_CURRENCY, "SELECT ID, Type, CurrencyTypesID, Flags, Icon, PlayerDataElementAccountID, " - "PlayerDataElementCharacterID FROM trait_currency WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); + "PlayerDataElementCharacterID, SourcedMax FROM trait_currency WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_TRAIT_CURRENCY, "SELECT MAX(ID) + 1 FROM trait_currency", CONNECTION_SYNCH); // TraitCurrencySource.db2 PrepareStatement(HOTFIX_SEL_TRAIT_CURRENCY_SOURCE, "SELECT Requirement, ID, TraitCurrencyID, Amount, QuestID, AchievementID, PlayerLevel, " - "TraitNodeEntryID, OrderIndex FROM trait_currency_source WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); + "TraitNodeEntryID, SuperDistrictSetID, OrderIndex FROM trait_currency_source WHERE (`VerifiedBuild` > 0) = ?", CONNECTION_SYNCH); PREPARE_MAX_ID_STMT(HOTFIX_SEL_TRAIT_CURRENCY_SOURCE, "SELECT MAX(ID) + 1 FROM trait_currency_source", CONNECTION_SYNCH); PREPARE_LOCALE_STMT(HOTFIX_SEL_TRAIT_CURRENCY_SOURCE, "SELECT ID, Requirement_lang FROM trait_currency_source_locale" " WHERE (`VerifiedBuild` > 0) = ? AND locale = ?", CONNECTION_SYNCH); diff --git a/src/server/database/Database/Implementation/HotfixDatabase.h b/src/server/database/Database/Implementation/HotfixDatabase.h index 5af1292b04..dc6cca8edc 100644 --- a/src/server/database/Database/Implementation/HotfixDatabase.h +++ b/src/server/database/Database/Implementation/HotfixDatabase.h @@ -201,6 +201,7 @@ enum HotfixDatabaseStatements : uint32 HOTFIX_SEL_CFG_REGIONS, HOTFIX_SEL_CFG_REGIONS_MAX_ID, + HOTFIX_SEL_CFG_REGIONS_LOCALE, HOTFIX_SEL_CHALLENGE_MODE_ITEM_BONUS_OVERRIDE, HOTFIX_SEL_CHALLENGE_MODE_ITEM_BONUS_OVERRIDE_MAX_ID, diff --git a/src/server/game/DataStores/DB2LoadInfo.h b/src/server/game/DataStores/DB2LoadInfo.h index d99e9e05b4..4b713b8ff2 100644 --- a/src/server/game/DataStores/DB2LoadInfo.h +++ b/src/server/game/DataStores/DB2LoadInfo.h @@ -163,7 +163,7 @@ struct AreaGroupMemberLoadInfo struct AreaTableLoadInfo { - static constexpr DB2FieldMeta Fields[28] = + static constexpr DB2FieldMeta Fields[29] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "ZoneName" }, @@ -177,6 +177,7 @@ struct AreaTableLoadInfo { .IsSigned = false, .Type = FT_SHORT, .Name = "UwAmbience" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "ZoneMusic" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "UwZoneMusic" }, + { .IsSigned = true, .Type = FT_BYTE, .Name = "ExplorationLevel" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "IntroSound" }, { .IsSigned = false, .Type = FT_INT, .Name = "UwIntroSound" }, { .IsSigned = false, .Type = FT_BYTE, .Name = "FactionGroupMask" }, @@ -195,7 +196,7 @@ struct AreaTableLoadInfo { .IsSigned = false, .Type = FT_SHORT, .Name = "LiquidTypeID4" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 28, &AreaTableMeta::Instance, HOTFIX_SEL_AREA_TABLE }; + static constexpr DB2LoadInfo Instance{ Fields, 29, &AreaTableMeta::Instance, HOTFIX_SEL_AREA_TABLE }; }; struct AreaTriggerLoadInfo @@ -864,10 +865,11 @@ struct CfgCategoriesLoadInfo struct CfgRegionsLoadInfo { - static constexpr DB2FieldMeta Fields[7] = + static constexpr DB2FieldMeta Fields[8] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Tag" }, + { .IsSigned = false, .Type = FT_STRING, .Name = "Name" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "RegionID" }, { .IsSigned = false, .Type = FT_INT, .Name = "Raidorigin" }, { .IsSigned = false, .Type = FT_BYTE, .Name = "RegionGroupMask" }, @@ -875,7 +877,7 @@ struct CfgRegionsLoadInfo { .IsSigned = true, .Type = FT_INT, .Name = "TimeEventRegionGroupID" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 7, &Cfg_RegionsMeta::Instance, HOTFIX_SEL_CFG_REGIONS }; + static constexpr DB2LoadInfo Instance{ Fields, 8, &Cfg_RegionsMeta::Instance, HOTFIX_SEL_CFG_REGIONS }; }; struct ChallengeModeItemBonusOverrideLoadInfo @@ -923,17 +925,18 @@ struct CharTitlesLoadInfo struct CharacterLoadoutLoadInfo { - static constexpr DB2FieldMeta Fields[6] = + static constexpr DB2FieldMeta Fields[7] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "ChrClassID" }, { .IsSigned = true, .Type = FT_INT, .Name = "Purpose" }, { .IsSigned = false, .Type = FT_BYTE, .Name = "ItemContext" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_1_60_1_69876_003" }, { .IsSigned = true, .Type = FT_INT, .Name = "RaceMask1" }, { .IsSigned = true, .Type = FT_INT, .Name = "RaceMask2" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 6, &CharacterLoadoutMeta::Instance, HOTFIX_SEL_CHARACTER_LOADOUT }; + static constexpr DB2LoadInfo Instance{ Fields, 7, &CharacterLoadoutMeta::Instance, HOTFIX_SEL_CHARACTER_LOADOUT }; }; struct CharacterLoadoutItemLoadInfo @@ -1665,7 +1668,7 @@ struct CurrencyContainerLoadInfo struct CurrencyTypesLoadInfo { - static constexpr DB2FieldMeta Fields[24] = + static constexpr DB2FieldMeta Fields[25] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = false, .Type = FT_STRING, .Name = "Name" }, @@ -1685,6 +1688,7 @@ struct CurrencyTypesLoadInfo { .IsSigned = false, .Type = FT_INT, .Name = "RechargingAmountPerCycle" }, { .IsSigned = false, .Type = FT_INT, .Name = "RechargingCycleDurationMS" }, { .IsSigned = false, .Type = FT_FLOAT, .Name = "AccountTransferPercentage" }, + { .IsSigned = true, .Type = FT_INT, .Name = "MaxQtyCurveID" }, { .IsSigned = false, .Type = FT_BYTE, .Name = "OrderIndex" }, { .IsSigned = false, .Type = FT_FLOAT, .Name = "RecraftReagentCountPercentage" }, { .IsSigned = false, .Type = FT_BYTE, .Name = "OrderSource" }, @@ -1693,7 +1697,7 @@ struct CurrencyTypesLoadInfo { .IsSigned = true, .Type = FT_INT, .Name = "Flags2" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 24, &CurrencyTypesMeta::Instance, HOTFIX_SEL_CURRENCY_TYPES }; + static constexpr DB2LoadInfo Instance{ Fields, 25, &CurrencyTypesMeta::Instance, HOTFIX_SEL_CURRENCY_TYPES }; }; struct CurveLoadInfo @@ -1940,7 +1944,7 @@ struct ExpectedStatModLoadInfo struct FactionLoadInfo { - static constexpr DB2FieldMeta Fields[39] = + static constexpr DB2FieldMeta Fields[40] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = false, .Type = FT_STRING, .Name = "Name" }, @@ -1953,6 +1957,7 @@ struct FactionLoadInfo { .IsSigned = false, .Type = FT_SHORT, .Name = "ParagonFactionID" }, { .IsSigned = true, .Type = FT_INT, .Name = "RenownFactionID" }, { .IsSigned = true, .Type = FT_INT, .Name = "RenownCurrencyID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "RenownThresholdCurveID" }, { .IsSigned = true, .Type = FT_SHORT, .Name = "ReputationClassMask1" }, { .IsSigned = true, .Type = FT_SHORT, .Name = "ReputationClassMask2" }, { .IsSigned = true, .Type = FT_SHORT, .Name = "ReputationClassMask3" }, @@ -1983,7 +1988,7 @@ struct FactionLoadInfo { .IsSigned = true, .Type = FT_INT, .Name = "ReputationRaceMask42" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 39, &FactionMeta::Instance, HOTFIX_SEL_FACTION }; + static constexpr DB2LoadInfo Instance{ Fields, 40, &FactionMeta::Instance, HOTFIX_SEL_FACTION }; }; struct FactionTemplateLoadInfo @@ -2462,14 +2467,15 @@ struct GemPropertiesLoadInfo struct GlobalCurveLoadInfo { - static constexpr DB2FieldMeta Fields[3] = + static constexpr DB2FieldMeta Fields[4] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = true, .Type = FT_INT, .Name = "CurveID" }, { .IsSigned = true, .Type = FT_INT, .Name = "Type" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Subtype" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 3, &GlobalCurveMeta::Instance, HOTFIX_SEL_GLOBAL_CURVE }; + static constexpr DB2LoadInfo Instance{ Fields, 4, &GlobalCurveMeta::Instance, HOTFIX_SEL_GLOBAL_CURVE }; }; struct GlyphBindableSpellLoadInfo @@ -2731,7 +2737,7 @@ struct ImportPriceWeaponLoadInfo struct ItemLoadInfo { - static constexpr DB2FieldMeta Fields[16] = + static constexpr DB2FieldMeta Fields[17] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = true, .Type = FT_INT, .Name = "ClassID" }, @@ -2739,6 +2745,7 @@ struct ItemLoadInfo { .IsSigned = false, .Type = FT_BYTE, .Name = "Material" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "InventoryType" }, { .IsSigned = false, .Type = FT_BYTE, .Name = "SheatheType" }, + { .IsSigned = true, .Type = FT_INT, .Name = "ItemPetFoodID" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "SoundOverrideSubclassID" }, { .IsSigned = true, .Type = FT_INT, .Name = "IconFileDataID" }, { .IsSigned = false, .Type = FT_INT, .Name = "ItemGroupSoundsID" }, @@ -2751,7 +2758,7 @@ struct ItemLoadInfo { .IsSigned = false, .Type = FT_BYTE, .Name = "OrderSource" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 16, &ItemMeta::Instance, HOTFIX_SEL_ITEM }; + static constexpr DB2LoadInfo Instance{ Fields, 17, &ItemMeta::Instance, HOTFIX_SEL_ITEM }; }; struct ItemAppearanceLoadInfo @@ -3362,7 +3369,7 @@ struct ItemSetSpellLoadInfo struct ItemSparseLoadInfo { - static constexpr DB2FieldMeta Fields[103] = + static constexpr DB2FieldMeta Fields[104] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = false, .Type = FT_STRING, .Name = "Description" }, @@ -3467,9 +3474,10 @@ struct ItemSparseLoadInfo { .IsSigned = true, .Type = FT_BYTE, .Name = "RequiredLevel" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "InventoryType" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "OverallQualityID" }, + { .IsSigned = false, .Type = FT_BYTE, .Name = "AmmunitionType" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 103, &ItemSparseMeta::Instance, HOTFIX_SEL_ITEM_SPARSE }; + static constexpr DB2LoadInfo Instance{ Fields, 104, &ItemSparseMeta::Instance, HOTFIX_SEL_ITEM_SPARSE }; }; struct ItemSpecLoadInfo @@ -3925,7 +3933,7 @@ struct MailTemplateLoadInfo struct MapLoadInfo { - static constexpr DB2FieldMeta Fields[29] = + static constexpr DB2FieldMeta Fields[30] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Directory" }, @@ -3951,6 +3959,7 @@ struct MapLoadInfo { .IsSigned = true, .Type = FT_SHORT, .Name = "WindSettingsID" }, { .IsSigned = true, .Type = FT_INT, .Name = "ZmpFileDataID" }, { .IsSigned = true, .Type = FT_INT, .Name = "WdtFileDataID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "OceanLiquidTypeID" }, { .IsSigned = true, .Type = FT_INT, .Name = "NavigationMaxDistance" }, { .IsSigned = true, .Type = FT_INT, .Name = "PreloadFileDataID" }, { .IsSigned = true, .Type = FT_INT, .Name = "Flags1" }, @@ -3958,7 +3967,7 @@ struct MapLoadInfo { .IsSigned = true, .Type = FT_INT, .Name = "Flags3" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 29, &MapMeta::Instance, HOTFIX_SEL_MAP }; + static constexpr DB2LoadInfo Instance{ Fields, 30, &MapMeta::Instance, HOTFIX_SEL_MAP }; }; struct MapChallengeModeLoadInfo @@ -4185,15 +4194,16 @@ struct MythicPlusSeasonLoadInfo struct NameGenLoadInfo { - static constexpr DB2FieldMeta Fields[4] = + static constexpr DB2FieldMeta Fields[5] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Name" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "RaceID" }, { .IsSigned = true, .Type = FT_BYTE, .Name = "Sex" }, + { .IsSigned = false, .Type = FT_BYTE, .Name = "NameType" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 4, &NameGenMeta::Instance, HOTFIX_SEL_NAME_GEN }; + static constexpr DB2LoadInfo Instance{ Fields, 5, &NameGenMeta::Instance, HOTFIX_SEL_NAME_GEN }; }; struct NamesProfanityLoadInfo @@ -4535,28 +4545,30 @@ struct PlayerConditionLoadInfo struct PlayerDataElementAccountLoadInfo { - static constexpr DB2FieldMeta Fields[4] = + static constexpr DB2FieldMeta Fields[5] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = true, .Type = FT_INT, .Name = "StorageIndex" }, { .IsSigned = true, .Type = FT_INT, .Name = "Type" }, { .IsSigned = true, .Type = FT_INT, .Name = "Unknown1125" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_12_1_5_69594_004" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 4, &PlayerDataElementAccountMeta::Instance, HOTFIX_SEL_PLAYER_DATA_ELEMENT_ACCOUNT }; + static constexpr DB2LoadInfo Instance{ Fields, 5, &PlayerDataElementAccountMeta::Instance, HOTFIX_SEL_PLAYER_DATA_ELEMENT_ACCOUNT }; }; struct PlayerDataElementCharacterLoadInfo { - static constexpr DB2FieldMeta Fields[4] = + static constexpr DB2FieldMeta Fields[5] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = true, .Type = FT_INT, .Name = "StorageIndex" }, { .IsSigned = true, .Type = FT_INT, .Name = "Type" }, { .IsSigned = true, .Type = FT_INT, .Name = "Unknown1125" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_12_1_5_69594_004" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 4, &PlayerDataElementCharacterMeta::Instance, HOTFIX_SEL_PLAYER_DATA_ELEMENT_CHARACTER }; + static constexpr DB2LoadInfo Instance{ Fields, 5, &PlayerDataElementCharacterMeta::Instance, HOTFIX_SEL_PLAYER_DATA_ELEMENT_CHARACTER }; }; struct PlayerDataFlagAccountLoadInfo @@ -5076,7 +5088,7 @@ struct SkillLineLoadInfo struct SkillLineAbilityLoadInfo { - static constexpr DB2FieldMeta Fields[18] = + static constexpr DB2FieldMeta Fields[20] = { { .IsSigned = false, .Type = FT_STRING, .Name = "AbilityVerb" }, { .IsSigned = false, .Type = FT_STRING, .Name = "AbilityAllVerb" }, @@ -5094,11 +5106,13 @@ struct SkillLineAbilityLoadInfo { .IsSigned = true, .Type = FT_SHORT, .Name = "UniqueBit" }, { .IsSigned = true, .Type = FT_SHORT, .Name = "TradeSkillCategoryID" }, { .IsSigned = true, .Type = FT_SHORT, .Name = "SkillupSkillLineID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_5_5_4_67090_0141" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_5_5_4_67090_0142" }, { .IsSigned = true, .Type = FT_INT, .Name = "RaceMask1" }, { .IsSigned = true, .Type = FT_INT, .Name = "RaceMask2" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 18, &SkillLineAbilityMeta::Instance, HOTFIX_SEL_SKILL_LINE_ABILITY }; + static constexpr DB2LoadInfo Instance{ Fields, 20, &SkillLineAbilityMeta::Instance, HOTFIX_SEL_SKILL_LINE_ABILITY }; }; struct SkillLineXTraitTreeLoadInfo @@ -5468,12 +5482,19 @@ struct SpellInterruptsLoadInfo struct SpellItemEnchantmentLoadInfo { - static constexpr DB2FieldMeta Fields[32] = + static constexpr DB2FieldMeta Fields[33] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = false, .Type = FT_STRING, .Name = "Name" }, { .IsSigned = false, .Type = FT_STRING, .Name = "HordeName" }, { .IsSigned = true, .Type = FT_INT, .Name = "Duration" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Charges" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Effect1" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Effect2" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Effect3" }, + { .IsSigned = true, .Type = FT_INT, .Name = "EffectPointsMin1" }, + { .IsSigned = true, .Type = FT_INT, .Name = "EffectPointsMin2" }, + { .IsSigned = true, .Type = FT_INT, .Name = "EffectPointsMin3" }, { .IsSigned = false, .Type = FT_INT, .Name = "EffectArg1" }, { .IsSigned = false, .Type = FT_INT, .Name = "EffectArg2" }, { .IsSigned = false, .Type = FT_INT, .Name = "EffectArg3" }, @@ -5481,30 +5502,24 @@ struct SpellItemEnchantmentLoadInfo { .IsSigned = false, .Type = FT_FLOAT, .Name = "EffectScalingPoints1" }, { .IsSigned = false, .Type = FT_FLOAT, .Name = "EffectScalingPoints2" }, { .IsSigned = false, .Type = FT_FLOAT, .Name = "EffectScalingPoints3" }, - { .IsSigned = false, .Type = FT_INT, .Name = "IconFileDataID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "ScalingClass" }, + { .IsSigned = true, .Type = FT_INT, .Name = "ScalingClassRestricted" }, + { .IsSigned = true, .Type = FT_INT, .Name = "ConditionID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "RequiredSkillID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "RequiredSkillRank" }, + { .IsSigned = true, .Type = FT_INT, .Name = "MinLevel" }, + { .IsSigned = true, .Type = FT_INT, .Name = "MaxLevel" }, + { .IsSigned = true, .Type = FT_INT, .Name = "IconFileDataID" }, { .IsSigned = true, .Type = FT_INT, .Name = "MinItemLevel" }, { .IsSigned = true, .Type = FT_INT, .Name = "MaxItemLevel" }, - { .IsSigned = false, .Type = FT_INT, .Name = "TransmogUseConditionID" }, - { .IsSigned = false, .Type = FT_INT, .Name = "TransmogCost" }, - { .IsSigned = true, .Type = FT_SHORT, .Name = "EffectPointsMin1" }, - { .IsSigned = true, .Type = FT_SHORT, .Name = "EffectPointsMin2" }, - { .IsSigned = true, .Type = FT_SHORT, .Name = "EffectPointsMin3" }, + { .IsSigned = true, .Type = FT_INT, .Name = "TransmogUseConditionID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "TransmogCost" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_12_1_5_69594_021" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "ItemVisual" }, - { .IsSigned = false, .Type = FT_SHORT, .Name = "RequiredSkillID" }, - { .IsSigned = false, .Type = FT_SHORT, .Name = "RequiredSkillRank" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "ItemLevel" }, - { .IsSigned = false, .Type = FT_BYTE, .Name = "Charges" }, - { .IsSigned = false, .Type = FT_BYTE, .Name = "Effect1" }, - { .IsSigned = false, .Type = FT_BYTE, .Name = "Effect2" }, - { .IsSigned = false, .Type = FT_BYTE, .Name = "Effect3" }, - { .IsSigned = true, .Type = FT_BYTE, .Name = "ScalingClass" }, - { .IsSigned = true, .Type = FT_BYTE, .Name = "ScalingClassRestricted" }, - { .IsSigned = false, .Type = FT_BYTE, .Name = "ConditionID" }, - { .IsSigned = false, .Type = FT_BYTE, .Name = "MinLevel" }, - { .IsSigned = false, .Type = FT_BYTE, .Name = "MaxLevel" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 32, &SpellItemEnchantmentMeta::Instance, HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT }; + static constexpr DB2LoadInfo Instance{ Fields, 33, &SpellItemEnchantmentMeta::Instance, HOTFIX_SEL_SPELL_ITEM_ENCHANTMENT }; }; struct SpellItemEnchantmentConditionLoadInfo @@ -5706,16 +5721,17 @@ struct SpellProcsPerMinuteLoadInfo struct SpellProcsPerMinuteModLoadInfo { - static constexpr DB2FieldMeta Fields[5] = + static constexpr DB2FieldMeta Fields[6] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = true, .Type = FT_INT, .Name = "Type" }, { .IsSigned = true, .Type = FT_INT, .Name = "Param" }, { .IsSigned = false, .Type = FT_FLOAT, .Name = "Coeff" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_12_1_5_69594_003" }, { .IsSigned = false, .Type = FT_INT, .Name = "SpellProcsPerMinuteID" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 5, &SpellProcsPerMinuteModMeta::Instance, HOTFIX_SEL_SPELL_PROCS_PER_MINUTE_MOD }; + static constexpr DB2LoadInfo Instance{ Fields, 6, &SpellProcsPerMinuteModMeta::Instance, HOTFIX_SEL_SPELL_PROCS_PER_MINUTE_MOD }; }; struct SpellRadiusLoadInfo @@ -5975,7 +5991,7 @@ struct SpellVisualKitLoadInfo struct SpellVisualMissileLoadInfo { - static constexpr DB2FieldMeta Fields[23] = + static constexpr DB2FieldMeta Fields[27] = { { .IsSigned = false, .Type = FT_FLOAT, .Name = "CastOffset1" }, { .IsSigned = false, .Type = FT_FLOAT, .Name = "CastOffset2" }, @@ -5999,10 +6015,14 @@ struct SpellVisualMissileLoadInfo { .IsSigned = true, .Type = FT_INT, .Name = "ClutterLevel" }, { .IsSigned = true, .Type = FT_INT, .Name = "DecayTimeAfterImpact" }, { .IsSigned = false, .Type = FT_SHORT, .Name = "Unused1100" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_12_1_5_69594_018" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_12_1_5_69594_019" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_12_1_5_69594_020" }, + { .IsSigned = true, .Type = FT_INT, .Name = "Field_12_1_5_69594_021" }, { .IsSigned = false, .Type = FT_INT, .Name = "SpellVisualMissileSetID" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 23, &SpellVisualMissileMeta::Instance, HOTFIX_SEL_SPELL_VISUAL_MISSILE }; + static constexpr DB2LoadInfo Instance{ Fields, 27, &SpellVisualMissileMeta::Instance, HOTFIX_SEL_SPELL_VISUAL_MISSILE }; }; struct SpellXSpellVisualLoadInfo @@ -6263,7 +6283,7 @@ struct TraitCostLoadInfo struct TraitCurrencyLoadInfo { - static constexpr DB2FieldMeta Fields[7] = + static constexpr DB2FieldMeta Fields[8] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = true, .Type = FT_INT, .Name = "Type" }, @@ -6272,14 +6292,15 @@ struct TraitCurrencyLoadInfo { .IsSigned = true, .Type = FT_INT, .Name = "Icon" }, { .IsSigned = true, .Type = FT_INT, .Name = "PlayerDataElementAccountID" }, { .IsSigned = true, .Type = FT_INT, .Name = "PlayerDataElementCharacterID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "SourcedMax" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 7, &TraitCurrencyMeta::Instance, HOTFIX_SEL_TRAIT_CURRENCY }; + static constexpr DB2LoadInfo Instance{ Fields, 8, &TraitCurrencyMeta::Instance, HOTFIX_SEL_TRAIT_CURRENCY }; }; struct TraitCurrencySourceLoadInfo { - static constexpr DB2FieldMeta Fields[9] = + static constexpr DB2FieldMeta Fields[10] = { { .IsSigned = false, .Type = FT_STRING, .Name = "Requirement" }, { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, @@ -6289,10 +6310,11 @@ struct TraitCurrencySourceLoadInfo { .IsSigned = true, .Type = FT_INT, .Name = "AchievementID" }, { .IsSigned = true, .Type = FT_INT, .Name = "PlayerLevel" }, { .IsSigned = true, .Type = FT_INT, .Name = "TraitNodeEntryID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "SuperDistrictSetID" }, { .IsSigned = true, .Type = FT_INT, .Name = "OrderIndex" }, }; - static constexpr DB2LoadInfo Instance{ Fields, 9, &TraitCurrencySourceMeta::Instance, HOTFIX_SEL_TRAIT_CURRENCY_SOURCE }; + static constexpr DB2LoadInfo Instance{ Fields, 10, &TraitCurrencySourceMeta::Instance, HOTFIX_SEL_TRAIT_CURRENCY_SOURCE }; }; struct TraitDefinitionLoadInfo diff --git a/src/server/game/DataStores/DB2Metadata.h b/src/server/game/DataStores/DB2Metadata.h index 208eac4788..d06b97bad7 100644 --- a/src/server/game/DataStores/DB2Metadata.h +++ b/src/server/game/DataStores/DB2Metadata.h @@ -891,7 +891,7 @@ struct AreaPOIUiWidgetSetMeta struct AreaTableMeta { - static constexpr DB2MetaField Fields[23] = + static constexpr DB2MetaField Fields[24] = { { .Type = FT_STRING_NOT_LOCALIZED, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, @@ -904,6 +904,7 @@ struct AreaTableMeta { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, @@ -923,9 +924,9 @@ struct AreaTableMeta .FileDataId = 1353545, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 23, - .FileFieldCount = 23, - .LayoutHash = 0x5DB1A3FF, + .FieldCount = 24, + .FileFieldCount = 24, + .LayoutHash = 0x9995B797, .Fields = Fields }; }; @@ -2811,9 +2812,10 @@ struct Cfg_GameRulesMeta struct Cfg_RegionsMeta { - static constexpr DB2MetaField Fields[6] = + static constexpr DB2MetaField Fields[7] = { { .Type = FT_STRING_NOT_LOCALIZED, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, @@ -2826,9 +2828,9 @@ struct Cfg_RegionsMeta .FileDataId = 1082876, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 6, - .FileFieldCount = 6, - .LayoutHash = 0xFB9CBD8A, + .FieldCount = 7, + .FileFieldCount = 7, + .LayoutHash = 0x66694D4D, .Fields = Fields }; }; @@ -3203,11 +3205,12 @@ struct CharacterFacialHairStylesMeta struct CharacterLoadoutMeta { - static constexpr DB2MetaField Fields[4] = + static constexpr DB2MetaField Fields[5] = { { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 2, .IsSigned = true }, }; @@ -3216,9 +3219,9 @@ struct CharacterLoadoutMeta .FileDataId = 1344281, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 4, - .FileFieldCount = 4, - .LayoutHash = 0xA5B16B13, + .FieldCount = 5, + .FileFieldCount = 5, + .LayoutHash = 0x713CE8BB, .Fields = Fields }; }; @@ -6472,7 +6475,7 @@ struct CurrencyContainerMeta struct CurrencyTypesMeta { - static constexpr DB2MetaField Fields[22] = + static constexpr DB2MetaField Fields[23] = { { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, @@ -6491,6 +6494,7 @@ struct CurrencyTypesMeta { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, @@ -6503,9 +6507,9 @@ struct CurrencyTypesMeta .FileDataId = 1095531, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 22, - .FileFieldCount = 22, - .LayoutHash = 0xFA3226AB, + .FieldCount = 23, + .FileFieldCount = 23, + .LayoutHash = 0xEBEAF439, .Fields = Fields }; }; @@ -7778,7 +7782,7 @@ struct ExtraAbilityInfoMeta struct FactionMeta { - static constexpr DB2MetaField Fields[20] = + static constexpr DB2MetaField Fields[21] = { { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, @@ -7790,6 +7794,7 @@ struct FactionMeta { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_SHORT, .ArraySize = 4, .IsSigned = true }, { .Type = FT_SHORT, .ArraySize = 4, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 4, .IsSigned = true }, @@ -7807,9 +7812,9 @@ struct FactionMeta .FileDataId = 1361972, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 20, - .FileFieldCount = 20, - .LayoutHash = 0xE7553DC7, + .FieldCount = 21, + .FileFieldCount = 21, + .LayoutHash = 0x6D443C38, .Fields = Fields }; }; @@ -9887,10 +9892,11 @@ struct GlobalColorMeta struct GlobalCurveMeta { - static constexpr DB2MetaField Fields[2] = + static constexpr DB2MetaField Fields[3] = { { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, }; static constexpr DB2Meta Instance = @@ -9898,9 +9904,9 @@ struct GlobalCurveMeta .FileDataId = 3752002, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 2, - .FileFieldCount = 2, - .LayoutHash = 0xBED3B583, + .FieldCount = 3, + .FileFieldCount = 3, + .LayoutHash = 0x1DC57BDD, .Fields = Fields }; }; @@ -11311,13 +11317,14 @@ struct InvasionClientDataMeta struct ItemMeta { - static constexpr DB2MetaField Fields[15] = + static constexpr DB2MetaField Fields[16] = { { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, @@ -11335,9 +11342,9 @@ struct ItemMeta .FileDataId = 841626, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 15, - .FileFieldCount = 15, - .LayoutHash = 0x996192AA, + .FieldCount = 16, + .FileFieldCount = 16, + .LayoutHash = 0x9A2A4834, .Fields = Fields }; }; @@ -12835,7 +12842,7 @@ struct ItemSetSpellMeta struct ItemSparseMeta { - static constexpr DB2MetaField Fields[67] = + static constexpr DB2MetaField Fields[68] = { { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, @@ -12904,6 +12911,7 @@ struct ItemSparseMeta { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, }; static constexpr DB2Meta Instance = @@ -12911,9 +12919,9 @@ struct ItemSparseMeta .FileDataId = 1572924, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 67, - .FileFieldCount = 67, - .LayoutHash = 0x1C17D17F, + .FieldCount = 68, + .FileFieldCount = 68, + .LayoutHash = 0x6FCC3191, .Fields = Fields }; }; @@ -14529,7 +14537,7 @@ struct ManifestInterfaceItemIconMeta struct MapMeta { - static constexpr DB2MetaField Fields[25] = + static constexpr DB2MetaField Fields[26] = { { .Type = FT_STRING_NOT_LOCALIZED, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, @@ -14555,6 +14563,7 @@ struct MapMeta { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 3, .IsSigned = true }, }; @@ -14563,9 +14572,9 @@ struct MapMeta .FileDataId = 1349477, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 25, - .FileFieldCount = 25, - .LayoutHash = 0x75863E23, + .FieldCount = 26, + .FileFieldCount = 26, + .LayoutHash = 0xD43AFAC3, .Fields = Fields }; }; @@ -15748,11 +15757,12 @@ struct NPCSoundsMeta struct NameGenMeta { - static constexpr DB2MetaField Fields[3] = + static constexpr DB2MetaField Fields[4] = { { .Type = FT_STRING_NOT_LOCALIZED, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, }; static constexpr DB2Meta Instance = @@ -15760,9 +15770,9 @@ struct NameGenMeta .FileDataId = 1122117, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 3, - .FileFieldCount = 3, - .LayoutHash = 0x3CA45193, + .FieldCount = 4, + .FileFieldCount = 4, + .LayoutHash = 0x584300FA, .Fields = Fields }; }; @@ -17208,12 +17218,13 @@ struct PlayerConditionMeta struct PlayerDataElementAccountMeta { - static constexpr DB2MetaField Fields[4] = + static constexpr DB2MetaField Fields[5] = { { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, }; static constexpr DB2Meta Instance = @@ -17221,21 +17232,22 @@ struct PlayerDataElementAccountMeta .FileDataId = 5715394, .IndexField = 0, .ParentIndexField = -1, - .FieldCount = 4, - .FileFieldCount = 4, - .LayoutHash = 0xAEC1DEF3, + .FieldCount = 5, + .FileFieldCount = 5, + .LayoutHash = 0xC513161B, .Fields = Fields }; }; struct PlayerDataElementCharacterMeta { - static constexpr DB2MetaField Fields[4] = + static constexpr DB2MetaField Fields[5] = { { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, }; static constexpr DB2Meta Instance = @@ -17243,9 +17255,9 @@ struct PlayerDataElementCharacterMeta .FileDataId = 5715395, .IndexField = 0, .ParentIndexField = -1, - .FieldCount = 4, - .FileFieldCount = 4, - .LayoutHash = 0xAEC1DEF3, + .FieldCount = 5, + .FileFieldCount = 5, + .LayoutHash = 0xC513161B, .Fields = Fields }; }; @@ -19645,7 +19657,7 @@ struct SkillLineMeta struct SkillLineAbilityMeta { - static constexpr DB2MetaField Fields[17] = + static constexpr DB2MetaField Fields[18] = { { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, @@ -19664,6 +19676,7 @@ struct SkillLineAbilityMeta { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 2, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 2, .IsSigned = true }, }; static constexpr DB2Meta Instance = @@ -19671,9 +19684,9 @@ struct SkillLineAbilityMeta .FileDataId = 1266278, .IndexField = 2, .ParentIndexField = 3, - .FieldCount = 17, - .FileFieldCount = 17, - .LayoutHash = 0xF98AA48E, + .FieldCount = 18, + .FileFieldCount = 18, + .LayoutHash = 0x224F7EA0, .Fields = Fields }; }; @@ -21375,31 +21388,32 @@ struct SpellInterruptsMeta struct SpellItemEnchantmentMeta { - static constexpr DB2MetaField Fields[23] = + static constexpr DB2MetaField Fields[24] = { { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 3, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 3, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 3, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_FLOAT, .ArraySize = 3, .IsSigned = true }, - { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, - { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_SHORT, .ArraySize = 3, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_BYTE, .ArraySize = 3, .IsSigned = false }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = true }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, - { .Type = FT_BYTE, .ArraySize = 1, .IsSigned = false }, }; static constexpr DB2Meta Instance = @@ -21407,9 +21421,9 @@ struct SpellItemEnchantmentMeta .FileDataId = 1362771, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 23, - .FileFieldCount = 23, - .LayoutHash = 0xD5D2C264, + .FieldCount = 24, + .FileFieldCount = 24, + .LayoutHash = 0x952B72B2, .Fields = Fields }; }; @@ -21769,22 +21783,23 @@ struct SpellProcsPerMinuteMeta struct SpellProcsPerMinuteModMeta { - static constexpr DB2MetaField Fields[4] = + static constexpr DB2MetaField Fields[5] = { { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_FLOAT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, }; static constexpr DB2Meta Instance = { .FileDataId = 1133525, .IndexField = -1, - .ParentIndexField = 3, - .FieldCount = 4, - .FileFieldCount = 3, - .LayoutHash = 0x4F1DC447, + .ParentIndexField = 4, + .FieldCount = 5, + .FileFieldCount = 4, + .LayoutHash = 0xA89F22A1, .Fields = Fields }; }; @@ -22532,7 +22547,7 @@ struct SpellVisualKitPickerEntryMeta struct SpellVisualMissileMeta { - static constexpr DB2MetaField Fields[19] = + static constexpr DB2MetaField Fields[23] = { { .Type = FT_FLOAT, .ArraySize = 3, .IsSigned = true }, { .Type = FT_FLOAT, .ArraySize = 3, .IsSigned = true }, @@ -22553,16 +22568,20 @@ struct SpellVisualMissileMeta { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_SHORT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, }; static constexpr DB2Meta Instance = { .FileDataId = 897954, .IndexField = 2, - .ParentIndexField = 18, - .FieldCount = 19, - .FileFieldCount = 18, - .LayoutHash = 0xAE389078, + .ParentIndexField = 22, + .FieldCount = 23, + .FileFieldCount = 22, + .LayoutHash = 0xEC765EB2, .Fields = Fields }; }; @@ -23316,7 +23335,7 @@ struct TraitCostMeta struct TraitCurrencyMeta { - static constexpr DB2MetaField Fields[7] = + static constexpr DB2MetaField Fields[8] = { { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, @@ -23325,6 +23344,7 @@ struct TraitCurrencyMeta { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, }; static constexpr DB2Meta Instance = @@ -23332,16 +23352,16 @@ struct TraitCurrencyMeta .FileDataId = 4524216, .IndexField = 0, .ParentIndexField = -1, - .FieldCount = 7, - .FileFieldCount = 7, - .LayoutHash = 0x7E04D40D, + .FieldCount = 8, + .FileFieldCount = 8, + .LayoutHash = 0xA8B0874B, .Fields = Fields }; }; struct TraitCurrencySourceMeta { - static constexpr DB2MetaField Fields[9] = + static constexpr DB2MetaField Fields[10] = { { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = false }, @@ -23352,6 +23372,7 @@ struct TraitCurrencySourceMeta { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, }; static constexpr DB2Meta Instance = @@ -23359,9 +23380,9 @@ struct TraitCurrencySourceMeta .FileDataId = 4539393, .IndexField = 1, .ParentIndexField = 2, - .FieldCount = 9, - .FileFieldCount = 9, - .LayoutHash = 0x3FE6D68D, + .FieldCount = 10, + .FileFieldCount = 10, + .LayoutHash = 0x4C49B6AA, .Fields = Fields }; }; diff --git a/src/server/game/DataStores/DB2Stores.cpp b/src/server/game/DataStores/DB2Stores.cpp index 96ff4ae92a..037f508e96 100644 --- a/src/server/game/DataStores/DB2Stores.cpp +++ b/src/server/game/DataStores/DB2Stores.cpp @@ -1055,9 +1055,11 @@ uint32 DB2Manager::LoadStores(std::string const& dataPath, LocaleConstant defaul // error checks // Check loaded DB2 files proper version + // Classic 1.60.x client: bank tab bags are retail-only items and do not exist in its ItemSparse.db2, + // so report them as a warning instead of a fatal error (buying a bank tab just fails with ITEM_NOT_FOUND) for (uint32 criticalItemId : { ITEM_ACCOUNT_BANK_TAB_BAG, ITEM_CHARACTER_BANK_TAB_BAG }) if (!sItemSparseStore.LookupEntry(criticalItemId)) - loadErrors.emplace_back(Trinity::StringFormat("Missing required item {} from ItemSparse.db2 (or its hotfix table)", criticalItemId)); + TC_LOG_WARN("server.loading", "Missing item {} from ItemSparse.db2 (or its hotfix table) - retail-only item, ignored for Classic client", criticalItemId); if (!loadErrors.empty()) { @@ -1488,8 +1490,13 @@ void DB2Manager::IndexLoadedStores() for (PowerTypeEntry const* powerType : sPowerTypeStore) { - ASSERT(powerType->PowerTypeEnum < MAX_POWERS); - ASSERT(!_powerTypes[powerType->PowerTypeEnum]); + // Classic (1.60+) client data has power types retail does not know about + if (powerType->PowerTypeEnum < 0 || powerType->PowerTypeEnum >= MAX_POWERS || _powerTypes[powerType->PowerTypeEnum]) + { + TC_LOG_ERROR("misc", "PowerType.db2: skipping ID {} (PowerTypeEnum {}, NameGlobalStringTag '{}') - unknown or duplicate power type", + powerType->ID, int32(powerType->PowerTypeEnum), powerType->NameGlobalStringTag); + continue; + } _powerTypes[powerType->PowerTypeEnum] = powerType; } @@ -2181,7 +2188,15 @@ ChrSpecializationEntry const* DB2Manager::GetChrSpecializationByIndex(uint32 cla ChrSpecializationEntry const* DB2Manager::GetDefaultChrSpecializationForClass(uint32 class_) const { - return GetChrSpecializationByIndex(class_, INITIAL_SPECIALIZATION_INDEX); + if (ChrSpecializationEntry const* initialSpec = GetChrSpecializationByIndex(class_, INITIAL_SPECIALIZATION_INDEX)) + return initialSpec; + + // Classic 1.60 data has no "initial" (index 4) specializations, fall back to the first specialization of the class + for (uint32 i = 0; i < MAX_SPECIALIZATIONS; ++i) + if (ChrSpecializationEntry const* spec = GetChrSpecializationByIndex(class_, i)) + return spec; + + return nullptr; } uint32 DB2Manager::GetRedirectedContentTuningId(uint32 contentTuningId, std::span redirectFlag) const diff --git a/src/server/game/DataStores/DB2Structure.h b/src/server/game/DataStores/DB2Structure.h index 3d3736d549..5ef436e918 100644 --- a/src/server/game/DataStores/DB2Structure.h +++ b/src/server/game/DataStores/DB2Structure.h @@ -136,6 +136,7 @@ struct AreaTableEntry uint16 UwAmbience; uint16 ZoneMusic; uint16 UwZoneMusic; + int8 ExplorationLevel; uint16 IntroSound; uint32 UwIntroSound; uint8 FactionGroupMask; @@ -618,6 +619,7 @@ struct Cfg_RegionsEntry { uint32 ID; char const* Tag; + LocalizedString Name; uint16 RegionID; uint32 Raidorigin; // Date of first raid reset, all other resets are calculated as this date plus interval uint8 RegionGroupMask; @@ -659,6 +661,7 @@ struct CharacterLoadoutEntry int8 ChrClassID; int32 Purpose; uint8 ItemContext; + int32 Field_1_60_1_69876_003; Trinity::RaceMask RaceMask; bool IsForNewCharacter() const { return Purpose == 9; } @@ -1457,6 +1460,7 @@ struct CurrencyTypesEntry uint32 RechargingAmountPerCycle; uint32 RechargingCycleDurationMS; float AccountTransferPercentage; + int32 MaxQtyCurveID; uint8 OrderIndex; float RecraftReagentCountPercentage; uint8 OrderSource; @@ -1683,6 +1687,7 @@ struct FactionEntry uint16 ParagonFactionID; int32 RenownFactionID; int32 RenownCurrencyID; + int32 RenownThresholdCurveID; std::array ReputationClassMask; std::array ReputationFlags; std::array ReputationBase; @@ -2079,6 +2084,7 @@ struct GlobalCurveEntry uint32 ID; int32 CurveID; int32 Type; + int32 Subtype; }; struct GlyphBindableSpellEntry @@ -2225,12 +2231,13 @@ struct ItemEntry uint8 Material; int8 InventoryType; uint8 SheatheType; + int32 ItemPetFoodID; int8 SoundOverrideSubclassID; int32 IconFileDataID; uint32 ItemGroupSoundsID; int32 ContentTuningID; int32 ModifiedCraftingReagentItemID; - uint8 Unknown1200; + uint8 Unknown1200; // AmmunitionType in 1.60.x Classic int32 CraftingQualityID; int32 ItemSquishEraID; float RecraftReagentCountPercentage; @@ -2659,6 +2666,7 @@ struct ItemSparseEntry int8 RequiredLevel; int8 InventoryType; int8 OverallQualityID; + uint8 AmmunitionType; }; struct ItemSpecEntry @@ -2920,6 +2928,7 @@ struct MapEntry int16 WindSettingsID; int32 ZmpFileDataID; int32 WdtFileDataID; + int32 OceanLiquidTypeID; int32 NavigationMaxDistance; int32 PreloadFileDataID; std::array Flags; @@ -3155,6 +3164,7 @@ struct NameGenEntry char const* Name; int8 RaceID; int8 Sex; + uint8 NameType; }; struct NamesProfanityEntry @@ -3359,6 +3369,7 @@ struct PlayerDataElementAccountEntry int32 StorageIndex; int32 Type; int32 Unknown1125; + int32 Field_12_1_5_69594_004; PlayerDataElementType GetType() const { return static_cast(Type); } }; @@ -3369,6 +3380,7 @@ struct PlayerDataElementCharacterEntry int32 StorageIndex; int32 Type; int32 Unknown1125; + int32 Field_12_1_5_69594_004; PlayerDataElementType GetType() const { return static_cast(Type); } }; @@ -3712,6 +3724,7 @@ struct SkillLineAbilityEntry int16 UniqueBit; int16 TradeSkillCategoryID; int16 SkillupSkillLineID; + std::array Field_5_5_4_67090_014; Trinity::RaceMask RaceMask; SkillLineAbilityAcquireMethod GetAcquireMethod() const { return static_cast(AcquireMethod); } @@ -3977,26 +3990,27 @@ struct SpellItemEnchantmentEntry LocalizedString Name; LocalizedString HordeName; int32 Duration; + uint32 Charges; + std::array Effect; + std::array EffectPointsMin; std::array EffectArg; int32 Flags; std::array EffectScalingPoints; + int32 ScalingClass; + int32 ScalingClassRestricted; + uint32 ConditionID; // Field_12_1_5_69594_011 in 1.60.x Classic - sits where Condition_ID was in 1.15 layouts, all 0 in build 70009 data + uint32 RequiredSkillID; + uint32 RequiredSkillRank; + uint32 MinLevel; + uint32 MaxLevel; uint32 IconFileDataID; int32 MinItemLevel; int32 MaxItemLevel; uint32 TransmogUseConditionID; uint32 TransmogCost; - std::array EffectPointsMin; + int32 Field_12_1_5_69594_021; uint16 ItemVisual; - uint16 RequiredSkillID; - uint16 RequiredSkillRank; uint16 ItemLevel; - uint8 Charges; - std::array Effect; - int8 ScalingClass; - int8 ScalingClassRestricted; - uint8 ConditionID; - uint8 MinLevel; - uint8 MaxLevel; EnumFlag GetFlags() const { return static_cast(Flags); } }; @@ -4115,6 +4129,7 @@ struct SpellProcsPerMinuteModEntry int32 Type; int32 Param; float Coeff; + int32 Field_12_1_5_69594_003; uint32 SpellProcsPerMinuteID; }; @@ -4295,6 +4310,10 @@ struct SpellVisualMissileEntry int32 ClutterLevel; int32 DecayTimeAfterImpact; uint16 Unused1100; + int32 Field_12_1_5_69594_018; + int32 Field_12_1_5_69594_019; + int32 Field_12_1_5_69594_020; + int32 Field_12_1_5_69594_021; uint32 SpellVisualMissileSetID; }; @@ -4486,6 +4505,7 @@ struct TraitCurrencyEntry int32 Icon; int32 PlayerDataElementAccountID; int32 PlayerDataElementCharacterID; + int32 SourcedMax; TraitCurrencyType GetType() const { return static_cast(Type); } }; @@ -4500,6 +4520,7 @@ struct TraitCurrencySourceEntry int32 AchievementID; int32 PlayerLevel; int32 TraitNodeEntryID; + int32 SuperDistrictSetID; int32 OrderIndex; }; diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp index f055a58e39..76c003a402 100644 --- a/src/server/game/Entities/Creature/Creature.cpp +++ b/src/server/game/Entities/Creature/Creature.cpp @@ -1894,6 +1894,15 @@ bool Creature::LoadFromDB(ObjectGuid::LowType spawnId, Map* map, bool addToMap, m_spawnId = spawnId; + // Classic 1.60.1.70009: spawns imported from client recordings have no height (position_z = -15000); + // take the ground (terrain + vmaps) below the spot once and keep it in the spawn data (also used for respawns) + if (data->spawnPoint.GetPositionZ() <= -14999.0f) + { + float z = map->GetClassicSpawnHeight(PhaseShift(), data->spawnPoint.GetPositionX(), data->spawnPoint.GetPositionY()); + if (z > INVALID_HEIGHT) + const_cast(data)->spawnPoint.m_positionZ = z + 0.1f; + } + m_respawnCompatibilityMode = ((data->spawnGroupData->flags & SPAWNGROUP_FLAG_COMPATIBILITY_MODE) != 0); m_creatureData = data; m_wanderDistance = data->wander_distance; @@ -3121,6 +3130,16 @@ bool Creature::HasScalableLevels() const void Creature::ApplyLevelScaling() { + // Classic 1.60.1.70009: vanilla creatures have a fixed level range instead of ContentTuning scaling + if (std::pair const* classicLevel = sObjectMgr->GetCreatureClassicLevel(GetEntry())) + { + uint8 level = uint8(urand(classicLevel->first, classicLevel->second)); + SetUpdateFieldValue(m_values.ModifyValue(&Unit::m_unitData).ModifyValue(&UF::UnitData::ScalingLevelMin), level); + SetUpdateFieldValue(m_values.ModifyValue(&Unit::m_unitData).ModifyValue(&UF::UnitData::ScalingLevelMax), level); + SetUpdateFieldValue(m_values.ModifyValue(&Unit::m_unitData).ModifyValue(&UF::UnitData::ScalingLevelDelta), 0); + return; + } + CreatureDifficulty const* creatureDifficulty = GetCreatureDifficulty(); int32 contentTuningId = creatureDifficulty->ContentTuningID; diff --git a/src/server/game/Entities/GameObject/GameObject.cpp b/src/server/game/Entities/GameObject/GameObject.cpp index 936b00985c..b6f1da971b 100644 --- a/src/server/game/Entities/GameObject/GameObject.cpp +++ b/src/server/game/Entities/GameObject/GameObject.cpp @@ -2014,6 +2014,14 @@ bool GameObject::LoadFromDB(ObjectGuid::LowType spawnId, Map* map, bool addToMap GOState go_state = data->goState; uint32 artKit = data->artKit; + // Classic 1.60.1.70009: spawns imported from client recordings have no height (position_z = -15000); use the ground below + if (data->spawnPoint.GetPositionZ() <= -14999.0f) + { + float z = map->GetClassicSpawnHeight(PhaseShift(), data->spawnPoint.GetPositionX(), data->spawnPoint.GetPositionY()); + if (z > INVALID_HEIGHT) + const_cast(data)->spawnPoint.m_positionZ = z; + } + m_spawnId = spawnId; m_respawnCompatibilityMode = ((data->spawnGroupData->flags & SPAWNGROUP_FLAG_COMPATIBILITY_MODE) != 0); if (!Create(entry, map, data->spawnPoint, data->rotation, animprogress, go_state, artKit, !m_respawnCompatibilityMode, spawnId)) diff --git a/src/server/game/Entities/Object/BaseEntity.cpp b/src/server/game/Entities/Object/BaseEntity.cpp index b0ea1a09da..543693530d 100644 --- a/src/server/game/Entities/Object/BaseEntity.cpp +++ b/src/server/game/Entities/Object/BaseEntity.cpp @@ -188,7 +188,13 @@ void BaseEntity::BuildValuesUpdateBlockForPlayer(UpdateData* data, Player const* inline void BaseEntity::BuildEntityFragments(ByteBuffer& data, std::span fragments) { - data.append(fragments.data(), fragments.size()); + // Classic 1.60.1.70009: every non-tag fragment id is retail + 1 (client fragment registry at rva 0x80146D0: + // registered 3, 18, 20-24, 28, 31-35, 38 = retail 2, 17, 19-23, 27, 30-34, 37), tag ids (200+) are unchanged + for (WowCS::EntityFragment fragment : fragments) + { + uint8 id = uint8(fragment); + data << uint8(id < uint8(WowCS::EntityFragment::Tag_Item) ? id + 1 : id); + } data << uint8(WowCS::EntityFragment::End); } diff --git a/src/server/game/Entities/Object/Updates/UpdateFields.cpp b/src/server/game/Entities/Object/Updates/UpdateFields.cpp index 25acfd9c54..1004a8c352 100644 --- a/src/server/game/Entities/Object/Updates/UpdateFields.cpp +++ b/src/server/game/Entities/Object/Updates/UpdateFields.cpp @@ -268,6 +268,8 @@ void ItemData::WriteCreate(EnumFlag fieldVisibilityFlags, ByteB { Enchantment[i].WriteCreate(data, receiver, owner); } + // Classic 1.60.1.70009: 14 enchantment slots (client ItemData create reader rva 0xA78B00 loops to 0xE) + data << int32(0) << uint32(0) << int16(0) << uint16(0); if (fieldVisibilityFlags.HasFlag(UpdateFieldFlag::Owner)) { data << uint32(Durability); @@ -843,6 +845,7 @@ void VisibleItem::WriteCreate(ByteBuffer& data, Player const* receiver, Unit con data << int32(ItemID); data << int32(SecondaryItemModifiedAppearanceID); data << int32(ConditionalItemAppearanceID); + data << int32(0); // Classic 1.60.1.70009: unknown int32 (client VisibleItem create reader rva 0xAD8850, +0xC) data << uint16(ItemAppearanceModID); data << uint16(ItemVisual); data << uint32(ItemModifiedAppearanceID); @@ -859,7 +862,12 @@ void VisibleItem::WriteUpdate(bool ignoreChangesMask, ByteBuffer& data, Player c if (ignoreChangesMask) changesMask.SetAll(); - data.WriteBits(changesMask.GetBlock(0), 11); + // Classic 1.60.1.70009: 12 bits, bit 6 = unknown int32 after ConditionalItemAppearanceID (client update reader rva 0xAD8970) + uint32 block = changesMask.GetBlock(0); + uint32 classicBlock = (block & 0x3F) | ((block & ~0x3Fu) << 1); + if (ignoreChangesMask) + classicBlock |= 1u << 6; + data.WriteBits(classicBlock, 12); if (changesMask[0]) { @@ -887,6 +895,10 @@ void VisibleItem::WriteUpdate(bool ignoreChangesMask, ByteBuffer& data, Player c { data << int32(ConditionalItemAppearanceID); } + if (ignoreChangesMask) + { + data << int32(0); + } if (changesMask[6]) { data << uint16(ItemAppearanceModID); @@ -1086,6 +1098,7 @@ void UnitData::WriteCreate(EnumFlag fieldVisibilityFlags, ByteB data << uint8(PetTalentPoints); data << uint8(VisFlags); data << uint8(AnimTier); + data << int8(0); // Classic 1.60.1.70009: 5th byte field in this group (client UnitData +0x1A8) data << uint32(PetNumber); data << uint32(PetNameTimestamp); data << uint32(PetExperience); @@ -1099,6 +1112,8 @@ void UnitData::WriteCreate(EnumFlag fieldVisibilityFlags, ByteB data << float(ModTimeRate); data << int32(CreatedBySpell); data << int32(EmoteState); + data << int16(0); // Classic 1.60.1.70009: two unknown int16 (client UnitData +0x1E0, +0x1E2) + data << int16(0); if (fieldVisibilityFlags.HasFlag(UpdateFieldFlag::Owner)) { for (uint32 i = 0; i < 5; ++i) @@ -1145,10 +1160,12 @@ void UnitData::WriteCreate(EnumFlag fieldVisibilityFlags, ByteB data << int32(RangedAttackPowerModNeg); data << float(RangedAttackPowerMultiplier); data << int32(RangedAttackPowerModSupport); + data << int32(0); // Classic 1.60.1.70009: AttackPower block has 22 fields (TC 20), exact positions of the 2 extra unknown data << int32(MainHandWeaponAttackPower); data << int32(OffHandWeaponAttackPower); data << int32(RangedWeaponAttackPower); data << int32(SetAttackSpeedAura); + data << int32(0); data << float(Lifesteal); data << float(MinRangedDamage); data << float(MaxRangedDamage); @@ -1180,7 +1197,11 @@ void UnitData::WriteCreate(EnumFlag fieldVisibilityFlags, ByteB data << int32(MaxHealthModifierFlatNeg); data << int32(MaxHealthModifierFlatPos); data << uint32(SilencedSchoolMask); + data << float(0.0f); // Classic 1.60.1.70009: unknown float (client UnitData +0x350) data << uint32(CurrentAreaID); + data << ObjectGuid::Empty; // Classic 1.60.1.70009: unknown guid (+0x360) + data << int32(0); // Classic 1.60.1.70009: unknown int32 (+0x370) + data << float(0.0f); // Classic 1.60.1.70009: unknown float (+0x374) data << float(NameplateDistanceMod); data << float(AutoAttackRangeMod); data << *NameplateAttachToGUID; @@ -1234,12 +1255,70 @@ void UnitData::WriteUpdate(EnumFlag fieldVisibilityFlags, ByteB WriteUpdate(_changesMask & allowedMaskForTarget, data, receiver, owner, false); } +// Classic 1.60.1.70009 UnitData changes-mask bit numbering (client update reader rva 0x44F47A0, classic_re/upd_bits.py): +// new bits 72 (byte after AnimTier), 86/87 (int16 after EmoteState), 105 (int32 after RangedAttackPowerModSupport), +// 110 (int32 after SetAttackSpeedAura), 139 (float after SilencedSchoolMask), 141-143 (guid, int32, float after CurrentAreaID); +// array group bits 148 (power), 189 (VirtualItems, 32 byte entries from +0x438), 193, 196, 217 (the reader tests each group bit before its first element) +static uint32 ClassicUnitDataBit(uint32 bit) +{ + if (bit <= 71) return bit; + if (bit <= 84) return bit + 1; + if (bit <= 92) return bit + 3; + if (bit <= 95) return bit + 4; + if (bit == 96) return 96; + if (bit <= 101) return bit + 3; + if (bit <= 105) return bit + 4; + if (bit <= 122) return bit + 5; + if (bit <= 127) return bit + 6; + if (bit == 128) return 128; + if (bit <= 133) return bit + 5; + if (bit == 134) return 140; + return bit + 9; // 135-138 -> 144-147, arrays (TC 139+) -> 148+ +} + +// Classic group bit -> last child bit +static constexpr std::array, 10> ClassicUnitDataGroups = +{ { + { 0, 31 }, { 32, 63 }, { 64, 95 }, { 96, 127 }, { 128, 147 }, { 148, 188 }, { 189, 192 }, { 193, 195 }, { 196, 216 }, { 217, 238 } +} }; + +// Renumbers a retail changes mask to Classic bits, recomputes the Classic group bits and writes the blocks header +template +static std::array WriteClassicChangesMaskHeader(ByteBuffer& data, TcMask const& changesMask, uint32(*remap)(uint32), + std::array, GroupCount> const& groups) +{ + std::array classicBlocks = { }; + for (uint32 bit = 0; bit < TcMask::BlockCount * 32; ++bit) + if (changesMask[bit]) + if (uint32 cb = remap(bit); cb < ClassicBlockCount * 32) + classicBlocks[cb / 32] |= 1u << (cb % 32); + for (auto [group, last] : groups) + { + classicBlocks[group / 32] &= ~(1u << (group % 32)); + for (uint32 cb = group + 1; cb <= last; ++cb) + { + if (classicBlocks[cb / 32] & (1u << (cb % 32))) + { + classicBlocks[group / 32] |= 1u << (group % 32); + break; + } + } + } + uint32 classicBlocksMask = 0; + for (uint32 i = 0; i < ClassicBlockCount; ++i) + if (classicBlocks[i]) + classicBlocksMask |= 1u << i; + data.WriteBits(classicBlocksMask, ClassicBlockCount); + for (uint32 i = 0; i < ClassicBlockCount; ++i) + if (classicBlocks[i]) + data.WriteBits(classicBlocks[i], 32); + return classicBlocks; +} + void UnitData::WriteUpdate(Mask const& changesMask, ByteBuffer& data, Player const* receiver, Unit const* owner, bool ignoreNestedChangesMask) const { - data.WriteBits(changesMask.GetBlocksMask(0), 8); - for (uint32 i = 0; i < 8; ++i) - if (changesMask.GetBlock(i)) - data.WriteBits(changesMask.GetBlock(i), 32); + std::array classicBlocks = WriteClassicChangesMaskHeader<8>(data, changesMask, &ClassicUnitDataBit, ClassicUnitDataGroups); + bool classicGroup128 = (classicBlocks[4] & 1) != 0; ViewerDependentValue::value_type stateWorldEffectIDs = {}; @@ -1841,8 +1920,9 @@ void UnitData::WriteUpdate(Mask const& changesMask, ByteBuffer& data, Player con { data << *NameplateAttachToGUID; } - data.WriteBit(AssistActionData.has_value()); } + if (classicGroup128) // Classic group 128 also holds GuildGUID/FlightCapabilityID (TC group 96) + data.WriteBit(AssistActionData.has_value()); data.FlushBits(); if (changesMask[128]) { @@ -2494,6 +2574,8 @@ void PlayerData::WriteCreate(EnumFlag fieldVisibilityFlags, Byt data << uint32(GuildRankID); data << uint32(GuildDeleteDate); data << int32(GuildLevel); + // Classic 1.60.1.70009: unknown struct (4x uint32 + int8, client reader rva 0x92AD60) at PlayerData +0x5C + data << uint32(0) << uint32(0) << uint32(0) << uint32(0) << int8(0); data << uint32(Customizations.size()); data << uint32(RandomCustomizations.size()); for (uint32 i = 0; i < 2; ++i) @@ -2559,6 +2641,8 @@ void PlayerData::WriteCreate(EnumFlag fieldVisibilityFlags, Byt } PersonalTabard->WriteCreate(data, receiver, owner); NpcAsPlayerInfo->WriteCreate(data, receiver, owner); + // Classic 1.60.1.70009: second instance of the same unknown struct (reader rva 0x92AD60) at PlayerData +0x458 + data << uint32(0) << uint32(0) << uint32(0) << uint32(0) << int8(0); for (uint32 i = 0; i < Customizations.size(); ++i) { Customizations[i].WriteCreate(data, receiver, owner); @@ -2587,6 +2671,7 @@ void PlayerData::WriteCreate(EnumFlag fieldVisibilityFlags, Byt data << int32(VisualItemReplacements[i]); } data.WriteBits(Name->size(), 6); + data.WriteBits(0, 8); // Classic 1.60.1.70009: length of a second string read after Name (surname, client PlayerData +0x1D9) if (fieldVisibilityFlags.HasFlag(UpdateFieldFlag::PartyMember)) { data.WriteBit(HasQuestSession); @@ -2626,12 +2711,29 @@ void PlayerData::WriteUpdate(EnumFlag fieldVisibilityFlags, Byt WriteUpdate(_changesMask & allowedMaskForTarget, data, receiver, owner, false); } +// Classic 1.60.1.70009 PlayerData changes-mask bit numbering (client update reader rva 0xACB180, classic_re/upd_bits.py): +// Classic inserted bit 19 (17-byte struct after GuildLevel), 38 (surname), 50 (unknown) and 53 (17-byte struct after NpcAsPlayerInfo) +static uint32 ClassicPlayerDataBit(uint32 bit) +{ + if (bit <= 18) return bit; + if (bit <= 30) return bit + 1; + if (bit == 31) return 33; // TaxiMountAnimKitID moves past the group bit 32 + if (bit == 32) return 32; + if (bit <= 36) return bit + 1; + if (bit <= 47) return bit + 2; + if (bit <= 49) return bit + 3; + return bit + 4; +} + +static constexpr std::array, 9> ClassicPlayerDataGroups = +{ { + { 0, 31 }, { 32, 53 }, { 54, 56 }, { 57, 232 }, { 233, 252 }, { 253, 259 }, { 260, 292 }, { 293, 309 }, { 310, 329 } +} }; + void PlayerData::WriteUpdate(Mask const& changesMask, ByteBuffer& data, Player const* receiver, Player const* owner, bool ignoreNestedChangesMask) const { - data.WriteBits(changesMask.GetBlocksMask(0), 11); - for (uint32 i = 0; i < 11; ++i) - if (changesMask.GetBlock(i)) - data.WriteBits(changesMask.GetBlock(i), 32); + std::array classicBlocks = WriteClassicChangesMaskHeader<11>(data, changesMask, &ClassicPlayerDataBit, ClassicPlayerDataGroups); + bool classicGroup32 = (classicBlocks[1] & 1) != 0; bool noQuestLogChangesMask = data.WriteBit(IsQuestLogChangesMaskSkipped()); if (changesMask[0]) @@ -2912,8 +3014,9 @@ void PlayerData::WriteUpdate(Mask const& changesMask, ByteBuffer& data, Player c { data.WriteBits(Name->size(), 6); } - data.WriteBit(DeclinedNames.has_value()); } + if (classicGroup32) // Classic group 32 also holds TaxiMountAnimKitID (TC group 0) + data.WriteBit(DeclinedNames.has_value()); data.FlushBits(); if (changesMask[32]) { @@ -5157,6 +5260,9 @@ void ActivePlayerData::WriteCreate(EnumFlag fieldVisibilityFlag { data << InvSlots[i]; } + // Classic 1.60.1.70009 has 145 InvSlots (client ActivePlayerData create reader rva 0xA882E0, count at rva 0x4E417E0) + for (uint32 i = 105; i < 145; ++i) + data << ObjectGuid::Empty; data << *FarsightObject; data << *SummonedBattlePetGUID; data << uint32(KnownTitles.size()); @@ -5226,6 +5332,7 @@ void ActivePlayerData::WriteCreate(EnumFlag fieldVisibilityFlag data << uint8(LifetimeMaxRank); data << uint8(NumRespecs); data << uint32(PvpMedals); + data << uint32(0); // Classic 1.60.1.70009: unknown uint32 (client ActivePlayerData +0x14F8) for (uint32 i = 0; i < 12; ++i) { data << uint32(BuybackPrice[i]); @@ -5233,6 +5340,7 @@ void ActivePlayerData::WriteCreate(EnumFlag fieldVisibilityFlag } data << uint16(TodayHonorableKills); data << uint16(YesterdayHonorableKills); + data << float(0.0f); // Classic 1.60.1.70009: unknown float (client ActivePlayerData +0x1500) data << uint32(LifetimeHonorableKills); data << int32(WatchedFactionIndex); for (uint32 i = 0; i < 32; ++i) @@ -5248,13 +5356,14 @@ void ActivePlayerData::WriteCreate(EnumFlag fieldVisibilityFlag { data << uint32(NoReagentCostMask[i]); } - data << int32(PetSpellPower); + // Classic 1.60.1.70009 has no PetSpellPower (client reads NoReagentCostMask[4] then ProfessionSkillLine[2]) for (uint32 i = 0; i < 2; ++i) { data << int32(ProfessionSkillLine[i]); } data << float(UiHitModifier); data << float(UiSpellHitModifier); + data << float(0.0f); // Classic 1.60.1.70009: third float before HomeRealmTimeOffset (client +0x1560) data << int32(HomeRealmTimeOffset); data << float(ModPetHaste); data << int8(JailersTowerLevelMax); @@ -5335,6 +5444,7 @@ void ActivePlayerData::WriteCreate(EnumFlag fieldVisibilityFlag data << *DungeonScore; WriteMapFieldCreate(TraitConfigs, data, receiver, owner); data << uint32(ActiveCombatTraitConfigID); + data << uint8(0); // Classic 1.60.1.70009: unknown uint8 (client ActivePlayerData, read after ActiveCombatTraitConfigID) data << uint32(CraftingOrders.size()); data << uint32(PersonalCraftingOrderCounts.size()); data << uint32(NpcCraftingOrders.size()); @@ -5350,6 +5460,7 @@ void ActivePlayerData::WriteCreate(EnumFlag fieldVisibilityFlag data << int32(ItemUpgradeHighTrinketItemID); data << float(ItemUpgradeHighTrinketWatermark); data << uint64(LootHistoryInstanceID); + data << uint8(0); // Classic 1.60.1.70009: unknown uint8 (client ActivePlayerData +0x1EA0) data << uint32(TrackedCollectableSources.size()); data << uint8(RequiredMountCapabilityFlags); WriteMapFieldCreate(DelveData, data, receiver, owner); @@ -5561,12 +5672,43 @@ void ActivePlayerData::WriteUpdate(EnumFlag fieldVisibilityFlag WriteUpdate(_changesMask, data, receiver, owner, false); } +// Classic 1.60.1.70009 ActivePlayerData changes-mask bit numbering (client update reader rva 0xA91D90, 14 blocks, classic_re/upd_bits.py): +// - group bits 0, 32, 70, 102, 134 like retail; new fields 108 (uint32 after PvpMedals), 111 (float after YesterdayHonorableKills), +// 120 (float before HomeRealmTimeOffset), 151 (uint8 after ActiveCombatTraitConfigID), 158 (uint8 after LootHistoryInstanceID); +// PetSpellPower (TC 116) removed, so NumBankSlots/NumCharacterBankTabs (TC 132/133) move into group 134 +// - TransmogMetadata has its own group: bit 166 (group) + 167 (client rva 0xA9BFF2 reads it only when both are set) +// - InvSlots has 145 entries (group 168, entries 169..313), every array after it is shifted by 45 +static uint32 ClassicActivePlayerDataBit(uint32 bit) +{ + if (bit <= 107) return bit; + if (bit <= 109) return bit + 1; + if (bit <= 115) return bit + 2; + if (bit == 116) return ~0u; // PetSpellPower + if (bit <= 118) return bit + 1; + if (bit <= 131) return bit + 2; + if (bit == 132) return 135; // NumBankSlots + if (bit == 133) return 136; // NumCharacterBankTabs + if (bit == 134) return 134; + if (bit == 135) return 137; // NumAccountBankTabs + if (bit <= 148) return bit + 2; + if (bit <= 154) return bit + 3; + if (bit <= 161) return bit + 4; // ..., ViewedOutfit (165) + if (bit <= 268) return bit + 5; // TransmogMetadata (167), InvSlots group (168) + InvSlots[0..104] (169..273) + return bit + 45; // arrays after InvSlots +} + +// Classic group bit -> last child bit +static constexpr std::array, 16> ClassicActivePlayerDataGroups = +{ { + { 0, 31 }, { 32, 69 }, { 70, 101 }, { 102, 133 }, { 134, 165 }, { 166, 167 }, { 168, 313 }, { 314, 316 }, { 317, 345 }, + { 346, 352 }, { 353, 377 }, { 378, 410 }, { 411, 415 }, { 416, 418 }, { 419, 424 }, { 425, 442 } +} }; + void ActivePlayerData::WriteUpdate(Mask const& changesMask, ByteBuffer& data, Player const* receiver, Player const* owner, bool ignoreNestedChangesMask) const { - data.WriteBits(changesMask.GetBlocksMask(0), 13); - for (uint32 i = 0; i < 13; ++i) - if (changesMask.GetBlock(i)) - data.WriteBits(changesMask.GetBlock(i), 32); + + std::array classicBlocks = WriteClassicChangesMaskHeader<14>(data, changesMask, &ClassicActivePlayerDataBit, ClassicActivePlayerDataGroups); + bool classicGroup134 = (classicBlocks[4] & (1u << (134 % 32))) != 0; if (changesMask[0]) { @@ -6823,7 +6965,7 @@ void ActivePlayerData::WriteUpdate(Mask const& changesMask, ByteBuffer& data, Pl TransmogMetadata->WriteUpdate(ignoreNestedChangesMask, data, receiver, owner); } } - if (changesMask[134]) + if (classicGroup134) // Classic group 134 also holds NumBankSlots/NumCharacterBankTabs (TC group 102) { data.WriteBit(QuestSession.has_value()); data.WriteBit(PetStable.has_value()); @@ -7203,6 +7345,7 @@ void GameObjectData::WriteCreate(EnumFlag fieldVisibilityFlags, data << float(ParentRotation->z); data << float(ParentRotation->w); data << int32(FactionTemplate); + data << int32(0); // Classic 1.60.1.70009: unknown int32 (client GameObjectData reader rva 0x4506180, +0x74) data << int8(ViewerDependentValue::GetValue(this, receiver, owner)); data << int8(TypeID); data << uint8(PercentHealth); diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index 993321d19f..b2ad6c9129 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -9043,7 +9043,9 @@ void Unit::UpdateAdvFlyingSpeed(AdvFlyingRateTypeSingle speedType, bool clientUp { FlightCapabilityEntry const* flightCapabilityEntry = sFlightCapabilityStore.LookupEntry(GetFlightCapabilityID()); if (!flightCapabilityEntry) - flightCapabilityEntry = sFlightCapabilityStore.AssertEntry(1); + flightCapabilityEntry = sFlightCapabilityStore.LookupEntry(1); + if (!flightCapabilityEntry) // Classic 1.60 data has no default flight capability (no skyriding) + return; auto [opcode, newValue, rateAura] = [&] { @@ -9104,7 +9106,9 @@ void Unit::UpdateAdvFlyingSpeed(AdvFlyingRateTypeRange speedType, bool clientUpd { FlightCapabilityEntry const* flightCapabilityEntry = sFlightCapabilityStore.LookupEntry(GetFlightCapabilityID()); if (!flightCapabilityEntry) - flightCapabilityEntry = sFlightCapabilityStore.AssertEntry(1); + flightCapabilityEntry = sFlightCapabilityStore.LookupEntry(1); + if (!flightCapabilityEntry) // Classic 1.60 data has no default flight capability (no skyriding) + return; auto [opcode, min, max, rateAura] = [&] { diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp index 29b2e7e905..9c48c9ad2b 100644 --- a/src/server/game/Globals/ObjectMgr.cpp +++ b/src/server/game/Globals/ObjectMgr.cpp @@ -604,6 +604,41 @@ void ObjectMgr::LoadCreatureTemplateSpells() TC_LOG_INFO("server.loading", ">> Loaded {} creature template spells in {} ms", count, GetMSTimeDiffToNow(oldMSTime)); } +// Classic 1.60.1.70009: fixed vanilla creature levels (imported from VMaNGOS), used instead of ContentTuning level scaling +void ObjectMgr::LoadCreatureClassicLevels() +{ + uint32 oldMSTime = getMSTime(); + + _creatureClassicLevelStore.clear(); + + // 0 1 2 + QueryResult result = WorldDatabase.Query("SELECT entry, level_min, level_max FROM creature_classic_level"); + if (!result) + { + TC_LOG_INFO("server.loading", ">> Loaded 0 classic creature levels. DB table `creature_classic_level` is empty."); + return; + } + + do + { + Field* fields = result->Fetch(); + uint32 entry = fields[0].GetUInt32(); + uint8 levelMin = std::max(fields[1].GetUInt8(), 1); + uint8 levelMax = std::max(fields[2].GetUInt8(), levelMin); + if (!GetCreatureTemplate(entry)) + continue; + + _creatureClassicLevelStore[entry] = { levelMin, levelMax }; + } while (result->NextRow()); + + TC_LOG_INFO("server.loading", ">> Loaded {} classic creature levels in {} ms", _creatureClassicLevelStore.size(), GetMSTimeDiffToNow(oldMSTime)); +} + +std::pair const* ObjectMgr::GetCreatureClassicLevel(uint32 entry) const +{ + return Trinity::Containers::MapGetValuePtr(_creatureClassicLevelStore, entry); +} + void ObjectMgr::LoadCreatureTemplateModels() { uint32 oldMSTime = getMSTime(); diff --git a/src/server/game/Globals/ObjectMgr.h b/src/server/game/Globals/ObjectMgr.h index 8b1b78a8cd..ffbc324506 100644 --- a/src/server/game/Globals/ObjectMgr.h +++ b/src/server/game/Globals/ObjectMgr.h @@ -1042,6 +1042,7 @@ class TC_GAME_API ObjectMgr CreatureModelInfo const* GetCreatureModelInfo(uint32 modelId) const; CreatureModelInfo const* GetCreatureModelRandomGender(CreatureModel* model, CreatureTemplate const* creatureTemplate) const; CreatureSummonedData const* GetCreatureSummonedData(uint32 entryId) const; + std::pair const* GetCreatureClassicLevel(uint32 entry) const; static CreatureModel const* ChooseDisplayId(CreatureTemplate const* cinfo, CreatureData const* data = nullptr); static void ChooseCreatureFlags(CreatureTemplate const* cInfo, uint64* npcFlags, uint32* unitFlags, uint32* unitFlags2, uint32* unitFlags3, CreatureStaticFlagsHolder const& staticFlags, CreatureData const* data = nullptr); EquipmentInfo const* GetEquipmentInfo(uint32 entry, int8& id) const; @@ -1217,6 +1218,7 @@ class TC_GAME_API ObjectMgr void LoadCreatureClassLevelStats(); void LoadCreatureLocales(); void LoadCreatureTemplates(); + void LoadCreatureClassicLevels(); void LoadCreatureTemplateAddons(); void LoadCreatureTemplateSparring(); void LoadCreatureTemplate(Field* fields); @@ -1806,6 +1808,7 @@ class TC_GAME_API ObjectMgr MapPersonalObjectGuids _mapPersonalObjectGuidsStore; CreatureDataContainer _creatureDataStore; CreatureTemplateContainer _creatureTemplateStore; + std::unordered_map> _creatureClassicLevelStore; CreatureModelContainer _creatureModelStore; std::unordered_map _creatureSummonedDataStore; CreatureAddonContainer _creatureAddonStore; diff --git a/src/server/game/Handlers/CharacterHandler.cpp b/src/server/game/Handlers/CharacterHandler.cpp index 518d9fac76..e855c89f48 100644 --- a/src/server/game/Handlers/CharacterHandler.cpp +++ b/src/server/game/Handlers/CharacterHandler.cpp @@ -504,6 +504,17 @@ void WorldSession::HandleCharEnum(CharacterDatabaseQueryHolder const& holder) SendPacket(charEnum.Write()); + // Classic 1.60.1.70009: character select keeps the enum result pending (never shows the characters) until it receives + // Classic opcode 0x460362 (retail numbering: SMSG_RECENT_ALLY_DATA_RESPONSE), whose handler (rva 0x24F1E50) releases it. + // Layout: uint32, uint8 (handler only uses the list when this is 7), uint32 count, entries - send it empty. + { + WorldPacket release(SMSG_RECENT_ALLY_DATA_RESPONSE, 9); + release << uint32(0); + release << uint8(0); + release << uint32(0); + SendPacket(&release, true); + } + if (!charEnum.IsDeletedCharacters) _collectionMgr->SendWarbandSceneCollectionData(); } @@ -1297,6 +1308,14 @@ void WorldSession::HandlePlayerLogin(LoginQueryHolder const& holder) chH.PSendSysMessage("%s", sWorld->GetNewCharString().c_str()); } + // Classic 1.60.1.70009: start positions imported from client recordings have no height (-15000); use the ground below + if (pCurrChar->GetPositionZ() <= -14999.0f) + { + float z = pCurrChar->GetMap()->GetClassicSpawnHeight(pCurrChar->GetPhaseShift(), pCurrChar->GetPositionX(), pCurrChar->GetPositionY()); + if (z > INVALID_HEIGHT) + pCurrChar->Relocate(pCurrChar->GetPositionX(), pCurrChar->GetPositionY(), z + 0.5f, pCurrChar->GetOrientation()); + } + if (!pCurrChar->GetMap()->AddPlayerToMap(pCurrChar)) { if (AreaTriggerTeleport const* at = sObjectMgr->GetGoBackTrigger(pCurrChar->GetMapId())) diff --git a/src/server/game/Handlers/MiscHandler.cpp b/src/server/game/Handlers/MiscHandler.cpp index 7fa5ce11f0..c21b553285 100644 --- a/src/server/game/Handlers/MiscHandler.cpp +++ b/src/server/game/Handlers/MiscHandler.cpp @@ -779,6 +779,10 @@ void WorldSession::HandleSetActionButtonOpcode(WorldPackets::Spells::SetActionBu TC_LOG_DEBUG("network", "CMSG_SET_ACTION_BUTTON Button: {} Action: {} Type: {}", packet.Index, action, uint32(type)); + // Classic 1.60.1.70009 has 360 action buttons, the server stores MAX_ACTION_BUTTONS + if (packet.Index >= MAX_ACTION_BUTTONS) + return; + if (!packet.Action) GetPlayer()->RemoveActionButton(packet.Index); else diff --git a/src/server/game/Maps/Map.cpp b/src/server/game/Maps/Map.cpp index e4349f410a..702e8832f0 100644 --- a/src/server/game/Maps/Map.cpp +++ b/src/server/game/Maps/Map.cpp @@ -1737,6 +1737,28 @@ float Map::GetStaticHeight(PhaseShift const& phaseShift, float x, float y, float return m_terrain->GetStaticHeight(phaseShift, GetId(), x, y, z, checkVMap, maxSearchDist); } +// Classic 1.60.1.70009: spawns imported from client recordings have no height (the client API reports z = 0). +// Walk down through every surface at x,y (tree canopies, roofs, upper floors) and keep the lowest one that is not below the terrain +float Map::GetClassicSpawnHeight(PhaseShift const& phaseShift, float x, float y) +{ + float const terrain = GetGridHeight(phaseShift, x, y); + float best = INVALID_HEIGHT; + float start = 3000.0f; + for (uint32 i = 0; i < 64; ++i) + { + float z = GetHeight(phaseShift, x, y, start, true, 5000.0f); + if (z <= INVALID_HEIGHT || z >= start) + break; + + if (terrain > INVALID_HEIGHT && z < terrain - 1.0f) + break; // caves / tunnels below the ground + + best = z; + start = z - 2.5f; + } + return best; +} + float Map::GetWaterLevel(PhaseShift const& phaseShift, float x, float y) { return m_terrain->GetWaterLevel(phaseShift, GetId(), x, y); diff --git a/src/server/game/Maps/Map.h b/src/server/game/Maps/Map.h index 9e994d891a..11c5b7aa60 100644 --- a/src/server/game/Maps/Map.h +++ b/src/server/game/Maps/Map.h @@ -324,6 +324,7 @@ class TC_GAME_API Map : public GridRefManager float GetMinHeight(PhaseShift const& phaseShift, float x, float y); float GetGridHeight(PhaseShift const& phaseShift, float x, float y); + float GetClassicSpawnHeight(PhaseShift const& phaseShift, float x, float y); float GetStaticHeight(PhaseShift const& phaseShift, float x, float y, float z, bool checkVMap = true, float maxSearchDist = DEFAULT_HEIGHT_SEARCH); float GetStaticHeight(PhaseShift const& phaseShift, Position const& pos, bool checkVMap = true, float maxSearchDist = DEFAULT_HEIGHT_SEARCH) { return GetStaticHeight(phaseShift, pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), checkVMap, maxSearchDist); } float GetHeight(PhaseShift const& phaseShift, float x, float y, float z, bool vmap = true, float maxSearchDist = DEFAULT_HEIGHT_SEARCH) { return std::max(GetStaticHeight(phaseShift, x, y, z, vmap, maxSearchDist), GetGameObjectFloor(phaseShift, x, y, z, maxSearchDist)); } diff --git a/src/server/game/Maps/TransportMgr.cpp b/src/server/game/Maps/TransportMgr.cpp index 67427773ad..20ca454c6e 100644 --- a/src/server/game/Maps/TransportMgr.cpp +++ b/src/server/game/Maps/TransportMgr.cpp @@ -225,6 +225,13 @@ void TransportMgr::LoadTransportTemplates() if (!goInfo->moTransport.taxiPathID) continue; + // retail world DB transports may use taxi paths that have no nodes in Classic (1.60+) client data + if (sTaxiPathNodesByPath[goInfo->moTransport.taxiPathID].empty()) + { + TC_LOG_ERROR("sql.sql", "Transport {} (name: {}) uses taxi path {} which has no nodes in TaxiPathNode.db2, skipped.", entry, goInfo->name, goInfo->moTransport.taxiPathID); + continue; + } + // paths are generated per template, saves us from generating it again in case of instanced transports TransportTemplate& transport = _transportTemplates[entry]; diff --git a/src/server/game/Miscellaneous/RaceMask.h b/src/server/game/Miscellaneous/RaceMask.h index 395d595353..71f170a2b1 100644 --- a/src/server/game/Miscellaneous/RaceMask.h +++ b/src/server/game/Miscellaneous/RaceMask.h @@ -83,6 +83,8 @@ enum Races //RACE_ROSTRUM_AIRSHIP_SEASON_2 = 90, RACE_HARANIR_HORDE = 91, // TITLE Haranir DESCRIPTION Haranir (Horde) (RaceMask bit 19) //RACE_ROSTRUM_AIRSHIP_SEASON_3 = 92, + RACE_SKYBORNE_ALLIANCE = 95, // TITLE Skyborne DESCRIPTION High Order Skyborne (Alliance, Classic 1.60) (RaceMask bit 32) + RACE_SKYBORNE_HORDE = 96, // TITLE Skyborne DESCRIPTION Windshaper Skyborne (Horde, Classic 1.60) (RaceMask bit 33) }; namespace Trinity @@ -140,6 +142,10 @@ struct RaceMask return 19; case RACE_HARANIR_ALLIANCE: return 20; + case RACE_SKYBORNE_ALLIANCE: // Classic 1.60.1.70009 ChrRaces::PlayableRaceBit + return 32; + case RACE_SKYBORNE_HORDE: + return 33; default: break; } @@ -263,7 +269,9 @@ inline constexpr Trinity::RaceMask RACEMASK_ALL_PLAYABLE_v = Trinity::RaceMask::GetMaskForRace(RACE_EARTHEN_DWARF_HORDE) | Trinity::RaceMask::GetMaskForRace(RACE_EARTHEN_DWARF_ALLIANCE) | Trinity::RaceMask::GetMaskForRace(RACE_HARANIR_ALLIANCE) | - Trinity::RaceMask::GetMaskForRace(RACE_HARANIR_HORDE); + Trinity::RaceMask::GetMaskForRace(RACE_HARANIR_HORDE) | + Trinity::RaceMask::GetMaskForRace(RACE_SKYBORNE_ALLIANCE) | + Trinity::RaceMask::GetMaskForRace(RACE_SKYBORNE_HORDE); template inline constexpr Trinity::RaceMask RACEMASK_NEUTRAL_v = Trinity::RaceMask::GetMaskForRace(RACE_PANDAREN_NEUTRAL); @@ -284,7 +292,8 @@ inline constexpr Trinity::RaceMask RACEMASK_ALLIANCE_v = Trinity::RaceMask::GetMaskForRace(RACE_MECHAGNOME) | Trinity::RaceMask::GetMaskForRace(RACE_DRACTHYR_ALLIANCE) | Trinity::RaceMask::GetMaskForRace(RACE_EARTHEN_DWARF_ALLIANCE) | - Trinity::RaceMask::GetMaskForRace(RACE_HARANIR_ALLIANCE); + Trinity::RaceMask::GetMaskForRace(RACE_HARANIR_ALLIANCE) | + Trinity::RaceMask::GetMaskForRace(RACE_SKYBORNE_ALLIANCE); template inline constexpr Trinity::RaceMask RACEMASK_HORDE_v = RACEMASK_ALL_PLAYABLE_v & ~(RACEMASK_NEUTRAL_v | RACEMASK_ALLIANCE_v); diff --git a/src/server/game/Miscellaneous/enuminfo_RaceMask.cpp b/src/server/game/Miscellaneous/enuminfo_RaceMask.cpp index 0222be5519..b83e519608 100644 --- a/src/server/game/Miscellaneous/enuminfo_RaceMask.cpp +++ b/src/server/game/Miscellaneous/enuminfo_RaceMask.cpp @@ -62,12 +62,14 @@ TC_API_EXPORT EnumText EnumUtils::ToString(Races value) case RACE_EARTHEN_DWARF_ALLIANCE: return { "RACE_EARTHEN_DWARF_ALLIANCE", "Earthen", "Earthen (Alliance) (RaceMask bit 18)" }; case RACE_HARANIR_ALLIANCE: return { "RACE_HARANIR_ALLIANCE", "Haranir", "Haranir (Alliance) (RaceMask bit 20)" }; case RACE_HARANIR_HORDE: return { "RACE_HARANIR_HORDE", "Haranir", "Haranir (Horde) (RaceMask bit 19)" }; + case RACE_SKYBORNE_ALLIANCE: return { "RACE_SKYBORNE_ALLIANCE", "Skyborne", "High Order Skyborne (Alliance, Classic 1.60) (RaceMask bit 32)" }; + case RACE_SKYBORNE_HORDE: return { "RACE_SKYBORNE_HORDE", "Skyborne", "Windshaper Skyborne (Horde, Classic 1.60) (RaceMask bit 33)" }; default: throw std::out_of_range("value"); } } template <> -TC_API_EXPORT size_t EnumUtils::Count() { return 31; } +TC_API_EXPORT size_t EnumUtils::Count() { return 33; } template <> TC_API_EXPORT Races EnumUtils::FromIndex(size_t index) @@ -105,6 +107,8 @@ TC_API_EXPORT Races EnumUtils::FromIndex(size_t index) case 28: return RACE_EARTHEN_DWARF_ALLIANCE; case 29: return RACE_HARANIR_ALLIANCE; case 30: return RACE_HARANIR_HORDE; + case 31: return RACE_SKYBORNE_ALLIANCE; + case 32: return RACE_SKYBORNE_HORDE; default: throw std::out_of_range("index"); } } @@ -145,6 +149,8 @@ TC_API_EXPORT size_t EnumUtils::ToIndex(Races value) case RACE_EARTHEN_DWARF_ALLIANCE: return 28; case RACE_HARANIR_ALLIANCE: return 29; case RACE_HARANIR_HORDE: return 30; + case RACE_SKYBORNE_ALLIANCE: return 31; + case RACE_SKYBORNE_HORDE: return 32; default: throw std::out_of_range("value"); } } diff --git a/src/server/game/Scripting/ScriptMgr.cpp b/src/server/game/Scripting/ScriptMgr.cpp index ee4c5e2be4..f2d6ec29d8 100644 --- a/src/server/game/Scripting/ScriptMgr.cpp +++ b/src/server/game/Scripting/ScriptMgr.cpp @@ -1301,8 +1301,9 @@ ScriptMgr* ScriptMgr::instance() void ScriptMgr::Initialize() { - ASSERT(sSpellMgr->GetSpellInfo(SPELL_HOTSWAP_VISUAL_SPELL_EFFECT, DIFFICULTY_NONE) - && "Reload hotswap spell effect for creatures isn't valid!"); + // Not present in Classic (1.60+) client data; only used as a visual when hotswapping scripts + if (!sSpellMgr->GetSpellInfo(SPELL_HOTSWAP_VISUAL_SPELL_EFFECT, DIFFICULTY_NONE)) + TC_LOG_WARN("server.loading", "Reload hotswap spell effect {} for creatures isn't valid!", uint32(SPELL_HOTSWAP_VISUAL_SPELL_EFFECT)); uint32 oldMSTime = getMSTime(); diff --git a/src/server/game/Server/Packets/CharacterPackets.cpp b/src/server/game/Server/Packets/CharacterPackets.cpp index 309b4fef91..7013864c95 100644 --- a/src/server/game/Server/Packets/CharacterPackets.cpp +++ b/src/server/game/Server/Packets/CharacterPackets.cpp @@ -255,11 +255,16 @@ ByteBuffer& operator<<(ByteBuffer& data, EnumCharactersResult::CharacterInfoBasi data << int32(charInfo.TimerunningSeasonID); data << uint32(charInfo.OverrideSelectScreenFileDataID); data << uint32(charInfo.RealmQueue); + data << int32(1); // Classic 1.60.1.70009: unknown int32 (client reader rva 0x7F0669), testing as SuperDistrictID (Normal = 1); 137 (content set) did not show the character for (ChrCustomizationChoice const& customization : charInfo.Customizations) data << customization; + // Classic 1.60.1.70009: Surname (max 48 chars) follows Name; character select shows it after the name ("Name Surname") + std::string surname; + data << SizedString::BitsSize<6>(charInfo.Name); + data << SizedString::BitsSize<6>(surname); data << Bits<1>(charInfo.FirstLogin); data << Bits<1>(charInfo.RealmInfoFound); data << Bits<1>(charInfo.IsRealmOffline); @@ -267,6 +272,7 @@ ByteBuffer& operator<<(ByteBuffer& data, EnumCharactersResult::CharacterInfoBasi data.FlushBits(); data << SizedString::Data(charInfo.Name); + data << SizedString::Data(surname); return data; } @@ -455,9 +461,16 @@ WorldPacket const* EnumCharactersResult::Write() void CheckCharacterNameAvailability::Read() { _worldPacket >> SequenceIndex; + // Classic 1.60.1.70009: 6 bit name length, 3 unknown bits, 6 bit surname length, then name and surname data + // (e.g. "gear" + "fd": 10 04 67656172 6664) + std::string surname; _worldPacket >> SizedString::BitsSize<6>(Name); + _worldPacket.ReadBits(3); + _worldPacket >> SizedString::BitsSize<6>(surname); + _worldPacket.ResetBitPos(); _worldPacket >> SizedString::Data(Name); + _worldPacket >> SizedString::Data(surname); } WorldPacket const* CheckCharacterNameAvailabilityResult::Write() @@ -472,17 +485,25 @@ void CreateCharacter::Read() { CreateInfo = std::make_shared(); + // Classic 1.60.1.70009: 2 unknown bits and a 6 bit surname length after the flags, an unknown int32 (-1) before + // TimerunningSeasonID and the surname after the name (captured: 08 00 80 | 5f 0b 01 | 12000000 ffffffff 00000000 | "Df" "Df") + std::string surname; _worldPacket >> SizedString::BitsSize<6>(CreateInfo->Name); _worldPacket >> OptionalInit(CreateInfo->TemplateSet); _worldPacket >> Bits<1>(CreateInfo->IsTrialBoost); _worldPacket >> Bits<1>(CreateInfo->UseNPE); _worldPacket >> Bits<1>(CreateInfo->HardcoreSelfFound); + _worldPacket.ReadBits(2); + _worldPacket >> SizedString::BitsSize<6>(surname); + _worldPacket.ResetBitPos(); _worldPacket >> CreateInfo->Race; _worldPacket >> CreateInfo->Class; _worldPacket >> CreateInfo->Sex; _worldPacket >> Size(CreateInfo->Customizations); + _worldPacket.read_skip(); _worldPacket >> CreateInfo->TimerunningSeasonID; _worldPacket >> SizedString::Data(CreateInfo->Name); + _worldPacket >> SizedString::Data(surname); if (CreateInfo->TemplateSet) _worldPacket >> *CreateInfo->TemplateSet; @@ -709,7 +730,9 @@ WorldPacket const* CharacterLoginFailed::Write() void LogoutRequest::Read() { - _worldPacket >> Bits<1>(IdleLogout); + // Classic 1.60.1.70009 sends an empty payload + if (_worldPacket.size() > _worldPacket.rpos()) + _worldPacket >> Bits<1>(IdleLogout); } WorldPacket const* LogoutResponse::Write() diff --git a/src/server/game/Server/Packets/NPCPackets.cpp b/src/server/game/Server/Packets/NPCPackets.cpp index f42e931003..5cc811c50e 100644 --- a/src/server/game/Server/Packets/NPCPackets.cpp +++ b/src/server/game/Server/Packets/NPCPackets.cpp @@ -172,13 +172,16 @@ WorldPacket const* TrainerList::Write() _worldPacket << Size(Spells); for (TrainerListSpell const& spell : Spells) { + // Classic 1.60.1.70009 (client decoder rva 0x8162E0, 33 bytes per spell): Usable follows ReqSkillLine, ReqLevel is a uint32 + // after ReqSkillRank, nothing after ReqAbility _worldPacket << int32(spell.SpellID); _worldPacket << uint32(spell.MoneyCost); _worldPacket << uint32(spell.ReqSkillLine); + // Classic uses the vanilla state order: 0 = available (green), 1 = unavailable (red), 2 = known (grey); TC: 0 known, 1 available, 2 unavailable + _worldPacket << uint8(spell.Usable == 0 ? 2 : spell.Usable - 1); _worldPacket << uint32(spell.ReqSkillRank); + _worldPacket << uint32(spell.ReqLevel); _worldPacket.append(spell.ReqAbility.data(), spell.ReqAbility.size()); - _worldPacket << uint8(spell.Usable); - _worldPacket << uint8(spell.ReqLevel); } _worldPacket << SizedString::BitsSize<11>(Greeting); diff --git a/src/server/game/Server/Packets/QueryPackets.cpp b/src/server/game/Server/Packets/QueryPackets.cpp index 4b4a380074..dab7dace49 100644 --- a/src/server/game/Server/Packets/QueryPackets.cpp +++ b/src/server/game/Server/Packets/QueryPackets.cpp @@ -63,16 +63,22 @@ namespace WorldPackets::Query { void QueryCreature::Read() { + // Classic 1.60.1.70009 sends 5 bytes: an extra leading byte, then the creature id + if (_worldPacket.size() - _worldPacket.rpos() == 5) + _worldPacket.read_skip(); _worldPacket >> CreatureID; } WorldPacket const* QueryCreatureResponse::Write() { - _worldPacket << uint32(CreatureID); - _worldPacket << Bits<1>(Allow); - + // Classic 1.60.1.70009 batches creature queries: 6-bit entry count (flushed), then per entry the retail layout below + // (client decoder rva 0xA0D800; CMSG_QUERY_CREATURE also starts with the count byte, 0x04 = 1 entry) + _worldPacket << Bits<6>(1); _worldPacket.FlushBits(); + _worldPacket << uint32(CreatureID); + _worldPacket << uint8(Allow ? 0 : 1); // Classic: result byte, stats follow only when it is 0 (retail: Allow bit) + if (Allow) { _worldPacket << SizedCString::BitsSize<11>(Stats.Title); diff --git a/src/server/game/Server/Packets/QuestPackets.cpp b/src/server/game/Server/Packets/QuestPackets.cpp index 547a7592c5..c863bb3b48 100644 --- a/src/server/game/Server/Packets/QuestPackets.cpp +++ b/src/server/game/Server/Packets/QuestPackets.cpp @@ -86,7 +86,12 @@ WorldPacket const* QueryQuestInfoResponse::Write() if (Allow) { + // Classic 1.60.1.70009: two unknown int32 after QuestID (client QuestInfo reader rva 0x961170 reads 11 int32 before + // RewardXPMultiplier, retail 9; without them the client shows QuestPackageID in the title and QuestSortID 0 = "Unsorted", + // putting them before QuestID makes the quest disappear from the log) _worldPacket << int32(Info.QuestID); + _worldPacket << int32(0); + _worldPacket << int32(0); _worldPacket << int32(Info.QuestType); _worldPacket << int32(Info.QuestPackageID); _worldPacket << int32(Info.ContentTuningID); diff --git a/src/server/game/Server/Packets/SpellPackets.cpp b/src/server/game/Server/Packets/SpellPackets.cpp index c091fee950..230b33458a 100644 --- a/src/server/game/Server/Packets/SpellPackets.cpp +++ b/src/server/game/Server/Packets/SpellPackets.cpp @@ -65,6 +65,9 @@ WorldPacket const* SendKnownSpells::Write() WorldPacket const* UpdateActionButtons::Write() { _worldPacket.append(ActionButtons.data(), ActionButtons.size()); + // Classic 1.60.1.70009 has 360 saved action buttons (decoder asserts datasize == 8 * 360 + 1), pad the unused ones + for (std::size_t i = ActionButtons.size(); i < ClassicNumActionButtons; ++i) + _worldPacket << uint64(0); _worldPacket << Reason; return &_worldPacket; @@ -72,8 +75,11 @@ WorldPacket const* UpdateActionButtons::Write() void SetActionButton::Read() { + // Classic 1.60.1.70009: uint16 button index (360 buttons); indices past 255 are clamped (the handler ignores >= MAX_ACTION_BUTTONS) + uint16 index = 0; _worldPacket >> Action; - _worldPacket >> Index; + _worldPacket >> index; + Index = uint8(std::min(index, 255)); } WorldPacket const* SendUnlearnSpells::Write() diff --git a/src/server/game/Server/Packets/SpellPackets.h b/src/server/game/Server/Packets/SpellPackets.h index a7b7a87092..9d46a7a4ca 100644 --- a/src/server/game/Server/Packets/SpellPackets.h +++ b/src/server/game/Server/Packets/SpellPackets.h @@ -121,8 +121,9 @@ namespace WorldPackets { public: static std::size_t constexpr NumActionButtons = 180; + static std::size_t constexpr ClassicNumActionButtons = 360; - explicit UpdateActionButtons() : ServerPacket(SMSG_UPDATE_ACTION_BUTTONS, NumActionButtons * 8 + 1) { } + explicit UpdateActionButtons() : ServerPacket(SMSG_UPDATE_ACTION_BUTTONS, ClassicNumActionButtons * 8 + 1) { } WorldPacket const* Write() override; diff --git a/src/server/game/Server/Packets/SystemPackets.cpp b/src/server/game/Server/Packets/SystemPackets.cpp index 31c23f2818..d651773cd5 100644 --- a/src/server/game/Server/Packets/SystemPackets.cpp +++ b/src/server/game/Server/Packets/SystemPackets.cpp @@ -134,7 +134,7 @@ WorldPacket const* FeatureSystemStatus::Write() _worldPacket << uint32(RAFSystem.RewardsVersion); _worldPacket << uint32(CommercePricePollTimeSeconds); - _worldPacket << uint32(KioskSessionDurationMinutes); + // Classic 1.60.1.70009 (client reader rva 0x7F9200): no KioskSessionDurationMinutes _worldPacket << QuickJoinConfig; _worldPacket << int64(RedeemForBalanceAmount); @@ -144,6 +144,7 @@ WorldPacket const* FeatureSystemStatus::Write() _worldPacket << Squelch; _worldPacket << int32(ContentSetID); + _worldPacket << int32(0); // Classic 1.60.1.70009: unknown int32 after ContentSetID _worldPacket << Size(DisabledGameModes); _worldPacket << Size(GameRules); _worldPacket << int32(ActiveTimerunningSeasonID); @@ -243,6 +244,41 @@ WorldPacket const* FeatureSystemStatus::Write() return &_worldPacket; } +WorldPacket const* FeatureSystemStatusGlueScreen::Write() +{ + // WoW Classic 1.60.1.70009 layout, from the client's reader (0x7F9E70): 6 bytes of flags (their order differs from retail and is not + // mapped yet, so all flags are sent as off), no KioskSessionDurationMinutes, array elements directly after the counts. + // Retail flags misread by the Classic client enabled the Timerunning (Remix) UI and disabled character creation. + for (int32 i = 0; i < 6; ++i) + _worldPacket << uint8(0); + + _worldPacket << uint32(CommercePricePollTimeSeconds); + _worldPacket << int64(RedeemForBalanceAmount); + _worldPacket << int32(MaxCharactersOnThisRealm); + _worldPacket << uint32(0); // LiveRegionCharacterCopySourceRegions + _worldPacket << int32(ActiveBoostType); + _worldPacket << int32(TrialBoostType); + _worldPacket << int32(MinimumExpansionLevel); + _worldPacket << int32(MaximumExpansionLevel); + _worldPacket << int32(ContentSetID); + _worldPacket << uint32(0); // DisabledGameModes + _worldPacket << uint32(0); // GameRules + _worldPacket << uint32(0); // AvailableGameModeIDs + _worldPacket << int32(0); // ActiveTimerunningSeasonID + _worldPacket << int32(0); // RemainingTimerunningSeasonSeconds + _worldPacket << TimerunningConversionMinCharacterAge; + _worldPacket << int32(TimerunningConversionMaxSeasonID); + _worldPacket << int16(MaxPlayerGuidLookupsPerRequest); + _worldPacket << int16(NameLookupTelemetryInterval); + _worldPacket << NotFoundCacheTimeSeconds; + _worldPacket << uint32(0); // DebugTimeEvents + _worldPacket << int32(MostRecentTimeEventID); + _worldPacket << uint32(EventRealmQueues); + + return &_worldPacket; +} + +#if 0 // retail 12.1 layout, kept for reference WorldPacket const* FeatureSystemStatusGlueScreen::Write() { _worldPacket << Bits<1>(BpayStoreAvailable); @@ -336,6 +372,7 @@ WorldPacket const* FeatureSystemStatusGlueScreen::Write() return &_worldPacket; } +#endif ByteBuffer& operator<<(ByteBuffer& data, MirrorVarSingle const& variable) { diff --git a/src/server/game/Server/Protocol/ClassicClientOpcodes.inc b/src/server/game/Server/Protocol/ClassicClientOpcodes.inc new file mode 100644 index 0000000000..7d10a5628f --- /dev/null +++ b/src/server/game/Server/Protocol/ClassicClientOpcodes.inc @@ -0,0 +1,679 @@ +// Generated by classic_re/align_cmsg.py + cmsg_corrections.json: Classic 1.60.1.70009 client opcode -> retail (TrinityCore) opcode. + { 0x2B0002, 0x2A0002 }, // CMSG_BATTLE_PET_CLEAR_FANFARE (3.8) + { 0x2B0003, 0x2A0003 }, // CMSG_MOUNT_CLEAR_FANFARE (0.0) + { 0x2B0004, 0x2A0004 }, // CMSG_TOY_CLEAR_FANFARE (3.8) + { 0x2B0005, 0x2A0005 }, // CMSG_CLEAR_NEW_APPEARANCE (0.0) + { 0x2B0017, 0x2A0017 }, // CMSG_PERKS_PROGRAM_REQUEST_PENDING_REWARDS (0.0) + { 0x2B0018, 0x2A0018 }, // CMSG_PERKS_PROGRAM_GET_RECENT_PURCHASES (0.0) + { 0x2B001E, 0x2A001E }, // CMSG_REQUEST_CURRENCY_DATA_FOR_ACCOUNT_CHARACTERS (0.0) + { 0x2B001F, 0x2A001F }, // CMSG_GET_CHARACTER_CURRENCY_TRANSFER_LOG (0.0) + { 0x2B0023, 0x2A0023 }, // CMSG_REQUEST_STORE_FRONT_INFO_UPDATE (0.0) + { 0x2B0031, 0x2A0031 }, // CMSG_GET_DECOR_REFUND_LIST (0.0) + { 0x2B0032, 0x2A0032 }, // CMSG_BULK_PURCHASE (0.0) + { 0x2B0033, 0x2A0033 }, // CMSG_BULK_REFUND (0.0) + { 0x2B0034, 0x2A0034 }, // CMSG_GET_ALL_LICENSED_DECOR_QUANTITIES (0.0) + { 0x2B0035, 0x2A0035 }, // CMSG_UPDATE_LAST_CATALOG_FETCH (0.0) + { 0x2B0036, 0x2A0036 }, // CMSG_GET_LAST_CATALOG_FETCH (0.0) + { 0x2D0001, 0x2C0001 }, // CMSG_CHAT_LEAVE_CHANNEL (1.8) + { 0x2D0003, 0x2C0003 }, // CMSG_CHAT_REPORT_IGNORED (4.6) + { 0x2D0004, 0x2C0004 }, // CMSG_CHAT_REPORT_FILTERED (0.0) + { 0x2D0006, 0x2C0006 }, // CMSG_CHAT_UNREGISTER_ALL_ADDON_PREFIXES (0.0) + { 0x2D0007, 0x2C0007 }, // CMSG_CHAT_MESSAGE_CHANNEL (1.0) + { 0x2D0008, 0x2C0008 }, // CMSG_CHAT_MESSAGE_WHISPER (-0.1) + { 0x2D0009, 0x2C0009 }, // CMSG_CHAT_SEND_CAUTIONARY_CHAT_MESSAGE (0.0) + { 0x2D000A, 0x2C000A }, // CMSG_CHAT_DROP_CAUTIONARY_CHAT_MESSAGE (0.0) + { 0x2D000B, 0x2C000B }, // CMSG_CHAT_SEND_CAUTIONARY_CHANNEL_MESSAGE (0.0) + { 0x2D000D, 0x2C000D }, // CMSG_CHAT_MESSAGE_GUILD (1.8) + { 0x2D000E, 0x2C000E }, // CMSG_CHAT_MESSAGE_OFFICER (1.8) + { 0x2D000F, 0x2C0011 }, // CMSG_CHAT_CHANNEL_LIST (1.0) + { 0x2D0010, 0x2C0012 }, // CMSG_CHAT_CHANNEL_DISPLAY_LIST (1.0) + { 0x2E0002, 0x2D0002 }, // CMSG_CHALLENGE_MODE_REQUEST_LEADERS (0.0) + { 0x2F0000, 0x2E0000 }, // CMSG_GUILD_PROMOTE_MEMBER (3.8) + { 0x2F0001, 0x2E0001 }, // CMSG_GUILD_DEMOTE_MEMBER (3.8) + { 0x2F0002, 0x2E0002 }, // CMSG_GUILD_ASSIGN_MEMBER_RANK (4.6) + { 0x2F0003, 0x2E0003 }, // CMSG_GUILD_LEAVE (0.0) + { 0x2F0004, 0x2E0004 }, // CMSG_GUILD_OFFICER_REMOVE_MEMBER (3.8) + { 0x2F0005, 0x2E0005 }, // CMSG_GUILD_ADD_RANK (1.0) + { 0x2F0006, 0x2E0006 }, // CMSG_GUILD_DELETE_RANK (3.8) + { 0x2F0008, 0x2E0008 }, // CMSG_GUILD_SET_RANK_PERMISSIONS (1.0) + { 0x2F0009, 0x2E0009 }, // CMSG_GUILD_DELETE (0.0) + { 0x2F000A, 0x2E000A }, // CMSG_GUILD_QUERY_MEMBER_RECIPES (0.0) + { 0x2F000B, 0x2E000B }, // CMSG_GUILD_QUERY_RECIPES (0.0) + { 0x2F000C, 0x2E000C }, // CMSG_GUILD_QUERY_MEMBERS_FOR_RECIPE (0.0) + { 0x2F000D, 0x2E000D }, // CMSG_GUILD_QUERY_NEWS (3.8) + { 0x2F000E, 0x2E000E }, // CMSG_GUILD_GET_RANKS (3.8) + { 0x2F000F, 0x2E000F }, // CMSG_GUILD_NEWS_UPDATE_STICKY (0.0) + { 0x2F0010, 0x2E0010 }, // CMSG_GUILD_SET_ACHIEVEMENT_TRACKING (0.0) + { 0x2F0011, 0x2E0011 }, // CMSG_GUILD_SET_FOCUSED_ACHIEVEMENT (3.8) + { 0x2F0012, 0x2E0012 }, // CMSG_GUILD_GET_ACHIEVEMENT_MEMBERS (5.4) + { 0x2F0013, 0x2E0013 }, // CMSG_GUILD_SET_MEMBER_NOTE (1.8) + { 0x2F0014, 0x2E0014 }, // CMSG_GUILD_GET_ROSTER (0.0) + { 0x2F0015, 0x2E0015 }, // CMSG_GUILD_UPDATE_MOTD_TEXT (1.0) + { 0x2F0016, 0x2E0016 }, // CMSG_GUILD_UPDATE_INFO_TEXT (1.0) + { 0x2F0017, 0x2E0017 }, // CMSG_GUILD_CHALLENGE_UPDATE_REQUEST (0.0) + { 0x2F0018, 0x2E0018 }, // CMSG_GUILD_CHANGE_NAME_REQUEST (0.0) + { 0x2F0019, 0x2E0019 }, // CMSG_GUILD_BANK_LOG_QUERY (3.8) + { 0x2F001A, 0x2E001A }, // CMSG_GUILD_BANK_REMAINING_WITHDRAW_MONEY_QUERY (0.0) + { 0x2F001B, 0x2E001B }, // CMSG_GUILD_PERMISSIONS_QUERY (0.0) + { 0x2F001C, 0x2E001C }, // CMSG_GUILD_EVENT_LOG_QUERY (0.0) + { 0x2F001D, 0x2E001D }, // CMSG_GUILD_BANK_SET_TAB_TEXT (1.8) + { 0x2F001E, 0x2E001E }, // CMSG_GUILD_BANK_TEXT_QUERY (3.8) + { 0x2F001F, 0x2E001F }, // CMSG_GUILD_REPLACE_GUILD_MASTER (0.0) + { 0x2F0020, 0x2E0020 }, // CMSG_GUILD_ADD_BATTLENET_FRIEND (0.0) + { 0x2F0021, 0x2E0021 }, // CMSG_GUILD_REQUEST_RENAME_STATUS (0.0) + { 0x2F0022, 0x2E0022 }, // CMSG_GUILD_REQUEST_RENAME_NAME_CHECK (0.0) + { 0x2F0023, 0x2E0023 }, // CMSG_GUILD_REQUEST_RENAME (0.0) + { 0x2F0024, 0x2E0024 }, // CMSG_GUILD_REQUEST_RENAME_REFUND (0.0) + { 0x2F0026, 0x2E0026 }, // CMSG_GUILD_GET_OTHERS_OWNED_HOUSES (0.0) + { 0x3E0014, 0x3D0012 }, // CMSG_SET_PET_FAVORITE (0.0) + { 0x3E0016, 0x3D0015 }, // CMSG_SET_CURRENCY_FLAGS (0.0) + { 0x3E0020, 0x3D001F }, // CMSG_BATTLEFIELD_LEAVE (0.0) + { 0x3E0021, 0x3D0020 }, // CMSG_SURRENDER_ARENA (0.0) + { 0x3E0022, 0x3D0021 }, // CMSG_QUERY_QUEST_COMPLETION_NPCS (0.0) + { 0x3E0023, 0x3D0022 }, // CMSG_QUERY_QUEST_ITEM_USABILITY (0.0) + { 0x3E0024, 0x3D0023 }, // CMSG_REQUEST_CEMETERY_LIST (0.0) + { 0x3E0025, 0x3D0024 }, // CMSG_SET_PREFERRED_CEMETERY (0.0) + { 0x3E0026, 0x3D0025 }, // CMSG_JOIN_RATED_BATTLEGROUND (0.0) + { 0x3E0029, 0x3D0028 }, // CMSG_PVP_LOG_DATA (0.0) + { 0x3E002B, 0x3D002A }, // CMSG_BATTLEFIELD_LIST (3.8) + { 0x3E002C, 0x3D002B }, // CMSG_CANCEL_QUEUED_SPELL (0.0) + { 0x3E002D, 0x3D002C }, // CMSG_OBJECT_UPDATE_FAILED (3.8) + { 0x3E002E, 0x3D002D }, // CMSG_OBJECT_UPDATE_RESCUED (3.8) + { 0x3E0031, 0x3D0030 }, // CMSG_VIOLENCE_LEVEL (0.0) + { 0x3E0033, 0x3D0032 }, // CMSG_USED_FOLLOW (0.0) + { 0x3E0036, 0x3D0035 }, // CMSG_STAND_STATE_CHANGE (3.8) + { 0x3E0037, 0x3D0036 }, // CMSG_MISSILE_TRAJECTORY_COLLISION (3.4) + { 0x3E0042, 0x3D0041 }, // CMSG_REQUEST_PVP_REWARDS (0.0) + { 0x3E0043, 0x3D0042 }, // CMSG_REQUEST_SCHEDULED_PVP_INFO (0.0) + { 0x3E0045, 0x3D0044 }, // CMSG_TRANSMOG_OUTFIT_NEW (0.0) + { 0x3E0046, 0x3D0045 }, // CMSG_TRANSMOG_OUTFIT_UPDATE_INFO (0.0) + { 0x3E0047, 0x3D0046 }, // CMSG_TRANSMOG_OUTFIT_UPDATE_SITUATIONS (0.0) + { 0x3E0048, 0x3D0047 }, // CMSG_TRANSMOG_OUTFIT_UPDATE_SLOTS (0.0) + { 0x3E0058, 0x3D0057 }, // CMSG_UNLEARN_SPECIALIZATION (0.0) + { 0x3E0059, 0x3D0058 }, // CMSG_CLEAR_RAID_MARKER (0.0) + { 0x3E005A, 0x3D0059 }, // CMSG_REQUEST_GUILD_REWARDS_LIST (1.0) + { 0x3E005B, 0x3D005A }, // CMSG_REQUEST_GUILD_PARTY_STATE (3.8) + { 0x3E005C, 0x3D005B }, // CMSG_QUERY_COUNTDOWN_TIMER (3.8) + { 0x3E005D, 0x3D005D }, // CMSG_CONFIRM_ARTIFACT_RESPEC (4.6) + { 0x3E005F, 0x3D005E }, // CMSG_ARTIFACT_SET_APPEARANCE (5.4) + { 0x3E0060, 0x3D005F }, // CMSG_CANCEL_MOD_SPEED_NO_CONTROL_AURAS (3.8) + { 0x3E0061, 0x3D0060 }, // CMSG_CANCEL_AURA (4.6) + { 0x3E006D, 0x3D006B }, // CMSG_SET_GAME_EVENT_DEBUG_VIEW_STATE (0.0) + { 0x3E0087, 0x3D0086 }, // CMSG_NEUTRAL_PLAYER_SELECT_FACTION (0.0) + { 0x3E008E, 0x3D008C }, // CMSG_PET_BATTLE_REQUEST_WILD (0.0) + { 0x3E008F, 0x3D008E }, // CMSG_PET_BATTLE_REQUEST_PVP (0.0) + { 0x3E0090, 0x3D008F }, // CMSG_PET_BATTLE_REQUEST_UPDATE (0.0) + { 0x3E0091, 0x3D0090 }, // CMSG_JOIN_PET_BATTLE_QUEUE (0.0) + { 0x3E0092, 0x3D0091 }, // CMSG_LEAVE_PET_BATTLE_QUEUE (0.0) + { 0x3E0093, 0x3D0092 }, // CMSG_BATTLE_PET_UPDATE_NOTIFY (3.8) + { 0x3E0094, 0x3D0093 }, // CMSG_BATTLE_PET_UPDATE_DISPLAY_NOTIFY (0.0) + { 0x3E0095, 0x3D0094 }, // CMSG_PET_BATTLE_QUIT_NOTIFY (0.0) + { 0x3E0096, 0x3D0095 }, // CMSG_PET_BATTLE_FINAL_NOTIFY (0.0) + { 0x3E0097, 0x3D0096 }, // CMSG_PET_BATTLE_SCRIPT_ERROR_NOTIFY (0.0) + { 0x3E009B, 0x3D009A }, // CMSG_KIOSK_ENABLE_GOD_MODE (0.0) + { 0x3E00A7, 0x3D00A6 }, // CMSG_CAGE_BATTLE_PET (3.8) + { 0x3E00B8, 0x3D00B7 }, // CMSG_ADVENTURE_JOURNAL_OPEN_QUEST (3.8) + { 0x3E00BA, 0x3D00B9 }, // CMSG_RESET_CHALLENGE_MODE (0.0) + { 0x3E00BB, 0x3D00BA }, // CMSG_RESET_CHALLENGE_MODE_CHEAT (0.0) + { 0x3E00BC, 0x3D00BB }, // CMSG_REQUEST_MYTHIC_PLUS_AFFIXES (0.0) + { 0x3E00BD, 0x3D00BC }, // CMSG_REQUEST_MYTHIC_PLUS_SEASON_DATA (0.0) + { 0x3E00C4, 0x3D00C3 }, // CMSG_ASSIGN_EQUIPMENT_SET_SPEC (0.0) + { 0x3E00C7, 0x3D00C6 }, // CMSG_CLASS_TALENTS_SET_USES_SHARED_ACTION_BARS (0.0) + { 0x3E00C8, 0x3D00C7 }, // CMSG_CLASS_TALENTS_NOTIFY_EMPTY_CONFIG (0.0) + { 0x3E00CA, 0x3D00C9 }, // CMSG_CONFIRM_RESPEC_WIPE (4.6) + { 0x3E00CB, 0x3D00CA }, // CMSG_CONFIRM_PROFESSION_RESPEC (0.0) + { 0x3E00CC, 0x3D00CB }, // CMSG_LOOT_UNIT (3.8) + { 0x3E00D0, 0x3D00CF }, // CMSG_DO_MASTER_LOOT_ROLL (0.0) + { 0x3E00D1, 0x3D00D0 }, // CMSG_CANCEL_MASTER_LOOT_ROLL (0.0) + { 0x3E00D2, 0x3D00D1 }, // CMSG_LOOT_RELEASE (3.8) + { 0x3E00D3, 0x3D00D2 }, // CMSG_LOOT_ROLL (5.4) + { 0x3E00E3, 0x3D00E1 }, // CMSG_SCENE_PLAYBACK_COMPLETE (4.6) + { 0x3E00E4, 0x3D00E2 }, // CMSG_SCENE_PLAYBACK_CANCELED (4.6) + { 0x3E00E5, 0x3D00E3 }, // CMSG_SCENE_TRIGGER_EVENT (1.0) + { 0x3E00E6, 0x3D00E4 }, // CMSG_SET_DIFFICULTY_ID (0.0) + { 0x3E00E7, 0x3D00E5 }, // CMSG_KEYBOUND_OVERRIDE (3.8) + { 0x3E00E8, 0x3D00E6 }, // CMSG_PET_BATTLE_QUEUE_PROPOSE_MATCH_RESULT (0.0) + { 0x3E00E9, 0x3D00E7 }, // CMSG_MAIL_DELETE (4.6) + { 0x3E00EA, 0x3D00E8 }, // CMSG_MAKE_CONTITIONAL_APPEARANCE_PERMANENT (0.0) + { 0x3E00F2, 0x3D00F0 }, // CMSG_PERFORM_ITEM_INTERACTION (0.0) + { 0x3E0100, 0x3D00FE }, // CMSG_REQUEST_VEHICLE_EXIT (0.0) + { 0x3E0101, 0x3D00FF }, // CMSG_REQUEST_VEHICLE_PREV_SEAT (0.0) + { 0x3E0102, 0x3D0100 }, // CMSG_REQUEST_VEHICLE_NEXT_SEAT (0.0) + { 0x3E0103, 0x3D0101 }, // CMSG_REQUEST_VEHICLE_SWITCH_SEAT (4.6) + { 0x3E0104, 0x3D0102 }, // CMSG_RIDE_VEHICLE_INTERACT (3.8) + { 0x3E0105, 0x3D0103 }, // CMSG_EJECT_PASSENGER (3.8) + { 0x3E010A, 0x3D0108 }, // CMSG_USE_CRITTER_ITEM (3.8) + { 0x3E0110, 0x3D010E }, // CMSG_CHECK_IS_ADVENTURE_MAP_POI_VALID (3.8) + { 0x3E011E, 0x3D011C }, // CMSG_ATTACK_SWING (3.8) + { 0x3E011F, 0x3D011D }, // CMSG_ATTACK_STOP (0.0) + { 0x3E013A, 0x3D0138 }, // CMSG_CANCEL_CHANNELLING (4.6) + { 0x3E013B, 0x3D013A }, // CMSG_SPELL_EMPOWER_RESTART (0.0) + { 0x3E013C, 0x3D013B }, // CMSG_SET_EMPOWER_MIN_HOLD_STAGE_PERCENT (0.0) + { 0x3E0143, 0x3D0141 }, // CMSG_QUERY_CREATURE (manual) + { 0x3E0144, 0x3D0142 }, // CMSG_QUERY_GAME_OBJECT (0.0) + { 0x3E0145, 0x3D0143 }, // CMSG_QUERY_NPC_TEXT (0.0) + { 0x3E0146, 0x3D0144 }, // CMSG_QUERY_QUEST_INFO (0.0) + { 0x3E0147, 0x3D0145 }, // CMSG_QUERY_PAGE_TEXT (0.0) + { 0x3E0148, 0x3D0146 }, // CMSG_QUERY_PET_NAME (3.8) + { 0x3E0149, 0x3D0148 }, // CMSG_QUERY_GARRISON_PET_NAME (0.0) + { 0x3E014A, 0x3D0149 }, // CMSG_QUERY_PETITION (0.0) + { 0x3E014B, 0x3D014C }, // CMSG_REQUEST_PLAYED_TIME (0.0) + { 0x3E0154, 0x3D0152 }, // CMSG_SET_TITLE (3.8) + { 0x3E0155, 0x3D0153 }, // CMSG_CANCEL_MOUNT_AURA (0.0) + { 0x3E0156, 0x3D0154 }, // CMSG_MOUNT_SPECIAL_ANIM (1.0) + { 0x3E016C, 0x3D016A }, // CMSG_DESTROY_ITEM (5.4) + { 0x3E0170, 0x3D016E }, // CMSG_GET_MIRROR_IMAGE_DATA (4.6) + { 0x3E0171, 0x3D016F }, // CMSG_USE_ITEM (3.4) + { 0x3E0172, 0x3D0170 }, // CMSG_ADD_TOY (3.8) + { 0x3E0173, 0x3D0171 }, // CMSG_ADD_ACCOUNT_COSMETIC (0.0) + { 0x3E0174, 0x3D0172 }, // CMSG_USE_TOY (1.0) + { 0x3E0175, 0x3D0173 }, // CMSG_PET_CAST_SPELL (1.8) + { 0x3E0176, 0x3D0174 }, // CMSG_CAST_SPELL (1.0) + { 0x3E0177, 0x3D0175 }, // CMSG_UPDATE_SPELL_VISUAL (0.0) + { 0x3E0178, 0x3D0176 }, // CMSG_UPDATE_AREA_TRIGGER_VISUAL (0.0) + { 0x3E0179, 0x3D0177 }, // CMSG_CANCEL_CAST (4.6) + { 0x3E017E, 0x3D017C }, // CMSG_CHOICE_RESPONSE (0.0) + { 0x3E017F, 0x3D017D }, // CMSG_CLOSE_QUEST_CHOICE (0.0) + { 0x3E0180, 0x3D017E }, // CMSG_HIDE_QUEST_CHOICE (0.0) + { 0x3E0181, 0x3D017F }, // CMSG_REQUEST_LFG_LIST_BLACKLIST (0.0) + { 0x3E0186, 0x3D0184 }, // CMSG_SAVE_GUILD_EMBLEM (7.8) + { 0x3E0187, 0x3D0185 }, // CMSG_SAVE_PERSONAL_EMBLEM (0.0) + { 0x3E0188, 0x3D0186 }, // CMSG_TABARD_VENDOR_ACTIVATE (0.0) + { 0x3E018A, 0x3D0188 }, // CMSG_TOGGLE_PVP (0.0) + { 0x3E0191, 0x3D018F }, // CMSG_BATTLEMASTER_HELLO (3.8) + { 0x3E0194, 0x3D0192 }, // CMSG_REQUEST_INSTANCE_ENCOUNTER_EVENT_SYNC (0.0) + { 0x3E019D, 0x3D019B }, // CMSG_UPGRADE_GARRISON (0.0) + { 0x3E01A2, 0x3D01A0 }, // CMSG_GET_GARRISON_INFO (0.0) + { 0x3E01A7, 0x3D01A5 }, // CMSG_GARRISON_REQUEST_BLUEPRINT_AND_SPECIALIZATION_DATA (0.0) + { 0x3E01A8, 0x3D01A6 }, // CMSG_GARRISON_PURCHASE_BUILDING (5.4) + { 0x3E01A9, 0x3D01A7 }, // CMSG_GARRISON_SET_BUILDING_ACTIVE (0.0) + { 0x3E01AC, 0x3D01AA }, // CMSG_GARRISON_CANCEL_CONSTRUCTION (4.6) + { 0x3E01AD, 0x3D01AB }, // CMSG_GARRISON_SWAP_BUILDINGS (0.0) + { 0x3E01B5, 0x3D01B3 }, // CMSG_GARRISON_SET_FOLLOWER_INACTIVE (0.0) + { 0x3E01BE, 0x3D01BC }, // CMSG_GARRISON_SET_FOLLOWER_FAVORITE (0.0) + { 0x3E01C0, 0x3D01BE }, // CMSG_GARRISON_ASSIGN_FOLLOWER_TO_BUILDING (0.0) + { 0x3E01C1, 0x3D01BF }, // CMSG_GARRISON_REMOVE_FOLLOWER_FROM_BUILDING (0.0) + { 0x3E01C2, 0x3D01C0 }, // CMSG_GARRISON_RENAME_FOLLOWER (0.0) + { 0x3E01C3, 0x3D01C1 }, // CMSG_GARRISON_GENERATE_RECRUITS (0.0) + { 0x3E01C4, 0x3D01C2 }, // CMSG_GARRISON_SET_RECRUITMENT_PREFERENCES (0.0) + { 0x3E01C5, 0x3D01C3 }, // CMSG_GARRISON_RECRUIT_FOLLOWER (0.0) + { 0x3E01C6, 0x3D01C4 }, // CMSG_GARRISON_RESEARCH_TALENT (0.0) + { 0x3E01CE, 0x3D01CC }, // CMSG_GARRISON_LEARN_TALENT (0.0) + { 0x3E01D2, 0x3D01D0 }, // CMSG_GARRISON_GET_CLASS_SPEC_CATEGORY_INFO (0.0) + { 0x3E01D4, 0x3D01D2 }, // CMSG_OPEN_MISSION_NPC (0.0) + { 0x3E01D6, 0x3D01D4 }, // CMSG_SET_USING_PARTY_GARRISON (0.0) + { 0x3E01D9, 0x3D01D7 }, // CMSG_GARRISON_GET_MAP_DATA (0.0) + { 0x3E01DA, 0x3D01D8 }, // CMSG_GARRISON_ADD_FOLLOWER_HEALTH (0.0) + { 0x3E01DB, 0x3D01D9 }, // CMSG_GARRISON_FULLY_HEAL_ALL_FOLLOWERS (0.0) + { 0x3E01DC, 0x3D01DA }, // CMSG_OPEN_SHIPMENT_NPC (0.0) + { 0x3E01DD, 0x3D01DB }, // CMSG_GARRISON_REQUEST_SHIPMENT_INFO (0.0) + { 0x3E01DE, 0x3D01DC }, // CMSG_GET_LANDING_PAGE_SHIPMENTS (0.0) + { 0x3E01DF, 0x3D01DD }, // CMSG_CREATE_SHIPMENT (0.0) + { 0x3E01E7, 0x3D01E5 }, // CMSG_OPEN_TRADESKILL_NPC (0.0) + { 0x3E01E8, 0x3D01E6 }, // CMSG_UPDATE_CRAFTING_NPC_RECIPES (0.0) + { 0x3E01F3, 0x3D01F1 }, // CMSG_GET_TROPHY_LIST (0.0) + { 0x3E01F4, 0x3D01F2 }, // CMSG_LOAD_SELECTED_TROPHY (0.0) + { 0x3E01F5, 0x3D01F3 }, // CMSG_REPLACE_TROPHY (0.0) + { 0x3E01F6, 0x3D01F4 }, // CMSG_CHANGE_MONUMENT_APPEARANCE (0.0) + { 0x3E01F7, 0x3D01F5 }, // CMSG_REVERT_MONUMENT_APPEARANCE (0.0) + { 0x3E01FA, 0x3D01F8 }, // CMSG_GARRISON_REMOVE_FOLLOWER (0.0) + { 0x3E0202, 0x3D0200 }, // CMSG_GARRISON_START_MISSION (0.0) + { 0x3E0203, 0x3D0201 }, // CMSG_GARRISON_COMPLETE_MISSION (0.0) + { 0x3E0205, 0x3D0203 }, // CMSG_GARRISON_MISSION_BONUS_ROLL (0.0) + { 0x3E0211, 0x3D020F }, // CMSG_GARRISON_CHECK_UPGRADEABLE (0.0) + { 0x3E0212, 0x3D0210 }, // CMSG_ITEM_TEXT_QUERY (3.8) + { 0x3E0213, 0x3D0211 }, // CMSG_OPEN_ITEM (4.6) + { 0x3E0214, 0x3D0212 }, // CMSG_READ_ITEM (4.6) + { 0x3E0215, 0x3D0213 }, // CMSG_CHANGE_BAG_SLOT_FLAG (0.0) + { 0x3E0216, 0x3D0214 }, // CMSG_CHANGE_BANK_BAG_SLOT_FLAG (0.0) + { 0x3E0217, 0x3D0215 }, // CMSG_SET_BACKPACK_AUTOSORT_DISABLED (0.0) + { 0x3E0218, 0x3D0216 }, // CMSG_SET_BACKPACK_SELL_JUNK_DISABLED (0.0) + { 0x3E0219, 0x3D0217 }, // CMSG_SET_BANK_AUTOSORT_DISABLED (0.0) + { 0x3E021A, 0x3D0218 }, // CMSG_SET_SORT_BAGS_RIGHT_TO_LEFT (0.0) + { 0x3E021B, 0x3D0219 }, // CMSG_SET_INSERT_ITEMS_LEFT_TO_RIGHT (0.0) + { 0x3E021C, 0x3D021A }, // CMSG_SORT_BAGS (0.0) + { 0x3E021D, 0x3D021B }, // CMSG_SORT_BANK_BAGS (0.0) + { 0x3E0220, 0x3D021E }, // CMSG_SET_STOP_CONVERSATION (0.0) + { 0x3E0230, 0x3D022E }, // CMSG_ADVENTURE_MAP_START_QUEST (3.8) + { 0x3E0234, 0x3D0232 }, // CMSG_GARRISON_GET_MISSION_REWARD (0.0) + { 0x3E0236, 0x3D0234 }, // CMSG_TRADE_SKILL_SET_FAVORITE (0.0) + { 0x3E0237, 0x3D0235 }, // CMSG_QUERY_TREASURE_PICKER (0.0) + { 0x3E0238, 0x3D0236 }, // CMSG_REQUEST_WORLD_QUEST_UPDATE (0.0) + { 0x3E0239, 0x3D0237 }, // CMSG_REQUEST_AREA_POI_UPDATE (0.0) + { 0x3E023A, 0x3D0238 }, // CMSG_REQUEST_SCHEDULED_AREA_POI_UPDATE (0.0) + { 0x3E023B, 0x3D0239 }, // CMSG_REMOVE_NEW_ITEM (3.8) + { 0x3E023C, 0x3D023A }, // CMSG_AZERITE_EMPOWERED_ITEM_VIEWED (3.8) + { 0x3E0259, 0x3D0257 }, // CMSG_LFG_LIST_JOIN (0.0) + { 0x3E025A, 0x3D0258 }, // CMSG_LFG_LIST_UPDATE_REQUEST (0.0) + { 0x3E025B, 0x3D0259 }, // CMSG_LFG_LOREWALKING_UPDATE_REQUEST (0.0) + { 0x3E025C, 0x3D025A }, // CMSG_AZERITE_EMPOWERED_ITEM_SELECT_POWER (6.2) + { 0x3E025D, 0x3D025B }, // CMSG_AZERITE_ESSENCE_UNLOCK_MILESTONE (3.8) + { 0x3E025E, 0x3D025C }, // CMSG_AZERITE_ESSENCE_ACTIVATE_ESSENCE (4.6) + { 0x3E025F, 0x3D025D }, // CMSG_BONUS_ROLL (0.0) + { 0x3E0265, 0x3D0263 }, // CMSG_ISLAND_QUEUE (0.0) + { 0x3E0266, 0x3D0264 }, // CMSG_UI_MAP_QUEST_LINES_REQUEST (3.8) + { 0x3E0267, 0x3D0265 }, // CMSG_REQUEST_COVENANT_CALLINGS (0.0) + { 0x3E0269, 0x3D0267 }, // CMSG_CLAIM_WEEKLY_REWARD (0.0) + { 0x3E026A, 0x3D0268 }, // CMSG_REQUEST_WEEKLY_REWARDS (0.0) + { 0x3E0276, 0x3D0274 }, // CMSG_REPORT_STUCK_IN_COMBAT (0.0) + { 0x3E0277, 0x3D0275 }, // CMSG_REQUEST_LATEST_SPLASH_SCREEN (0.0) + { 0x3E0278, 0x3D027A }, // CMSG_QUEST_SESSION_REQUEST_START (0.0) + { 0x3E027D, 0x3D027B }, // CMSG_QUEST_SESSION_BEGIN_RESPONSE (0.0) + { 0x3E028C, 0x3D028A }, // CMSG_CHROMIE_TIME_SELECT_EXPANSION (0.0) + { 0x3E028D, 0x3D028B }, // CMSG_ACTIVATE_SOULBIND (0.0) + { 0x3E0291, 0x3D0291 }, // CMSG_UPGRADE_RUNEFORGE_LEGENDARY (0.0) + { 0x3E0294, 0x3D0292 }, // CMSG_CLOSE_RUNEFORGE_INTERACTION (0.0) + { 0x3E0295, 0x3D0293 }, // CMSG_SUBSCRIPTION_INTERSTITIAL_RESPONSE (0.0) + { 0x3E0296, 0x3D029C }, // CMSG_ABANDON_NPE_RESPONSE (0.0) + { 0x3E029F, 0x3D029E }, // CMSG_REQUEST_GARRISON_TALENT_WORLD_QUEST_UNLOCKS (0.0) + { 0x3E02A1, 0x3D029F }, // CMSG_GARRISON_SOCKET_TALENT (0.0) + { 0x3E02A2, 0x3D02B4 }, // CMSG_PERKS_PROGRAM_REQUEST_CART_CHECKOUT (0.0) + { 0x3E02B3, 0x3D02B5 }, // CMSG_PERKS_PROGRAM_REQUEST_REFUND (0.0) + { 0x3F001E, 0x3E001C }, // CMSG_SEND_TEXT_EMOTE (region-2) + { 0x3F001F, 0x3E001D }, // CMSG_SET_SHEATHED (region-2) + { 0x3F0020, 0x3E001E }, // CMSG_PET_SET_ACTION (region-2) + { 0x3F0021, 0x3E001F }, // CMSG_PET_ACTION (region-2) + { 0x3F0022, 0x3E0020 }, // CMSG_PET_STOP_ATTACK (region-2) + { 0x3F0023, 0x3E0021 }, // CMSG_PET_ABANDON (region-2) + { 0x3F0024, 0x3E0022 }, // CMSG_PET_ABANDON_BY_NUMBER (region-2) + { 0x3F0025, 0x3E0023 }, // CMSG_PET_CANCEL_AURA (region-2) + { 0x3F0026, 0x3E0024 }, // CMSG_PET_SPELL_AUTOCAST (region-2) + { 0x3F0027, 0x3E0025 }, // CMSG_REQUEST_PET_INFO (region-2) + { 0x3F0028, 0x3E0026 }, // CMSG_REQUEST_STABLED_PETS (region-2) + { 0x3F0029, 0x3E0027 }, // CMSG_TALK_TO_GOSSIP (region-2) + { 0x3F002A, 0x3E0028 }, // CMSG_CLOSE_INTERACTION (region-2) + { 0x3F002B, 0x3E0029 }, // CMSG_GOSSIP_SELECT_OPTION (region-2) + { 0x3F002C, 0x3E002A }, // CMSG_SPELL_CLICK (region-2) + { 0x3F002D, 0x3E002B }, // CMSG_QUEST_GIVER_HELLO (region-2) + { 0x3F002E, 0x3E002C }, // CMSG_QUEST_GIVER_QUERY_QUEST (region-2) + { 0x3F002F, 0x3E002D }, // CMSG_QUEST_GIVER_ACCEPT_QUEST (region-2) + { 0x3F0030, 0x3E002E }, // CMSG_QUEST_GIVER_COMPLETE_QUEST (region-2) + { 0x3F0031, 0x3E002F }, // CMSG_QUEST_GIVER_CHOOSE_REWARD (region-2) + { 0x3F0032, 0x3E0030 }, // CMSG_QUEST_GIVER_REQUEST_REWARD (region-2) + { 0x3F0033, 0x3E0031 }, // CMSG_QUEST_GIVER_STATUS_QUERY (region-2) + { 0x3F0034, 0x3E0032 }, // CMSG_QUEST_GIVER_STATUS_MULTIPLE_QUERY (region-2) + { 0x3F0035, 0x3E0033 }, // CMSG_QUEST_CONFIRM_ACCEPT (region-2) + { 0x3F0036, 0x3E0034 }, // CMSG_PUSH_QUEST_TO_PARTY (region-2) + { 0x3F0037, 0x3E0035 }, // CMSG_QUEST_PUSH_RESULT (region-2) + { 0x3F0038, 0x3E0036 }, // CMSG_LIST_INVENTORY (region-2) + { 0x3F0039, 0x3E0037 }, // CMSG_SELL_ITEM (region-2) + { 0x3F003A, 0x3E0038 }, // CMSG_SELL_ALL_JUNK_ITEMS (region-2) + { 0x3F003B, 0x3E0039 }, // CMSG_BUY_ITEM (region-2) + { 0x3F003C, 0x3E003A }, // CMSG_BUY_BACK_ITEM (region-2) + { 0x3F0040, 0x3E003E }, // CMSG_TAXI_NODE_STATUS_QUERY (region-2) + { 0x3F0041, 0x3E003F }, // CMSG_ENABLE_TAXI_NODE (region-2) + { 0x3F0042, 0x3E0040 }, // CMSG_TAXI_QUERY_AVAILABLE_NODES (region-2) + { 0x3F0043, 0x3E0041 }, // CMSG_ACTIVATE_TAXI (region-2) + { 0x3F0044, 0x3E0042 }, // CMSG_TAXI_REQUEST_EARLY_LANDING (region-2) + { 0x3F0045, 0x3E0043 }, // CMSG_TRAINER_LIST (region-2) + { 0x3F0046, 0x3E0044 }, // CMSG_TRAINER_BUY_SPELL (region-2) + { 0x3F0047, 0x3E0045 }, // CMSG_SPIRIT_HEALER_ACTIVATE (region-2) + { 0x3F0048, 0x3E0046 }, // CMSG_AREA_SPIRIT_HEALER_QUERY (region-2) + { 0x3F0049, 0x3E0047 }, // CMSG_AREA_SPIRIT_HEALER_QUEUE (region-2) + { 0x3F004A, 0x3E0048 }, // CMSG_BINDER_ACTIVATE (region-2) + { 0x3F004B, 0x3E0049 }, // CMSG_BANKER_ACTIVATE (region-2) + { 0x3F004C, 0x3E004A }, // CMSG_GUILD_BANK_ACTIVATE (region-2) + { 0x3F004D, 0x3E004B }, // CMSG_AUTO_GUILD_BANK_ITEM (region-2) + { 0x3F004E, 0x3E004C }, // CMSG_STORE_GUILD_BANK_ITEM (region-2) + { 0x3F004F, 0x3E004D }, // CMSG_SWAP_ITEM_WITH_GUILD_BANK_ITEM (region-2) + { 0x3F0050, 0x3E004E }, // CMSG_SWAP_GUILD_BANK_ITEM_WITH_GUILD_BANK_ITEM (region-2) + { 0x3F0051, 0x3E004F }, // CMSG_MOVE_GUILD_BANK_ITEM (region-2) + { 0x3F0052, 0x3E0050 }, // CMSG_MERGE_ITEM_WITH_GUILD_BANK_ITEM (region-2) + { 0x3F0053, 0x3E0051 }, // CMSG_SPLIT_ITEM_TO_GUILD_BANK (region-2) + { 0x3F0054, 0x3E0052 }, // CMSG_MERGE_GUILD_BANK_ITEM_WITH_ITEM (region-2) + { 0x3F0055, 0x3E0053 }, // CMSG_SPLIT_GUILD_BANK_ITEM_TO_INVENTORY (region-2) + { 0x3F0056, 0x3E0054 }, // CMSG_AUTO_STORE_GUILD_BANK_ITEM (region-2) + { 0x3F0057, 0x3E0055 }, // CMSG_MERGE_GUILD_BANK_ITEM_WITH_GUILD_BANK_ITEM (region-2) + { 0x3F0058, 0x3E0056 }, // CMSG_SPLIT_GUILD_BANK_ITEM (region-2) + { 0x3F0059, 0x3E0057 }, // CMSG_GUILD_BANK_QUERY_TAB (region-2) + { 0x3F005A, 0x3E0058 }, // CMSG_GUILD_BANK_BUY_TAB (region-2) + { 0x3F005B, 0x3E0059 }, // CMSG_GUILD_BANK_UPDATE_TAB (region-2) + { 0x3F005C, 0x3E005A }, // CMSG_GUILD_BANK_DEPOSIT_MONEY (region-2) + { 0x3F005D, 0x3E005B }, // CMSG_GUILD_BANK_WITHDRAW_MONEY (region-2) + { 0x3F005E, 0x3E005C }, // CMSG_PETITION_SHOW_LIST (region-2) + { 0x3F005F, 0x3E005D }, // CMSG_PETITION_BUY (region-2) + { 0x3F0060, 0x3E005E }, // CMSG_PETITION_SHOW_SIGNATURES (region-2) + { 0x3F0061, 0x3E005F }, // CMSG_AUCTION_HELLO_REQUEST (region-2) + { 0x3F0062, 0x3E0060 }, // CMSG_AUCTION_SELL_ITEM (region-2) + { 0x3F0063, 0x3E0061 }, // CMSG_AUCTION_REMOVE_ITEM (region-2) + { 0x3F0064, 0x3E0062 }, // CMSG_AUCTION_REPLICATE_ITEMS (region-2) + { 0x3F0065, 0x3E0063 }, // CMSG_AUCTION_PLACE_BID (region-2) + { 0x3F0066, 0x3E0064 }, // CMSG_AUCTION_BROWSE_QUERY (region-2) + { 0x3F0067, 0x3E0065 }, // CMSG_AUCTION_LIST_ITEMS_BY_BUCKET_KEY (region-2) + { 0x3F0068, 0x3E0066 }, // CMSG_AUCTION_LIST_ITEMS_BY_ITEM_ID (region-2) + { 0x3F0069, 0x3E0067 }, // CMSG_AUCTION_LIST_OWNED_ITEMS (region-2) + { 0x3F006A, 0x3E0068 }, // CMSG_AUCTION_LIST_BIDDED_ITEMS (region-2) + { 0x3F006B, 0x3E0069 }, // CMSG_AUCTION_LIST_BUCKETS_BY_BUCKET_KEYS (region-2) + { 0x3F006C, 0x3E006A }, // CMSG_AUCTION_GET_COMMODITY_QUOTE (region-2) + { 0x3F006D, 0x3E006B }, // CMSG_AUCTION_CONFIRM_COMMODITIES_PURCHASE (region-2) + { 0x3F006E, 0x3E006C }, // CMSG_AUCTION_CANCEL_COMMODITIES_PURCHASE (0.0) + { 0x3F006F, 0x3E006D }, // CMSG_AUCTION_SELL_COMMODITY (-0.1) + { 0x3F0073, 0x3E0071 }, // CMSG_QUERY_TIME (0.0) + { 0x3F0074, 0x3E0073 }, // CMSG_LOGOUT_CANCEL (0.0) + { 0x3F0075, 0x3E0072 }, // CMSG_LOGOUT_REQUEST (manual) + { 0x3F0076, 0x3E0076 }, // CMSG_RECLAIM_CORPSE (3.8) + { 0x3F007A, 0x3E0078 }, // CMSG_COMPLETE_MOVIE (0.0) + { 0x3F007B, 0x3E0079 }, // CMSG_SET_FACTION_AT_WAR (3.8) + { 0x3F007C, 0x3E007A }, // CMSG_SET_FACTION_NOT_AT_WAR (3.8) + { 0x3F007E, 0x3E007C }, // CMSG_SET_WATCHED_FACTION (3.8) + { 0x3F0082, 0x3E0080 }, // CMSG_UNLEARN_SKILL (3.8) + { 0x3F0084, 0x3E0082 }, // CMSG_CANCEL_AUTO_REPEAT_SPELL (0.0) + { 0x3F0088, 0x3E0086 }, // CMSG_SOCKET_GEMS (1.8) + { 0x3F0089, 0x3E0087 }, // CMSG_REPAIR_ITEM (-0.4) + { 0x3F008B, 0x3E0089 }, // CMSG_GAME_OBJ_USE (0.0) + { 0x3F008C, 0x3E008A }, // CMSG_GAME_OBJ_REPORT_USE (0.0) + { 0x3F0091, 0x3E008F }, // CMSG_REPORT_PVP_PLAYER_AFK (3.8) + { 0x3F0096, 0x3E0093 }, // CMSG_TOTEM_DESTROYED (4.6) + { 0x3F0097, 0x3E0094 }, // CMSG_DISMISS_CRITTER (3.8) + { 0x3F009E, 0x3E009B }, // CMSG_QUERY_INSPECT_ACHIEVEMENTS (3.8) + { 0x3F00A2, 0x3E009F }, // CMSG_RAF_CLAIM_ACTIVITY_REWARD (0.0) + { 0x3F00A5, 0x3E00A2 }, // CMSG_HEARTH_AND_RESURRECT (0.0) + { 0x3F00A8, 0x3E00A6 }, // CMSG_DELETE_EQUIPMENT_SET (1.0) + { 0x3F00A9, 0x3E00A7 }, // CMSG_INSTANCE_LOCK_RESPONSE (0.0) + { 0x3F00AA, 0x3E00AE }, // CMSG_LOW_LEVEL_RAID2 (0.0) + { 0x3F00BD, 0x3E00BB }, // CMSG_OVERRIDE_SCREEN_FLASH (0.0) + { 0x3F00C1, 0x3E00BE }, // CMSG_BATTLEMASTER_JOIN_ARENA (4.6) + { 0x3F00C2, 0x3E00C0 }, // CMSG_BATTLEMASTER_JOIN_RATED_BG_BLITZ (0.0) + { 0x3F00C3, 0x3E00C1 }, // CMSG_BATTLEMASTER_JOIN_SKIRMISH (0.0) + { 0x3F00C4, 0x3E00C4 }, // CMSG_BATTLEMASTER_JOIN_BRAWL (0.0) + { 0x3F00C7, 0x3E00C6 }, // CMSG_TRAINING_GROUNDS_JOIN (0.0) + { 0x3F00C9, 0x3E00C7 }, // CMSG_BATTLEFIELD_PORT (1.0) + { 0x3F00CA, 0x3E00C8 }, // CMSG_REPOP_REQUEST (1.0) + { 0x3F00CB, 0x3E00C9 }, // CMSG_CLIENT_PORT_GRAVEYARD (0.0) + { 0x3F00CD, 0x3E00CA }, // CMSG_SET_SELECTION (3.8) + { 0x3F00CE, 0x3E00CB }, // CMSG_INSPECT (3.8) + { 0x3F00CF, 0x3E00CC }, // CMSG_REQUEST_CROWD_CONTROL_SPELL (0.0) + { 0x3F00D0, 0x3E00CD }, // CMSG_BLACK_MARKET_OPEN (3.8) + { 0x3F00D1, 0x3E00CE }, // CMSG_BLACK_MARKET_REQUEST_ITEMS (1.8) + { 0x3F00D2, 0x3E00CF }, // CMSG_BLACK_MARKET_BID_ON_ITEM (2.6) + { 0x3F00D3, 0x3E00D0 }, // CMSG_QUEST_LOG_REMOVE_QUEST (0.0) + { 0x3F00D4, 0x3E00D1 }, // CMSG_GET_ITEM_PURCHASE_DATA (3.8) + { 0x3F00D5, 0x3E00D2 }, // CMSG_ITEM_PURCHASE_REFUND (3.8) + { 0x3F00D6, 0x3E00D3 }, // CMSG_SELF_RES (3.8) + { 0x3F00D7, 0x3E00D4 }, // CMSG_SET_ACTION_BAR_TOGGLES (0.0) + { 0x3F00D8, 0x3E00D5 }, // CMSG_SIGN_PETITION (4.6) + { 0x3F00D9, 0x3E00D6 }, // CMSG_DECLINE_PETITION (3.8) + { 0x3F00DA, 0x3E00D7 }, // CMSG_TURN_IN_PETITION (3.8) + { 0x3F00DB, 0x3E00D8 }, // CMSG_MAIL_GET_LIST (3.8) + { 0x3F00DC, 0x3E00D9 }, // CMSG_MAIL_TAKE_MONEY (5.4) + { 0x3F00DD, 0x3E00DA }, // CMSG_MAIL_TAKE_ITEM (5.4) + { 0x3F00DE, 0x3E00DB }, // CMSG_QUERY_NEXT_MAIL_TIME (0.0) + { 0x3F00DF, 0x3E00DC }, // CMSG_MAIL_MARK_AS_READ (4.6) + { 0x3F00E0, 0x3E00DD }, // CMSG_MAIL_CREATE_TEXT_ITEM (4.6) + { 0x3F00E4, 0x3E00E1 }, // CMSG_SET_LOOT_SPECIALIZATION (3.8) + { 0x3F00EF, 0x3E00EC }, // CMSG_QUEST_GIVER_CLOSE_QUEST (3.8) + { 0x3F00F0, 0x3E00ED }, // CMSG_START_CHALLENGE_MODE (0.0) + { 0x3F00FF, 0x3E0100 }, // CMSG_CONTRIBUTION_LAST_UPDATE_REQUEST (0.0) + { 0x400000, 0x3F0000 }, // CMSG_INITIATIVE_UPDATE_ACTIVE_NEIGHBORHOOD (0.0) + { 0x420000, 0x410000 }, // CMSG_MOVE_START_FORWARD (0.0) + { 0x420001, 0x410001 }, // CMSG_MOVE_START_BACKWARD (0.0) + { 0x420002, 0x410002 }, // CMSG_MOVE_STOP (0.0) + { 0x420003, 0x410003 }, // CMSG_MOVE_START_STRAFE_LEFT (0.0) + { 0x420004, 0x410004 }, // CMSG_MOVE_START_STRAFE_RIGHT (0.0) + { 0x420005, 0x410005 }, // CMSG_MOVE_STOP_STRAFE (0.0) + { 0x420006, 0x410006 }, // CMSG_MOVE_JUMP (0.0) + { 0x420007, 0x410007 }, // CMSG_MOVE_DOUBLE_JUMP (0.0) + { 0x420008, 0x410008 }, // CMSG_MOVE_START_TURN_LEFT (0.0) + { 0x420009, 0x410009 }, // CMSG_MOVE_START_TURN_RIGHT (0.0) + { 0x42000A, 0x41000A }, // CMSG_MOVE_STOP_TURN (0.0) + { 0x42000B, 0x41000B }, // CMSG_MOVE_START_PITCH_UP (0.0) + { 0x42000C, 0x41000C }, // CMSG_MOVE_START_PITCH_DOWN (0.0) + { 0x42000D, 0x41000D }, // CMSG_MOVE_STOP_PITCH (0.0) + { 0x42000E, 0x41000E }, // CMSG_MOVE_SET_RUN_MODE (0.0) + { 0x42000F, 0x41000F }, // CMSG_MOVE_SET_WALK_MODE (0.0) + { 0x420016, 0x410016 }, // CMSG_MOVE_TELEPORT_ACK (5.4) + { 0x420017, 0x410017 }, // CMSG_MOVE_FALL_LAND (0.0) + { 0x420018, 0x410018 }, // CMSG_MOVE_START_SWIM (0.0) + { 0x420019, 0x410019 }, // CMSG_MOVE_STOP_SWIM (0.0) + { 0x420022, 0x410022 }, // CMSG_MOVE_FORCE_GRAVITY_MODIFIER_CHANGE_ACK (1.0) + { 0x420027, 0x410027 }, // CMSG_MOVE_SET_FACING (manual) + { 0x420028, 0x410028 }, // CMSG_MOVE_SET_PITCH (manual) + { 0x420029, 0x410029 }, // CMSG_MOVE_FORCE_RUN_SPEED_CHANGE_ACK (manual) + { 0x42002A, 0x41002A }, // CMSG_MOVE_FORCE_RUN_BACK_SPEED_CHANGE_ACK (manual) + { 0x42002B, 0x41002B }, // CMSG_MOVE_FORCE_SWIM_SPEED_CHANGE_ACK (manual) + { 0x42002C, 0x41002C }, // CMSG_MOVE_FORCE_ROOT_ACK (manual) + { 0x42002D, 0x41002D }, // CMSG_MOVE_FORCE_UNROOT_ACK (manual) + { 0x42002E, 0x41002E }, // CMSG_MOVE_HEARTBEAT (manual) + { 0x420047, 0x410047 }, // CMSG_MOVE_SET_FLY (0.0) + { 0x420048, 0x410048 }, // CMSG_MOVE_START_ASCEND (0.0) + { 0x420049, 0x410049 }, // CMSG_MOVE_STOP_ASCEND (0.0) + { 0x42004C, 0x41004C }, // CMSG_MOVE_FORCE_FLIGHT_SPEED_CHANGE_ACK (1.0) + { 0x42004D, 0x41004D }, // CMSG_MOVE_FORCE_FLIGHT_BACK_SPEED_CHANGE_ACK (1.0) + { 0x42004E, 0x41004E }, // CMSG_MOVE_CHANGE_TRANSPORT (0.0) + { 0x42004F, 0x41004F }, // CMSG_MOVE_START_DESCEND (0.0) + { 0x420051, 0x410051 }, // CMSG_MOVE_FORCE_PITCH_RATE_CHANGE_ACK (1.0) + { 0x420052, 0x410052 }, // CMSG_MOVE_DISMISS_VEHICLE (0.0) + { 0x420053, 0x410053 }, // CMSG_MOVE_CHANGE_VEHICLE_SEATS (1.0) + { 0x420054, 0x410054 }, // CMSG_MOVE_GRAVITY_DISABLE_ACK (1.0) + { 0x420055, 0x410055 }, // CMSG_MOVE_GRAVITY_ENABLE_ACK (1.0) + { 0x420056, 0x410056 }, // CMSG_MOVE_INERTIA_DISABLE_ACK (1.0) + { 0x420057, 0x410057 }, // CMSG_MOVE_INERTIA_ENABLE_ACK (1.0) + { 0x420058, 0x410058 }, // CMSG_MOVE_COLLISION_DISABLE_ACK (1.0) + { 0x420059, 0x410059 }, // CMSG_MOVE_COLLISION_ENABLE_ACK (1.0) + { 0x42005A, 0x41005A }, // CMSG_MOVE_SET_COLLISION_HEIGHT_ACK (1.0) + { 0x42005B, 0x41005B }, // CMSG_SET_ACTIVE_MOVER (3.8) + { 0x42005C, 0x41005C }, // CMSG_TIME_SYNC_RESPONSE (0.0) + { 0x42005D, 0x41005D }, // CMSG_TIME_SYNC_RESPONSE_FAILED (0.0) + { 0x42005E, 0x41005E }, // CMSG_TIME_SYNC_RESPONSE_DROPPED (0.0) + { 0x42005F, 0x41005F }, // CMSG_TIME_ADJUSTMENT_RESPONSE (0.0) + { 0x420060, 0x410060 }, // CMSG_DISCARDED_TIME_SYNC_ACKS (0.0) + { 0x420061, 0x410061 }, // CMSG_MOVE_SET_MOD_MOVEMENT_FORCE_MAGNITUDE_ACK (1.0) + { 0x420062, 0x410062 }, // CMSG_UPDATE_MISSILE_TRAJECTORY (5.8) + { 0x420064, 0x41006C }, // CMSG_MOVE_APPLY_INERTIA_ACK (1.0) + { 0x42006C, 0x41006D }, // CMSG_MOVE_REMOVE_INERTIA_ACK (1.0) + { 0x42006D, 0x41006E }, // CMSG_MOVE_ADD_IMPULSE_ACK (0.0) + { 0x42006E, 0x41006F }, // CMSG_MOVE_SET_CAN_ADV_FLY_ACK (0.0) + { 0x42006F, 0x410070 }, // CMSG_MOVE_SET_ADV_FLY (1.0) + { 0x420070, 0x410072 }, // CMSG_MOVE_START_DRIVE_FORWARD (0.0) + { 0x420071, 0x410073 }, // CMSG_MOVE_SET_ADV_FLYING_AIR_FRICTION_ACK (1.0) + { 0x420072, 0x410074 }, // CMSG_MOVE_SET_ADV_FLYING_MAX_VEL_ACK (0.0) + { 0x420073, 0x410075 }, // CMSG_MOVE_SET_ADV_FLYING_LIFT_COEFFICIENT_ACK (1.0) + { 0x420074, 0x410076 }, // CMSG_MOVE_SET_ADV_FLYING_DOUBLE_JUMP_VEL_MOD_ACK (1.0) + { 0x420075, 0x410077 }, // CMSG_MOVE_SET_ADV_FLYING_GLIDE_START_MIN_HEIGHT_ACK (1.0) + { 0x420076, 0x410078 }, // CMSG_MOVE_SET_ADV_FLYING_ADD_IMPULSE_MAX_SPEED_ACK (1.0) + { 0x420077, 0x410079 }, // CMSG_MOVE_SET_ADV_FLYING_BANKING_RATE_ACK (1.0) + { 0x420078, 0x41007A }, // CMSG_MOVE_SET_ADV_FLYING_PITCHING_RATE_DOWN_ACK (1.0) + { 0x420079, 0x41007B }, // CMSG_MOVE_SET_ADV_FLYING_PITCHING_RATE_UP_ACK (1.0) + { 0x42007A, 0x41007C }, // CMSG_MOVE_SET_ADV_FLYING_TURN_VELOCITY_THRESHOLD_ACK (1.0) + { 0x42007B, 0x41007D }, // CMSG_MOVE_SET_ADV_FLYING_SURFACE_FRICTION_ACK (1.0) + { 0x42007C, 0x41007E }, // CMSG_MOVE_SET_ADV_FLYING_OVER_MAX_DECELERATION_ACK (1.0) + { 0x42007D, 0x41007F }, // CMSG_MOVE_SET_FACING_HEARTBEAT (1.0) + { 0x42007E, 0x410080 }, // CMSG_MOVE_SET_ADV_FLYING_LAUNCH_SPEED_COEFFICIENT_ACK (1.0) + { 0x42007F, 0x41007F }, // CMSG_MOVE_SET_FACING_HEARTBEAT (manual) + { 0x420080, 0x410084 }, // CMSG_MOVE_ENABLE_FULL_SPEED_TURNING_ACK (1.0) + { 0x420083, 0x410085 }, // CMSG_MOVE_ENABLE_FULL_SPEED_PITCHING_ACK (1.0) + { 0x420084, 0x410086 }, // CMSG_MOVE_DISABLE_JUMPING_ACK (1.0) + { 0x420085, 0x410087 }, // CMSG_MOVE_DISABLE_STRAFING_ACK (1.0) + { 0x440000, 0x430000 }, // CMSG_CONNECT_TO_FAILED (0.0) + { 0x440004, 0x430004 }, // CMSG_ADDON_LIST (0.0) + { 0x440006, 0x430008 }, // CMSG_REQUEST_BATTLEFIELD_STATUS (0.0) + { 0x440008, 0x43000A }, // CMSG_START_WAR_GAME (0.0) + { 0x44000B, 0x43000B }, // CMSG_START_SPECTATOR_WAR_GAME (0.0) + { 0x44000C, 0x43000C }, // CMSG_ACCEPT_WARGAME_INVITE (0.0) + { 0x44000F, 0x43000F }, // CMSG_REQUEST_RATED_PVP_INFO (0.0) + { 0x440011, 0x430011 }, // CMSG_HOTFIX_REQUEST (-0.4) + { 0x440013, 0x430013 }, // CMSG_GENERATE_RANDOM_CHARACTER_NAME (4.6) + { 0x440014, 0x430014 }, // CMSG_ENUM_CHARACTERS (0.0) + { 0x440016, 0x430016 }, // CMSG_PLAYER_LOGIN (-0.4) + { 0x440018, 0x430018 }, // CMSG_WARDEN3_DATA (0.0) + { 0x44001A, 0x43001A }, // CMSG_GET_PVP_OPTIONS_ENABLED (0.0) + { 0x44001B, 0x43001B }, // CMSG_COMMENTATOR_START_WARGAME (0.0) + { 0x44001C, 0x43001C }, // CMSG_COMMENTATOR_ENABLE (0.0) + { 0x44001D, 0x43001D }, // CMSG_COMMENTATOR_GET_MAP_INFO (0.0) + { 0x44001E, 0x43001E }, // CMSG_COMMENTATOR_GET_PLAYER_INFO (0.0) + { 0x44001F, 0x43001F }, // CMSG_COMMENTATOR_GET_PLAYER_COOLDOWNS (0.0) + { 0x440020, 0x430020 }, // CMSG_COMMENTATOR_ENTER_INSTANCE (0.0) + { 0x440021, 0x430021 }, // CMSG_COMMENTATOR_EXIT_INSTANCE (0.0) + { 0x440025, 0x430025 }, // CMSG_WORLD_PORT_RESPONSE (0.0) + { 0x440026, 0x430026 }, // CMSG_SEND_MAIL (4.2) + { 0x440028, 0x430028 }, // CMSG_REQUEST_CHAT_LOGIN (0.0) + { 0x440029, 0x430029 }, // CMSG_ACCEPT_GUILD_INVITE (3.8) + { 0x440034, 0x430032 }, // CMSG_PARTY_INVITE_RESPONSE (1.0) + { 0x440035, 0x430034 }, // CMSG_GUILD_INVITE_BY_NAME (1.0) + { 0x440036, 0x430035 }, // CMSG_DF_PROPOSAL_RESPONSE (1.0) + { 0x440037, 0x430036 }, // CMSG_DF_CONFIRM_EXPAND_SEARCH (0.0) + { 0x440038, 0x430037 }, // CMSG_DF_JOIN (1.0) + { 0x440039, 0x43003B }, // CMSG_LFG_LIST_APPLY_TO_GROUP (0.0) + { 0x44003A, 0x43003C }, // CMSG_LFG_LIST_CANCEL_APPLICATION (0.0) + { 0x44003B, 0x430040 }, // CMSG_DF_LEAVE (1.0) + { 0x44003C, 0x430041 }, // CMSG_DF_GET_SYSTEM_INFO (1.0) + { 0x44003D, 0x430043 }, // CMSG_DF_SET_ROLES (1.0) + { 0x44003E, 0x430044 }, // CMSG_DF_BOOT_PLAYER_VOTE (1.0) + { 0x44003F, 0x430045 }, // CMSG_DF_TELEPORT (1.0) + { 0x440040, 0x430046 }, // CMSG_SET_EVERYONE_IS_ASSISTANT (1.0) + { 0x440047, 0x430047 }, // CMSG_SET_RESTRICT_PINGS_TO_ASSISTANTS (0.0) + { 0x440048, 0x430048 }, // CMSG_DF_READY_CHECK_RESPONSE (0.0) + { 0x44004D, 0x43004D }, // CMSG_BATTLE_PET_REQUEST_JOURNAL_LOCK (0.0) + { 0x44004E, 0x43004E }, // CMSG_BATTLE_PET_REQUEST_JOURNAL (0.0) + { 0x44004F, 0x43004F }, // CMSG_BATTLE_PET_DELETE_PET (3.8) + { 0x440052, 0x430052 }, // CMSG_BATTLE_PET_MODIFY_NAME (1.8) + { 0x440053, 0x430053 }, // CMSG_BATTLE_PET_SUMMON (3.8) + { 0x440057, 0x430057 }, // CMSG_BATTLE_PET_SET_BATTLE_SLOT (4.6) + { 0x44005A, 0x430061 }, // CMSG_INSTANCE_ABANDON_VOTE_RESPONSE (0.0) + { 0x44005C, 0x430072 }, // CMSG_SUPPORT_TICKET_SUBMIT_COMPLAINT (1.0) + { 0x44009F, 0x43009F }, // CMSG_CALENDAR_REMOVE_INVITE (0.0) + { 0x4400A0, 0x4300A0 }, // CMSG_CALENDAR_RSVP (5.4) + { 0x4400A1, 0x4300A1 }, // CMSG_CALENDAR_STATUS (7.0) + { 0x4400A2, 0x4300A2 }, // CMSG_CALENDAR_MODERATOR_STATUS (7.0) + { 0x4400A3, 0x4300A3 }, // CMSG_CALENDAR_REMOVE_EVENT (6.2) + { 0x4400A4, 0x4300A4 }, // CMSG_CALENDAR_COPY_EVENT (3.4) + { 0x4400A5, 0x4300A5 }, // CMSG_CALENDAR_COMPLAIN (5.4) + { 0x4400A6, 0x4300A6 }, // CMSG_CALENDAR_GET_NUM_PENDING (0.0) + { 0x4400A7, 0x4300A7 }, // CMSG_CALENDAR_EVENT_SIGN_UP (-0.4) + { 0x4400A9, 0x4300A9 }, // CMSG_CALENDAR_ADD_EVENT (1.0) + { 0x4400AA, 0x4300AA }, // CMSG_CALENDAR_UPDATE_EVENT (1.0) + { 0x4400AB, 0x4300AB }, // CMSG_KEEP_ALIVE (0.0) + { 0x4400AC, 0x4300AC }, // CMSG_WHO_IS (1.0) + { 0x4400AD, 0x4300AD }, // CMSG_WHO (1.0) + { 0x4400AE, 0x4300AE }, // CMSG_SET_DUNGEON_DIFFICULTY (3.8) + { 0x4400B0, 0x4300AF }, // CMSG_RESURRECT_RESPONSE (1.0) + { 0x4400B2, 0x4300B0 }, // CMSG_PET_RENAME (1.0) + { 0x4400B4, 0x4300B4 }, // CMSG_SET_PLAYER_DECLINED_NAMES (1.8) + { 0x4400B5, 0x4300B5 }, // CMSG_QUERY_REALM_NAME (3.8) + { 0x4400B6, 0x4300B6 }, // CMSG_QUERY_GUILD_INFO (0.0) + { 0x4400B7, 0x4300B7 }, // CMSG_QUERY_NEIGHBORHOOD_INFO (0.0) + { 0x4400B8, 0x4300B8 }, // CMSG_REQUEST_CHARACTER_GUILD_FOLLOW_INFO (0.0) + { 0x4400B9, 0x4300B9 }, // CMSG_CHAR_CUSTOMIZE (1.0) + { 0x4400BB, 0x4300BB }, // CMSG_GM_TICKET_GET_SYSTEM_STATUS (0.0) + { 0x4400BC, 0x4300BC }, // CMSG_GM_TICKET_GET_CASE_STATUS (0.0) + { 0x4400BD, 0x4300BD }, // CMSG_GM_TICKET_ACKNOWLEDGE_SURVEY (0.0) + { 0x4400C1, 0x4300C1 }, // CMSG_ACCOUNT_STORE_BEGIN_PURCHASE_OR_REFUND (0.0) + { 0x4400C2, 0x4300C2 }, // CMSG_SUBMIT_USER_FEEDBACK (1.0) + { 0x4400C3, 0x4300C3 }, // CMSG_REQUEST_ACCOUNT_DATA (4.6) + { 0x4400C4, 0x4300C4 }, // CMSG_UPDATE_ACCOUNT_DATA (1.0) + { 0x4400CA, 0x4300CA }, // CMSG_SERVER_TIME_OFFSET_REQUEST (0.0) + { 0x4400CB, 0x4300CB }, // CMSG_CHAR_DELETE (3.8) + { 0x4400CF, 0x4300CF }, // CMSG_LOW_LEVEL_RAID1 (0.0) + { 0x4400DE, 0x4300DE }, // CMSG_QUEST_POI_QUERY (1.8) + { 0x4400E4, 0x4300E4 }, // CMSG_GET_ACCOUNT_CHARACTER_LIST (0.0) + { 0x4400E5, 0x4300E5 }, // CMSG_LIVE_REGION_GET_ACCOUNT_CHARACTER_LIST (0.0) + { 0x4400E6, 0x4300E6 }, // CMSG_LIVE_REGION_CHARACTER_COPY (0.0) + { 0x4400E7, 0x4300E7 }, // CMSG_LIVE_REGION_ACCOUNT_RESTORE (0.0) + { 0x4400E8, 0x4300E8 }, // CMSG_LIVE_REGION_KEY_BINDINGS_COPY (0.0) + { 0x4400E9, 0x4300E9 }, // CMSG_BATTLE_PAY_GET_PRODUCT_LIST (0.0) + { 0x4400EA, 0x4300EA }, // CMSG_BATTLE_PAY_GET_PURCHASE_LIST (0.0) + { 0x4400F0, 0x4300F0 }, // CMSG_CHARACTER_RENAME_REQUEST (1.0) + { 0x4400F1, 0x4300F1 }, // CMSG_SHOW_TRADE_SKILL (0.0) + { 0x4400F2, 0x4300F2 }, // CMSG_BATTLE_PAY_DISTRIBUTION_ASSIGN_TO_TARGET (0.0) + { 0x4400F3, 0x4300F3 }, // CMSG_CHARACTER_UPGRADE_MANUAL_UNREVOKE_REQUEST (0.0) + { 0x4400F4, 0x4300F4 }, // CMSG_CHARACTER_UPGRADE_START (0.0) + { 0x4400F5, 0x4300F5 }, // CMSG_CHARACTER_CHECK_UPGRADE (0.0) + { 0x4400F7, 0x4300F7 }, // CMSG_GUILD_SET_GUILD_MASTER (1.0) + { 0x4400F8, 0x4300F8 }, // CMSG_PETITION_RENAME_GUILD (1.8) + { 0x4400F9, 0x4300FB }, // CMSG_BATTLE_PAY_CONFIRM_PURCHASE_RESPONSE (0.0) + { 0x44010B, 0x4300FD }, // CMSG_CATALOG_SHOP_LICENSE_GAME_DATA_REQUEST (0.0) + { 0x44010C, 0x4300FF }, // CMSG_SEND_CONTACT_LIST (3.8) + { 0x44010D, 0x43010D }, // CMSG_ENUM_CHARACTERS_DELETED_BY_CLIENT (0.0) + { 0x44010E, 0x43010E }, // CMSG_UNDELETE_CHARACTER (1.0) + { 0x44010F, 0x43010F }, // CMSG_GET_UNDELETE_CHARACTER_COOLDOWN_STATUS (0.0) + { 0x440118, 0x430115 }, // CMSG_COMMERCE_TOKEN_GET_MARKET_PRICE (3.8) + { 0x440119, 0x430119 }, // CMSG_CONSUMABLE_TOKEN_BUY (0.0) + { 0x44011A, 0x43011A }, // CMSG_CONSUMABLE_TOKEN_BUY_AT_MARKET_PRICE (0.0) + { 0x44011B, 0x43011B }, // CMSG_GET_REMAINING_GAME_TIME (0.0) + { 0x44011C, 0x43011C }, // CMSG_CONSUMABLE_TOKEN_REDEEM (0.0) + { 0x44011D, 0x43011D }, // CMSG_CONSUMABLE_TOKEN_REDEEM_CONFIRMATION (0.0) + { 0x44011E, 0x43011E }, // CMSG_COMMERCE_TOKEN_GET_LOG (3.8) + { 0x440120, 0x430120 }, // CMSG_GET_VAS_ACCOUNT_CHARACTER_LIST (0.0) + { 0x440121, 0x430121 }, // CMSG_GET_VAS_TRANSFER_TARGET_REALM_LIST (0.0) + { 0x440122, 0x430122 }, // CMSG_BATTLE_PAY_START_VAS_PURCHASE (0.0) + { 0x440123, 0x430123 }, // CMSG_UPDATE_VAS_PURCHASE_STATES (0.0) + { 0x440124, 0x430124 }, // CMSG_BATTLENET_REQUEST (1.0) + { 0x440126, 0x430126 }, // CMSG_CLUB_PRESENCE_SUBSCRIBE (0.0) + { 0x440127, 0x430127 }, // CMSG_RAF_RECRUIT_PRESENCE_SUBSCRIBE (0.0) + { 0x440128, 0x430128 }, // CMSG_SEND_CHARACTER_CLUB_INVITATION (0.0) + { 0x440129, 0x43012F }, // CMSG_QUICK_JOIN_SIGNAL_TOAST_DISPLAYED (0.0) + { 0x44012F, 0x430130 }, // CMSG_QUICK_JOIN_RESPOND_TO_INVITE (0.0) + { 0x440130, 0x430131 }, // CMSG_QUICK_JOIN_REQUEST_INVITE (0.0) + { 0x440131, 0x430132 }, // CMSG_QUICK_JOIN_AUTO_ACCEPT_REQUESTS (0.0) + { 0x440132, 0x430133 }, // CMSG_SET_EXCLUDED_CHAT_CENSOR_SOURCES (0.0) + { 0x440133, 0x430134 }, // CMSG_CAN_REDEEM_TOKEN_FOR_BALANCE (0.0) + { 0x440134, 0x430135 }, // CMSG_BATTLE_PAY_REQUEST_PRICE_INFO (0.0) + { 0x440135, 0x430137 }, // CMSG_VAS_GET_SERVICE_STATUS (0.0) + { 0x440137, 0x430139 }, // CMSG_VAS_CHECK_TRANSFER_OK (0.0) + { 0x440150, 0x43014F }, // CMSG_CLUB_FINDER_REQUEST_SUBSCRIBED_CLUB_POSTING_IDS (0.0) + { 0x440151, 0x430150 }, // CMSG_GET_RAF_ACCOUNT_INFO (0.0) + { 0x440152, 0x430151 }, // CMSG_RAF_CLAIM_NEXT_REWARD (0.0) + { 0x440153, 0x430152 }, // CMSG_RAF_UPDATE_RECRUITMENT_INFO (0.0) + { 0x440154, 0x430153 }, // CMSG_RAF_GENERATE_RECRUITMENT_LINK (0.0) + { 0x44015B, 0x430154 }, // CMSG_REMOVE_RAF_RECRUIT (0.0) + { 0x440160, 0x43015B }, // CMSG_QUEST_SESSION_REQUEST_STOP (0.0) + { 0x440162, 0x430160 }, // CMSG_QUICK_JOIN_REQUEST_INVITE_WITH_CONFIRMATION (0.0) + { 0x440163, 0x430162 }, // CMSG_GET_ACCOUNT_NOTIFICATIONS (0.0) + { 0x440164, 0x430163 }, // CMSG_ACCOUNT_NOTIFICATION_ACKNOWLEDGED (0.0) + { 0x440166, 0x430166 }, // CMSG_UPDATE_AADC_STATUS (0.0) + { 0x440167, 0x430167 }, // CMSG_BATTLE_PAY_DISTRIBUTION_ASSIGN_VAS (0.0) + { 0x440168, 0x430168 }, // CMSG_COMMENTATOR_SPECTATE (0.0) + { 0x44016A, 0x43016A }, // CMSG_CLUB_FINDER_WHISPER_APPLICANT_REQUEST (0.0) + { 0x44016B, 0x43016B }, // CMSG_LOBBY_MATCHMAKER_PARTY_INVITE (0.0) + { 0x44016C, 0x43016C }, // CMSG_LOBBY_MATCHMAKER_ACCEPT_PARTY_INVITE (0.0) + { 0x44016D, 0x43016D }, // CMSG_LOBBY_MATCHMAKER_REJECT_PARTY_INVITE (0.0) + { 0x44016E, 0x43016E }, // CMSG_LOBBY_MATCHMAKER_PARTY_UNINVITE (0.0) + { 0x44016F, 0x43016F }, // CMSG_LOBBY_MATCHMAKER_LEAVE_PARTY (0.0) + { 0x440170, 0x430170 }, // CMSG_LOBBY_MATCHMAKER_SET_PARTY_PLAYLIST_ENTRY (0.0) + { 0x440171, 0x430171 }, // CMSG_LOBBY_MATCHMAKER_SET_PLAYER_READY (0.0) + { 0x440172, 0x430172 }, // CMSG_REGISTER_FAST_LOGIN (0.0) + { 0x440173, 0x430173 }, // CMSG_LOBBY_MATCHMAKER_ENTER_QUEUE (0.0) + { 0x440174, 0x430174 }, // CMSG_LOBBY_MATCHMAKER_QUEUE_PROPSAL_RESPONSE (0.0) + { 0x440175, 0x430175 }, // CMSG_LOBBY_MATCHMAKER_ABANDON_QUEUE (0.0) + { 0x440176, 0x430176 }, // CMSG_SOCIAL_CONTRACT_REQUEST (0.0) + { 0x440177, 0x430177 }, // CMSG_ACCEPT_SOCIAL_CONTRACT (0.0) + { 0x44017D, 0x43017B }, // CMSG_SAVE_ACCOUNT_DATA_EXPORT (0.0) + { 0x440180, 0x43017E }, // CMSG_LOBBY_MATCHMAKER_CREATE_CHARACTER (0.0) + { 0x440182, 0x43018D }, // CMSG_CONVERT_TIMERUNNING_CHARACTER (0.0) + { 0x440190, 0x43018F }, // CMSG_SETUP_WARBAND_GROUPS (0.0) + { 0x440191, 0x430193 }, // CMSG_GET_REGIONWIDE_CHARACTER_RESTRICTION_AND_MAIL_DATA (0.0) + { 0x440197, 0x430197 }, // CMSG_SERVER_VALIDATION_SIGNATURE_REQUEST (0.0) + { 0x44019A, 0x430198 }, // CMSG_RECENT_ALLY_REQUEST_DATA (0.0) + { 0x44019B, 0x430199 }, // CMSG_RECENT_ALLY_SET_NOTE (0.0) + { 0x44019C, 0x43019B }, // CMSG_INVITE_PLAYER_TO_NEIGHBORHOOD (0.0) + { 0x44019D, 0x43019C }, // CMSG_REFRESH_ENTITLEMENTS_ON_ORDER_COMPLETE (0.0) + { 0x44019F, 0x4301A0 }, // CMSG_BLEEP_PONG (0.0) + { 0x4401A0, 0x4301A1 }, // CMSG_FETCH_BLEEP_PROXIES (0.0) + { 0x4401A4, 0x4301A2 }, // CMSG_REFRESH_BLEEP_TOKENS (0.0) + { 0x4401A5, 0x4301A3 }, // CMSG_EXPIRE_BLEEP_TOKENS (0.0) + { 0x4401A6, 0x4301A4 }, // CMSG_HOUSING_PHOTO_SHARING_COMPLETE_AUTHORIZATION (0.0) + { 0x4401A7, 0x4301A5 }, // CMSG_HOUSING_PHOTO_SHARING_CLEAR_AUTHORIZATION (0.0) + { 0x4401A9, 0x4301AB }, // CMSG_LFG_LIST_CONFIRM_CENSORED_ACTIVE_ENTRY (0.0) + { 0x450000, 0x440000 }, // CMSG_SUSPEND_COMMS_ACK (0.0) + { 0x450001, 0x440001 }, // CMSG_AUTH_SESSION (0.0) + { 0x450003, 0x440003 }, // CMSG_AUTH_CONTINUED_SESSION (0.0) + { 0x450005, 0x440005 }, // CMSG_ENTER_ENCRYPTED_MODE_ACK (0.0) + { 0x450006, 0x440006 }, // CMSG_PING (0.0) + { 0x450007, 0x440007 }, // CMSG_LOG_DISCONNECT (0.0) + { 0x450008, 0x440008 }, // CMSG_SUSPEND_TOKEN_RESPONSE (3.8) + { 0x45000A, 0x440009 }, // CMSG_ENABLE_NAGLE (0.0) + { 0x45000B, 0x44000A }, // CMSG_QUEUED_MESSAGES_END (0.0) + { 0x45000D, 0x44000B }, // CMSG_LOG_STREAMING_ERROR (0.0) + { 0x45000E, 0x44000D }, // CMSG_QUERY_PLAYER_NAME_BY_COMMUNITY_ID (0.0) + { 0x45000F, 0x44000E }, // CMSG_QUERY_PLAYER_NAMES_FOR_COMMUNITY (0.0) + { 0x450010, 0x44000F }, // CMSG_LATENCY_REPORT (0.0) + { 0x450011, 0x440010 }, // CMSG_QUERY_PLAYER_NAMES (1.8) + { 0x3F00E6, 0x3E00E3 }, // CMSG_EMOTE (region 0x3F00E0-0x3F00F0 = retail - 3, manual) + { 0x3F00E8, 0x3E00E5 }, // CMSG_OPENING_CINEMATIC (region 0x3F00E0-0x3F00F0 = retail - 3, manual) + { 0x3F00E9, 0x3E00E6 }, // CMSG_NEXT_CINEMATIC_CAMERA (region 0x3F00E0-0x3F00F0 = retail - 3, manual) + { 0x3F00EA, 0x3E00E7 }, // CMSG_COMPLETE_CINEMATIC (region 0x3F00E0-0x3F00F0 = retail - 3, manual) + { 0x3F00EB, 0x3E00E8 }, // CMSG_CONVERSATION_LINE_STARTED (region 0x3F00E0-0x3F00F0 = retail - 3, manual) + { 0x3F00EC, 0x3E00E9 }, // CMSG_CONVERSATION_CINEMATIC_READY (region 0x3F00E0-0x3F00F0 = retail - 3, manual) + { 0x3E00CD, 0x3D00CC }, // CMSG_LOOT_MONEY (loot block 0x3E00CC-0x3E00D3 = retail - 1, manual) + { 0x3E00CE, 0x3D00CD }, // CMSG_LOOT_ITEM (loot block 0x3E00CC-0x3E00D3 = retail - 1, manual) + { 0x3E00CF, 0x3D00CE }, // CMSG_MASTER_LOOT_ITEM (loot block 0x3E00CC-0x3E00D3 = retail - 1, manual) diff --git a/src/server/game/Server/Protocol/ClassicOpcodes.cpp b/src/server/game/Server/Protocol/ClassicOpcodes.cpp new file mode 100644 index 0000000000..05d7cbc119 --- /dev/null +++ b/src/server/game/Server/Protocol/ClassicOpcodes.cpp @@ -0,0 +1,116 @@ +/* + * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#include "ClassicOpcodes.h" +#include "Opcodes.h" +#include +#include + +namespace +{ +// Opcodes are 0xGGIIII: group byte + index. The connection-level groups appear shifted by one in Classic: +// - client group 0x45 (retail 0x44): 0x450007 carried a single uint32 (3) = CMSG_LOG_DISCONNECT (retail 0x440007) +// - server group 0x4D (retail 0x4C, assumed by symmetry) +constexpr uint32 ClassicClientConnectionGroup = 0x45; +constexpr uint32 RetailClientConnectionGroup = 0x44; +constexpr uint32 ClassicServerConnectionGroup = 0x4D; +constexpr uint32 RetailServerConnectionGroup = 0x4C; + +// explicit Classic 1.60.1.70009 client opcode -> retail core opcode overrides +std::unordered_map const ClientOpcodes = +{ +#include "ClassicClientOpcodes.inc" +}; + +// explicit retail core opcode -> Classic 1.60.1.70009 client opcode overrides +// Client protocol (0x46): Classic removed one message somewhere before 0x1B5, so around 0x1B5-0x1C0 Classic index = retail index - 1 +// (decoder fixed sizes: Classic 0x1B6/0x1B7 = 16 bytes = retail GAME_TIME_UPDATE/GAME_TIME_SET, Classic 0x1B8 = 20 = retail LOGIN_SET_TIME_SPEED). +// Indices from 0x268 on match retail again, so a Classic-only message is inserted somewhere between 0x1C0 and 0x268. +std::unordered_map const ServerOpcodes = +{ + { SMSG_ACCOUNT_DATA_TIMES, 0x4601B5 }, // same layout as retail (guid, int64 server time, 20 x int64), decoder 0x81A300 + { SMSG_GAME_TIME_UPDATE, 0x4601B6 }, + { SMSG_GAME_TIME_SET, 0x4601B7 }, + { SMSG_LOGIN_SET_TIME_SPEED, 0x4601B8 }, + { SMSG_SERVER_TIME_OFFSET, 0x4601BF }, // decoder asserts datasize == 8; 0x1BD = CORPSE_TRANSPORT_QUERY, 0x1BE = ENCHANTMENT_LOG (both retail - 1) +}; + +// sent with the shifted number these hit a different Classic message (client JamClient size asserts) +std::unordered_set const BlockedServerOpcodes = +{ + SMSG_HEALTH_UPDATE, // does not exist in Classic (health is sent through UnitData) + SMSG_CHANNEL_LIST, // Classic chat group index 0x1B is a different message (guid + strings, client rva 0xA12965): crashes on string length +}; + +// Classic layout differs; the client waits for the message, so send a placeholder of the expected size +std::unordered_map> const StubServerPayloads = +{ + { SMSG_ACCOUNT_ITEM_COLLECTION_DATA, std::vector(4, 0) }, // retail 10 bytes, Classic 0x460360 expects 4 (JamClient.cpp:167052) +}; + +constexpr uint32 OpcodeGroup(uint32 opcode) { return opcode >> 16; } +constexpr uint32 WithOpcodeGroup(uint32 opcode, uint32 group) { return (group << 16) | (opcode & 0xFFFF); } +} + +// Hypothesis under test: every opcode group is shifted by +1 in Classic (verified for the connection groups 0x44/0x4C) +constexpr uint32 FirstRetailClientGroup = 0x2A; +constexpr uint32 LastRetailClientGroup = RetailClientConnectionGroup; +constexpr uint32 FirstRetailServerGroup = 0x45; +constexpr uint32 LastRetailServerGroup = 0x6A; + +uint32 ClassicOpcodes::TranslateClientOpcode(uint32 classicOpcode) +{ + if (auto itr = ClientOpcodes.find(classicOpcode); itr != ClientOpcodes.end()) + return itr->second; + + uint32 group = OpcodeGroup(classicOpcode); + if (group >= FirstRetailClientGroup + 1 && group <= ClassicClientConnectionGroup) + return WithOpcodeGroup(classicOpcode, group - 1); + + return classicOpcode; +} + +uint32 ClassicOpcodes::TranslateServerOpcode(uint32 coreOpcode) +{ + if (auto itr = ServerOpcodes.find(coreOpcode); itr != ServerOpcodes.end()) + return itr->second; + + uint32 group = OpcodeGroup(coreOpcode); + if (group >= FirstRetailServerGroup && group <= LastRetailServerGroup) + { + uint32 index = coreOpcode & 0xFFFF; + // Client protocol (retail 0x45): Classic removed SMSG_HEALTH_UPDATE (retail 0x17D), so Classic index = retail - 1 for retail + // 0x17E..0x1C0 (signature alignment, classic_re/smsg_align.py: POWER_UPDATE at Classic 0x17D, PLAYED_TIME 0x180, LOG_XP_GAIN 0x18F, + // mirror timers, SERVER_TIME_OFFSET 0x1BF; MINIMAP_PING 0x17A and FISH_* 0x17B/0x17C keep their index) + if (group == FirstRetailServerGroup && index >= 0x17E && index <= 0x1C0) + --index; + return ((group + 1) << 16) | index; + } + + return coreOpcode; +} + +bool ClassicOpcodes::IsServerOpcodeBlocked(uint32 coreOpcode) +{ + return BlockedServerOpcodes.contains(coreOpcode); +} + +std::vector const* ClassicOpcodes::GetServerStubPayload(uint32 coreOpcode) +{ + auto itr = StubServerPayloads.find(coreOpcode); + return itr != StubServerPayloads.end() ? &itr->second : nullptr; +} diff --git a/src/server/game/Server/Protocol/ClassicOpcodes.h b/src/server/game/Server/Protocol/ClassicOpcodes.h new file mode 100644 index 0000000000..6722dd3a45 --- /dev/null +++ b/src/server/game/Server/Protocol/ClassicOpcodes.h @@ -0,0 +1,41 @@ +/* + * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#ifndef TRINITYCORE_CLASSIC_OPCODES_H +#define TRINITYCORE_CLASSIC_OPCODES_H + +#include "Define.h" +#include + +/// Opcode translation between the WoW Classic 1.60.1 client (build 70009) and the retail opcode numbers used by the core. +/// Entries are added as they are discovered; opcodes without an entry are passed through unchanged. +namespace ClassicOpcodes +{ + /// client number -> core OpcodeClient value + TC_GAME_API uint32 TranslateClientOpcode(uint32 classicOpcode); + + /// core OpcodeServer value -> client number + TC_GAME_API uint32 TranslateServerOpcode(uint32 coreOpcode); + + /// server opcodes whose Classic number is not known yet and that crash the client when sent with the shifted retail number + TC_GAME_API bool IsServerOpcodeBlocked(uint32 coreOpcode); + + /// server opcodes whose Classic layout differs and for which a fixed placeholder payload is sent instead (nullptr if none) + TC_GAME_API std::vector const* GetServerStubPayload(uint32 coreOpcode); +} + +#endif // TRINITYCORE_CLASSIC_OPCODES_H diff --git a/src/server/game/Server/WorldSocket.cpp b/src/server/game/Server/WorldSocket.cpp index 3b3b627bd7..3dbee798b0 100644 --- a/src/server/game/Server/WorldSocket.cpp +++ b/src/server/game/Server/WorldSocket.cpp @@ -19,6 +19,8 @@ #include "AuthenticationPackets.h" #include "BattlenetRpcErrorCodes.h" #include "CharacterPackets.h" +#include "ClassicOpcodes.h" +#include "Config.h" #include "CryptoHash.h" #include "CryptoRandom.h" #include "DatabaseEnv.h" @@ -370,14 +372,20 @@ WorldSocket::ReadDataHandlerResult WorldSocket::ReadDataHandler() } WorldPacket packet(std::move(_packetBuffer).Release(), GetConnectionType()); - OpcodeClient opcode = packet.read(); + uint32 rawOpcode = packet.read(); + OpcodeClient opcode = OpcodeClient(ClassicOpcodes::TranslateClientOpcode(rawOpcode)); if (!opcodeTable.IsValid(opcode)) { - TC_LOG_ERROR("network", "WorldSocket::ReadHeaderHandler(): client {} sent wrong opcode (opcode: {})", - GetRemoteIpAddress(), uint32(opcode)); - return ReadDataHandlerResult::Error; + TC_LOG_ERROR("network", "WorldSocket::ReadHeaderHandler(): client {} sent wrong opcode (opcode: 0x{:06X} = {}, size: {}) data: {}", + GetRemoteIpAddress(), rawOpcode, rawOpcode, packet.size() - packet.rpos(), + Trinity::Impl::ByteArrayToHexStr(packet.data() + packet.rpos(), std::min(packet.size() - packet.rpos(), 256))); + // Classic 1.60.1.70009: many client opcodes are not mapped yet, skip them instead of dropping the connection + return ReadDataHandlerResult::Ok; } + if (rawOpcode != uint32(opcode)) + TC_LOG_DEBUG("network.opcode", "C->S: classic opcode 0x{:06X} translated to {}", rawOpcode, GetOpcodeNameForLogging(opcode)); + packet.SetOpcode(opcode); if (sPacketLog->CanLogPacket()) @@ -465,6 +473,25 @@ void WorldSocket::SendPacket(WorldPacket const& packet) if (!IsOpen()) return; + if (ClassicOpcodes::IsServerOpcodeBlocked(packet.GetOpcode())) + { + TC_LOG_DEBUG("network.opcode", "S->C: {} {} not sent (blocked for Classic client)", GetRemoteIpAddress(), GetOpcodeNameForLogging(static_cast(packet.GetOpcode()))); + return; + } + + if (std::vector const* stub = ClassicOpcodes::GetServerStubPayload(packet.GetOpcode())) + { + WorldPacket stubPacket(OpcodeServer(packet.GetOpcode()), stub->size(), packet.GetConnection()); + if (!stub->empty()) + stubPacket.append(stub->data(), stub->size()); + + if (sPacketLog->CanLogPacket()) + sPacketLog->LogPacket(stubPacket, SERVER_TO_CLIENT, GetRemoteIpAddress(), GetRemotePort(), GetConnectionType()); + + _bufferQueue.Enqueue(new EncryptablePacket(stubPacket, _authCrypt.IsInitialized())); + return; + } + if (sPacketLog->CanLogPacket()) sPacketLog->LogPacket(packet, SERVER_TO_CLIENT, GetRemoteIpAddress(), GetRemotePort(), GetConnectionType()); @@ -473,7 +500,7 @@ void WorldSocket::SendPacket(WorldPacket const& packet) void WorldSocket::WritePacketToBuffer(EncryptablePacket const& packet, MessageBuffer& buffer) { - uint32 opcode = packet.GetOpcode(); + uint32 opcode = ClassicOpcodes::TranslateServerOpcode(packet.GetOpcode()); uint32 packetSize = packet.size(); // Reserve space for buffer @@ -500,7 +527,7 @@ void WorldSocket::WritePacketToBuffer(EncryptablePacket const& packet, MessageBu buffer.WriteCompleted(compressedSize); packetSize = compressedSize + sizeof(CompressedWorldPacket); - opcode = SMSG_COMPRESSED_PACKET; + opcode = ClassicOpcodes::TranslateServerOpcode(SMSG_COMPRESSED_PACKET); } else if (!packet.empty()) buffer.Write(packet.data(), packet.size()); @@ -517,7 +544,7 @@ void WorldSocket::WritePacketToBuffer(EncryptablePacket const& packet, MessageBu uint32 WorldSocket::CompressPacket(uint8* buffer, WorldPacket const& packet) { - uint32 opcode = packet.GetOpcode(); + uint32 opcode = ClassicOpcodes::TranslateServerOpcode(packet.GetOpcode()); uint32 bufferSize = deflateBound(_compressionStream, packet.size() + sizeof(opcode)); _compressionStream->next_out = buffer; @@ -678,34 +705,46 @@ void WorldSocket::HandleAuthSessionCallback(WorldPackets::Auth::AuthSession cons .Arch = ClientBuild::Arch::Id(joinTicket->clientarch()), .Type = ClientBuild::Type::Id(joinTicket->type()) }; + // Development aid for clients whose per-build auth key is not known yet (e.g. Classic beta) + // Session key derivation below does not depend on the build auth key, so skipping the digest check is enough + bool const skipBuildAuthKeyCheck = sConfigMgr->GetBoolDefault("Network.SkipBuildAuthKeyCheck", false); + auto clientBuildAuthKey = std::ranges::find(buildInfo->AuthKeys, buildVariant, &ClientBuild::AuthKey::Variant); if (clientBuildAuthKey == buildInfo->AuthKeys.end()) { - SendAuthResponseError(ERROR_BAD_VERSION); - TC_LOG_ERROR("network", "WorldSocket::HandleAuthSession: Missing client build auth key for build {} variant {}-{}-{} ({}).", account.Game.Build, - buildVariant.Platform, buildVariant.Arch, buildVariant.Type, address); - DelayedCloseSocket(); - return; + if (!skipBuildAuthKeyCheck) + { + SendAuthResponseError(ERROR_BAD_VERSION); + TC_LOG_ERROR("network", "WorldSocket::HandleAuthSession: Missing client build auth key for build {} variant {}-{}-{} ({}).", account.Game.Build, + buildVariant.Platform, buildVariant.Arch, buildVariant.Type, address); + DelayedCloseSocket(); + return; + } + + TC_LOG_WARN("network", "WorldSocket::HandleAuthSession: Missing client build auth key for build {} variant {}-{}-{} ({}), digest check skipped (Network.SkipBuildAuthKeyCheck).", + account.Game.Build, buildVariant.Platform, buildVariant.Arch, buildVariant.Type, address); } - - Trinity::Crypto::SHA512 digestKeyHash; - digestKeyHash.UpdateData(account.Game.KeyData.data(), account.Game.KeyData.size()); - digestKeyHash.UpdateData(clientBuildAuthKey->Key.data(), clientBuildAuthKey->Key.size()); - digestKeyHash.Finalize(); - - Trinity::Crypto::HMAC_SHA512 hmac(digestKeyHash.GetDigest()); - hmac.UpdateData(authSession->LocalChallenge); - hmac.UpdateData(_serverChallenge); - hmac.UpdateData(AuthCheckSeed); - hmac.Finalize(); - - // Check that Key and account name are the same on client and server - if (memcmp(hmac.GetDigest().data(), authSession->Digest.data(), authSession->Digest.size()) != 0) + else { - SendAuthResponseError(ERROR_DENIED); - TC_LOG_ERROR("network", "WorldSocket::HandleAuthSession: Authentication failed for account: {} ('{}') address: {}", account.Game.Id, joinTicket->gameaccount(), address); - DelayedCloseSocket(); - return; + Trinity::Crypto::SHA512 digestKeyHash; + digestKeyHash.UpdateData(account.Game.KeyData.data(), account.Game.KeyData.size()); + digestKeyHash.UpdateData(clientBuildAuthKey->Key.data(), clientBuildAuthKey->Key.size()); + digestKeyHash.Finalize(); + + Trinity::Crypto::HMAC_SHA512 hmac(digestKeyHash.GetDigest()); + hmac.UpdateData(authSession->LocalChallenge); + hmac.UpdateData(_serverChallenge); + hmac.UpdateData(AuthCheckSeed); + hmac.Finalize(); + + // Check that Key and account name are the same on client and server + if (memcmp(hmac.GetDigest().data(), authSession->Digest.data(), authSession->Digest.size()) != 0) + { + SendAuthResponseError(ERROR_DENIED); + TC_LOG_ERROR("network", "WorldSocket::HandleAuthSession: Authentication failed for account: {} ('{}') address: {}", account.Game.Id, joinTicket->gameaccount(), address); + DelayedCloseSocket(); + return; + } } Trinity::Crypto::SHA512 keyData; @@ -861,7 +900,10 @@ void WorldSocket::LoadSessionPermissionsCallback(PreparedQueryResult result) // RBAC must be loaded before adding session to check for skip queue permission _worldSession->GetRBACData()->LoadFromDBCallback(std::move(result)); - SendPacketAndLogOpcode(*WorldPackets::Auth::EnterEncryptedMode(_encryptKey, true).Write()); + WorldPackets::Auth::EnterEncryptedMode enterEncryptedMode(_encryptKey, true); + // Classic (1.60+) clients pick the Ed25519 public key used to verify this packet by RegionGroup + enterEncryptedMode.RegionGroup = sConfigMgr->GetIntDefault("Network.EnterEncryptedModeRegionGroup", 0); + SendPacketAndLogOpcode(*enterEncryptedMode.Write()); } WorldSocket::ReadDataHandlerResult WorldSocket::HandleAuthContinuedSession(WorldPacket&& packet) @@ -944,7 +986,10 @@ void WorldSocket::HandleAuthContinuedSessionCallback(WorldPackets::Auth::AuthCon // only first 32 bytes of the hmac are used memcpy(_encryptKey.data(), encryptKeyGen.GetDigest().data(), 32); - SendPacketAndLogOpcode(*WorldPackets::Auth::EnterEncryptedMode(_encryptKey, true).Write()); + WorldPackets::Auth::EnterEncryptedMode enterEncryptedMode(_encryptKey, true); + // Classic (1.60+) clients pick the Ed25519 public key used to verify this packet by RegionGroup + enterEncryptedMode.RegionGroup = sConfigMgr->GetIntDefault("Network.EnterEncryptedModeRegionGroup", 0); + SendPacketAndLogOpcode(*enterEncryptedMode.Write()); AsyncRead(Trinity::Net::InvokeReadHandlerCallback{ .Socket = this }); } diff --git a/src/server/game/Services/WorldserverGameUtilitiesService.cpp b/src/server/game/Services/WorldserverGameUtilitiesService.cpp index 7956ccf2fc..aa7e11af34 100644 --- a/src/server/game/Services/WorldserverGameUtilitiesService.cpp +++ b/src/server/game/Services/WorldserverGameUtilitiesService.cpp @@ -68,6 +68,10 @@ uint32 GameUtilities::HandleClientRequest(WorldSession const* session, return GetRealmList(session, params, responseValues); case Trinity::HashFnv1a<>::GetHash("Command_RealmJoinRequest_v1"sv): return JoinRealm(session, params, responseValues); + case Trinity::HashFnv1a<>::GetHash("Command_SuperDistrictListRequest_v1"sv): + return GetSuperDistrictList(session, params, responseValues); + case Trinity::HashFnv1a<>::GetHash("Command_LastCharPlayedRequest_v1"sv): + return GetLastCharPlayed(session, params, responseValues); default: break; } @@ -128,6 +132,73 @@ uint32 GameUtilities::GetRealmList(WorldSession const* session, return ERROR_OK; } +static std::vector CompressClassicJson(std::string const& json) +{ + uLongf compressedLength = compressBound(json.length() + 1); + std::vector compressed(4 + compressedLength); + *reinterpret_cast(compressed.data()) = json.length() + 1; + + if (compress(compressed.data() + 4, &compressedLength, reinterpret_cast(json.c_str()), json.length() + 1) != Z_OK) + return {}; + + compressed.resize(compressedLength + 4); + return compressed; +} + +// Classic (1.60+) super districts (gameplay rulesets), same answer as bnetserver's GameUtilities +uint32 GameUtilities::GetSuperDistrictList(WorldSession const* /*session*/, + std::vector>& /*params*/, + std::vector>& responseValues) +{ + std::string superDistricts; + for (uint32 superDistrictId = 1; superDistrictId <= 5; ++superDistrictId) + { + if (!superDistricts.empty()) + superDistricts += ','; + + superDistricts += Trinity::StringFormat(R"({{"superDistrictID":{},"disallowLogin":false,"holdDownUntilTime":0}})", superDistrictId); + } + + std::vector json = CompressClassicJson(Trinity::StringFormat(R"(JSONSuperDistrictList:{{"superDistricts":[{}]}})", superDistricts)); + if (json.empty()) + return ERROR_UTIL_SERVER_FAILED_TO_SERIALIZE_RESPONSE; + + responseValues.emplace_back("Param_SuperDistrictList"sv, std::move(json)); + return ERROR_OK; +} + +// Classic (1.60+) clients pick the realm for the selected super district with Param_ContentSetIDFilter; answer with our realm. +// The client requires Param_LastPlayedTime right after Param_RealmEntry. +uint32 GameUtilities::GetLastCharPlayed(WorldSession const* session, + std::vector>& params, + std::vector>& responseValues) +{ + Variant const* contentSetFilter = FindParamValue(params, "Param_ContentSetIDFilter"); + int64 contentSetId = contentSetFilter ? std::visit([](T const& v) -> int64 + { + if constexpr (std::is_arithmetic_v) + return int64(v); + else + return -1; + }, *contentSetFilter) : -1; + + Optional realmId = sRealmList->GetFirstRealmId(); + if (contentSetId < 0 || !realmId) + return ERROR_OK; + + std::string realmEntryJson = sRealmList->GetRealmEntryJSON(*realmId, session->GetClientBuild(), session->GetSecurity()); + if (realmEntryJson.empty()) + return ERROR_OK; + + ::JSON::RealmList::UtilityInfo utilityInfo; + utilityInfo.set_realmpermissions(0x200); + + responseValues.emplace_back("Param_RealmEntry"sv, CompressClassicJson("JamJSONRealmEntry:" + realmEntryJson)); + responseValues.emplace_back("Param_LastPlayedTime"sv, int64(time(nullptr))); + responseValues.emplace_back("Param_UtilityInfo"sv, CompressClassicJson("JSONUtilityInfo:" + ::JSON::Serialize(utilityInfo))); + return ERROR_OK; +} + uint32 GameUtilities::JoinRealm(WorldSession const* session, std::vector>& params, std::vector>& responseValues) diff --git a/src/server/game/Services/WorldserverGameUtilitiesService.h b/src/server/game/Services/WorldserverGameUtilitiesService.h index 3851b91c50..59fae13592 100644 --- a/src/server/game/Services/WorldserverGameUtilitiesService.h +++ b/src/server/game/Services/WorldserverGameUtilitiesService.h @@ -45,6 +45,10 @@ namespace Battlenet::Services std::vector>& responseValues); static uint32 JoinRealm(WorldSession const* session, std::vector>& params, std::vector>& responseValues); + static uint32 GetSuperDistrictList(WorldSession const* session, std::vector>& params, + std::vector>& responseValues); + static uint32 GetLastCharPlayed(WorldSession const* session, std::vector>& params, + std::vector>& responseValues); }; } diff --git a/src/server/game/Services/WorldserverResourcesService.cpp b/src/server/game/Services/WorldserverResourcesService.cpp new file mode 100644 index 0000000000..407d851298 --- /dev/null +++ b/src/server/game/Services/WorldserverResourcesService.cpp @@ -0,0 +1,37 @@ +/* + * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#include "WorldserverResourcesService.h" +#include "BattlenetRpcErrorCodes.h" +#include "Log.h" + +Battlenet::Services::ResourcesService::ResourcesService(WorldSession* session) : BaseService(session) +{ +} + +// Classic (1.60+) clients request a content handle (program 'BN', stream 'apft', locale) at character select +// and crash on a null handle when the call fails, so always answer with a handle for the requested stream. +uint32 Battlenet::Services::ResourcesService::HandleGetContentHandle(resources::v1::ContentHandleRequest const* request, ContentHandle* response, + std::function& /*continuation*/) +{ + TC_LOG_DEBUG("session.rpc", "{} ResourcesService.GetContentHandle({})", GetCallerInfo(), request->ShortDebugString()); + + response->set_region(0x5553); // 'US' + response->set_usage(request->stream()); + response->set_hash(std::string(32, '\0')); + return ERROR_OK; +} diff --git a/src/server/game/Services/WorldserverResourcesService.h b/src/server/game/Services/WorldserverResourcesService.h new file mode 100644 index 0000000000..82b8e4d053 --- /dev/null +++ b/src/server/game/Services/WorldserverResourcesService.h @@ -0,0 +1,37 @@ +/* + * This file is part of the TrinityCore Project. See AUTHORS file for Copyright information + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your + * option) any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see . + */ + +#ifndef WORLDSERVER_RESOURCES_SERVICE_H +#define WORLDSERVER_RESOURCES_SERVICE_H + +#include "WorldserverService.h" +#include "Client/resource_service.pb.h" + +namespace Battlenet::Services +{ + class ResourcesService : public WorldserverService + { + typedef WorldserverService BaseService; + + public: + ResourcesService(WorldSession* session); + + uint32 HandleGetContentHandle(resources::v1::ContentHandleRequest const* request, ContentHandle* response, std::function& continuation) override; + }; +} + +#endif // WORLDSERVER_RESOURCES_SERVICE_H diff --git a/src/server/game/Services/WorldserverServiceDispatcher.cpp b/src/server/game/Services/WorldserverServiceDispatcher.cpp index 625da2d60f..34537309df 100644 --- a/src/server/game/Services/WorldserverServiceDispatcher.cpp +++ b/src/server/game/Services/WorldserverServiceDispatcher.cpp @@ -38,7 +38,7 @@ Battlenet::WorldserverServiceDispatcher::WorldserverServiceDispatcher() AddService>(); AddService>(); AddService>(); - AddService>(); + AddService>(); // Classic: Services::ResourcesService (fake content handle) made the client wait on 'Retrieving character list' AddService>(); } diff --git a/src/server/game/Services/WorldserverServiceDispatcher.h b/src/server/game/Services/WorldserverServiceDispatcher.h index dfeb98aa62..0f08398930 100644 --- a/src/server/game/Services/WorldserverServiceDispatcher.h +++ b/src/server/game/Services/WorldserverServiceDispatcher.h @@ -45,7 +45,7 @@ #include "Client/report_service.pb.h" #include "Client/api/client/v2/report_service.pb.h" #include "Client/api/client/v3/report_service.pb.h" -#include "Client/resource_service.pb.h" +#include "WorldserverResourcesService.h" #include "Client/api/client/v2/whisper_listener.pb.h" #include "Client/api/client/v2/whisper_service.pb.h" diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index b7080af884..fbae72dff5 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -2506,13 +2506,23 @@ void SpellMgr::LoadSpellInfoStore() if (battlePetSpecies->CreatureID) battlePetSpeciesByCreature[battlePetSpecies->CreatureID] = battlePetSpecies; + // Classic (1.60+) client data uses effect/aura/target values retail does not define yet: skip those effects and report them once + std::map> unknownEffectValues; for (SpellEffectEntry const* effect : sSpellEffectStore) { ASSERT(effect->EffectIndex < MAX_SPELL_EFFECTS, "MAX_SPELL_EFFECTS must be at least %d", effect->EffectIndex + 1); - ASSERT(effect->Effect < TOTAL_SPELL_EFFECTS, "TOTAL_SPELL_EFFECTS must be at least %u", effect->Effect + 1); - ASSERT(effect->EffectAura < int32(TOTAL_AURAS), "TOTAL_AURAS must be at least %d", effect->EffectAura + 1); - ASSERT(effect->ImplicitTarget[0] < TOTAL_SPELL_TARGETS, "TOTAL_SPELL_TARGETS must be at least %u", effect->ImplicitTarget[0] + 1); - ASSERT(effect->ImplicitTarget[1] < TOTAL_SPELL_TARGETS, "TOTAL_SPELL_TARGETS must be at least %u", effect->ImplicitTarget[1] + 1); + if (effect->Effect >= TOTAL_SPELL_EFFECTS || effect->EffectAura < 0 || effect->EffectAura >= int32(TOTAL_AURAS) + || effect->ImplicitTarget[0] >= TOTAL_SPELL_TARGETS || effect->ImplicitTarget[1] >= TOTAL_SPELL_TARGETS) + { + if (effect->Effect >= TOTAL_SPELL_EFFECTS) + ++unknownEffectValues["Effect"][effect->Effect]; + if (effect->EffectAura < 0 || effect->EffectAura >= int32(TOTAL_AURAS)) + ++unknownEffectValues["EffectAura"][effect->EffectAura]; + for (int32 target : { int32(effect->ImplicitTarget[0]), int32(effect->ImplicitTarget[1]) }) + if (target >= TOTAL_SPELL_TARGETS) + ++unknownEffectValues["ImplicitTarget"][target]; + continue; + } loadData[{ effect->SpellID, Difficulty(effect->DifficultyID) }].Effects[effect->EffectIndex] = effect; @@ -2542,6 +2552,10 @@ void SpellMgr::LoadSpellInfoStore() } } + for (auto const& [field, values] : unknownEffectValues) + for (auto const& [value, count] : values) + TC_LOG_ERROR("server.loading", "SpellEffect.db2: skipped {} effects with unknown {} {}", count, field, value); + for (SpellAuraOptionsEntry const* auraOptions : sSpellAuraOptionsStore) loadData[{ auraOptions->SpellID, Difficulty(auraOptions->DifficultyID) }].AuraOptions = auraOptions; diff --git a/src/server/game/Transmog/TransmogMgr.cpp b/src/server/game/Transmog/TransmogMgr.cpp index e78ddce91d..3e4062fab0 100644 --- a/src/server/game/Transmog/TransmogMgr.cpp +++ b/src/server/game/Transmog/TransmogMgr.cpp @@ -172,25 +172,33 @@ void TransmogMgr::Load() for (std::vector& transmogOutfitEntries : TransmogOutfitsBySource) std::ranges::sort(transmogOutfitEntries, {}, &TransmogOutfitEntryEntry::OrderIndex); + // Classic (1.60+) client data may contain slots/options retail does not know about: skip them instead of asserting for (TransmogOutfitSlotInfoEntry const* transmogOutfitSlot : sTransmogOutfitSlotInfoStore) { - ASSERT(transmogOutfitSlot->GetSlot() < TransmogOutfitSlot::Max); + if (transmogOutfitSlot->GetSlot() >= TransmogOutfitSlot::Max + || (!transmogOutfitSlot->HasFlag(TransmogOutfitSlotFlags::IsSecondarySlot) && transmogOutfitSlot->InventorySlotEnum >= EQUIPMENT_SLOT_END)) + { + TC_LOG_ERROR("server.loading", "TransmogOutfitSlotInfo.db2: skipping ID {} with unknown slot {} / inventory slot {}", + transmogOutfitSlot->ID, AsUnderlyingType(transmogOutfitSlot->GetSlot()), int32(transmogOutfitSlot->InventorySlotEnum)); + continue; + } TransmogOutfitSlotInfo* slot = &SlotInfoByOutfitSlot[AsUnderlyingType(transmogOutfitSlot->GetSlot())]; slot->Data = transmogOutfitSlot; if (!transmogOutfitSlot->HasFlag(TransmogOutfitSlotFlags::IsSecondarySlot)) - { - ASSERT(transmogOutfitSlot->InventorySlotEnum < EQUIPMENT_SLOT_END); SlotInfoByInvSlot[transmogOutfitSlot->InventorySlotEnum] = slot; - } } for (TransmogOutfitSlotOptionEntry const* transmogOutfitSlotOption : sTransmogOutfitSlotOptionInfoStore) { - ASSERT(transmogOutfitSlotOption->GetOption() < TransmogOutfitSlotOption::Max); - - TransmogOutfitSlotInfoEntry const* transmogOutfitSlot = sTransmogOutfitSlotInfoStore.AssertEntry(transmogOutfitSlotOption->TransmogOutfitSlotInfoID); + TransmogOutfitSlotInfoEntry const* transmogOutfitSlot = sTransmogOutfitSlotInfoStore.LookupEntry(transmogOutfitSlotOption->TransmogOutfitSlotInfoID); + if (transmogOutfitSlotOption->GetOption() >= TransmogOutfitSlotOption::Max || !transmogOutfitSlot || transmogOutfitSlot->GetSlot() >= TransmogOutfitSlot::Max) + { + TC_LOG_ERROR("server.loading", "TransmogOutfitSlotOption.db2: skipping ID {} with unknown option {} or slot info {}", + transmogOutfitSlotOption->ID, AsUnderlyingType(transmogOutfitSlotOption->GetOption()), transmogOutfitSlotOption->TransmogOutfitSlotInfoID); + continue; + } TransmogOutfitSlotInfo& slotInfo = SlotInfoByOutfitSlot[AsUnderlyingType(transmogOutfitSlot->GetSlot())]; if (!std::holds_alternative>(slotInfo.SlotIndexOrOptions)) diff --git a/src/server/game/World/World.cpp b/src/server/game/World/World.cpp index 86f40daaab..de3e6b1edf 100644 --- a/src/server/game/World/World.cpp +++ b/src/server/game/World/World.cpp @@ -1508,6 +1508,9 @@ bool World::SetInitialWorldSettings() TC_LOG_INFO("server.loading", "Loading Creature templates..."); sObjectMgr->LoadCreatureTemplates(); + TC_LOG_INFO("server.loading", "Loading Classic creature levels..."); + sObjectMgr->LoadCreatureClassicLevels(); + TC_LOG_INFO("server.loading", "Loading Equipment templates..."); // must be after LoadCreatureTemplates sObjectMgr->LoadEquipmentTemplates(); diff --git a/src/server/shared/Realm/Realm.cpp b/src/server/shared/Realm/Realm.cpp index 29a1be667a..56587a1bb8 100644 --- a/src/server/shared/Realm/Realm.cpp +++ b/src/server/shared/Realm/Realm.cpp @@ -64,5 +64,6 @@ std::string Battlenet::RealmHandle::GetAddressString() const std::string Battlenet::RealmHandle::GetSubRegionAddress() const { - return Trinity::StringFormat("{}-{}-0", Region, Site); + // Classic (1.60+) "super realm" clients use the full realm address as sub-region (hard-coded 70-1-70) + return Trinity::StringFormat("{}-{}-{}", Region, Site, Realm); } diff --git a/src/server/shared/Realm/RealmList.cpp b/src/server/shared/Realm/RealmList.cpp index 5aeb40e7d6..7eb5729722 100644 --- a/src/server/shared/Realm/RealmList.cpp +++ b/src/server/shared/Realm/RealmList.cpp @@ -17,6 +17,7 @@ #include "RealmList.h" #include "BattlenetRpcErrorCodes.h" +#include "Config.h" #include "CryptoRandom.h" #include "DatabaseEnv.h" #include "DeadlineTimer.h" @@ -161,7 +162,7 @@ void RealmList::UpdateRealms() UpdateRealm(*newRealms.try_emplace(id, std::make_shared()).first->second, id, build, name, std::move(addresses), port, icon, flag, timezone, (allowedSecurityLevel <= SEC_ADMINISTRATOR ? AccountTypes(allowedSecurityLevel) : SEC_ADMINISTRATOR), pop); - newSubRegions.insert(Battlenet::RealmHandle{ region, battlegroup, 0 }.GetAddressString()); + newSubRegions.insert(id.GetSubRegionAddress()); auto buildAddressesLogText = [&] { @@ -239,6 +240,15 @@ std::vector RealmList::GetSubRegions() const return { _subRegions.begin(), _subRegions.end() }; } +Optional RealmList::GetFirstRealmId() const +{ + std::shared_lock lock(_realmsMutex); + if (_realms.empty()) + return {}; + + return _realms.begin()->first; +} + void RealmList::FillRealmEntry(Realm const& realm, uint32 clientBuild, AccountTypes accountSecurityLevel, JSON::RealmList::RealmEntry* realmEntry) const { realmEntry->set_wowrealmaddress(realm.Id.GetAddress()); @@ -275,7 +285,8 @@ void RealmList::FillRealmEntry(Realm const& realm, uint32 clientBuild, AccountTy realmEntry->set_name(realm.Name); realmEntry->set_cfgconfigsid(realm.GetConfigId()); realmEntry->set_cfglanguagesid(1); - realmEntry->set_cfgcontentsetid(0); + // Classic (1.60+) clients only list realms whose content set matches the selected super district (Cfg_SuperDistrict.ContentSetID) + realmEntry->set_cfgcontentsetid(sConfigMgr->GetIntDefault("Realm.CfgContentSetID", 0)); realmEntry->set_usebleepchance(0.0f); } @@ -321,6 +332,7 @@ std::vector RealmList::GetRealmList(uint32 build, AccountTypes accountSec } std::string json = "JSONRealmListUpdates:" + JSON::Serialize(realmList); + TC_LOG_DEBUG("session.rpc", "RealmList::GetRealmList build {} subRegion '{}': {}", build, subRegion, json); std::vector compressed; CompressJson(json, &compressed); return compressed; diff --git a/src/server/shared/Realm/RealmList.h b/src/server/shared/Realm/RealmList.h index 02af544e12..8428dd16a9 100644 --- a/src/server/shared/Realm/RealmList.h +++ b/src/server/shared/Realm/RealmList.h @@ -67,6 +67,7 @@ public: std::shared_ptr GetCurrentRealm() const; std::vector GetSubRegions() const; + Optional GetFirstRealmId() const; std::string GetRealmEntryJSON(Battlenet::RealmHandle const& id, uint32 build, AccountTypes accountSecurityLevel) const; std::vector GetRealmList(uint32 build, AccountTypes accountSecurityLevel, std::string const& subRegion) const; RealmJoinResult JoinRealm(uint32 realmAddress, uint32 build, ClientBuild::VariantId const& buildVariant, boost::asio::ip::address const& clientAddress, diff --git a/src/server/worldserver/worldserver.conf.dist b/src/server/worldserver/worldserver.conf.dist index ad7a0a08f4..41e5909f2d 100644 --- a/src/server/worldserver/worldserver.conf.dist +++ b/src/server/worldserver/worldserver.conf.dist @@ -3158,6 +3158,15 @@ Network.OutUBuff = 65536 Network.TcpNodelay = 1 +# +# Network.SkipBuildAuthKeyCheck +# Description: Accept clients whose build auth key is missing from `build_auth_key` +# without verifying the auth session digest. Development only. +# Default: 0 - (Disabled) +# 1 - (Enabled) + +Network.SkipBuildAuthKeyCheck = 0 + # ################################################################################################### diff --git a/src/tools/extractor_common/ExtractorDB2LoadInfo.h b/src/tools/extractor_common/ExtractorDB2LoadInfo.h index 4aff83b9a4..1082ec3999 100644 --- a/src/tools/extractor_common/ExtractorDB2LoadInfo.h +++ b/src/tools/extractor_common/ExtractorDB2LoadInfo.h @@ -294,7 +294,8 @@ struct LiquidTypeLoadInfo struct MapLoadInfo { - static constexpr DB2MetaField MetaFields[25] = + // Classic 1.60.1 layout (retail 0x75863E23 lacks OceanLiquidTypeID) + static constexpr DB2MetaField MetaFields[26] = { { .Type = FT_STRING_NOT_LOCALIZED, .ArraySize = 1, .IsSigned = true }, { .Type = FT_STRING, .ArraySize = 1, .IsSigned = true }, @@ -320,6 +321,7 @@ struct MapLoadInfo { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, + { .Type = FT_INT, .ArraySize = 1, .IsSigned = true }, { .Type = FT_INT, .ArraySize = 3, .IsSigned = true }, }; @@ -328,13 +330,13 @@ struct MapLoadInfo .FileDataId = 1349477, .IndexField = -1, .ParentIndexField = -1, - .FieldCount = 25, - .FileFieldCount = 25, - .LayoutHash = 0x75863E23, + .FieldCount = 26, + .FileFieldCount = 26, + .LayoutHash = 0xD43AFAC3, .Fields = MetaFields }; - static constexpr DB2FieldMeta Fields[29] = + static constexpr DB2FieldMeta Fields[30] = { { .IsSigned = false, .Type = FT_INT, .Name = "ID" }, { .IsSigned = false, .Type = FT_STRING_NOT_LOCALIZED, .Name = "Directory" }, @@ -360,6 +362,7 @@ struct MapLoadInfo { .IsSigned = true, .Type = FT_SHORT, .Name = "WindSettingsID" }, { .IsSigned = true, .Type = FT_INT, .Name = "ZmpFileDataID" }, { .IsSigned = true, .Type = FT_INT, .Name = "WdtFileDataID" }, + { .IsSigned = true, .Type = FT_INT, .Name = "OceanLiquidTypeID" }, { .IsSigned = true, .Type = FT_INT, .Name = "NavigationMaxDistance" }, { .IsSigned = true, .Type = FT_INT, .Name = "PreloadFileDataID" }, { .IsSigned = true, .Type = FT_INT, .Name = "Flags1" }, @@ -367,7 +370,7 @@ struct MapLoadInfo { .IsSigned = true, .Type = FT_INT, .Name = "Flags3" }, }; - static constexpr DB2FileLoadInfo Instance{ Fields, 29, &MetaInstance }; + static constexpr DB2FileLoadInfo Instance{ Fields, 30, &MetaInstance }; }; #endif // TRINITYCORE_EXTRACTOR_DB2_LOAD_INFO_H diff --git a/src/tools/map_extractor/loadlib/DBFilesClientList.h b/src/tools/map_extractor/loadlib/DBFilesClientList.h index b9c284833a..ba49768c7c 100644 --- a/src/tools/map_extractor/loadlib/DBFilesClientList.h +++ b/src/tools/map_extractor/loadlib/DBFilesClientList.h @@ -145,6 +145,14 @@ constexpr DB2FileInfo DBFilesClientList[] = { .FileDataId = 6841377, .Name = "Cfg_GameRules.db2" }, { .FileDataId = 1082876, .Name = "Cfg_Regions.db2" }, { .FileDataId = 3055692, .Name = "Cfg_TimeEventRegionGroup.db2" }, + // Classic (1.60+) super districts ("gameplay rulesets") + { .FileDataId = 7928017, .Name = "Cfg_DatacenterLocality.db2" }, + { .FileDataId = 7929271, .Name = "Cfg_SuperDistrict.db2" }, + { .FileDataId = 8208798, .Name = "AvailableSuperDistrict.db2" }, + { .FileDataId = 8279681, .Name = "SuperDistrictSet.db2" }, + { .FileDataId = 8279682, .Name = "SuperDistrictSetCollection.db2" }, + { .FileDataId = 8279874, .Name = "SuperDistrictTransfer.db2" }, + { .FileDataId = 8281618, .Name = "SuperDistrictSetXAvailableSD.db2" }, { .FileDataId = 2965645, .Name = "ChallengeModeItemBonusOverride.db2" }, { .FileDataId = 6982016, .Name = "ChallengeModeReward.db2" }, { .FileDataId = 6984186, .Name = "ChallengeModeXReward.db2" },