diff --git a/data/sql/updates/db_world/2024_02_13_01.sql b/data/sql/updates/db_world/2024_02_13_01.sql new file mode 100644 index 000000000..846d8963e --- /dev/null +++ b/data/sql/updates/db_world/2024_02_13_01.sql @@ -0,0 +1,17 @@ +-- DB update 2024_02_13_00 -> 2024_02_13_01 +-- disables buff stacking for items 49856, 49857, 49858, 49859, 49861, 49860 + +-- making sure group is free +DELETE FROM `spell_group` + WHERE `id` = 1035 + AND `spell_id` IN (70233, 70234, 70235, 70242, 70243, 70244); + +-- inserting spell_id's for the group +INSERT INTO `spell_group` (`id`, `spell_id`, `special_flag`) +VALUES +(1035, 70233, 16), +(1035, 70234, 16), +(1035, 70235, 16), +(1035, 70242, 16), +(1035, 70243, 16), +(1035, 70244, 16); diff --git a/data/sql/updates/db_world/2024_02_18_00.sql b/data/sql/updates/db_world/2024_02_18_00.sql new file mode 100644 index 000000000..ec445f28f --- /dev/null +++ b/data/sql/updates/db_world/2024_02_18_00.sql @@ -0,0 +1,37 @@ +-- DB update 2024_02_13_01 -> 2024_02_18_00 +-- Update creature 38032 'Crown Sprayer' with sniffed values +-- updated spawns +DELETE FROM `creature` WHERE (`id1` = 38032) AND (`guid` IN (244532, 244533, 244534, 244535, 244536, 244537, 244538, 244539, 244540, 244541, 244542, 244543, 244544)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(244532, 38032, 571, 1, 1, 0, 5574.43603515625, 77.111114501953125, 148.8536834716796875, 2.635447263717651367, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244533, 38032, 571, 1, 1, 0, 5582.7734375, 172.84375, 151.354034423828125, 1.902408838272094726, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244534, 38032, 571, 1, 1, 0, 5584.30908203125, 103.1805572509765625, 152.36346435546875, 4.99066162109375, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244535, 38032, 571, 1, 1, 0, 5585.4306640625, 203.4496612548828125, 149.2944793701171875, 1.884955525398254394, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244536, 38032, 571, 1, 1, 0, 5580.9130859375, 42.07291793823242187, 148.7736053466796875, 4.24114990234375, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244537, 38032, 571, 1, 1, 0, 5570.59814453125, 54.97916793823242187, 148.58355712890625, 3.752457857131958007, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244538, 38032, 571, 1, 1, 0, 5564.95654296875, 118.4149322509765625, 150.7164154052734375, 5.518222808837890625, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244539, 38032, 571, 1, 1, 0, 5563.96337890625, 168.4288177490234375, 151.90423583984375, 3.452911138534545898, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244540, 38032, 571, 1, 1, 0, 5555.345703125, 65.986114501953125, 148.637664794921875, 1.482807755470275878, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244541, 38032, 571, 1, 1, 0, 5550.08837890625, 209.439239501953125, 150.3420257568359375, 0.035282116383314132, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244542, 38032, 571, 1, 1, 0, 5556.35595703125, 184.998260498046875, 151.360015869140625, 1.21587538719177246, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244543, 38032, 571, 1, 1, 0, 5567.43212890625, 157.482635498046875, 151.66156005859375, 0.767944872379302978, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244544, 38032, 571, 1, 1, 0, 5571.1630859375, 136.14410400390625, 151.6313934326171875, 0.687570273876190185, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- new spawns +DELETE FROM `creature` WHERE (`id1` = 38032) AND (`guid` IN (12512, 12513, 12514, 12515, 12516, 12517, 12518, 12519, 12520, 12521, 12522)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(12512, 38032, 571, 1, 1, 0, 5592.4912109375, 190.42535400390625, 150.146881103515625, 0.486060142517089843, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12513, 38032, 571, 1, 1, 0, 5596.3447265625, 158.328125, 155.871063232421875, 5.693016529083251953, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12514, 38032, 571, 1, 1, 0, 5598.3583984375, 44.57986068725585937, 148.0960540771484375, 5.846852779388427734, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12515, 38032, 571, 1, 1, 0, 5599.44970703125, 178.92535400390625, 152.2413177490234375, 0.597836732864379882, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12516, 38032, 571, 1, 1, 0, 5611.8193359375, 169.482635498046875, 152.9903717041015625, 4.398229598999023437, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12517, 38032, 571, 1, 1, 0, 5615.84716796875, 83.61284637451171875, 148.2843475341796875, 0.890117883682250976, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12518, 38032, 571, 1, 1, 0, 5617.15478515625, 66.24652862548828125, 149.1097259521484375, 2.632266998291015625, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12519, 38032, 571, 1, 1, 0, 5621.765625, 127.251739501953125, 151.77362060546875, 1.30254364013671875, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12520, 38032, 571, 1, 1, 0, 5621.97998046875, 104.6076431274414062, 150.3077239990234375, 1.612285614013671875, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12521, 38032, 571, 1, 1, 0, 5645.3056640625, 133.0833282470703125, 154.620025634765625, 0.78539818525314331, 120, 10, 1, 0, 0, 0, "", 52237, 2, NULL), +(12522, 38032, 571, 1, 1, 0, 5658.9443359375, 97.4444427490234375, 159.0806732177734375, 4.694935798645019531, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- enable all spawns for eventEntry 8 +DELETE FROM `game_event_creature` WHERE (`eventEntry` = 8) AND (`guid` IN (SELECT `guid` FROM `creature` WHERE `id1` = 38032)); +INSERT INTO `game_event_creature` (SELECT 8, `guid` FROM `creature` WHERE `id1` = 38032); diff --git a/data/sql/updates/db_world/2024_02_18_01.sql b/data/sql/updates/db_world/2024_02_18_01.sql new file mode 100644 index 000000000..f1eeead25 --- /dev/null +++ b/data/sql/updates/db_world/2024_02_18_01.sql @@ -0,0 +1,6 @@ +-- DB update 2024_02_18_00 -> 2024_02_18_01 +-- Update gameobject 19878 'Parts Crate' with sniffed values +-- new spawns +DELETE FROM `gameobject` WHERE (`id` = 19878) AND (`guid` IN (15)); +INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `ScriptName`, `VerifiedBuild`, `Comment`) VALUES +(15, 19878, 1, 0, 0, 1, 1, -6232.25537109375, -3854.71875, -58.7500534057617187, 4.084071159362792968, 0, 0, -0.8910064697265625, 0.453990638256072998, 120, 255, 1, "", 51943, NULL); diff --git a/data/sql/updates/db_world/2024_02_18_02.sql b/data/sql/updates/db_world/2024_02_18_02.sql new file mode 100644 index 000000000..d68d43e71 --- /dev/null +++ b/data/sql/updates/db_world/2024_02_18_02.sql @@ -0,0 +1,23 @@ +-- DB update 2024_02_18_01 -> 2024_02_18_02 +-- Update creature 38023 'Crown Sprinkler' with sniffed values +-- updated spawns +DELETE FROM `creature` WHERE (`id1` = 38023) AND (`guid` IN (244596, 244597, 244598, 244599, 244600)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(244596, 38023, 1, 1, 1, 0, 6777.62841796875, -4880.59375, 776.90655517578125, 0.06640588492155075, 120, 10, 1, 0, 0, 0, "", 52237, 2, NULL), +(244597, 38023, 1, 1, 1, 0, 6750.931640625, -4877.4775390625, 772.704833984375, 5.210490703582763671, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244598, 38023, 1, 1, 1, 0, 6734.32666015625, -4913.34375, 770.54388427734375, 5.959794998168945312, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244599, 38023, 1, 1, 1, 0, 6719.81787109375, -4888.19970703125, 771.9097900390625, 0.665626347064971923, 120, 10, 1, 0, 0, 0, "", 52237, 2, NULL), +(244600, 38023, 1, 1, 1, 0, 6744.2177734375, -4893.55224609375, 770.9835205078125, 1.183032512664794921, 120, 10, 1, 0, 0, 0, "", 52237, 2, NULL); + +-- new spawns +DELETE FROM `creature` WHERE (`id1` = 38023) AND (`guid` IN (12500, 12501, 12502, 12503, 12504)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(12500, 38023, 1, 1, 1, 0, 6756.2421875, -4936.77099609375, 767.4073486328125, 4.647488594055175781, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12501, 38023, 1, 1, 1, 0, 6760.423828125, -4916.73779296875, 771.50250244140625, 2.868757486343383789, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12502, 38023, 1, 1, 1, 0, 6786.17626953125, -4896.470703125, 772.83807373046875, 2.314360618591308593, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12503, 38023, 1, 1, 1, 0, 6792.21923828125, -4928.8212890625, 764.412841796875, 2.97106480598449707, 120, 10, 1, 0, 0, 0, "", 52237, 2, NULL), +(12504, 38023, 1, 1, 1, 0, 6799.8212890625, -4882.111328125, 771.7579345703125, 3.310592889785766601, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- enable all spawns for eventEntry 8 +DELETE FROM `game_event_creature` WHERE (`eventEntry` = 8) AND (`guid` IN (SELECT `guid` FROM `creature` WHERE `id1` = 38023)); +INSERT INTO `game_event_creature` (SELECT 8, `guid` FROM `creature` WHERE `id1` = 38023); diff --git a/data/sql/updates/db_world/2024_02_18_03.sql b/data/sql/updates/db_world/2024_02_18_03.sql new file mode 100644 index 000000000..4b4758972 --- /dev/null +++ b/data/sql/updates/db_world/2024_02_18_03.sql @@ -0,0 +1,25 @@ +-- DB update 2024_02_18_02 -> 2024_02_18_03 +-- Update creature 38030 'Crown Underling' with sniffed values +-- updated spawns +DELETE FROM `creature` WHERE (`id1` = 38030) AND (`guid` IN (244601, 244602, 244603, 244604, 244605)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(244601, 38030, 530, 1, 1, 0, -1781.329833984375, 4851.0380859375, 2.513961315155029296, 2.835983514785766601, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244602, 38030, 530, 1, 1, 0, -1779.32470703125, 4863.93212890625, 3.006150245666503906, 4.906230449676513671, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244603, 38030, 530, 1, 1, 0, -1779.8524169921875, 4824.77587890625, 6.007839679718017578, 5.427973747253417968, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244604, 38030, 530, 1, 1, 0, -1787.748291015625, 4837.8662109375, 5.470133304595947265, 6.230825424194335937, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244605, 38030, 530, 1, 1, 0, -1802.82470703125, 4813.43994140625, 8.524339675903320312, 3.665004253387451171, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- new spawns +DELETE FROM `creature` WHERE (`id1` = 38030) AND (`guid` IN (12505, 12506, 12507, 12508, 12509, 12510, 12511)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(12505, 38030, 530, 1, 1, 0, -1806.8663330078125, 4872.65966796875, 0.008199334144592285, 0.405036032199859619, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12506, 38030, 530, 1, 1, 0, -1808.2603759765625, 4850.1484375, 2.301921367645263671, 4.293509960174560546, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12507, 38030, 530, 1, 1, 0, -1822.0850830078125, 4860.3056640625, 2.916187286376953125, 5.428323268890380859, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12508, 38030, 530, 1, 1, 0, -1827.6875, 4816.27880859375, 5.800868511199951171, 0.752617359161376953, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12509, 38030, 530, 1, 1, 0, -1830.6788330078125, 4829.2802734375, 4.210715293884277343, 3.769911050796508789, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12510, 38030, 530, 1, 1, 0, -1835.234375, 4874.81103515625, 2.685863256454467773, 0.068494811654090881, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12511, 38030, 530, 1, 1, 0, -1837.5382080078125, 4845.34619140625, 3.129755258560180664, 2.373647689819335937, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- enable all spawns for eventEntry 8 +DELETE FROM `game_event_creature` WHERE (`eventEntry` = 8) AND (`guid` IN (SELECT `guid` FROM `creature` WHERE `id1` = 38030)); +INSERT INTO `game_event_creature` (SELECT 8, `guid` FROM `creature` WHERE `id1` = 38030); diff --git a/data/sql/updates/db_world/2024_02_18_04.sql b/data/sql/updates/db_world/2024_02_18_04.sql new file mode 100644 index 000000000..9862ff12c --- /dev/null +++ b/data/sql/updates/db_world/2024_02_18_04.sql @@ -0,0 +1,23 @@ +-- DB update 2024_02_18_03 -> 2024_02_18_04 +-- Update creature 38016 'Crown Agent' with sniffed values +-- updated spawns +DELETE FROM `creature` WHERE (`id1` = 38016) AND (`guid` IN (244611, 244612, 244613, 244614, 244615)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(244611, 38016, 0, 1, 1, 0, 100.4280776977539062, -2490.742431640625, 121.4135208129882812, 2.317224502563476562, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244612, 38016, 0, 1, 1, 0, 110.3350677490234375, -2455.6650390625, 123.664825439453125, 0.428374558687210083, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244613, 38016, 0, 1, 1, 0, 120.4652786254882812, -2504.8212890625, 119.0987548828125, 6.003932476043701171, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244614, 38016, 0, 1, 1, 0, 117.6076431274414062, -2483.757080078125, 121.3556594848632812, 2.608929634094238281, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244615, 38016, 0, 1, 1, 0, 60.27604293823242187, -2513.822998046875, 122.183349609375, 2.436220169067382812, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- new spawns +DELETE FROM `creature` WHERE (`id1` = 38016) AND (`guid` IN (12495, 12496, 12497, 12498, 12499)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(12495, 38016, 0, 1, 1, 0, 65.65277862548828125, -2493.58154296875, 122.7665252685546875, 3.151055335998535156, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12496, 38016, 0, 1, 1, 0, 73.61978912353515625, -2444.29345703125, 123.7148590087890625, 3.797217607498168945, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12497, 38016, 0, 1, 1, 0, 73.92874908447265625, -2467.363525390625, 123.9583206176757812, 4.145519256591796875, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12498, 38016, 0, 1, 1, 0, 84.55902862548828125, -2507.171875, 119.3596343994140625, 5.80364847183227539, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12499, 38016, 0, 1, 1, 0, 90.19791412353515625, -2452.260498046875, 123.6936492919921875, 0.013602874241769313, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- enable all spawns for eventEntry 8 +DELETE FROM `game_event_creature` WHERE (`eventEntry` = 8) AND (`guid` IN (SELECT `guid` FROM `creature` WHERE `id1` = 38016)); +INSERT INTO `game_event_creature` (SELECT 8, `guid` FROM `creature` WHERE `id1` = 38016); diff --git a/data/sql/updates/db_world/2024_02_18_05.sql b/data/sql/updates/db_world/2024_02_18_05.sql new file mode 100644 index 000000000..2db82926d --- /dev/null +++ b/data/sql/updates/db_world/2024_02_18_05.sql @@ -0,0 +1,23 @@ +-- DB update 2024_02_18_04 -> 2024_02_18_05 +-- Update creature 38006 'Crown Hoodlum' with sniffed values +-- updated spawns +DELETE FROM `creature` WHERE (`id1` = 38006) AND (`guid` IN (244616, 244617, 244618, 244619, 244620)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(244616, 38006, 1, 1, 1, 0, -3344.072998046875, -4162.02783203125, 20.593231201171875, 5.002112388610839843, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244617, 38006, 1, 1, 1, 0, -3351.350830078125, -4129.876953125, 33.59409332275390625, 2.808437824249267578, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244618, 38006, 1, 1, 1, 0, -3364.498291015625, -4119.53466796875, 24.82869338989257812, 5.05707550048828125, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244619, 38006, 1, 1, 1, 0, -3329.0625, -4137.69091796875, 26.09952545166015625, 2.198208093643188476, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244620, 38006, 1, 1, 1, 0, -3355.954833984375, -4206.5, 23.66841316223144531, 4.573012828826904296, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- new spawns +DELETE FROM `creature` WHERE (`id1` = 38006) AND (`guid` IN (12473, 12474, 12475, 12476, 12477)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(12473, 38006, 1, 1, 1, 0, -3367.390625, -4190.8212890625, 17.9209747314453125, 3.833674192428588867, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12474, 38006, 1, 1, 1, 0, -3375.93408203125, -4146.0625, 18.473297119140625, 0.113560080528259277, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12475, 38006, 1, 1, 1, 0, -3381.329833984375, -4178.83154296875, 18.70720291137695312, 3.892084121704101562, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12476, 38006, 1, 1, 1, 0, -3408.854248046875, -4213.8994140625, 11.20813941955566406, 0.962113082408905029, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12477, 38006, 1, 1, 1, 0, -3417.116455078125, -4196.486328125, 10.71973228454589843, 1.248782634735107421, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- enable all spawns for eventEntry 8 +DELETE FROM `game_event_creature` WHERE (`eventEntry` = 8) AND (`guid` IN (SELECT `guid` FROM `creature` WHERE `id1` = 38006)); +INSERT INTO `game_event_creature` (SELECT 8, `guid` FROM `creature` WHERE `id1` = 38006); diff --git a/data/sql/updates/db_world/2024_02_18_06.sql b/data/sql/updates/db_world/2024_02_18_06.sql new file mode 100644 index 000000000..d7fe476e8 --- /dev/null +++ b/data/sql/updates/db_world/2024_02_18_06.sql @@ -0,0 +1,34 @@ +-- DB update 2024_02_18_05 -> 2024_02_18_06 +-- Update creature 37917 'Crown Thug' with sniffed values +-- updated spawns +DELETE FROM `creature` WHERE (`id1` = 37917) AND (`guid` IN (244567, 244568, 244569, 244570, 244591, 244592, 244593, 244594, 244595)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(244567, 37917, 0, 1, 1, 0, -21.8715286254882812, 1150.5504150390625, 63.65211105346679687, 2.58308720588684082, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244568, 37917, 0, 1, 1, 0, -29.5972232818603515, 1129.1441650390625, 66.65972900390625, 3.769911050796508789, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244569, 37917, 0, 1, 1, 0, -109.378471374511718, 1122.546875, 65.83797454833984375, 0.734558641910552978, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244570, 37917, 0, 1, 1, 0, -10.4444446563720703, 1179.5260009765625, 62.35342788696289062, 6.038839340209960937, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244591, 37917, 1, 1, 1, 0, 4854.67724609375, 182.5885467529296875, 53.79507064819335937, 1.409418463706970214, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244592, 37917, 1, 1, 1, 0, 4857.8603515625, 165.6041717529296875, 52.77235031127929687, 4.179948329925537109, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244593, 37917, 1, 1, 1, 0, 4852.30224609375, 128.814239501953125, 53.06558609008789062, 4.609555244445800781, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244594, 37917, 1, 1, 1, 0, 4836.4833984375, 171.1840362548828125, 54.30002212524414062, 0.484740912914276123, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244595, 37917, 1, 1, 1, 0, 4836.626953125, 148.3697967529296875, 50.3689727783203125, 1.999659895896911621, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- new spawns +DELETE FROM `creature` WHERE (`id1` = 37917) AND (`guid` IN (12483, 12484, 12485, 12486, 12487, 12488, 12489, 12490, 12491, 12492, 12493, 12494)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(12483, 37917, 0, 1, 1, 0, -42.25, 1171.0555419921875, 62.1666107177734375, 2.687807083129882812, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12484, 37917, 0, 1, 1, 0, -69.9479141235351562, 1124.3038330078125, 65.8105926513671875, 2.321287870407104492, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12485, 37917, 0, 1, 1, 0, -81.5034713745117187, 1142.0521240234375, 64.37357330322265625, 1.692969322204589843, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12486, 37917, 0, 1, 1, 0, -89.9340286254882812, 1156.545166015625, 63.49837112426757812, 4.00252532958984375, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12487, 37917, 1, 1, 1, 0, 4864.7265625, 142.298614501953125, 54.14240264892578125, 2.078510046005249023, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12488, 37917, 1, 1, 1, 0, 4871.5849609375, 175.7934112548828125, 52.59760284423828125, 0, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12489, 37917, 1, 1, 1, 0, 4877.111328125, 131.0538177490234375, 55.12520217895507812, 5.591028690338134765, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12490, 37917, 1, 1, 1, 0, 4878.01025390625, 157.670135498046875, 54.50635528564453125, 4.174365997314453125, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12491, 37917, 1, 1, 1, 0, 4885.16943359375, 183.8368072509765625, 52.37741851806640625, 1.013657569885253906, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12492, 37917, 1, 1, 1, 0, 4889.88525390625, 140.248260498046875, 55.2401885986328125, 3.955524921417236328, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12493, 37917, 1, 1, 1, 0, 4892.57763671875, 156.7190093994140625, 55.045440673828125, 2.276898860931396484, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12494, 37917, 1, 1, 1, 0, 4906.05224609375, 168.920135498046875, 54.53351593017578125, 4.750490665435791015, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- enable all spawns for eventEntry 8 +DELETE FROM `game_event_creature` WHERE (`eventEntry` = 8) AND (`guid` IN (SELECT `guid` FROM `creature` WHERE `id1` = 37917)); +INSERT INTO `game_event_creature` (SELECT 8, `guid` FROM `creature` WHERE `id1` = 37917); diff --git a/data/sql/updates/db_world/2024_02_18_07.sql b/data/sql/updates/db_world/2024_02_18_07.sql new file mode 100644 index 000000000..cdb90d237 --- /dev/null +++ b/data/sql/updates/db_world/2024_02_18_07.sql @@ -0,0 +1,23 @@ +-- DB update 2024_02_18_06 -> 2024_02_18_07 +-- Update creature 37984 'Crown Duster' with sniffed values +-- updated spawns +DELETE FROM `creature` WHERE (`id1` = 37984) AND (`guid` IN (244621, 244622, 244623, 244624, 244625)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(244621, 37984, 0, 1, 1, 0, -378.30902099609375, 208.529510498046875, 88.46282958984375, 3.839724302291870117, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244622, 37984, 0, 1, 1, 0, -394.711822509765625, 197.51910400390625, 82.26800537109375, 5.358272075653076171, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244623, 37984, 0, 1, 1, 0, -396.57464599609375, 127.8298721313476562, 54.46237945556640625, 5.201081275939941406, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244624, 37984, 0, 1, 1, 0, -387.810760498046875, 179.515625, 80.9049072265625, 1.064650893211364746, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244625, 37984, 0, 1, 1, 0, -375.36285400390625, 128.6006927490234375, 55.36986160278320312, 4.573588848114013671, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- new spawns +DELETE FROM `creature` WHERE (`id1` = 37984) AND (`guid` IN (12468, 12469, 12470, 12471, 12472)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(12468, 37984, 0, 1, 1, 0, -408.501739501953125, 203.6197967529296875, 81.3603515625, 1.605702877044677734, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12469, 37984, 0, 1, 1, 0, -421.5069580078125, 122.6284713745117187, 56.83416366577148437, 4.24114990234375, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12470, 37984, 0, 1, 1, 0, -423.4757080078125, 183.4965362548828125, 79.209228515625, 1.972222089767456054, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12471, 37984, 0, 1, 1, 0, -444.7532958984375, 174.57525634765625, 74.67865753173828125, 2.79698944091796875, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12472, 37984, 0, 1, 1, 0, -449.598968505859375, 185.50347900390625, 75.704071044921875, 2.652900457382202148, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- enable all spawns for eventEntry 8 +DELETE FROM `game_event_creature` WHERE (`eventEntry` = 8) AND (`guid` IN (SELECT `guid` FROM `creature` WHERE `id1` = 37984)); +INSERT INTO `game_event_creature` (SELECT 8, `guid` FROM `creature` WHERE `id1` = 37984); diff --git a/data/sql/updates/db_world/2024_02_18_08.sql b/data/sql/updates/db_world/2024_02_18_08.sql new file mode 100644 index 000000000..866a67fe4 --- /dev/null +++ b/data/sql/updates/db_world/2024_02_18_08.sql @@ -0,0 +1,29 @@ +-- DB update 2024_02_18_07 -> 2024_02_18_08 +-- Update creature 37214 'Crown Lackey' with sniffed values +-- updated spawns +DELETE FROM `creature` WHERE (`id1` = 37214) AND (`guid` IN (244581, 244582, 244583, 244584, 244585, 244586, 244587, 244588, 244589, 244590)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(244581, 37214, 0, 1, 1, 0, -9411.8818359375, 490.5538330078125, 50.8087158203125, 2.382520198822021484, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244582, 37214, 0, 1, 1, 0, -9424.8193359375, 508.576385498046875, 57.29096221923828125, 4.574251174926757812, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244583, 37214, 0, 1, 1, 0, -9440.908203125, 494.265625, 53.2842254638671875, 2.086580276489257812, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244584, 37214, 0, 1, 1, 0, -9425.7568359375, 524.4600830078125, 59.37531280517578125, 6.282542228698730468, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244585, 37214, 1, 1, 1, 0, 1288.0867919921875, -4109.65087890625, 28.00403404235839843, 4.431925296783447265, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244586, 37214, 1, 1, 1, 0, 1273.19970703125, -4113.72216796875, 27.99566078186035156, 3.630284786224365234, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244587, 37214, 1, 1, 1, 0, 1253.795166015625, -4055.526123046875, 22.00726318359375, 5.836018085479736328, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244588, 37214, 1, 1, 1, 0, 1250.826416015625, -4108.16162109375, 25.78389358520507812, 0.252455890178680419, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244589, 37214, 1, 1, 1, 0, 1238.8367919921875, -4092.291748046875, 23.53643417358398437, 0.372168511152267456, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(244590, 37214, 1, 1, 1, 0, 1250.80908203125, -4076.78466796875, 22.82913970947265625, 3.630284786224365234, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- new spawns +DELETE FROM `creature` WHERE (`id1` = 37214) AND (`guid` IN (12461, 12462, 12463, 12464, 12465, 12466)); +INSERT INTO `creature` (`guid`, `id1`, `map`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES +(12461, 37214, 0, 1, 1, 0, -9461.7412109375, 495.614593505859375, 54.70512771606445312, 5.607248783111572265, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12462, 37214, 0, 1, 1, 0, -9468.080078125, 543.45831298828125, 54.01108551025390625, 2.842578649520874023, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12463, 37214, 0, 1, 1, 0, -9479.794921875, 528.5, 54.844329833984375, 5.593160629272460937, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12464, 37214, 0, 1, 1, 0, -9489.8125, 515.8350830078125, 55.65568161010742187, 4.661127090454101562, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12465, 37214, 1, 1, 1, 0, 1279.10595703125, -4061.7119140625, 32.03759002685546875, 5.720801830291748046, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL), +(12466, 37214, 1, 1, 1, 0, 1287.6492919921875, -4093.40283203125, 30.00333023071289062, 3.983521461486816406, 120, 0, 0, 0, 0, 0, "", 52237, 2, NULL); + +-- enable all spawns for eventEntry 8 +DELETE FROM `game_event_creature` WHERE (`eventEntry` = 8) AND (`guid` IN (SELECT `guid` FROM `creature` WHERE `id1` = 37214)); +INSERT INTO `game_event_creature` (SELECT 8, `guid` FROM `creature` WHERE `id1` = 37214); diff --git a/src/server/game/Scripting/ScriptDefines/GameObjectScript.cpp b/src/server/game/Scripting/ScriptDefines/GameObjectScript.cpp index 0deb121d0..f8b15a7ab 100644 --- a/src/server/game/Scripting/ScriptDefines/GameObjectScript.cpp +++ b/src/server/game/Scripting/ScriptDefines/GameObjectScript.cpp @@ -128,7 +128,6 @@ uint32 ScriptMgr::GetDialogStatus(Player* player, GameObject* go) ASSERT(go); auto tempScript = ScriptRegistry::GetScriptById(go->GetScriptId()); - ClearGossipMenuFor(player); return tempScript ? tempScript->GetDialogStatus(player, go) : DIALOG_STATUS_SCRIPTED_NO_STATUS; } diff --git a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp index 816c1f35e..92c75da7f 100644 --- a/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp +++ b/src/server/scripts/Outland/CoilfangReservoir/SerpentShrine/boss_leotheras_the_blind.cpp @@ -94,8 +94,6 @@ struct boss_leotheras_the_blind : public BossAI } me->SetUnitFlag(UNIT_FLAG_NOT_SELECTABLE); - - DoResetThreatList(); me->ClearTarget(); me->SendMeleeAttackStop(); scheduler.CancelGroup(GROUP_DEMON); @@ -112,6 +110,7 @@ struct boss_leotheras_the_blind : public BossAI DoCastSelf(SPELL_SUMMON_SHADOW_OF_LEOTHERAS); }).Schedule(6s, [this](TaskContext) { + DoResetThreatList(); me->RemoveUnitFlag(UNIT_FLAG_NOT_SELECTABLE); me->SetStandState(UNIT_STAND_STATE_STAND); me->SetReactState(REACT_AGGRESSIVE);