[7624] Add hack detection for zone of undead's capital.

This commit is contained in:
VladimirMangos 2009-04-06 00:58:54 +04:00
parent b697b05279
commit 8b9d57ebcd
2 changed files with 25 additions and 4 deletions

View file

@ -1642,9 +1642,9 @@ uint16 Map::GetAreaFlag(float x, float y, float z) const
case 2456: // Death's Breach (Eastern Plaguelands) case 2456: // Death's Breach (Eastern Plaguelands)
if(z > 350.0f) areaflag = 1950; break; if(z > 350.0f) areaflag = 1950; break;
// Dalaran // Dalaran
case 1593: case 1593: // Crystalsong Forest
case 2484: case 2484: // The Twilight Rivulet (Crystalsong Forest)
case 2492: 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; if (x > 5568.0f && x < 6116.0f && y > 282.0f && y < 982.0f && z > 563.0f) areaflag = 2153; break;
// Maw of Neltharion (cave) // Maw of Neltharion (cave)
case 164: // Dragonblight case 164: // Dragonblight
@ -1652,6 +1652,27 @@ uint16 Map::GetAreaFlag(float x, float y, float z) const
case 1827: // Wintergrasp case 1827: // Wintergrasp
case 2591: // The Cauldron of Flames (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; 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; return areaflag;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7623" #define REVISION_NR "7624"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__