0.1.39.1: put back the dungeon door, lever and event scripts
Ubuntu x64 / build (clang-17, clang++-17, <nil>, 1) (push) Canceled after 0s
Ubuntu x64 / build (clang-17, clang++-17, ccache, 0) (push) Canceled after 0s
Ubuntu x64 / build (gcc-13, g++-13, <nil>, 1) (push) Canceled after 0s
macOS arm64 / build (push) Canceled after 0s
Windows x64 / build (push) Canceled after 0s

2026_11_05_99 (the 11-05 Forever quest restore) deleted the rows of the
classic script files that write through a world. prefix, so every install
since 0.1.30 lost them: Blackrock Depths, Scarlet Monastery, Deadmines,
Shadowfang Keep and Scholomance doors and levers (the Shadowforge Lock no
longer turns the big door), the Emberseer doors, the UBRS, Scholomance and
Uldaman event scripts and the EventAI of 60 creatures including Rajaxx.

2026_11_11_29: a server's own .tele entries on ids 2342-2399 move to free
ids, so the Forever dungeon files no longer stop the worldserver with
"Duplicate entry '2356' for key 'game_tele.PRIMARY'".
2026_11_22_47: the gameobject door lists set the door state (they never
moved a door that sat in its spawn state).
2026_11_22_48: puts back the 353 smart_scripts rows, the lever AINames, the
Stratholme service entrance script, Rajaxx's AIName and quest 5525's
SmartQuest.

SQL only, no code change.
This commit is contained in:
Karrz1
2026-11-22 14:48:49 +00:00
parent ad481fc75a
commit 7509ecbfcc
3 changed files with 398 additions and 0 deletions
@@ -0,0 +1,13 @@
-- .tele ids 2342-2399 are kept for the Forever dungeon teleports. The dungeon files insert theirs with fixed ids but delete
-- the old rows by name only (2026_11_11_30 Drowned City 2350-2351, 2026_11_11_33 Krol'dok 2352-2353, 2026_11_19_70 Blackmaw
-- Hold 2356-2357, 2026_11_19_72 Shaper's Terrace 2358-2359), so a server whose own teleports (.tele add) already use one of
-- those ids stopped starting there with "Duplicate entry '2356' for key 'game_tele.PRIMARY'".
-- This file sorts before all of them, so the updater runs it first, also on a server stuck on one of them: any teleport
-- in 2342-2399 that is not one of ours moves to a free id above every other teleport. Teleports are used by name, so
-- .tele keeps working for them. Nothing to do on a fresh install. Safe to run again.
SET @next_tele_id := (SELECT GREATEST(COALESCE(MAX(`id`), 0), 2399) FROM `game_tele`);
UPDATE `game_tele` SET `id` = (@next_tele_id := @next_tele_id + 1)
WHERE `id` BETWEEN 2342 AND 2399
AND `name` NOT IN ('DrownedCity','DrownedCityEntrance','KroldokStronghold','KroldokStrongholdEntrance','Naxx',
'BlackmawHold','BlackmawHoldEntrance','ShapersTerrace','ShapersTerraceEntrance','AlcazPrison','AlcazPrisonEntrance')
ORDER BY `id`;
@@ -0,0 +1,13 @@
-- WoW Classic: the door actions of the VMaNGOS gameobject scripts (2026_10_12_31 and _34) never moved a door.
-- They used SMART_ACTION_ACTIVATE_GAMEOBJECT (147) Open/Close, but these lists run on a gameobject (the lock, lever or
-- gate itself): Open only works with a unit caster, and Close only resets a door something used before, so neither
-- touched a door sitting in its spawn state. Seen in Blackrock Depths: the Shadowforge Key lowers the lock but the giant
-- door never turns (BUGS-ALL row 299); the Chromaggus lever (2026_10_30_80) was the same fault.
-- VMaNGOS open/close door set the state, so the rows now use SMART_ACTION_GO_SET_GO_STATE (118):
-- Open -> GO_STATE_ACTIVE (0), Close -> GO_STATE_READY (1). Only the gameobject-run lists and gameobject spawn scripts.
-- Safe to run again.
UPDATE `smart_scripts` SET `action_type` = 118, `action_param1` = IF(`action_param1` = 8, 0, 1), `action_param2` = 0
WHERE `source_type` = 9 AND `entryorguid` BETWEEN 940000000 AND 940199999 AND `action_type` = 147 AND `action_param1` IN (8, 10);
UPDATE `smart_scripts` SET `action_type` = 118, `action_param1` = IF(`action_param1` = 8, 0, 1), `action_param2` = 0
WHERE `source_type` = 1 AND `entryorguid` IN (-30043184, -30043187, -30043188, -30043196, -30043203, -30035798)
AND `action_type` = 147 AND `action_param1` IN (8, 10);
File diff suppressed because one or more lines are too long