Core/WorldStates: Migrate remaining hardcoded worldstates from Player::SendInitWorldStates to new system
This commit is contained in:
1 parent
d35f58a46d
commit
e9b13bcf00
2 files changed
+8
-7
No files matched your search
@@ -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');
|
||||
@@ -8767,13 +8767,6 @@ void Player::SendInitWorldStates(uint32 zoneId, uint32 areaId)
|
||||
|
||||
sWorldStateMgr->FillInitialWorldStates(packet, GetMap(), areaId);
|
||||
|
||||
packet.Worldstates.emplace_back(2264, 0); // 1
|
||||
packet.Worldstates.emplace_back(2263, 0); // 2
|
||||
packet.Worldstates.emplace_back(2262, 0); // 3
|
||||
packet.Worldstates.emplace_back(2261, 0); // 4
|
||||
packet.Worldstates.emplace_back(2260, 0); // 5
|
||||
packet.Worldstates.emplace_back(2259, 0); // 6
|
||||
|
||||
SendDirectMessage(packet.Write());
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user