[Classic] Disabled free 1-40 teleports.

This commit is contained in:
MobiusDev
2015-05-05 12:22:31 +00:00
parent 9d1698a81f
commit 5fd8f11edd
12 changed files with 3 additions and 15 deletions

View File

@ -229,7 +229,7 @@ public final class L2TeleporterInstance extends L2Npc
{
if (type == TeleportType.NORMAL)
{
if (!player.isSubClassActive() && (player.getLevel() < (Config.SERVER_CLASSIC_SUPPORT ? 41 : 77)))
if (!player.isSubClassActive() && (player.getLevel() < (Config.SERVER_CLASSIC_SUPPORT ? 1 : 77)))
{
return 0;
}
@ -247,7 +247,7 @@ public final class L2TeleporterInstance extends L2Npc
protected boolean shouldPayFee(L2PcInstance player, TeleportType type, TeleportLocation loc)
{
return (type != TeleportType.NORMAL) || (!Config.ALT_GAME_FREE_TELEPORT && ((player.getLevel() > (Config.SERVER_CLASSIC_SUPPORT ? 40 : 76)) || player.isSubClassActive()) && ((loc.getFeeId() != 0) && (loc.getFeeCount() > 0)));
return (type != TeleportType.NORMAL) || (!Config.ALT_GAME_FREE_TELEPORT && ((player.getLevel() > (Config.SERVER_CLASSIC_SUPPORT ? 0 : 76)) || player.isSubClassActive()) && ((loc.getFeeId() != 0) && (loc.getFeeCount() > 0)));
}
protected int parseNextInt(StringTokenizer st, int defaultVal)