mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/WorldStates: Migrate remaining hardcoded worldstates from Player::SendInitWorldStates to new system
This commit is contained in:
8
sql/updates/world/master/2022_07_11_03_world.sql
Normal file
8
sql/updates/world/master/2022_07_11_03_world.sql
Normal 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');
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user