|
|
Модератор форума: Dimitro |
Форум TrinityCore Патчи / Моды / Фиксы для Trinity Wrath of the Lich King контент с 68 уровня (Раздача) |
Wrath of the Lich King контент с 68 уровня |
Оригинальная тема - http://www.trinitycore.org/f....izzlike
Code From: FreedomCore Team <dev@freedomwow.ru> Date: Thu, 28 Aug 2012 20:27:04 +0400 Subject: [PATCH] Wrath of the Lich King Content from 68lvl --- diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp old mode 100755 new mode 100644 index 659b1ab..87ec0c7 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -2134,6 +2134,11 @@ bool Player::TeleportTo(uint32 mapid, float x, float y, float z, float orientati return false; // normal client can't teleport to this map... } + else if((mEntry->Expansion() == 2 && mEntry->MapID != 609) && getLevel() < 68) + { + GetSession()->SendAreaTriggerMessage(GetSession()->GetTrinityString(LANG_LEVEL_MINREQUIRED),68); + return false; + } else sLog->outDebug(LOG_FILTER_MAPS, "Player %s is being teleported to map %u", GetName(), mapid); @@ -17020,7 +17025,9 @@ bool Player::LoadFromDB(uint32 guid, SQLQueryHolder *holder) // client without expansion support if (mapEntry) { - if (GetSession()->Expansion() < mapEntry->Expansion()) + if (GetSession()->Expansion() < mapEntry->Expansion() || + ((mapEntry->Expansion() == 2 && mapEntry->MapID != 609) && getLevel() < 68)) + { sLog->outDebug(LOG_FILTER_PLAYER_LOADING, "Player %s using client without required expansion tried login at non accessible map %u", GetName(), mapId); RelocateToHomebind();
Сообщение # 1 написано 04.09.2012 в 05:30
|
| |||
| |||