diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/config/Custom/AllowedPlayerRaces.ini b/L2J_Mobius_CT_2.6_HighFive/dist/game/config/Custom/AllowedPlayerRaces.ini new file mode 100644 index 0000000000..535a68d693 --- /dev/null +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/config/Custom/AllowedPlayerRaces.ini @@ -0,0 +1,13 @@ +# --------------------------------------------------------------------------- +# Allowed Player Races +# --------------------------------------------------------------------------- + +# Allowing specific races to be created. +# Default: True +AllowHuman = True +AllowElf = True +AllowDarkElf = True +AllowOrc = True +AllowDwarf = True +AllowKamael = True +AllowErtheia = True diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Wedding/Wedding.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Wedding/Wedding.java index a0617eef05..d11273f0dc 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Wedding/Wedding.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/custom/events/Wedding/Wedding.java @@ -117,14 +117,14 @@ public final class Wedding extends AbstractNpcAI { htmltext = sendHtml(partner, "NoFormal.html", null, null); } - else if ((player.getAdena() < Config.L2JMOD_WEDDING_PRICE) || (partner.getAdena() < Config.L2JMOD_WEDDING_PRICE)) + else if ((player.getAdena() < Config.WEDDING_PRICE) || (partner.getAdena() < Config.WEDDING_PRICE)) { - htmltext = sendHtml(partner, "Adena.html", "%fee%", String.valueOf(Config.L2JMOD_WEDDING_PRICE)); + htmltext = sendHtml(partner, "Adena.html", "%fee%", String.valueOf(Config.WEDDING_PRICE)); } else { - player.reduceAdena("Wedding", Config.L2JMOD_WEDDING_PRICE, player.getLastFolkNPC(), true); - partner.reduceAdena("Wedding", Config.L2JMOD_WEDDING_PRICE, player.getLastFolkNPC(), true); + player.reduceAdena("Wedding", Config.WEDDING_PRICE, player.getLastFolkNPC(), true); + partner.reduceAdena("Wedding", Config.WEDDING_PRICE, player.getLastFolkNPC(), true); // Accept the wedding request player.setMarryAccepted(true); @@ -178,7 +178,7 @@ public final class Wedding extends AbstractNpcAI public String onFirstTalk(L2Npc npc, L2PcInstance player) { final String htmltext = getHtm(player.getHtmlPrefix(), "Start.html"); - return htmltext.replaceAll("%fee%", String.valueOf(Config.L2JMOD_WEDDING_PRICE)); + return htmltext.replaceAll("%fee%", String.valueOf(Config.WEDDING_PRICE)); } private String sendHtml(L2PcInstance player, String fileName, String regex, String replacement) @@ -194,7 +194,7 @@ public final class Wedding extends AbstractNpcAI private static boolean isWearingFormalWear(L2PcInstance player) { - if (Config.L2JMOD_WEDDING_FORMALWEAR) + if (Config.WEDDING_FORMALWEAR) { final L2ItemInstance formalWear = player.getChestArmorInstance(); return (formalWear != null) && (formalWear.getId() == FORMAL_WEAR); diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/MasterHandler.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/MasterHandler.java index 590a47aabf..bc583b9647 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/MasterHandler.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/MasterHandler.java @@ -551,11 +551,11 @@ public class MasterHandler // TODO: Add configuration options for this voiced commands: // CastleVCmd.class, // SetVCmd.class, - Config.L2JMOD_ALLOW_WEDDING ? Wedding.class : null, + Config.ALLOW_WEDDING ? Wedding.class : null, Config.BANKING_SYSTEM_ENABLED ? Banking.class : null, - Config.L2JMOD_CHAT_ADMIN ? ChatAdmin.class : null, - Config.L2JMOD_MULTILANG_ENABLE && Config.L2JMOD_MULTILANG_VOICED_ALLOW ? Lang.class : null, - Config.L2JMOD_ALLOW_CHANGE_PASSWORD ? ChangePassword.class : null, + Config.CHAT_ADMIN ? ChatAdmin.class : null, + Config.MULTILANG_ENABLE && Config.MULTILANG_VOICED_ALLOW ? Lang.class : null, + Config.ALLOW_CHANGE_PASSWORD ? ChangePassword.class : null, Config.PREMIUM_SYSTEM_ENABLED ? Premium.class : null, Config.AUTO_POTIONS_ENABLED ? AutoPotion.class : null, }, diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminKill.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminKill.java index d827d13efe..3d9c6d5092 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminKill.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminKill.java @@ -131,9 +131,9 @@ public class AdminKill implements IAdminCommandHandler } target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar, null); } - else if (Config.L2JMOD_CHAMPION_ENABLE && target.isChampion()) + else if (Config.CHAMPION_ENABLE && target.isChampion()) { - target.reduceCurrentHp((target.getMaxHp() * Config.L2JMOD_CHAMPION_HP) + 1, activeChar, null); + target.reduceCurrentHp((target.getMaxHp() * Config.CHAMPION_HP) + 1, activeChar, null); } else { diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminMenu.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminMenu.java index 369239b4f6..c1c8e6c45f 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminMenu.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/admincommandhandlers/AdminMenu.java @@ -252,9 +252,9 @@ public class AdminMenu implements IAdminCommandHandler target.reduceCurrentHp(target.getMaxHp() + target.getMaxCp() + 1, activeChar, null); filename = "charmanage.htm"; } - else if (Config.L2JMOD_CHAMPION_ENABLE && target.isChampion()) + else if (Config.CHAMPION_ENABLE && target.isChampion()) { - target.reduceCurrentHp((target.getMaxHp() * Config.L2JMOD_CHAMPION_HP) + 1, activeChar, null); + target.reduceCurrentHp((target.getMaxHp() * Config.CHAMPION_HP) + 1, activeChar, null); } else { diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/ClanWarehouse.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/ClanWarehouse.java index fd98bbe512..eea3f340c7 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/ClanWarehouse.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/ClanWarehouse.java @@ -73,7 +73,7 @@ public class ClanWarehouse implements IBypassHandler { if (command.toLowerCase().startsWith(COMMANDS[0])) // WithdrawC { - if (Config.L2JMOD_ENABLE_WAREHOUSESORTING_CLAN) + if (Config.ENABLE_WAREHOUSESORTING_CLAN) { final NpcHtmlMessage msg = new NpcHtmlMessage(((L2Npc) target).getObjectId()); msg.setFile(activeChar.getHtmlPrefix(), "data/html/mods/WhSortedC.htm"); diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/PrivateWarehouse.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/PrivateWarehouse.java index cb9a86ff9f..4b826aa187 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/PrivateWarehouse.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/bypasshandlers/PrivateWarehouse.java @@ -57,7 +57,7 @@ public class PrivateWarehouse implements IBypassHandler { if (command.toLowerCase().startsWith(COMMANDS[0])) // WithdrawP { - if (Config.L2JMOD_ENABLE_WAREHOUSESORTING_PRIVATE) + if (Config.ENABLE_WAREHOUSESORTING_PRIVATE) { final NpcHtmlMessage msg = new NpcHtmlMessage(((L2Npc) target).getObjectId()); msg.setFile(activeChar.getHtmlPrefix(), "data/html/mods/WhSortedP.htm"); diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/usercommandhandlers/Time.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/usercommandhandlers/Time.java index 7687fc92d4..8ce7fa585b 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/usercommandhandlers/Time.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/usercommandhandlers/Time.java @@ -72,7 +72,7 @@ public class Time implements IUserCommandHandler sm.addString(m); } activeChar.sendPacket(sm); - if (Config.L2JMOD_DISPLAY_SERVER_TIME) + if (Config.DISPLAY_SERVER_TIME) { activeChar.sendMessage("Server time is " + fmt.format(new Date(System.currentTimeMillis()))); } diff --git a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java index 5f2fd81afb..49394f8140 100644 --- a/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java +++ b/L2J_Mobius_CT_2.6_HighFive/dist/game/data/scripts/handlers/voicedcommandhandlers/Lang.java @@ -33,7 +33,7 @@ public class Lang implements IVoicedCommandHandler @Override public boolean useVoicedCommand(String command, L2PcInstance activeChar, String params) { - if (!Config.L2JMOD_MULTILANG_ENABLE || !Config.L2JMOD_MULTILANG_VOICED_ALLOW) + if (!Config.MULTILANG_ENABLE || !Config.MULTILANG_VOICED_ALLOW) { return false; } @@ -42,7 +42,7 @@ public class Lang implements IVoicedCommandHandler if (params == null) { final StringBuilder html = new StringBuilder(100); - for (String lang : Config.L2JMOD_MULTILANG_ALLOWED) + for (String lang : Config.MULTILANG_ALLOWED) { html.append("