aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/updates/world/master/2025_09_18_01_world.sql115
-rw-r--r--src/server/scripts/Battlegrounds/RuinsOfLordaeron/arena_ruins_of_lordaeron.cpp47
2 files changed, 133 insertions, 29 deletions
diff --git a/sql/updates/world/master/2025_09_18_01_world.sql b/sql/updates/world/master/2025_09_18_01_world.sql
new file mode 100644
index 00000000000..3eb4281c7bd
--- /dev/null
+++ b/sql/updates/world/master/2025_09_18_01_world.sql
@@ -0,0 +1,115 @@
+SET @OGUID := 167035;
+SET @SPAWN_GROUP := 327;
+
+DELETE FROM `spawn_group_template` WHERE `groupId` = @SPAWN_GROUP;
+INSERT INTO `spawn_group_template` (`groupId`, `groupName`, `groupFlags`) VALUES
+(@SPAWN_GROUP, 'Ruins of Lordaeron Arena - Shadow Sight', 0x20);
+
+DELETE FROM `spawn_group` WHERE `groupId` = @SPAWN_GROUP;
+INSERT INTO `spawn_group` (`groupId`, `spawnType`, `spawnId`) VALUES
+(@SPAWN_GROUP, 1, @OGUID+46),
+(@SPAWN_GROUP, 1, @OGUID+47);
+
+DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 33 AND `SourceEntry` = @SPAWN_GROUP;
+INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceEntry`, `SourceGroup`, `ConditionTypeOrReference`, `ConditionValue1`, `ScriptName`) VALUES
+(33, @SPAWN_GROUP, 0, 0, 0, 'condition_is_shadow_sight_enabled');
+
+DELETE FROM `gameobject` WHERE `guid` BETWEEN @OGUID+0 AND @OGUID+47;
+INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `PhaseId`, `PhaseGroup`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `VerifiedBuild`) VALUES
+(@OGUID+0, 3797, 572, 3968, 3968, '0', '0', 0, 1416.82958984375, 1540.9200439453125, 19.57265853881835937, 4.738570213317871093, 0, 0, -0.69779014587402343, 0.716302275657653808, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+1, 3797, 572, 3968, 3968, '0', '0', 0, 1428.9854736328125, 1567.144775390625, 19.6521148681640625, 3.804818391799926757, 0, 0, -0.94551849365234375, 0.325568377971649169, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+2, 3798, 572, 3968, 3968, '0', '0', 0, 1416.86279296875, 1541.8140869140625, 19.57265853881835937, 3.447027206420898437, 0, 0, -0.98836135864257812, 0.152124300599098205, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+3, 3797, 572, 3968, 3968, '0', '0', 0, 1508.8182373046875, 1520.5830078125, 24.8719482421875, 0.052358884364366531, 0, 0, 0.02617645263671875, 0.999657332897186279, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+4, 3798, 572, 3968, 3968, '0', '0', 0, 1429.723876953125, 1567.64990234375, 19.6521148681640625, 2.513273954391479492, 0, 0, 0.951056480407714843, 0.309017121791839599, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+5, 3798, 572, 3968, 3968, '0', '0', 0, 1507.923583984375, 1520.5927734375, 24.8719482421875, 5.044002056121826171, 0, 0, -0.58070278167724609, 0.814115643501281738, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+6, 3797, 572, 3968, 3968, '0', '0', 0, 1426.22509765625, 1513.6865234375, 19.48416519165039062, 5.663594245910644531, 0, 0, -0.30486392974853515, 0.952395915985107421, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+7, 38491, 572, 3968, 3968, '0', '0', 0, 1521.8486328125, 1502.005859375, 16.998870849609375, 3.551750659942626953, 0, 0, -0.97904491424560546, 0.203644454479217529, 7200, 255, 1, 63003), -- Forge (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+8, 3797, 572, 3968, 3968, '0', '0', 0, 1472.634033203125, 1428.203125, 26.78465652465820312, 5.096362113952636718, 0, 0, -0.55919265747070312, 0.829037725925445556, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+9, 38493, 572, 3968, 3968, '0', '0', 0, 1516.09033203125, 1504.986328125, 18.80681610107421875, 5.785767555236816406, 0, 0, -0.24615287780761718, 0.969231009483337402, 7200, 255, 1, 63003), -- Anvil (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+10, 3798, 572, 3968, 3968, '0', '0', 0, 1425.5311279296875, 1514.2509765625, 19.48416519165039062, 4.372052192687988281, 0, 0, -0.81664085388183593, 0.577146172523498535, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+11, 38492, 572, 3968, 3968, '0', '0', 0, 1519.9249267578125, 1495.689697265625, 18.80681610107421875, 0.986109614372253417, 0, 0, 0.473319053649902343, 0.880891084671020507, 7200, 255, 1, 63003), -- Anvil (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+12, 38495, 572, 3968, 3968, '0', '0', 0, 1527.7177734375, 1498.9439697265625, 18.80681610107421875, 2.312558174133300781, 0, 0, 0.915310859680175781, 0.402748137712478637, 7200, 255, 1, 63003), -- Anvil (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+13, 3797, 572, 3968, 3968, '0', '0', 0, 1515.4661865234375, 1579.9757080078125, 17.98524665832519531, 1.570795774459838867, 0, 0, 0.707106590270996093, 0.707106947898864746, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+14, 3798, 572, 3968, 3968, '0', '0', 0, 1472.3519287109375, 1429.0521240234375, 26.78465652465820312, 3.804818391799926757, 0, 0, -0.94551849365234375, 0.325568377971649169, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+15, 38494, 572, 3968, 3968, '0', '0', 0, 1529.5526123046875, 1504.512939453125, 18.79839324951171875, 4.345873355865478515, 0, 0, -0.82412528991699218, 0.566407561302185058, 7200, 255, 1, 63003), -- Anvil (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+16, 3797, 572, 3968, 3968, '0', '0', 0, 1535.4276123046875, 1535.3197021484375, 17.92325401306152343, 3.141592741012573242, 0, 0, -1, 0, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+17, 3798, 572, 3968, 3968, '0', '0', 0, 1515.40966796875, 1579.0828857421875, 17.98524665832519531, 0.27925160527229309, 0, 0, 0.139172554016113281, 0.990268170833587646, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+18, 3798, 572, 3968, 3968, '0', '0', 0, 1536.3204345703125, 1535.26318359375, 17.92325401306152343, 1.85004889965057373, 0, 0, 0.798635482788085937, 0.60181504487991333, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+19, 22707, 572, 3968, 3968, '0', '0', 0, 1476.0439453125, 1637.410400390625, 17.98172187805175781, 4.35459756851196289, 0, 0, -0.82164669036865234, 0.569997072219848632, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+20, 22709, 572, 3968, 3968, '0', '0', 0, 1474.7275390625, 1635.5989990234375, 17.98172187805175781, 3.420850038528442382, 0, 0, -0.99026775360107421, 0.139175355434417724, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+21, 22708, 572, 3968, 3968, '0', '0', 0, 1493.3048095703125, 1664.3973388671875, 18.47212791442871093, 4.424411773681640625, 0, 0, -0.80125331878662109, 0.598325252532958984, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+22, 22711, 572, 3968, 3968, '0', '0', 0, 1491.995849609375, 1664.1041259765625, 18.47212791442871093, 3.019413232803344726, 0, 0, 0.998134613037109375, 0.061051756143569946, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+23, 22710, 572, 3968, 3968, '0', '0', 0, 1475.8446044921875, 1634.4793701171875, 17.98172187805175781, 6.056294918060302734, 0, 0, -0.11320209503173828, 0.993571996688842773, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+24, 22712, 572, 3968, 3968, '0', '0', 0, 1476.182861328125, 1635.9029541015625, 17.98172187805175781, 0.863936781883239746, 0, 0, 0.418659210205078125, 0.908143401145935058, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+25, 3797, 572, 3968, 3968, '0', '0', 0, 1541.9049072265625, 1474.6756591796875, 31.71045875549316406, 3.150327444076538085, 0, 0, -0.99999046325683593, 0.004367320332676172, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+26, 3797, 572, 3968, 3968, '0', '0', 0, 1467.000244140625, 1607.3607177734375, 18.0409698486328125, 2.513267755508422851, 0, 0, 0.951055526733398437, 0.309020012617111206, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+27, 3798, 572, 3968, 3968, '0', '0', 0, 1542.7982177734375, 1474.626953125, 31.71045875549316406, 1.858777165412902832, 0, 0, 0.8012542724609375, 0.598324000835418701, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+28, 3798, 572, 3968, 3968, '0', '0', 0, 1467.6893310546875, 1606.7901611328125, 18.0409698486328125, 1.221729278564453125, 0, 0, 0.573575973510742187, 0.819152355194091796, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+29, 22563, 572, 3968, 3968, '0', '0', 0, 1449.6378173828125, 1571.635986328125, 19.59851646423339843, 4.68620920181274414, 0, 0, -0.71630191802978515, 0.697790443897247314, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+30, 22565, 572, 3968, 3968, '0', '0', 0, 1449.2288818359375, 1572.801025390625, 19.59851646423339843, 3.394674062728881835, 0, 0, -0.99200439453125, 0.126203224062919616, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+31, 22564, 572, 3968, 3968, '0', '0', 0, 1449.7855224609375, 1572.2552490234375, 24.51536941528320312, 1.204277276992797851, 0, 0, 0.56640625, 0.824126183986663818, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+32, 22567, 572, 3968, 3968, '0', '0', 0, 1449.0128173828125, 1572.8028564453125, 24.51536941528320312, 3.394674062728881835, 0, 0, -0.99200439453125, 0.126203224062919616, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+33, 22566, 572, 3968, 3968, '0', '0', 0, 1450.001708984375, 1572.25341796875, 19.59851646423339843, 1.204277276992797851, 0, 0, 0.56640625, 0.824126183986663818, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+34, 185917, 572, 3968, 3968, '0', '0', 0, 1278.647705078125, 1730.556640625, 31.60557365417480468, 1.684243083000183105, 0, 0, 0.746057510375976562, 0.665881514549255371, 7200, 255, 1, 63003), -- Doodad_PVP_Lordaeron_Door02 (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+35, 22563, 572, 3968, 3968, '0', '0', 0, 1462.87255859375, 1448.48291015625, 26.967864990234375, 5.087634086608886718, 0, 0, -0.56280517578125, 0.826589584350585937, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+36, 185918, 572, 3968, 3968, '0', '0', 0, 1293.560791015625, 1601.93798828125, 31.60557365417480468, 4.825837135314941406, 0, 0, -0.66588115692138671, 0.746057868003845214, 7200, 255, 1, 63003), -- Doodad_PVP_Lordaeron_Door01 (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+37, 22565, 572, 3968, 3968, '0', '0', 0, 1462.0408935546875, 1449.3955078125, 26.967864990234375, 3.796092510223388671, 0, 0, -0.946929931640625, 0.321440041065216064, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+38, 22563, 572, 3968, 3968, '0', '0', 0, 1540.664306640625, 1556.9866943359375, 25.34088706970214843, 1.562067151069641113, 0, 0, 0.704013824462890625, 0.710186243057250976, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+39, 22564, 572, 3968, 3968, '0', '0', 0, 1462.7666015625, 1449.1107177734375, 31.88471603393554687, 1.605701684951782226, 0, 0, 0.719339370727539062, 0.694658815860748291, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+40, 22567, 572, 3968, 3968, '0', '0', 0, 1461.84130859375, 1449.3128662109375, 31.88471603393554687, 3.796092510223388671, 0, 0, -0.946929931640625, 0.321440041065216064, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+41, 22565, 572, 3968, 3968, '0', '0', 0, 1541.093505859375, 1555.828857421875, 25.34088706970214843, 0.270525157451629638, 0, 0, 0.134850502014160156, 0.990865945816040039, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+42, 22566, 572, 3968, 3968, '0', '0', 0, 1462.9661865234375, 1449.193359375, 26.967864990234375, 1.605701684951782226, 0, 0, 0.719339370727539062, 0.694658815860748291, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+43, 22564, 572, 3968, 3968, '0', '0', 0, 1540.52734375, 1556.3648681640625, 30.25774002075195312, 4.3633270263671875, 0, 0, -0.81915092468261718, 0.573578059673309326, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+44, 22567, 572, 3968, 3968, '0', '0', 0, 1541.3095703125, 1555.830810546875, 30.25774002075195312, 0.270525157451629638, 0, 0, 0.134850502014160156, 0.990865945816040039, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+45, 22566, 572, 3968, 3968, '0', '0', 0, 1540.311279296875, 1556.363037109375, 25.34088706970214843, 4.3633270263671875, 0, 0, -0.81915092468261718, 0.573578059673309326, 7200, 255, 1, 63003), -- Cozy Fire (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject1
+(@OGUID+46, 184663, 572, 3968, 3968, '0', '0', 0, 1328.6239013671875, 1632.8038330078125, 36.283294677734375, 0.575957298278808593, 0, 0, 0.284014701843261718, 0.958819925785064697, 7200, 255, 1, 63003), -- Shadow Sight (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject2
+(@OGUID+47, 184664, 572, 3968, 3968, '0', '0', 0, 1243.8741455078125, 1699.289794921875, 34.86130142211914062, 0.122172988951206207, 0, 0, 0.061048507690429687, 0.998134791851043701, 7200, 255, 1, 63003); -- Shadow Sight (Area: Ruins of Lordaeron - Difficulty: 0) CreateObject2
+
+DELETE FROM `gameobject_addon` WHERE `guid` BETWEEN @OGUID+0 AND @OGUID+301;
+INSERT INTO `gameobject_addon` (`guid`, `parent_rotation0`, `parent_rotation1`, `parent_rotation2`, `parent_rotation3`, `WorldEffectID`, `AIAnimKitID`) VALUES
+(@OGUID+0, 0, 0, 0.722364068031311035, 0.691512942314147949, 0, 0), -- Cozy Fire
+(@OGUID+1, 0, 0, 0.333806991577148437, 0.942641437053680419, 0, 0), -- Cozy Fire
+(@OGUID+2, 0, 0, 0.722364068031311035, 0.691512942314147949, 0, 0), -- Cozy Fire
+(@OGUID+3, 0, 0, 0.999390840530395507, -0.03489958122372627, 0, 0), -- Cozy Fire
+(@OGUID+4, 0, 0, 0.333806991577148437, 0.942641437053680419, 0, 0), -- Cozy Fire
+(@OGUID+5, 0, 0, 0.999390840530395507, -0.03489958122372627, 0, 0), -- Cozy Fire
+(@OGUID+6, 0, 0, 0.955019950866699218, 0.296541541814804077, 0, 0), -- Cozy Fire
+(@OGUID+7, 0, 0, 0.979045450687408447, -0.20364183187484741, 0, 0), -- Forge
+(@OGUID+8, 0, 0, 0.83388596773147583, 0.551936745643615722, 0, 0), -- Cozy Fire
+(@OGUID+9, 0, 0, 0.979045450687408447, -0.20364183187484741, 0, 0), -- Anvil
+(@OGUID+10, 0, 0, 0.955019950866699218, 0.296541541814804077, 0, 0), -- Cozy Fire
+(@OGUID+11, 0, 0, 0.979045450687408447, -0.20364183187484741, 0, 0), -- Anvil
+(@OGUID+12, 0, 0, 0.979045450687408447, -0.20364183187484741, 0, 0), -- Anvil
+(@OGUID+13, 0, 0, -0.7009093165397644, 0.713250398635864257, 0, 0), -- Cozy Fire
+(@OGUID+14, 0, 0, 0.83388596773147583, 0.551936745643615722, 0, 0), -- Cozy Fire
+(@OGUID+15, 0, 0, 0.979045450687408447, -0.20364183187484741, 0, 0), -- Anvil
+(@OGUID+16, 0, 0, 0.008726636879146099, 0.999961912631988525, 0, 0), -- Cozy Fire
+(@OGUID+17, 0, 0, -0.7009093165397644, 0.713250398635864257, 0, 0), -- Cozy Fire
+(@OGUID+18, 0, 0, 0.008726636879146099, 0.999961912631988525, 0, 0), -- Cozy Fire
+(@OGUID+19, 0, 0, -0.78260797262191772, 0.622514784336090087, 0, 0), -- Cozy Fire
+(@OGUID+20, 0, 0, -0.78260797262191772, 0.622514784336090087, 0, 0), -- Cozy Fire
+(@OGUID+21, 0, 0, -0.78260797262191772, 0.622514784336090087, 0, 0), -- Cozy Fire
+(@OGUID+22, 0, 0, -0.78260797262191772, 0.622514784336090087, 0, 0), -- Cozy Fire
+(@OGUID+23, 0, 0, -0.78260797262191772, 0.622514784336090087, 0, 0), -- Cozy Fire
+(@OGUID+24, 0, 0, -0.78260797262191772, 0.622514784336090087, 0, 0), -- Cozy Fire
+(@OGUID+25, 0, 0, 0.013089912012219429, 0.999914348125457763, 0, 0), -- Cozy Fire
+(@OGUID+26, 0, 0, -0.30070573091506958, 0.953716993331909179, 0, 0), -- Cozy Fire
+(@OGUID+27, 0, 0, 0.013089912012219429, 0.999914348125457763, 0, 0), -- Cozy Fire
+(@OGUID+28, 0, 0, -0.30070573091506958, 0.953716993331909179, 0, 0), -- Cozy Fire
+(@OGUID+29, 0, 0, 0.70401465892791748, 0.710185408592224121, 0, 0), -- Cozy Fire
+(@OGUID+30, 0, 0, 0.70401465892791748, 0.710185408592224121, 0, 0), -- Cozy Fire
+(@OGUID+31, 0, 0, 0.70401465892791748, 0.710185408592224121, 0, 0), -- Cozy Fire
+(@OGUID+32, 0, 0, 0.70401465892791748, 0.710185408592224121, 0, 0), -- Cozy Fire
+(@OGUID+33, 0, 0, 0.70401465892791748, 0.710185408592224121, 0, 0), -- Cozy Fire
+(@OGUID+34, 0, 0, 0.998391687870025634, -0.05669287219643592, 0, 0), -- Doodad_PVP_Lordaeron_Door02
+(@OGUID+35, 0, 0, 0.831469655036926269, 0.555570185184478759, 0, 0), -- Cozy Fire
+(@OGUID+36, 0, 0, 0.998391687870025634, -0.05669287219643592, 0, 0), -- Doodad_PVP_Lordaeron_Door01
+(@OGUID+37, 0, 0, 0.831469655036926269, 0.555570185184478759, 0, 0), -- Cozy Fire
+(@OGUID+38, 0, 0, -0.70401471853256225, 0.710185348987579345, 0, 0), -- Cozy Fire
+(@OGUID+39, 0, 0, 0.831469655036926269, 0.555570185184478759, 0, 0), -- Cozy Fire
+(@OGUID+40, 0, 0, 0.831469655036926269, 0.555570185184478759, 0, 0), -- Cozy Fire
+(@OGUID+41, 0, 0, -0.70401471853256225, 0.710185348987579345, 0, 0), -- Cozy Fire
+(@OGUID+42, 0, 0, 0.831469655036926269, 0.555570185184478759, 0, 0), -- Cozy Fire
+(@OGUID+43, 0, 0, -0.70401471853256225, 0.710185348987579345, 0, 0), -- Cozy Fire
+(@OGUID+44, 0, 0, -0.70401471853256225, 0.710185348987579345, 0, 0), -- Cozy Fire
+(@OGUID+45, 0, 0, -0.70401471853256225, 0.710185348987579345, 0, 0); -- Cozy Fire
diff --git a/src/server/scripts/Battlegrounds/RuinsOfLordaeron/arena_ruins_of_lordaeron.cpp b/src/server/scripts/Battlegrounds/RuinsOfLordaeron/arena_ruins_of_lordaeron.cpp
index 75f9c6caef1..da2ab67d3df 100644
--- a/src/server/scripts/Battlegrounds/RuinsOfLordaeron/arena_ruins_of_lordaeron.cpp
+++ b/src/server/scripts/Battlegrounds/RuinsOfLordaeron/arena_ruins_of_lordaeron.cpp
@@ -20,30 +20,19 @@
#include "GameObject.h"
#include "Map.h"
#include "ScriptMgr.h"
-#include "TaskScheduler.h"
-struct arena_ruins_of_lordaeron : ArenaScript
+namespace RuinsOfLordaeron
{
- enum BattlegroundRLGameObjects
- {
- BG_RL_OBJECT_TYPE_DOOR_1 = 185918,
- BG_RL_OBJECT_TYPE_DOOR_2 = 185917,
- BG_RL_OBJECT_TYPE_BUFF_1 = 184663,
- BG_RL_OBJECT_TYPE_BUFF_2 = 184664
- };
-
- explicit arena_ruins_of_lordaeron(BattlegroundMap* map) : ArenaScript(map) { }
-
- void OnUpdate(uint32 diff) override
+ namespace GameObjects
{
- _scheduler.Update(diff);
+ static constexpr uint32 Door01 = 185918;
+ static constexpr uint32 Door02 = 185917;
}
+}
- void OnInit() override
- {
- AddDoor(BG_RL_OBJECT_TYPE_DOOR_1, 1293.561f, 1601.938f, 31.60557f, -1.457349f, 0, 0, -0.6658813f, 0.7460576f);
- AddDoor(BG_RL_OBJECT_TYPE_DOOR_2, 1278.648f, 1730.557f, 31.60557f, 1.684245f, 0, 0, 0.7460582f, 0.6658807f);
- }
+struct arena_ruins_of_lordaeron : ArenaScript
+{
+ explicit arena_ruins_of_lordaeron(BattlegroundMap* map) : ArenaScript(map) { }
void OnStart() override
{
@@ -55,23 +44,23 @@ struct arena_ruins_of_lordaeron : ArenaScript
door->DespawnOrUnsummon(5s);
}
}
-
- _scheduler.Schedule(1min, [&](TaskContext)
- {
- CreateObject(BG_RL_OBJECT_TYPE_BUFF_1, 1328.719971f, 1632.719971f, 36.730400f, -1.448624f, 0, 0, 0.6626201f, -0.7489557f);
- CreateObject(BG_RL_OBJECT_TYPE_BUFF_2, 1243.300049f, 1699.170044f, 34.872601f, -0.06981307f, 0, 0, 0.03489945f, -0.9993908f);
- });
}
- void AddDoor(uint32 entry, float x, float y, float z, float o, float rotation0, float rotation1, float rotation2, float rotation3, GOState goState = GO_STATE_READY)
+ void OnGameObjectCreate(GameObject* gameobject) override
{
- if (GameObject const* go = CreateObject(entry, x, y, z, o, rotation0, rotation1, rotation2, rotation3, goState))
- _doorGUIDs.emplace_back(go->GetGUID());
+ switch (gameobject->GetEntry())
+ {
+ case RuinsOfLordaeron::GameObjects::Door01:
+ case RuinsOfLordaeron::GameObjects::Door02:
+ _doorGUIDs.emplace_back(gameobject->GetGUID());
+ break;
+ default:
+ break;
+ }
}
private:
GuidVector _doorGUIDs;
- TaskScheduler _scheduler;
};
void AddSC_arena_ruins_of_lordaeron()