Core/WorldStates: Migrate battleground worldstates to new system

This commit is contained in:
Shauren authored and Ovahlord committed 2022-12-21 21:41:58 +01:00
1 parent b5dcfece67
commit c63312cc06
33 files changed
+575 -1392

No files matched your search

-309
View File
@@ -8756,7 +8756,6 @@ void Player::SendUpdateWorldState(uint32 variable, uint32 value, bool hidden /*=
void Player::SendInitWorldStates(uint32 zoneId, uint32 areaId)
{
// data depends on zoneid/mapid...
Battleground* bg = GetBattleground();
uint32 mapid = GetMapId();
OutdoorPvP* pvp = sOutdoorPvPMgr->GetOutdoorPvPToZoneId(zoneId);
@@ -8817,182 +8816,6 @@ void Player::SendInitWorldStates(uint32 zoneId, uint32 areaId)
packet.Worldstates.emplace_back(2324, 0x0); // 12 sandworm SW
packet.Worldstates.emplace_back(2325, 0x0); // 13 sandworm E
break;
case 2597: // Alterac Valley
if (bg && bg->GetTypeID(true) == BATTLEGROUND_AV)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(0x7ae, 0x1); // 7 snowfall n
packet.Worldstates.emplace_back(0x532, 0x1); // 8 frostwolfhut hc
packet.Worldstates.emplace_back(0x531, 0x0); // 9 frostwolfhut ac
packet.Worldstates.emplace_back(0x52e, 0x0); // 10 stormpike firstaid a_a
packet.Worldstates.emplace_back(0x571, 0x0); // 11 east frostwolf tower horde assaulted -unused
packet.Worldstates.emplace_back(0x570, 0x0); // 12 west frostwolf tower horde assaulted - unused
packet.Worldstates.emplace_back(0x567, 0x1); // 13 frostwolfe c
packet.Worldstates.emplace_back(0x566, 0x1); // 14 frostwolfw c
packet.Worldstates.emplace_back(0x550, 0x1); // 15 irondeep (N) ally
packet.Worldstates.emplace_back(0x544, 0x0); // 16 ice grave a_a
packet.Worldstates.emplace_back(0x536, 0x0); // 17 stormpike grave h_c
packet.Worldstates.emplace_back(0x535, 0x1); // 18 stormpike grave a_c
packet.Worldstates.emplace_back(0x518, 0x0); // 19 stoneheart grave a_a
packet.Worldstates.emplace_back(0x517, 0x0); // 20 stoneheart grave h_a
packet.Worldstates.emplace_back(0x574, 0x0); // 21 1396 unk
packet.Worldstates.emplace_back(0x573, 0x0); // 22 iceblood tower horde assaulted -unused
packet.Worldstates.emplace_back(0x572, 0x0); // 23 towerpoint horde assaulted - unused
packet.Worldstates.emplace_back(0x56f, 0x0); // 24 1391 unk
packet.Worldstates.emplace_back(0x56e, 0x0); // 25 iceblood a
packet.Worldstates.emplace_back(0x56d, 0x0); // 26 towerp a
packet.Worldstates.emplace_back(0x56c, 0x0); // 27 frostwolfe a
packet.Worldstates.emplace_back(0x56b, 0x0); // 28 froswolfw a
packet.Worldstates.emplace_back(0x56a, 0x1); // 29 1386 unk
packet.Worldstates.emplace_back(0x569, 0x1); // 30 iceblood c
packet.Worldstates.emplace_back(0x568, 0x1); // 31 towerp c
packet.Worldstates.emplace_back(0x565, 0x0); // 32 stoneh tower a
packet.Worldstates.emplace_back(0x564, 0x0); // 33 icewing tower a
packet.Worldstates.emplace_back(0x563, 0x0); // 34 dunn a
packet.Worldstates.emplace_back(0x562, 0x0); // 35 duns a
packet.Worldstates.emplace_back(0x561, 0x0); // 36 stoneheart bunker alliance assaulted - unused
packet.Worldstates.emplace_back(0x560, 0x0); // 37 icewing bunker alliance assaulted - unused
packet.Worldstates.emplace_back(0x55f, 0x0); // 38 dunbaldar south alliance assaulted - unused
packet.Worldstates.emplace_back(0x55e, 0x0); // 39 dunbaldar north alliance assaulted - unused
packet.Worldstates.emplace_back(0x55d, 0x0); // 40 stone tower d
packet.Worldstates.emplace_back(0x3c6, 0x0); // 41 966 unk
packet.Worldstates.emplace_back(0x3c4, 0x0); // 42 964 unk
packet.Worldstates.emplace_back(0x3c2, 0x0); // 43 962 unk
packet.Worldstates.emplace_back(0x516, 0x1); // 44 stoneheart grave a_c
packet.Worldstates.emplace_back(0x515, 0x0); // 45 stonheart grave h_c
packet.Worldstates.emplace_back(0x3b6, 0x0); // 46 950 unk
packet.Worldstates.emplace_back(0x55c, 0x0); // 47 icewing tower d
packet.Worldstates.emplace_back(0x55b, 0x0); // 48 dunn d
packet.Worldstates.emplace_back(0x55a, 0x0); // 49 duns d
packet.Worldstates.emplace_back(0x559, 0x0); // 50 1369 unk
packet.Worldstates.emplace_back(0x558, 0x0); // 51 iceblood d
packet.Worldstates.emplace_back(0x557, 0x0); // 52 towerp d
packet.Worldstates.emplace_back(0x556, 0x0); // 53 frostwolfe d
packet.Worldstates.emplace_back(0x555, 0x0); // 54 frostwolfw d
packet.Worldstates.emplace_back(0x554, 0x1); // 55 stoneh tower c
packet.Worldstates.emplace_back(0x553, 0x1); // 56 icewing tower c
packet.Worldstates.emplace_back(0x552, 0x1); // 57 dunn c
packet.Worldstates.emplace_back(0x551, 0x1); // 58 duns c
packet.Worldstates.emplace_back(0x54f, 0x0); // 59 irondeep (N) horde
packet.Worldstates.emplace_back(0x54e, 0x0); // 60 irondeep (N) ally
packet.Worldstates.emplace_back(0x54d, 0x1); // 61 mine (S) neutral
packet.Worldstates.emplace_back(0x54c, 0x0); // 62 mine (S) horde
packet.Worldstates.emplace_back(0x54b, 0x0); // 63 mine (S) ally
packet.Worldstates.emplace_back(0x545, 0x0); // 64 iceblood h_a
packet.Worldstates.emplace_back(0x543, 0x1); // 65 iceblod h_c
packet.Worldstates.emplace_back(0x542, 0x0); // 66 iceblood a_c
packet.Worldstates.emplace_back(0x540, 0x0); // 67 snowfall h_a
packet.Worldstates.emplace_back(0x53f, 0x0); // 68 snowfall a_a
packet.Worldstates.emplace_back(0x53e, 0x0); // 69 snowfall h_c
packet.Worldstates.emplace_back(0x53d, 0x0); // 70 snowfall a_c
packet.Worldstates.emplace_back(0x53c, 0x0); // 71 frostwolf g h_a
packet.Worldstates.emplace_back(0x53b, 0x0); // 72 frostwolf g a_a
packet.Worldstates.emplace_back(0x53a, 0x1); // 73 frostwolf g h_c
packet.Worldstates.emplace_back(0x539, 0x0); // 74 frostwolf g a_c
packet.Worldstates.emplace_back(0x538, 0x0); // 75 stormpike grave h_a
packet.Worldstates.emplace_back(0x537, 0x0); // 76 stormpike grave a_a
packet.Worldstates.emplace_back(0x534, 0x0); // 77 frostwolf hut h_a
packet.Worldstates.emplace_back(0x533, 0x0); // 78 frostwolf hut a_a
packet.Worldstates.emplace_back(0x530, 0x0); // 79 stormpike first aid h_a
packet.Worldstates.emplace_back(0x52f, 0x0); // 80 stormpike first aid h_c
packet.Worldstates.emplace_back(0x52d, 0x1); // 81 stormpike first aid a_c
}
break;
case 3277: // Warsong Gulch
if (bg && bg->GetTypeID(true) == BATTLEGROUND_WS)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(0x62d, 0x0); // 7 1581 alliance flag captures
packet.Worldstates.emplace_back(0x62e, 0x0); // 8 1582 horde flag captures
packet.Worldstates.emplace_back(0x609, 0x0); // 9 1545 unk, set to 1 on alliance flag pickup...
packet.Worldstates.emplace_back(0x60a, 0x0); // 10 1546 unk, set to 1 on horde flag pickup, after drop it's -1
packet.Worldstates.emplace_back(0x60b, 0x2); // 11 1547 unk
packet.Worldstates.emplace_back(0x641, 0x3); // 12 1601 unk (max flag captures?)
packet.Worldstates.emplace_back(0x922, 0x1); // 13 2338 horde (0 - hide, 1 - flag ok, 2 - flag picked up (flashing), 3 - flag picked up (not flashing)
packet.Worldstates.emplace_back(0x923, 0x1); // 14 2339 alliance (0 - hide, 1 - flag ok, 2 - flag picked up (flashing), 3 - flag picked up (not flashing)
}
break;
case 3358: // Arathi Basin
if (bg && bg->GetTypeID(true) == BATTLEGROUND_AB)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(0x6e7, 0x0); // 7 1767 stables alliance
packet.Worldstates.emplace_back(0x6e8, 0x0); // 8 1768 stables horde
packet.Worldstates.emplace_back(0x6e9, 0x0); // 9 1769 unk, ST?
packet.Worldstates.emplace_back(0x6ea, 0x0); // 10 1770 stables (show/hide)
packet.Worldstates.emplace_back(0x6ec, 0x0); // 11 1772 farm (0 - horde controlled, 1 - alliance controlled)
packet.Worldstates.emplace_back(0x6ed, 0x0); // 12 1773 farm (show/hide)
packet.Worldstates.emplace_back(0x6ee, 0x0); // 13 1774 farm color
packet.Worldstates.emplace_back(0x6ef, 0x0); // 14 1775 gold mine color, may be FM?
packet.Worldstates.emplace_back(0x6f0, 0x0); // 15 1776 alliance resources
packet.Worldstates.emplace_back(0x6f1, 0x0); // 16 1777 horde resources
packet.Worldstates.emplace_back(0x6f2, 0x0); // 17 1778 horde bases
packet.Worldstates.emplace_back(0x6f3, 0x0); // 18 1779 alliance bases
packet.Worldstates.emplace_back(0x6f4, 0x7d0); // 19 1780 max resources (2000)
packet.Worldstates.emplace_back(0x6f6, 0x0); // 20 1782 blacksmith color
packet.Worldstates.emplace_back(0x6f7, 0x0); // 21 1783 blacksmith (show/hide)
packet.Worldstates.emplace_back(0x6f8, 0x0); // 22 1784 unk, bs?
packet.Worldstates.emplace_back(0x6f9, 0x0); // 23 1785 unk, bs?
packet.Worldstates.emplace_back(0x6fb, 0x0); // 24 1787 gold mine (0 - horde contr, 1 - alliance contr)
packet.Worldstates.emplace_back(0x6fc, 0x0); // 25 1788 gold mine (0 - conflict, 1 - horde)
packet.Worldstates.emplace_back(0x6fd, 0x0); // 26 1789 gold mine (1 - show/0 - hide)
packet.Worldstates.emplace_back(0x6fe, 0x0); // 27 1790 gold mine color
packet.Worldstates.emplace_back(0x700, 0x0); // 28 1792 gold mine color, wtf?, may be LM?
packet.Worldstates.emplace_back(0x701, 0x0); // 29 1793 lumber mill color (0 - conflict, 1 - horde contr)
packet.Worldstates.emplace_back(0x702, 0x0); // 30 1794 lumber mill (show/hide)
packet.Worldstates.emplace_back(0x703, 0x0); // 31 1795 lumber mill color color
packet.Worldstates.emplace_back(0x732, 0x1); // 32 1842 stables (1 - uncontrolled)
packet.Worldstates.emplace_back(0x733, 0x1); // 33 1843 gold mine (1 - uncontrolled)
packet.Worldstates.emplace_back(0x734, 0x1); // 34 1844 lumber mill (1 - uncontrolled)
packet.Worldstates.emplace_back(0x735, 0x1); // 35 1845 farm (1 - uncontrolled)
packet.Worldstates.emplace_back(0x736, 0x1); // 36 1846 blacksmith (1 - uncontrolled)
packet.Worldstates.emplace_back(0x745, 0x2); // 37 1861 unk
packet.Worldstates.emplace_back(0x7a3, 0x708); // 38 1955 warning limit (1800)
}
break;
case 3820: // Eye of the Storm
if (bg && bg->GetTypeID(true) == BATTLEGROUND_EY)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(0xac1, 0x0); // 7 2753 Horde Bases
packet.Worldstates.emplace_back(0xac0, 0x0); // 8 2752 Alliance Bases
packet.Worldstates.emplace_back(0xab6, 0x0); // 9 2742 Mage Tower - Horde conflict
packet.Worldstates.emplace_back(0xab5, 0x0); // 10 2741 Mage Tower - Alliance conflict
packet.Worldstates.emplace_back(0xab4, 0x0); // 11 2740 Fel Reaver - Horde conflict
packet.Worldstates.emplace_back(0xab3, 0x0); // 12 2739 Fel Reaver - Alliance conflict
packet.Worldstates.emplace_back(0xab2, 0x0); // 13 2738 Draenei - Alliance conflict
packet.Worldstates.emplace_back(0xab1, 0x0); // 14 2737 Draenei - Horde conflict
packet.Worldstates.emplace_back(0xab0, 0x0); // 15 2736 unk // 0 at start
packet.Worldstates.emplace_back(0xaaf, 0x0); // 16 2735 unk // 0 at start
packet.Worldstates.emplace_back(0xaad, 0x0); // 17 2733 Draenei - Horde control
packet.Worldstates.emplace_back(0xaac, 0x0); // 18 2732 Draenei - Alliance control
packet.Worldstates.emplace_back(0xaab, 0x1); // 19 2731 Draenei uncontrolled (1 - yes, 0 - no)
packet.Worldstates.emplace_back(0xaaa, 0x0); // 20 2730 Mage Tower - Alliance control
packet.Worldstates.emplace_back(0xaa9, 0x0); // 21 2729 Mage Tower - Horde control
packet.Worldstates.emplace_back(0xaa8, 0x1); // 22 2728 Mage Tower uncontrolled (1 - yes, 0 - no)
packet.Worldstates.emplace_back(0xaa7, 0x0); // 23 2727 Fel Reaver - Horde control
packet.Worldstates.emplace_back(0xaa6, 0x0); // 24 2726 Fel Reaver - Alliance control
packet.Worldstates.emplace_back(0xaa5, 0x1); // 25 2725 Fel Reaver uncontrolled (1 - yes, 0 - no)
packet.Worldstates.emplace_back(0xaa4, 0x0); // 26 2724 Boold Elf - Horde control
packet.Worldstates.emplace_back(0xaa3, 0x0); // 27 2723 Boold Elf - Alliance control
packet.Worldstates.emplace_back(0xaa2, 0x1); // 28 2722 Boold Elf uncontrolled (1 - yes, 0 - no)
packet.Worldstates.emplace_back(0xac5, 0x1); // 29 2757 Flag (1 - show, 0 - hide) - doesn't work exactly this way!
packet.Worldstates.emplace_back(0xad2, 0x1); // 30 2770 Horde top-stats (1 - show, 0 - hide) // 02 -> horde picked up the flag
packet.Worldstates.emplace_back(0xad1, 0x1); // 31 2769 Alliance top-stats (1 - show, 0 - hide) // 02 -> alliance picked up the flag
packet.Worldstates.emplace_back(0xabe, 0x0); // 32 2750 Horde resources
packet.Worldstates.emplace_back(0xabd, 0x0); // 33 2749 Alliance resources
packet.Worldstates.emplace_back(0xa05, 0x8e); // 34 2565 unk, constant?
packet.Worldstates.emplace_back(0xaa0, 0x0); // 35 2720 Capturing progress-bar (100 -> empty (only grey), 0 -> blue|red (no grey), default 0)
packet.Worldstates.emplace_back(0xa9f, 0x0); // 36 2719 Capturing progress-bar (0 - left, 100 - right)
packet.Worldstates.emplace_back(0xa9e, 0x0); // 37 2718 Capturing progress-bar (1 - show, 0 - hide)
packet.Worldstates.emplace_back(0xc0d, 0x17b); // 38 3085 unk
// and some more ... unknown
}
break;
// any of these needs change! the client remembers the prev setting!
// ON EVERY ZONE LEAVE, RESET THE OLD ZONE'S WORLD STATE, BUT AT LEAST THE UI STUFF!
case 3483: // Hellfire Peninsula
@@ -9126,138 +8949,6 @@ void Player::SendInitWorldStates(uint32 zoneId, uint32 areaId)
packet.Worldstates.emplace_back(0xa5f, 0x0); // 35
}
break;
case 3698: // Nagrand Arena
if (bg && bg->GetTypeID(true) == BATTLEGROUND_NA)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(0xa0f, 0x0); // 7
packet.Worldstates.emplace_back(0xa10, 0x0); // 8
packet.Worldstates.emplace_back(0xa11, 0x0); // 9 show
}
break;
case 3702: // Blade's Edge Arena
if (bg && bg->GetTypeID(true) == BATTLEGROUND_BE)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(0x9f0, 0x0); // 7 gold
packet.Worldstates.emplace_back(0x9f1, 0x0); // 8 green
packet.Worldstates.emplace_back(0x9f3, 0x0); // 9 show
}
break;
case 3968: // Ruins of Lordaeron
if (bg && bg->GetTypeID(true) == BATTLEGROUND_RL)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(0xbb8, 0x0); // 7 gold
packet.Worldstates.emplace_back(0xbb9, 0x0); // 8 green
packet.Worldstates.emplace_back(0xbba, 0x0); // 9 show
}
break;
case 4378: // Dalaran Sewers
if (bg && bg->GetTypeID(true) == BATTLEGROUND_DS)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(3601, 0x0); // 7 gold
packet.Worldstates.emplace_back(3600, 0x0); // 8 green
packet.Worldstates.emplace_back(3610, 0x0); // 9 show
}
break;
case 4384: // Strand of the Ancients
if (bg && bg->GetTypeID(true) == BATTLEGROUND_SA)
bg->FillInitialWorldStates(packet);
else
{
// 1-3 A defend, 4-6 H defend, 7-9 unk defend, 1 - ok, 2 - half destroyed, 3 - destroyed
packet.Worldstates.emplace_back(0xf09, 0x0); // 7 3849 Gate of Temple
packet.Worldstates.emplace_back(0xe36, 0x0); // 8 3638 Gate of Yellow Moon
packet.Worldstates.emplace_back(0xe27, 0x0); // 9 3623 Gate of Green Emerald
packet.Worldstates.emplace_back(0xe24, 0x0); // 10 3620 Gate of Blue Sapphire
packet.Worldstates.emplace_back(0xe21, 0x0); // 11 3617 Gate of Red Sun
packet.Worldstates.emplace_back(0xe1e, 0x0); // 12 3614 Gate of Purple Ametyst
packet.Worldstates.emplace_back(0xdf3, 0x0); // 13 3571 bonus timer (1 - on, 0 - off)
packet.Worldstates.emplace_back(0xded, 0x0); // 14 3565 Horde Attacker
packet.Worldstates.emplace_back(0xdec, 0x0); // 15 3564 Alliance Attacker
// End Round (timer), better explain this by example, eg. ends in 19:59 -> A:BC
packet.Worldstates.emplace_back(0xde9, 0x0); // 16 3561 C
packet.Worldstates.emplace_back(0xde8, 0x0); // 17 3560 B
packet.Worldstates.emplace_back(0xde7, 0x0); // 18 3559 A
packet.Worldstates.emplace_back(0xe35, 0x0); // 19 3637 East g - Horde control
packet.Worldstates.emplace_back(0xe34, 0x0); // 20 3636 West g - Horde control
packet.Worldstates.emplace_back(0xe33, 0x0); // 21 3635 South g - Horde control
packet.Worldstates.emplace_back(0xe32, 0x0); // 22 3634 East g - Alliance control
packet.Worldstates.emplace_back(0xe31, 0x0); // 23 3633 West g - Alliance control
packet.Worldstates.emplace_back(0xe30, 0x0); // 24 3632 South g - Alliance control
packet.Worldstates.emplace_back(0xe2f, 0x0); // 25 3631 Chamber of Ancients - Horde control
packet.Worldstates.emplace_back(0xe2e, 0x0); // 26 3630 Chamber of Ancients - Alliance control
packet.Worldstates.emplace_back(0xe2d, 0x0); // 27 3629 Beach1 - Horde control
packet.Worldstates.emplace_back(0xe2c, 0x0); // 28 3628 Beach2 - Horde control
packet.Worldstates.emplace_back(0xe2b, 0x0); // 29 3627 Beach1 - Alliance control
packet.Worldstates.emplace_back(0xe2a, 0x0); // 30 3626 Beach2 - Alliance control
// and many unks...
}
break;
case 4406: // Ring of Valor
if (bg && bg->GetTypeID(true) == BATTLEGROUND_RV)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(0xe10, 0x0); // 7 gold
packet.Worldstates.emplace_back(0xe11, 0x0); // 8 green
packet.Worldstates.emplace_back(0xe1a, 0x0); // 9 show
}
break;
case 4710:
if (bg && bg->GetTypeID(true) == BATTLEGROUND_IC)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(4221, 1); // 7 BG_IC_ALLIANCE_RENFORT_SET
packet.Worldstates.emplace_back(4222, 1); // 8 BG_IC_HORDE_RENFORT_SET
packet.Worldstates.emplace_back(4226, 300); // 9 BG_IC_ALLIANCE_RENFORT
packet.Worldstates.emplace_back(4227, 300); // 10 BG_IC_HORDE_RENFORT
packet.Worldstates.emplace_back(4322, 1); // 11 BG_IC_GATE_FRONT_H_WS_OPEN
packet.Worldstates.emplace_back(4321, 1); // 12 BG_IC_GATE_WEST_H_WS_OPEN
packet.Worldstates.emplace_back(4320, 1); // 13 BG_IC_GATE_EAST_H_WS_OPEN
packet.Worldstates.emplace_back(4323, 1); // 14 BG_IC_GATE_FRONT_A_WS_OPEN
packet.Worldstates.emplace_back(4324, 1); // 15 BG_IC_GATE_WEST_A_WS_OPEN
packet.Worldstates.emplace_back(4325, 1); // 16 BG_IC_GATE_EAST_A_WS_OPEN
packet.Worldstates.emplace_back(4317, 1); // 17 unknown
packet.Worldstates.emplace_back(4301, 1); // 18 BG_IC_DOCKS_UNCONTROLLED
packet.Worldstates.emplace_back(4296, 1); // 19 BG_IC_HANGAR_UNCONTROLLED
packet.Worldstates.emplace_back(4306, 1); // 20 BG_IC_QUARRY_UNCONTROLLED
packet.Worldstates.emplace_back(4311, 1); // 21 BG_IC_REFINERY_UNCONTROLLED
packet.Worldstates.emplace_back(4294, 1); // 22 BG_IC_WORKSHOP_UNCONTROLLED
packet.Worldstates.emplace_back(4243, 1); // 23 unknown
packet.Worldstates.emplace_back(4345, 1); // 24 unknown
}
break;
// Twin Peaks
case 5031:
if (bg && bg->GetTypeID(true) == BATTLEGROUND_TP)
bg->FillInitialWorldStates(packet);
else
{
packet.Worldstates.emplace_back(0x62d, 0x0); // 7 1581 alliance flag captures
packet.Worldstates.emplace_back(0x62e, 0x0); // 8 1582 horde flag captures
packet.Worldstates.emplace_back(0x609, 0x0); // 9 1545 unk
packet.Worldstates.emplace_back(0x60a, 0x0); // 10 1546 unk
packet.Worldstates.emplace_back(0x60b, 0x2); // 11 1547 unk
packet.Worldstates.emplace_back(0x641, 0x3); // 12 1601 unk
packet.Worldstates.emplace_back(0x922, 0x1); // 13 2338 horde (0 - hide, 1 - flag ok, 2 - flag picked up (flashing), 3 - flag picked up (not flashing)
packet.Worldstates.emplace_back(0x923, 0x1); // 14 2339 alliance (0 - hide, 1 - flag ok, 2 - flag picked up (flashing), 3 - flag picked up (not flashing)
}
break;
// Battle for Gilneas
case 5449:
if (bg && bg->GetTypeID(true) == BATTLEGROUND_BFG)
bg->FillInitialWorldStates(packet);
break;
default:
break;
}