From 1fe8c8d8dedeeb40eefdb579cc8c364d3ec82f23 Mon Sep 17 00:00:00 2001 From: luis Date: Sun, 8 Nov 2026 07:20:10 -0300 Subject: [PATCH] full --- ..._08_00_world_collegiate_calamity_delve.sql | 53 ++++++++--------- .../instance_collegiate_calamity_delve.cpp | 58 +++++++++++-------- .../KhazAlgar/Delves/delves_common.cpp | 6 +- 3 files changed, 63 insertions(+), 54 deletions(-) diff --git a/sql/updates/world/master/2026_11_08_00_world_collegiate_calamity_delve.sql b/sql/updates/world/master/2026_11_08_00_world_collegiate_calamity_delve.sql index 677d583b..b1a391be 100644 --- a/sql/updates/world/master/2026_11_08_00_world_collegiate_calamity_delve.sql +++ b/sql/updates/world/master/2026_11_08_00_world_collegiate_calamity_delve.sql @@ -1,36 +1,33 @@ --- Collegiate Calamity Delve Implementation +-- Collegiate Calamity Delve Implementation (full delve capture 12.1.0.70783) -- Map: 2933, Scenario: 3187, Zone: 16545 --- Note: Full delve spawn data from complete run needed for boss and encounter placement +-- Boss: Voidscorned Vagrant (254773), DungeonEncounter 3404 +-- WS26903: 1278216 | Entry: 8771.50,-4471.60,78.31 | Exit: overworld entrance 8780.65,-4465.47 --- Add delve template for Collegiate Calamity +-- Delve template DELETE FROM `delve_template` WHERE `id`=47; -INSERT INTO `delve_template` (`id`, `mapId`, `scenarioId`, `mapChallengeModeId`, `zoneId`, `factionId`, -`gossipMenuId`, `lfgDungeonsId`, `broadcastTextId`, `firstTierGossipOptionId`, -`entryX`, `entryY`, `entryZ`, `entryO`, -`exitX`, `exitY`, `exitZ`, `exitO`, `exitMapId`, -`activeScenarioId`, `rewardScenarioId`, `worldState26903`, `finalBossEntry`, -`tieredEntranceId`, `tieredEntranceUnknown3`, `traitTreeId`, `entranceUiWidgetSetId`, `modifierUiWidgetSetTier1`, -`companionSpawnX`, `companionSpawnY`, `companionSpawnZ`, `companionSpawnO`) -VALUES (47, 2933, 3187, 0, 16545, 0, -0, 0, 0, 0, -8784.42, -4449.41, 76.11, 5.60, -8780.65, -4465.47, 78.39, 3.88, 0, -0, 0, 0, 0, -0, 106, 0, 0, 0, -8784.42, -4449.41, 76.11, 5.60); +INSERT INTO `delve_template` (`id`, `mapId`, `scenarioId`, `mapChallengeModeId`, `zoneId`, `factionId`, +`gossipMenuId`, `lfgDungeonsId`, `broadcastTextId`, `firstTierGossipOptionId`, +`entryX`, `entryY`, `entryZ`, `entryO`, +`exitX`, `exitY`, `exitZ`, `exitO`, `exitMapId`, +`activeScenarioId`, `rewardScenarioId`, `worldState26903`, `finalBossEntry`, +`tieredEntranceId`, `tieredEntranceUnknown3`, `traitTreeId`, `entranceUiWidgetSetId`, `modifierUiWidgetSetTier1`, +`companionSpawnX`, `companionSpawnY`, `companionSpawnZ`, `companionSpawnO`) +VALUES (47, 2933, 3187, 0, 16545, 0, +0, 0, 0, 0, +8771.496, -4471.602, 78.312, 0.6444, +8780.65, -4465.47, 78.39, 3.88, 0, +0, 0, 1278216, 254773, +0, 106, 0, 0, 0, +8771.496, -4471.602, 78.312, 0.6444); --- Remove creature_template_gossip entry for NPC 212407 that was routing to Atal'Aman (menu 32917) --- This forces the entrance to use proximity-based resolution instead -DELETE FROM `creature_template_gossip` WHERE `CreatureID`=212407 AND `MenuID`=32917; - --- Add creature spawn for Collegiate Calamity entrance NPC (212407) --- Spawned at the exit position to ensure proper proximity resolution -SET @CGUID := 729729; -- Adjust this GUID if needed to avoid conflicts +-- Entrance NPC spawn (npc_delve_entrance) at the overworld exit position +SET @CGUID := 729729; DELETE FROM `creature` WHERE `guid`=@CGUID AND `id`=212407; INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `VerifiedBuild`) VALUES (@CGUID, 212407, 0, 15969, 16079, '0', '0', 0, 0, 0, 8780.650390625, -4465.46728515625, 78.3949127197265625, 3.879019975662231445, 120, 0, 0, 0, NULL, NULL, NULL, NULL, 70783); --- Note: Creature spawns from entry sniff are ambient overworld spawns, not delve instance spawns --- Full delve capture needed for instance-specific creature and GameObject placement --- Exit coordinates set to match NPC spawn position (8780.65, -4465.47) for proper proximity resolution --- Removed creature_template_gossip entry to prevent fallback to Atal'Aman menu \ No newline at end of file +-- Boss spawn: Voidscorned Vagrant (254773) - final boss for DungeonEncounter 3404 +SET @CGUID := 729730; +DELETE FROM `creature` WHERE `guid`=@CGUID AND `id`=254773; +INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `MovementType`, `npcflag`, `unit_flags`, `unit_flags2`, `unit_flags3`, `VerifiedBuild`) VALUES +(@CGUID, 254773, 2933, 16545, 16545, '208', '0', 0, 0, 0, 8701.5185546875, -4318.04541015625, 97.30046844482421875, 5.160646438598632812, 7200, 0, 0, 0, NULL, NULL, NULL, NULL, 70783); diff --git a/src/server/scripts/KhazAlgar/Delves/CollegiateCalamity/instance_collegiate_calamity_delve.cpp b/src/server/scripts/KhazAlgar/Delves/CollegiateCalamity/instance_collegiate_calamity_delve.cpp index 1dbf66fc..f00098f3 100644 --- a/src/server/scripts/KhazAlgar/Delves/CollegiateCalamity/instance_collegiate_calamity_delve.cpp +++ b/src/server/scripts/KhazAlgar/Delves/CollegiateCalamity/instance_collegiate_calamity_delve.cpp @@ -9,10 +9,20 @@ /* * Collegiate Calamity - map 2933, difficulty 208, scenario 3187, AreaTable 16545. - * A delve instance set in Thalassian University with academic-themed enemies. - * - * Scenario 3187: "Collegiate Calamity" - needs to be populated with step data from full delve capture. - * Current implementation provides basic delve framework without specific boss mechanics. + * Thalassian University delve (12.1.0.70783 capture: collegiatecalamitydelvefull.pkt). + * + * Boss: Voidscorned Vagrant (254773), DungeonEncounter 3404. SMSG_ENCOUNTER_START 07:04:17 -> + * SMSG_ENCOUNTER_END + SMSG_BOSS_KILL 07:05:10 (53.7s). Boss death position ~8704.08, -4310.30, 97.22. + * The boss is a static instance spawn (present in creature table for map 2933); no scripted summon needed. + * + * Scenario 3187 begins at step 16112 and runs through SMSG_SCENARIO_PROGRESS_UPDATE chains until + * SMSG_SCENARIO_COMPLETED at boss kill + ~0ms. Completion objects: + * Heavy Trunk A 584517 @ 8684.763, -4302.332, 99.325 + * Heavy Trunk B 584519 @ 8687.529, -4297.799, 99.325 + * Leave-O-Bot 205496 @ 8692.314, -4295.394, 99.409 + * Leave Delve GO 408227 @ 8764.965, -4476.588, 78.503 (entry area) + * No Fragment of Revelation spawned. + * WS26903 = 1278216. */ #include "delves_common.h" @@ -25,16 +35,26 @@ namespace static char const* const ScriptName = "instance_collegiate_calamity_delve"; -// Delve-specific encounter IDs (to be populated from full delve capture) -enum CollegiateCalamityIds : uint32 +enum CollegiateCalamityData { - // Final boss entry - needs verification from full delve capture - // Currently set to 0 as the boss wasn't present in the entry sniff - NPC_FINAL_BOSS = 254772, + BOSS_VOIDSCORNED_VAGRANT = 0, + + MAX_ENCOUNTER }; -// Entry position for the delve instance (from delve_template) -Position const EntryPosition = { 8784.42f, -4449.41f, 76.11f, 5.60f }; +enum CollegiateCalamityIds : uint32 +{ + NPC_VOIDSCORNED_VAGRANT = 254773, // "Voidscorned Vagrant" - final boss (DungeonEncounter 3404) + DUNGEON_ENCOUNTER_VAGRANT = 3404, // SMSG_ENCOUNTER_START/END + SMSG_BOSS_KILL +}; + +// Boss death position (8704.081, -4310.297, 97.217) is used as fallback for completion objects. +Position const BossDeathPos = { 8704.081f, -4310.297f, 97.217f, 0.0f }; + +DungeonEncounterData const encounters[] = +{ + { BOSS_VOIDSCORNED_VAGRANT, {{ DUNGEON_ENCOUNTER_VAGRANT }} } +}; class instance_collegiate_calamity_delve : public InstanceMapScript { @@ -46,48 +66,38 @@ public: instance_collegiate_calamity_delve_InstanceScript(InstanceMap* map) : Delves::DelveInstanceScript(map, 1 /* tier resolved at OnPlayerEnter */) { + SetBossNumber(MAX_ENCOUNTER); + LoadDungeonEncounterData(encounters); } void OnDelveStart() override { // Initialize delve-specific mechanics when players enter - // This can be expanded with custom Collegiate Calamity mechanics } void OnDelveComplete() override { - // Handle delve completion Delves::DelveInstanceScript::OnDelveComplete(); } void OnDelveFailed() override { - // Handle delve failure Delves::DelveInstanceScript::OnDelveFailed(); } void OnCreatureCreate(Creature* creature) override { Delves::DelveInstanceScript::OnCreatureCreate(creature); - - // Hook for custom creature behavior - // Example: apply auras, set AI scripts, etc. } void OnUnitDeath(Unit* unit) override { Delves::DelveInstanceScript::OnUnitDeath(unit); - - // If this is the final boss, trigger delve completion - if (Creature* creature = unit->ToCreature()) - if (creature->GetEntry() == NPC_FINAL_BOSS && IsFinalBoss(creature)) - OnScenarioComplete(); } bool IsFinalBoss(Creature const* creature) const override { - // Override to specify which creature is the final boss - return creature->GetEntry() == NPC_FINAL_BOSS; + return creature->GetEntry() == NPC_VOIDSCORNED_VAGRANT; } }; diff --git a/src/server/scripts/KhazAlgar/Delves/delves_common.cpp b/src/server/scripts/KhazAlgar/Delves/delves_common.cpp index 14d9706c..c85fec03 100644 --- a/src/server/scripts/KhazAlgar/Delves/delves_common.cpp +++ b/src/server/scripts/KhazAlgar/Delves/delves_common.cpp @@ -78,8 +78,10 @@ namespace Delves Position(173.568f, -97.356f, 218.654f, 2.2864f), Position(151.821f, -65.059f, 226.183f, 4.6739f) }, // The Darkway (3003): the shadowmoon capture ends before the boss - no placements; the fallbacks below use the // boss's death position instead. - // Collegiate Calamity (2933): entry sniff only - no completion spawns captured. Will use boss death position fallback. - // Full delve capture needed for actual Fragment/HeavyTrunk/LeaveOBot placement. + // Collegiate Calamity (2933): full delve capture 2026_11_08_07_06_40. No Fragment of Revelation. + // Heavy Trunks + Leave-O-Bot captured from .pkt.sql create blocks. + { 2933, {}, Position(8684.763f, -4302.332f, 99.325f, 5.9516f), + Position(8687.529f, -4297.799f, 99.325f, 5.8469f), Position(8692.314f, -4295.394f, 99.409f, 0.3265f) }, }; DelveCompletionSpawns const* GetCompletionSpawns(uint32 mapId)