delve fix
This commit is contained in:
@@ -14,11 +14,15 @@ INSERT INTO `delve_template` (`id`, `mapId`, `scenarioId`, `mapChallengeModeId`,
|
||||
VALUES (47, 2933, 3187, 0, 16545, 0,
|
||||
0, 0, 0, 0,
|
||||
8784.42, -4449.41, 76.11, 5.60,
|
||||
8458.07, -4915.77, 54.99, 0.0, 0,
|
||||
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);
|
||||
|
||||
-- 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
|
||||
@@ -26,11 +30,7 @@ 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);
|
||||
|
||||
DELETE FROM `creature_template_gossip` WHERE `CreatureID`=212407 AND `MenuID`=32918;
|
||||
INSERT INTO `creature_template_gossip` (`CreatureID`, `MenuID`, `VerifiedBuild`)
|
||||
VALUES (212407, 32918, 70783);
|
||||
|
||||
-- Create gossip menu for Collegiate Calamity
|
||||
DELETE FROM `gossip_menu` WHERE `MenuID`=32918;
|
||||
INSERT INTO `gossip_menu` (`MenuID`, `TextID`, `VerifiedBuild`)
|
||||
VALUES (32918, 0, 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
|
||||
@@ -79,6 +79,10 @@ namespace
|
||||
if (!player || !player->GetSession())
|
||||
return true;
|
||||
|
||||
TC_LOG_DEBUG("scripts.delves",
|
||||
"npc_delve_entrance: player {} clicked NPC {} at pos ({:.1f}, {:.1f}, {:.1f}) on MapID {}",
|
||||
player->GetName(), me->GetEntry(), me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetMapId());
|
||||
|
||||
DelveTemplate const* tmpl = sDelveMgr->GetDelveTemplateForEntrance(me);
|
||||
if (!tmpl)
|
||||
{
|
||||
@@ -89,8 +93,8 @@ namespace
|
||||
}
|
||||
|
||||
TC_LOG_DEBUG("scripts.delves",
|
||||
"npc_delve_entrance: player {} clicked NPC {} -> delve map {} (gossip menu {})",
|
||||
player->GetName(), me->GetEntry(), tmpl->MapId, tmpl->GossipMenuId);
|
||||
"npc_delve_entrance: player {} clicked NPC {} -> resolved to delve map {} (id {}) (gossip menu {})",
|
||||
player->GetName(), me->GetEntry(), tmpl->MapId, tmpl->Id, tmpl->GossipMenuId);
|
||||
|
||||
player->PlayerTalkClass->ClearMenus();
|
||||
player->PlayerTalkClass->GetGossipMenu().SetMenuId(tmpl->GossipMenuId);
|
||||
|
||||
Reference in New Issue
Block a user