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

This commit is contained in:
Shauren
2022-07-11 21:32:16 +02:00
parent 5f601f53b8
commit e1effd961d
2 changed files with 8 additions and 7 deletions

View File

@@ -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');

View File

@@ -9213,13 +9213,6 @@ void Player::SendInitWorldStates(uint32 zoneId, uint32 areaId)
sWorldStateMgr->FillInitialWorldStates(packet, GetMap(), areaId);
packet.Worldstates.emplace_back(2264, 0); // SCOURGE_EVENT_WORLDSTATE_EASTERN_PLAGUELANDS
packet.Worldstates.emplace_back(2263, 0); // SCOURGE_EVENT_WORLDSTATE_TANARIS
packet.Worldstates.emplace_back(2262, 0); // SCOURGE_EVENT_WORLDSTATE_BURNING_STEPPES
packet.Worldstates.emplace_back(2261, 0); // SCOURGE_EVENT_WORLDSTATE_BLASTED_LANDS
packet.Worldstates.emplace_back(2260, 0); // SCOURGE_EVENT_WORLDSTATE_AZSHARA
packet.Worldstates.emplace_back(2259, 0); // SCOURGE_EVENT_WORLDSTATE_WINTERSPRING
SendDirectMessage(packet.Write());
}