From 01bb57d197d81011522dc333b5cec204eb2eca97 Mon Sep 17 00:00:00 2001 From: mobius <8391001+MobiusDevelopment@users.noreply.github.com> Date: Thu, 15 Jan 2015 02:08:27 +0000 Subject: [PATCH] Faction balance online players. --- trunk/dist/game/config/Custom.properties | 10 +++++++- .../html/mods/Faction/ExceededOnlineLimit.htm | 3 +++ .../custom/FactionManager/FactionManager.java | 22 +++++++++++++++++ .../custom/FactionManager/onlinelimit.html | 5 ++++ trunk/java/com/l2jserver/Config.java | 6 ++++- .../model/CharSelectInfoPackage.java | 24 +++++++++++++++++++ .../clientpackets/CharacterSelect.java | 23 ++++++++++++++++++ .../serverpackets/AbstractHtmlPacket.java | 5 ++++ .../serverpackets/CharSelectionInfo.java | 10 ++++++++ 9 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 trunk/dist/game/data/html/mods/Faction/ExceededOnlineLimit.htm create mode 100644 trunk/dist/game/data/scripts/custom/FactionManager/onlinelimit.html diff --git a/trunk/dist/game/config/Custom.properties b/trunk/dist/game/config/Custom.properties index cea7c226de..3175b77242 100644 --- a/trunk/dist/game/config/Custom.properties +++ b/trunk/dist/game/config/Custom.properties @@ -667,10 +667,18 @@ EnableFactionGuards = True # Default: True RespawnAtFactionBase = True -# Disable chat between factions. +# Disallow chat between factions. # Default: True EnableFactionChat = True +# Prohibit login when faction has more online players. +# Default: True +BalanceOnlinePlayers = True + +# Online player exceed limit (used by setting above). +# Default: 20 +BalancePlayerExceedLimit = 20 + # --------------------------------------------------------------------------- # Premium System (VIP) diff --git a/trunk/dist/game/data/html/mods/Faction/ExceededOnlineLimit.htm b/trunk/dist/game/data/html/mods/Faction/ExceededOnlineLimit.htm new file mode 100644 index 0000000000..858aa73517 --- /dev/null +++ b/trunk/dist/game/data/html/mods/Faction/ExceededOnlineLimit.htm @@ -0,0 +1,3 @@ +