sql prev commits

This commit is contained in:
luis
2026-09-12 07:51:10 -03:00
parent 30821829cf
commit c56d17aa7e
@@ -0,0 +1,79 @@
DELETE FROM `instance_template` WHERE `map` IN (2952, 2964, 3003);
INSERT INTO `instance_template` (`map`, `parent`, `script`, `insideResurrection`) VALUES
(2952, 0, 'instance_shadow_enclave_delve', 0), -- The Shadow Enclave, scenario 3154 (scenarios row (2952,208,3154))
(2964, 0, 'instance_gulf_of_memory_delve', 0), -- The Gulf of Memory, scenario 3177 (scenarios row (2964,208,3177))
(3003, 0, 'instance_the_darkway_delve', 0); -- The Darkway, scenario 3184 (scenarios row (3003,208,3184))
-- Companion: 248567 "Valeera Sanguinar" is summoned by the PLAYER-cast spell 1247560 (REPORT 3.1) and driven by
-- npc_delve_companion (follow / stealth 1252003 / observed kit). Replaces the never-implemented 'npc_valeera_companion'.
UPDATE `creature_template` SET `ScriptName` = 'npc_delve_companion' WHERE `entry` = 248567;
-- Mul'tha'ul, DungeonEncounter 3359 (gulf SMSG_ENCOUNTER_START 969466 / SMSG_BOSS_KILL 1062320)
UPDATE `creature_template` SET `ScriptName` = 'boss_multhaul' WHERE `entry` = 250939;
-- The Darkway's "Enter Delve" is a different template (251896, shadowmoon CMSG_TIERED_ENTRANCE_OPEN 104364)
UPDATE `creature_template` SET `ScriptName` = 'npc_delve_entrance' WHERE `entry` IN (212407, 251896);
-- Leave-O-Bot 7000: spell-click 411497 -> GameEvent 91282 -> DelveMgr::LeaveDelve (REPORT 5.6); the name the DB
-- already referenced and the core did not implement until now
UPDATE `creature_template` SET `ScriptName` = 'npc_leave_o_bot' WHERE `entry` = 205496;
-- Heavy Trunks (REPORT 2.3: 584517 -> currency 3316 +10 + curio; 584519 -> GameEvent 88888 -> Leave-O-Bot)
UPDATE `gameobject_template` SET `ScriptName` = 'go_heavy_trunk' WHERE `entry` IN (584517, 584519);
-- Mislaid Curiosity -> PlayerChoice 822 "Discovered Treasure" + currency 3253 (REPORT 2.4)
UPDATE `gameobject_template` SET `ScriptName` = 'go_mislaid_curiosity' WHERE `entry` = 584752;
-- "Leave Delve" GO -> GameEvent 93004 -> DelveMgr::LeaveDelve (REPORT 5.6, eversong 2650933)
UPDATE `gameobject_template` SET `ScriptName` = 'go_leave_delve' WHERE `entry` = 408227;
-- Curio items: CMSG_USE_ITEM -> SMSG_SHOW_DELVES_COMPANION_CONFIGURATION_UI(ItemID) (REPORT 3.2: gulf 1096575 271132,
-- eversong 2688539 249219, deatholme 75171 249222)
DELETE FROM `item_script_names` WHERE `ScriptName` = 'item_delve_curio';
INSERT INTO `item_script_names` (`Id`, `ScriptName`) VALUES
(271132, 'item_delve_curio'),
(249219, 'item_delve_curio'),
(249222, 'item_delve_curio');
UPDATE `playerchoice` SET `UiTextureKitId` = 5493, `SoundKitId` = 213311, `CloseSoundKitId` = 0, `Duration` = 1380,
`PendingChoiceText` = 'Discovered Treasure', `Question` = 'You\'ve found some treasure!',
`HideWarboardHeader` = 0, `KeepOpenAfterChoice` = 0, `ShowChoicesAsList` = 0, `RequiresSelection` = 0,
`ShowChoicesAsGrid` = 0, `HideAnswerArt` = 0, `ShowChoicesAsColumns` = 0, `InfiniteRange` = 0,
`ScriptName` = 'playerchoice_delve_discovered_treasure', `VerifiedBuild` = 69497
WHERE `ChoiceId` = 822;
DELETE FROM `playerchoice_response` WHERE `ChoiceId` = 822;
INSERT INTO `playerchoice_response` (`ChoiceId`, `ResponseId`, `Index`, `ChoiceArtFileId`, `Flags`, `WidgetSetID`, `UiTextureAtlasElementID`, `SoundKitID`, `GroupID`, `UiTextureKitID`, `Answer`, `Header`, `SubHeader`, `ButtonTooltip`, `Description`, `Confirmation`, `RewardQuestID`, `VerifiedBuild`) VALUES
(822, 0, 0, 136182, 0, 0, 0, 0, 0, 0, '', 'Stomach Turner', '', '', 'Occasionally inflict Stomach Turner on enemies in combat, inflicting Nature damage over time and causing them to vomit out an aggressive slime.', '', 0, 69497);
DELETE FROM `playerchoice_response_maw_power` WHERE `ChoiceId` = 822;
INSERT INTO `playerchoice_response_maw_power` (`ChoiceId`, `ResponseId`, `TypeArtFileID`, `Rarity`, `SpellID`, `MaxStacks`, `VerifiedBuild`) VALUES
(822, 0, 0, 3, 1305224, 10, 69497); -- "Stomach Turner", aura 42 PROC_TRIGGER_SPELL
UPDATE `delve_template` SET `exitMapId`=2694 WHERE `mapId`=2964; -- The Gulf of Memory (12.1 gulf)
UPDATE `delve_template` SET `exitMapId`=0 WHERE `mapId`=2952; -- The Shadow Enclave (12.1 eversong, 12.0.1 deatholme)
UPDATE `delve_template` SET `exitMapId`=0 WHERE `mapId`=3003; -- The Darkway (12.0.7 shadowmoon, entered from map 0)
DELETE FROM spell_script_names WHERE spell_id = 38371;
DELETE FROM `spell_script_names` WHERE `spell_id`=38371 AND `ScriptName`='spell_hun_bestial_wrath_pet';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (38371, 'spell_hun_bestial_wrath_pet');
DELETE FROM `spell_script_names` WHERE `spell_id`=19574 AND `ScriptName`='spell_hun_bestial_wrath';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (19574, 'spell_hun_bestial_wrath');
DELETE FROM `spell_script_names` WHERE `spell_id`=118455 AND `ScriptName`='spell_hun_beast_cleave_pet';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (118455, 'spell_hun_beast_cleave_pet');
DELETE FROM `spell_script_names` WHERE `spell_id`=1273126 AND `ScriptName`='spell_hun_natures_ally';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (1273126, 'spell_hun_natures_ally');
DELETE FROM `spell_script_names` WHERE `spell_id`=217200 AND `ScriptName`='spell_hun_barbed_shot';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (217200, 'spell_hun_barbed_shot');
DELETE FROM `spell_script_names` WHERE `spell_id`=459552;
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (459552, 'spell_hun_laceration');
DELETE FROM `spell_proc` WHERE `SpellId`=459552;
INSERT INTO `spell_proc` (`SpellId`, `SchoolMask`, `SpellFamilyName`, `SpellFamilyMask0`, `SpellFamilyMask1`, `SpellFamilyMask2`, `SpellFamilyMask3`, `ProcFlags`, `ProcFlags2`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `AttributesMask`, `DisableEffectsMask`, `ProcsPerMinute`, `Chance`, `Cooldown`, `Charges`) VALUES
(459552, 0, 9, 0, 0, 0, 0, 0x00C00014, 0, 0, 0, 2, 0, 0, 0, 100, 0, 0);
DELETE FROM `spell_script_names` WHERE `spell_id`=120679;
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES (120679, 'spell_hun_dire_beast');