From f845b3db4a14c3b8bb72006e73358dc9e7ef30a2 Mon Sep 17 00:00:00 2001 From: Grimfeather <88028633+Grimfeather@users.noreply.github.com> Date: Sat, 10 May 2025 03:44:52 +0200 Subject: [PATCH] now using phasemask now using phasemask to make sure the creatures don't attack the player when the player can't see the creatures because he's not in the correct progression phase. --- sql/world/base/aq_war_effort.sql | 72 ++++++++++++++++---------------- 1 file changed, 37 insertions(+), 35 deletions(-) diff --git a/sql/world/base/aq_war_effort.sql b/sql/world/base/aq_war_effort.sql index da04edf..17afb10 100644 --- a/sql/world/base/aq_war_effort.sql +++ b/sql/world/base/aq_war_effort.sql @@ -235,48 +235,50 @@ INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language (15693, 3, 0, 'Colossus of Ashi breaks free of its cocoon beneath Hive\'Ashi.', 16, 0, 100, 1, 0, 0, 0, 4, 'EMOTE_AQ_GONG_4'), (15693, 4, 0, 'Colossus of Regal hears the call to battle and rises to serve its master.', 16, 0, 100, 1, 0, 0, 0, 4, 'EMOTE_AQ_GONG_5'); --- add bosses to Silithus and Darkshore -DELETE FROM `creature` WHERE `id1` IN (15810, 15813, 15742, 15741, 15740, 15758, 15818); +SET @IPPPHASE := 65536; + +-- add bosses to Silithus and Darkshore +DELETE FROM `creature` WHERE `id1` IN (15740, 15741, 15742, 15758, 15810, 15813, 15818); INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES -(311600,15810,0,0,1,0,0,1,1,0,4386.996582, 550.179260, 54.762119, 0.581150,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311601,15810,0,0,1,0,0,1,1,0,4388.178711, 513.457581, 53.590897, 3.921458,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311602,15810,0,0,1,0,0,1,1,0,4356.629395, 519.999329, 58.591854, 3.295495,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311603,15810,0,0,1,0,0,1,1,0,4361.684570, 558.289734, 56.632832, 4.635385,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311604,15813,0,0,1,0,0,1,1,0,4372.355957, 536.665649, 59.118938, 4.758702,1800,0,0,0,0,0,0,0,0,'npc_ipp_aqwar',0), -- boss darkshore 1 +(311600,15810,0,0,1,0,0,1,@IPPPHASE,0,4386.996582, 550.179260, 54.762119, 0.581150,1800,5,0,0,0,1,0,0,0,'',0), +(311601,15810,0,0,1,0,0,1,@IPPPHASE,0,4388.178711, 513.457581, 53.590897, 3.921458,1800,5,0,0,0,1,0,0,0,'',0), +(311602,15810,0,0,1,0,0,1,@IPPPHASE,0,4356.629395, 519.999329, 58.591854, 3.295495,1800,5,0,0,0,1,0,0,0,'',0), +(311603,15810,0,0,1,0,0,1,@IPPPHASE,0,4361.684570, 558.289734, 56.632832, 4.635385,1800,5,0,0,0,1,0,0,0,'',0), +(311604,15813,0,0,1,0,0,1,@IPPPHASE,0,4372.355957, 536.665649, 59.118938, 4.758702,1800,0,0,0,0,0,0,0,0,'',0), -- boss darkshore 1 -(311605,15810,0,0,1,0,0,1,1,0, 5083.312988, 90.152863, 45.683632, 4.534914,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311606,15810,0,0,1,0,0,1,1,0, 5057.701660, 83.685188, 49.825253, 3.410223,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311607,15810,0,0,1,0,0,1,1,0, 5046.050781, 122.508644, 43.164379, 2.331871,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311608,15810,0,0,1,0,0,1,1,0, 5071.985840, 138.409653, 41.266869, 0.861605,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311609,15813,0,0,1,0,0,1,1,0, 5064.384277, 107.279877, 42.528320, 3.140021,1800,0,0,0,0,0,0,0,0,'npc_ipp_aqwar',0), -- boss darkshore 2 +(311605,15810,0,0,1,0,0,1,@IPPPHASE,0, 5083.312988, 90.152863, 45.683632, 4.534914,1800,5,0,0,0,1,0,0,0,'',0), +(311606,15810,0,0,1,0,0,1,@IPPPHASE,0, 5057.701660, 83.685188, 49.825253, 3.410223,1800,5,0,0,0,1,0,0,0,'',0), +(311607,15810,0,0,1,0,0,1,@IPPPHASE,0, 5046.050781, 122.508644, 43.164379, 2.331871,1800,5,0,0,0,1,0,0,0,'',0), +(311608,15810,0,0,1,0,0,1,@IPPPHASE,0, 5071.985840, 138.409653, 41.266869, 0.861605,1800,5,0,0,0,1,0,0,0,'',0), +(311609,15813,0,0,1,0,0,1,@IPPPHASE,0, 5064.384277, 107.279877, 42.528320, 3.140021,1800,0,0,0,0,0,0,0,0,'',0), -- boss darkshore 2 -(311610,15810,0,0,1,0,0,1,1,0, 6409.220215, 4.401052, 30.286741, 2.987807,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311611,15810,0,0,1,0,0,1,1,0, 6424.186035, 30.883730, 27.005314, 0.934775,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311612,15810,0,0,1,0,0,1,1,0, 6454.531738, 28.456089, 31.199347, 0.068485,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311613,15810,0,0,1,0,0,1,1,0, 6453.624023, -5.977130, 28.319181, 5.131168,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311614,15813,0,0,1,0,0,1,1,0, 6434.273438, 12.233818, 26.357977, 0.805967,1800,0,0,0,0,0,0,0,0,'npc_ipp_aqwar',0), -- boss darkshore 3 +(311610,15810,0,0,1,0,0,1,@IPPPHASE,0, 6409.220215, 4.401052, 30.286741, 2.987807,1800,5,0,0,0,1,0,0,0,'',0), +(311611,15810,0,0,1,0,0,1,@IPPPHASE,0, 6424.186035, 30.883730, 27.005314, 0.934775,1800,5,0,0,0,1,0,0,0,'',0), +(311612,15810,0,0,1,0,0,1,@IPPPHASE,0, 6454.531738, 28.456089, 31.199347, 0.068485,1800,5,0,0,0,1,0,0,0,'',0), +(311613,15810,0,0,1,0,0,1,@IPPPHASE,0, 6453.624023, -5.977130, 28.319181, 5.131168,1800,5,0,0,0,1,0,0,0,'',0), +(311614,15813,0,0,1,0,0,1,@IPPPHASE,0, 6434.273438, 12.233818, 26.357977, 0.805967,1800,0,0,0,0,0,0,0,0,'',0), -- boss darkshore 3 -(311615,15742,0,0,1,0,0,1,1,0, -6458.704590, 1076.014282, -2.896275, 4.052591,3600,0,1,0,0,2,0,0,0,'npc_ipp_aqwar',0), -- Colossus of Ashi -(311616,15741,0,0,1,0,0,1,1,0, -7922.958008, 625.548523, -29.006325, 0.844522,3600,0,1,0,0,2,0,0,0,'npc_ipp_aqwar',0), -- Colossus of Regal -(311617,15740,0,0,1,0,0,1,1,0, -7461.777832, 1611.004272, -48.327751, 0.616755,3600,0,1,0,0,2,0,0,0,'npc_ipp_aqwar',0), -- Colossus of Zora +(311615,15742,0,0,1,0,0,1,@IPPPHASE,0, -6458.704590, 1076.014282, -2.896275, 4.052591,3600,0,1,0,0,2,0,0,0,'',0), -- Colossus of Ashi +(311616,15741,0,0,1,0,0,1,@IPPPHASE,0, -7922.958008, 625.548523, -29.006325, 0.844522,3600,0,1,0,0,2,0,0,0,'',0), -- Colossus of Regal +(311617,15740,0,0,1,0,0,1,@IPPPHASE,0, -7461.777832, 1611.004272, -48.327751, 0.616755,3600,0,1,0,0,2,0,0,0,'',0), -- Colossus of Zora -(311618,15758,0,0,1,0,0,1,1,0,-7623.261719, 1416.035767, 4.126772, 4.945646,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311619,15758,0,0,1,0,0,1,1,0,-7659.168457, 1392.619751, 3.995544, 3.687438,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311620,15758,0,0,1,0,0,1,1,0,-7688.503418, 1428.886963, 3.855407, 2.550966,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311621,15758,0,0,1,0,0,1,1,0, -7652.402344, 1464.758667, 4.526736, 0.600033,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311622,15818,0,0,1,0,0,1,1,1, -7644.985840, 1422.093628, 3.326948, 5.378395,1800,0,0,0,0,0,0,0,0,'npc_ipp_aqwar',0), -- boss Silithus 1 +(311618,15758,0,0,1,0,0,1,@IPPPHASE,0,-7623.261719, 1416.035767, 4.126772, 4.945646,1800,5,0,0,0,1,0,0,0,'',0), +(311619,15758,0,0,1,0,0,1,@IPPPHASE,0,-7659.168457, 1392.619751, 3.995544, 3.687438,1800,5,0,0,0,1,0,0,0,'',0), +(311620,15758,0,0,1,0,0,1,@IPPPHASE,0,-7688.503418, 1428.886963, 3.855407, 2.550966,1800,5,0,0,0,1,0,0,0,'',0), +(311621,15758,0,0,1,0,0,1,@IPPPHASE,0, -7652.402344, 1464.758667, 4.526736, 0.600033,1800,5,0,0,0,1,0,0,0,'',0), +(311622,15818,0,0,1,0,0,1,@IPPPHASE,1, -7644.985840, 1422.093628, 3.326948, 5.378395,1800,0,0,0,0,0,0,0,0,'',0), -- boss Silithus 1 -(311623,15758,0,0,1,0,0,1,1,0, -7806.652832, 855.699951, -4.778733, 0.353429,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311624,15758,0,0,1,0,0,1,1,0, -7831.444336, 808.078979, -9.832852, 4.501119,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311625,15758,0,0,1,0,0,1,1,0, -7881.184082, 864.466614, -1.765002, 2.737900,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311626,15758,0,0,1,0,0,1,1,0, -7832.478027, 912.945801, -2.498297, 0.817600,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311627,15818,0,0,1,0,0,1,1,1, -7830.405273, 851.316223, -4.844313, 4.929938,1800,0,0,0,0,0,0,0,0,'npc_ipp_aqwar',0), -- boss Silithus 2 +(311623,15758,0,0,1,0,0,1,@IPPPHASE,0, -7806.652832, 855.699951, -4.778733, 0.353429,1800,5,0,0,0,1,0,0,0,'',0), +(311624,15758,0,0,1,0,0,1,@IPPPHASE,0, -7831.444336, 808.078979, -9.832852, 4.501119,1800,5,0,0,0,1,0,0,0,'',0), +(311625,15758,0,0,1,0,0,1,@IPPPHASE,0, -7881.184082, 864.466614, -1.765002, 2.737900,1800,5,0,0,0,1,0,0,0,'',0), +(311626,15758,0,0,1,0,0,1,@IPPPHASE,0, -7832.478027, 912.945801, -2.498297, 0.817600,1800,5,0,0,0,1,0,0,0,'',0), +(311627,15818,0,0,1,0,0,1,@IPPPHASE,1, -7830.405273, 851.316223, -4.844313, 4.929938,1800,0,0,0,0,0,0,0,0,'',0), -- boss Silithus 2 -(311628,15758,0,0,1,0,0,1,1,0,-6290.943848, 736.276489, 11.109619, 5.837865,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311629,15758,0,0,1,0,0,1,1,0,-6303.743652, 703.045105, 11.219690, 4.562379,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311630,15758,0,0,1,0,0,1,1,0, -6349.953613, 715.365662, 2.037906, 3.263330,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311631,15758,0,0,1,0,0,1,1,0, -6346.292969, 777.375793, 1.782544, 1.899878,1800,5,0,0,0,1,0,0,0,'npc_ipp_aqwar',0), -(311632,15818,0,0,1,0,0,1,1,1, -6322.091797, 738.599060, 8.332182, 2.500710,1800,0,0,0,0,0,0,0,0,'npc_ipp_aqwar',0); -- boss Silithus 3 +(311628,15758,0,0,1,0,0,1,@IPPPHASE,0,-6290.943848, 736.276489, 11.109619, 5.837865,1800,5,0,0,0,1,0,0,0,'',0), +(311629,15758,0,0,1,0,0,1,@IPPPHASE,0,-6303.743652, 703.045105, 11.219690, 4.562379,1800,5,0,0,0,1,0,0,0,'',0), +(311630,15758,0,0,1,0,0,1,@IPPPHASE,0, -6349.953613, 715.365662, 2.037906, 3.263330,1800,5,0,0,0,1,0,0,0,'',0), +(311631,15758,0,0,1,0,0,1,@IPPPHASE,0, -6346.292969, 777.375793, 1.782544, 1.899878,1800,5,0,0,0,1,0,0,0,'',0), +(311632,15818,0,0,1,0,0,1,@IPPPHASE,1, -6322.091797, 738.599060, 8.332182, 2.500710,1800,0,0,0,0,0,0,0,0,'',0); -- boss Silithus 3 -- remove flags_extra = 1 for Lieutenant General Nokhor UPDATE `creature_template` SET `flags_extra` = 0 WHERE `entry` = 15818;