diff options
| author | megamage <none@none> | 2009-04-07 19:39:25 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-04-07 19:39:25 -0500 |
| commit | 7888cfb417f6f2ef01451257627a17ab710abf03 (patch) | |
| tree | adf86ad3a468abe45c5f4da4d759070f4b4ecf89 /src | |
| parent | cd3d9c2d80986d3295fed67564aea8ead7318867 (diff) | |
[7624] Add hack detection for zone of undead's capital. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Map.cpp | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index d6f06051c59..0e12abd0957 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -1791,9 +1791,9 @@ uint16 Map::GetAreaFlag(float x, float y, float z) const case 2456: // Death's Breach (Eastern Plaguelands) if(z > 350.0f) areaflag = 1950; break; // Dalaran - case 1593: - case 2484: - case 2492: + case 1593: // Crystalsong Forest + case 2484: // The Twilight Rivulet (Crystalsong Forest) + case 2492: // Forlorn Woods (Crystalsong Forest) if (x > 5568.0f && x < 6116.0f && y > 282.0f && y < 982.0f && z > 563.0f) areaflag = 2153; break; // Maw of Neltharion (cave) case 164: // Dragonblight @@ -1801,6 +1801,27 @@ uint16 Map::GetAreaFlag(float x, float y, float z) const case 1827: // Wintergrasp case 2591: // The Cauldron of Flames (Wintergrasp) if (x > 4364.0f && x < 4632.0f && y > 1545.0f && y < 1886.0f && z < 200.0f) areaflag = 1853; break; + // Undercity (sewers enter and path) + case 179: // Tirisfal Glades + if (x > 1595.0f && x < 1699.0f && y > 535.0f && y < 643.5f && z < 30.5f) areaflag = 685; break; + // Undercity (Royal Quarter) + case 210: // Silverpine Forest + case 316: // The Shining Strand (Silverpine Forest) + case 438: // Lordamere Lake (Silverpine Forest) + if (x > 1237.0f && x < 1401.0f && y > 284.0f && y < 440.0f && z < -40.0f) areaflag = 685; break; + // Undercity (cave and ground zone, part of royal quarter) + case 607: // Ruins of Lordaeron (Tirisfal Glades) + // ground and near to ground (by city walls) + if(z > 0.0f) + { + if (x > 1510.0f && x < 1839.0f && y > 29.77f && y < 433.0f) areaflag = 685; + } + // more wide underground, part of royal quarter + else + { + if (x > 1299.0f && x < 1839.0f && y > 10.0f && y < 440.0f) areaflag = 685; + } + break; } return areaflag; |
