From c0f6e1275fc2f0e961a5699d51146472d0492bcb Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Mon, 16 Nov 2026 20:11:54 +0000 Subject: [PATCH] World: SIN's Warpwood Crusher size and Darnassus guild vault SIN's own SQL for 0.1.37, as he wrote it: - Warpwood Crusher (13021, display 12929) drawn at scale 1.0, not 3.5. - A Guild Vault in front of Idriana in the Bank of Darnassus. Code by SIN (1amcoff1n). Changed only to fit our tree: renumbered to 2026_11_16_64/65, and a comment line on top. The vault file runs after 2026_11_15_59, which places the live Darnassus vaults; his file adds its vault only when the bank has none, so on our data it adds nothing. His Install.ps1, verify and rollback scripts are not shipped. --- ..._64_world_local_warpwood_crusher_scale.sql | 4 ++++ ...6_65_world_local_darnassus_guild_vault.sql | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 sql/custom/world/2026_11_16_64_world_local_warpwood_crusher_scale.sql create mode 100644 sql/custom/world/2026_11_16_65_world_local_darnassus_guild_vault.sql diff --git a/sql/custom/world/2026_11_16_64_world_local_warpwood_crusher_scale.sql b/sql/custom/world/2026_11_16_64_world_local_warpwood_crusher_scale.sql new file mode 100644 index 0000000000..cc516c8519 --- /dev/null +++ b/sql/custom/world/2026_11_16_64_world_local_warpwood_crusher_scale.sql @@ -0,0 +1,4 @@ +-- SIN's fix (1amcoff1n), Warpwood Crusher Scale Fix for 0.1.37 (Warpwood-Crusher-Scale.sql). +-- local_warpwood_crusher_scale: use the standard size of display 12929. +UPDATE creature_template_model SET DisplayScale=1 +WHERE CreatureID=13021 AND Idx=0 AND CreatureDisplayID=12929 AND DisplayScale=3.5; diff --git a/sql/custom/world/2026_11_16_65_world_local_darnassus_guild_vault.sql b/sql/custom/world/2026_11_16_65_world_local_darnassus_guild_vault.sql new file mode 100644 index 0000000000..e992bf43f4 --- /dev/null +++ b/sql/custom/world/2026_11_16_65_world_local_darnassus_guild_vault.sql @@ -0,0 +1,19 @@ +-- SIN's fix (1amcoff1n), Darnassus Guild Vault for 0.1.37 (apply.sql). Runs after 2026_11_15_59 (live Darnassus vaults): +-- it adds his vault only when no guild vault stands in the Darnassus bank. +START TRANSACTION; +-- A failed CHECK aborts the batch before COMMIT. No permanent helper tables. +CREATE TEMPORARY TABLE patch_preflight (ok INT NOT NULL CHECK (ok = 1)); +INSERT INTO patch_preflight SELECT COUNT(*) FROM gameobject_template WHERE entry = 630865 AND type = 34; +INSERT INTO patch_preflight SELECT COUNT(*) = 0 FROM gameobject WHERE guid = 919934155 + AND NOT (id = 630865 AND map = 1 AND ABS(position_x - 9937.8) < 0.01 + AND ABS(position_y - 2517.0) < 0.01 AND ABS(position_z - 1317.18) < 0.01); +INSERT INTO gameobject + (guid,id,map,spawnDifficulties,position_x,position_y,position_z,orientation,rotation2,rotation3,spawntimesecs,animprogress,state) +SELECT 919934155,630865,1,'0',9937.8,2517,1317.18,4.38,SIN(4.38/2),COS(4.38/2),120,255,1 +WHERE NOT EXISTS ( + SELECT 1 FROM gameobject g JOIN gameobject_template t ON t.entry=g.id + WHERE t.type=34 AND g.map=1 AND g.position_x BETWEEN 9920 AND 9960 + AND g.position_y BETWEEN 2500 AND 2535 AND ABS(g.position_z-1317.18)<4 +); +DROP TEMPORARY TABLE patch_preflight; +COMMIT;