[Release] Portals (Ebon Hold) Fix

bulle7proof

New Member
Joined
Feb 10, 2009
Messages
344
Reaction score
68
Code:
-- Script Notes
-- ------------
-- Portal to Lower Ebon Hold
-- Author: Bulle7proof
-- GUID: 100316 ID: 1100011
-- Lower GPS: Map: 0 x: 2396.7 y: -5636.5 z: 377.0 o: 0.584
-- Data2: 196608
-- Display: 1327

-- Portal to Upper Ebon Hold
-- Author: Bulle7proof
-- GUID: 100315 ID: 1100022
-- Upper GPS: Map: 0 x: 2392.4 y: -5639.4 z: 420.8 o: 0.580
-- Data2: 196608
-- Display: 1327

-- Unspawn Auras For Now
UPDATE `gameobject` SET `spawnMask` = 0 WHERE `guid` = 63161;
UPDATE `gameobject` SET `spawnMask` = 0 WHERE `guid` = 63186;
UPDATE `gameobject` SET `spawnMask` = 0 WHERE `guid` = 63162;
UPDATE `gameobject` SET `spawnMask` = 0 WHERE `guid` = 63187;

-- Create Portals
REPLACE INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `castBarCaption`, `faction`, `flags`, `size`, `data0`, `data1`, `data2`, `data3`, `data4`, `data5`, `data6`, `data7`, `data8`, `data9`, `data10`, `data11`, `data12`, `data13`, `data14`, `data15`, `data16`, `data17`, `data18`, `data19`, `data20`, `data21`, `data22`, `data23`, `ScriptName`) VALUES (1100011, 1, 1327, 'Portal to Lower Ebon Hold', 'Teleport: Lower Ebon Hold', 35, 0, 1, 0, 0, 196608, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '');
REPLACE INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `castBarCaption`, `faction`, `flags`, `size`, `data0`, `data1`, `data2`, `data3`, `data4`, `data5`, `data6`, `data7`, `data8`, `data9`, `data10`, `data11`, `data12`, `data13`, `data14`, `data15`, `data16`, `data17`, `data18`, `data19`, `data20`, `data21`, `data22`, `data23`, `ScriptName`) VALUES (1100022, 1, 1327, 'Portal to Upper Ebon Hold', 'Teleport: Upper Ebon Hold', 35, 0, 1, 0, 0, 196608, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '');

-- Spawn Portals
REPLACE INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES (100316, 1100011, 0, 1, 1, 2383.82, -5645, 421.74, 3.75342, 0, 0, 0.953572, -0.301165, 25, 0, 1);
REPLACE INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES (100315, 1100022, 0, 1, 1, 2390.12, -5640.82, 378.101, 3.7383, 0, 0, 0.955822, -0.293946, 25, 0, 1);

-- Add Portal Effects
INSERT INTO `gameobject_scripts` (`id`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`) VALUES ('100316','1','6','0','0','0','2396.7','-5636.5','377','0.584');
INSERT INTO `gameobject_scripts` (`id`,`delay`,`command`,`datalong`,`datalong2`,`dataint`,`x`,`y`,`z`,`o`) VALUES ('100315','1','6','0','0','0','2392.4','-5639.4','420.8','0.58');

This should fix some ebon hold portals but in the newest UDBs it could be already fixed...