Dropped AltFreeTeleport config.
Contributed by proGenitor.
This commit is contained in:
@@ -701,13 +701,9 @@ PetitioningAllowed = True
|
||||
MaxPetitionsPerPlayer = 5
|
||||
MaxPetitionsPending = 25
|
||||
|
||||
# Free teleporting around the world.
|
||||
# Default: False
|
||||
AltFreeTeleporting = False
|
||||
|
||||
# Max player level for free teleporting around the world.
|
||||
# Default: 0 (Disabled)
|
||||
MaxFreeTeleportLevel = 0
|
||||
# Retail on Classic 2.0: 40
|
||||
MaxFreeTeleportLevel = 40
|
||||
|
||||
# Max player level for free newbie buffs.
|
||||
# Default: 0 (Disabled)
|
||||
|
@@ -279,7 +279,6 @@ public final class Config
|
||||
public static boolean PETITIONING_ALLOWED;
|
||||
public static int MAX_PETITIONS_PER_PLAYER;
|
||||
public static int MAX_PETITIONS_PENDING;
|
||||
public static boolean ALT_GAME_FREE_TELEPORT;
|
||||
public static int MAX_FREE_TELEPORT_LEVEL;
|
||||
public static int MAX_NEWBIE_BUFF_LEVEL;
|
||||
public static int DELETE_DAYS;
|
||||
@@ -1685,7 +1684,6 @@ public final class Config
|
||||
PETITIONING_ALLOWED = Character.getBoolean("PetitioningAllowed", true);
|
||||
MAX_PETITIONS_PER_PLAYER = Character.getInt("MaxPetitionsPerPlayer", 5);
|
||||
MAX_PETITIONS_PENDING = Character.getInt("MaxPetitionsPending", 25);
|
||||
ALT_GAME_FREE_TELEPORT = Character.getBoolean("AltFreeTeleporting", false);
|
||||
MAX_FREE_TELEPORT_LEVEL = Character.getInt("MaxFreeTeleportLevel", 0);
|
||||
MAX_NEWBIE_BUFF_LEVEL = Character.getInt("MaxNewbieBuffLevel", 0);
|
||||
DELETE_DAYS = Character.getInt("DeleteCharAfterDays", 1);
|
||||
|
@@ -270,7 +270,7 @@ public final class TeleportHolder
|
||||
*/
|
||||
private boolean shouldPayFee(L2PcInstance player, TeleportLocation loc)
|
||||
{
|
||||
return (_type != TeleportType.NORMAL) || (!Config.ALT_GAME_FREE_TELEPORT && ((player.getLevel() > Config.MAX_FREE_TELEPORT_LEVEL) || player.isSubClassActive()) && ((loc.getFeeId() != 0) && (loc.getFeeCount() > 0)));
|
||||
return (_type != TeleportType.NORMAL) || (((player.getLevel() > Config.MAX_FREE_TELEPORT_LEVEL) || player.isSubClassActive()) && ((loc.getFeeId() != 0) && (loc.getFeeCount() > 0)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user