Core/WorldStates: Migrate remaining hardcoded worldstates from Player::SendInitWorldStates to new system

Port From (https://github.com/TrinityCore/TrinityCore/commit/e1effd961dee05420d19699eeac8e2bb2585c237)
This commit is contained in:
hondacrx
2022-07-13 18:09:42 -04:00
parent 015ba8008c
commit 249cc2b83c
2 changed files with 8 additions and 7 deletions
-7
View File
@@ -2913,13 +2913,6 @@ namespace Game.Entities
Global.WorldStateMgr.FillInitialWorldStates(packet, GetMap(), areaId);
packet.AddState(2264, 0); // SCOURGE_EVENT_WORLDSTATE_EASTERN_PLAGUELANDS
packet.AddState(2263, 0); // SCOURGE_EVENT_WORLDSTATE_TANARIS
packet.AddState(2262, 0); // SCOURGE_EVENT_WORLDSTATE_BURNING_STEPPES
packet.AddState(2261, 0); // SCOURGE_EVENT_WORLDSTATE_BLASTED_LANDS
packet.AddState(2260, 0); // SCOURGE_EVENT_WORLDSTATE_AZSHARA
packet.AddState(2259, 0); // SCOURGE_EVENT_WORLDSTATE_WINTERSPRING
SendPacket(packet);
}
@@ -0,0 +1,8 @@
DELETE FROM `world_state` WHERE `ID` IN (2259,2260,2261,2262,2263,2264);
INSERT INTO `world_state` (`ID`,`DefaultValue`,`MapIDs`,`AreaIDs`,`ScriptName`,`Comment`) VALUES
(2259,0,NULL,NULL,'','Scourge Invasion - Winterspring Under Attack'),
(2260,0,NULL,NULL,'','Scourge Invasion - Azshara Under Attack'),
(2261,0,NULL,NULL,'','Scourge Invasion - Blasted Lands Under Attack'),
(2262,0,NULL,NULL,'','Scourge Invasion - Burning Steppes Under Attack'),
(2263,0,NULL,NULL,'','Scourge Invasion - Tanaris Under Attack'),
(2264,0,NULL,NULL,'','Scourge Invasion - Eastern Plaguelands Under Attack');