From 8b9d57ebcd36a8e810591810daf26764768ef9cc Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Mon, 6 Apr 2009 00:58:54 +0400 Subject: [PATCH] [7624] Add hack detection for zone of undead's capital. --- src/game/Map.cpp | 27 ++++++++++++++++++++++++--- src/shared/revision_nr.h | 2 +- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/src/game/Map.cpp b/src/game/Map.cpp index f05ca8f58..64f2a2580 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -1642,9 +1642,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 @@ -1652,6 +1652,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; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index af5f318d0..04b16c9ed 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "7623" + #define REVISION_NR "7624" #endif // __REVISION_NR_H__