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.
This commit is contained in:
@@ -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;
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user