📄 config.java
字号:
} else if (pName.equalsIgnoreCase("URL")) {
DB_URL = pValue;
} else if (pName.equalsIgnoreCase("Login")) {
DB_LOGIN = pValue;
} else if (pName.equalsIgnoreCase("Password")) {
DB_PASSWORD = pValue;
} else if (pName.equalsIgnoreCase("ClientLanguage")) {
CLIENT_LANGUAGE = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("TimeZone")) {
TIME_ZONE = pValue;
} else if (pName.equalsIgnoreCase("AutomaticKick")) {
AUTOMATIC_KICK = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("AutoCreateAccounts")) {
AUTO_CREATE_ACCOUNTS = Boolean.parseBoolean(pValue);
} else if (pName.equalsIgnoreCase("MaximumOnlineUsers")) {
MAX_ONLINE_USERS = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("LoggingWeaponEnchant")) {
LOGGING_WEAPON_ENCHANT = Byte.parseByte(pValue);
} else if (pName.equalsIgnoreCase("LoggingArmorEnchant")) {
LOGGING_ARMOR_ENCHANT = Byte.parseByte(pValue);
} else if (pName.equalsIgnoreCase("CharacterConfigInServerSide")) {
CHARACTER_CONFIG_IN_SERVER_SIDE = Boolean.parseBoolean(pValue);
} else if (pName.equalsIgnoreCase("Allow2PC")) {
ALLOW_2PC = Boolean.parseBoolean(pValue);
} else if (pName.equalsIgnoreCase("LevelDownRange")) {
LEVEL_DOWN_RANGE = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("SendPacketBeforeTeleport")) {
SEND_PACKET_BEFORE_TELEPORT = Boolean.parseBoolean(pValue);
}
//*******************************************************
//othersettings.properties
//寵物經驗倍率
else if (pName.equalsIgnoreCase("PetRateXp")) {
RATE_XP_PET = Double.parseDouble(pValue);
//TODO 可設定能力值上限 by srwh
} else if (pName.equalsIgnoreCase("MaxAbility")){
MAX_ABILITY = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("MaxAbility2")){
MAX_ABILITY2 = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("MaxAbility3")){
MAX_ABILITY3 = Integer.parseInt(pValue);
//TODO 循環公告 by 雷公
} else if (pName.equalsIgnoreCase("UseShowAnnouncecycle")) {
Use_Show_Announcecycle = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("ShowAnnouncecycleTime")) {
Show_Announcecycle_Time = Integer.parseInt(pValue);
}
//TODO 寵物等級
else if (pName.equalsIgnoreCase("PetMaxLV")) {
Pet_Max_LV = Integer.parseInt(pValue);
}
// 所有怪物都可抓進化
else if (pName.equalsIgnoreCase("CE_ACTIVE")) {
CE_ACTIVE = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MaxCEPetLevel")) {
MAX_CE_PET_LEVEL = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("RandomCEPetLevel")) {
RANDOM_CE_PET_LEVEL = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MinCELevelUpHp")) {
MIN_CE_LEVEL_UP_HP = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MaxCELevelUpHp")) {
MAX_CE_LEVEL_UP_HP = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MinCELevelUpMp")) {
MIN_CE_LEVEL_UP_MP = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MaxCELevelUpMp")) {
MAX_CE_LEVEL_UP_MP = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("EvolveHpMpSet")) {
EVOLVE_HPMP_SET = Integer.valueOf(pValue);
}
// ~所有怪物都可抓進化
//新增購買商店捲軸 by eric1300460
else if (pName.equalsIgnoreCase("ScrollShop")) {
SCROLL_SHOP = Boolean.valueOf(pValue);
}
//~新增購買商店捲軸 by eric1300460
//重新啟動伺服器
else if (pName.equalsIgnoreCase("RestartTime")) {
RESTART_TIME = Integer.valueOf(pValue);
}//是否顯示OPCODE
else if (pName.equalsIgnoreCase("opcode")) {
OPCODE = Boolean.valueOf(pValue);
}//是否開啟所有人都是GM
else if (pName.equalsIgnoreCase("All_GM")) {
ALL_GM = Boolean.valueOf(pValue);
}//屬性卷軸衝的機率
else if (pName.equalsIgnoreCase("EnchantChanceAttr")) {
ENCHANT_CHANCE_ATTR = Short.valueOf(pValue);
}
//所有人都看的到怪物血條
else if (pName.equalsIgnoreCase("ShowHPBar")) {
SHOW_HP_BAR = Boolean.valueOf(pValue);
}else if (pName.equalsIgnoreCase("Hack1")) {
HACK1 = Boolean.valueOf(pValue);
}else if (pName.equalsIgnoreCase("Hack2")) {
HACK2 = Boolean.valueOf(pValue);
}
//*******************************************************
// rates.properties
else if (pName.equalsIgnoreCase("RateXp")) {
RATE_XP = Double.parseDouble(pValue);
} else if (pName.equalsIgnoreCase("RateLawful")) {
RATE_LA = Double.parseDouble(pValue);
} else if (pName.equalsIgnoreCase("RateKarma")) {
RATE_KARMA = Double.parseDouble(pValue);
} else if (pName.equalsIgnoreCase("RateDropAdena")) {
RATE_DROP_ADENA = Double.parseDouble(pValue);
} else if (pName.equalsIgnoreCase("RateDropItems")) {
RATE_DROP_ITEMS = Double.parseDouble(pValue);
} else if (pName.equalsIgnoreCase("EnchantChanceWeapon")) {
ENCHANT_CHANCE_WEAPON = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("EnchantChanceArmor")) {
ENCHANT_CHANCE_ARMOR = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Weightrate")) {
RATE_WEIGHT_LIMIT = Byte.parseByte(pValue);
}
// altsettings.properties
else if (pName.equalsIgnoreCase("GlobalChatLevel")) {
GLOBAL_CHAT_LEVEL = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("WhisperChatLevel")) {
WHISPER_CHAT_LEVEL = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("AutoLoot")) {
AUTO_LOOT = Byte.parseByte(pValue);
} else if (pName.equalsIgnoreCase("LOOTING_RANGE")) {
LOOTING_RANGE = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("AltNonPvP")) {
ALT_NONPVP = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("AttackMessageOn")) {
ALT_ATKMSG = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("ChangeTitleByOneself")) {
CHANGE_TITLE_BY_ONESELF = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MaxClanMember")) {
MAX_CLAN_MEMBER = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("ClanAlliance")) {
CLAN_ALLIANCE = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MaxPT")) {
MAX_PT = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("MaxChatPT")) {
MAX_CHAT_PT = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("SimWarPenalty")) {
SIM_WAR_PENALTY = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("GetBack")) {
GET_BACK = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("AutomaticItemDeletionTime")) {
ALT_ITEM_DELETION_TIME = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("AutomaticItemDeletionRange")) {
ALT_ITEM_DELETION_RANGE = Byte.parseByte(pValue);
} else if (pName.equalsIgnoreCase("GMshop")) {
ALT_GMSHOP = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("GMshopMinID")) {
ALT_GMSHOP_MIN_ID = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("GMshopMaxID")) {
ALT_GMSHOP_MAX_ID = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("HalloweenIvent")) {
ALT_HALLOWEENIVENT = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("JpPrivileged")) {
ALT_JPPRIVILEGED = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("TalkingScrollQuest")) {
ALT_TALKINGSCROLLQUEST = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("HouseTaxInterval")) {
HOUSE_TAX_INTERVAL = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MaxDollCount")) {
MAX_DOLL_COUNT = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("ReturnToNature")) {
RETURN_TO_NATURE = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MaxNpcItem")) {
MAX_NPC_ITEM = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MaxPersonalWarehouseItem")) {
MAX_PERSONAL_WAREHOUSE_ITEM = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("MaxClanWarehouseItem")) {
MAX_CLAN_WAREHOUSE_ITEM = Integer.valueOf(pValue);
} else if (pName.equalsIgnoreCase("DeleteCharacterAfter7Days")) {
DELETE_CHARACTER_AFTER_7DAYS = Boolean.valueOf(pValue);
} else if (pName.equalsIgnoreCase("NpcDeletionTime")) {
NPC_DELETION_TIME = Integer.valueOf(pValue);
}else if (pName.equalsIgnoreCase("DefaultCharacterSlot")) {
DEFAULT_CHARACTER_SLOT = Integer.valueOf(pValue);
}
// charsettings.properties
else if (pName.equalsIgnoreCase("PrinceMaxHP")) {
PRINCE_MAX_HP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("PrinceMaxMP")) {
PRINCE_MAX_MP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("KnightMaxHP")) {
KNIGHT_MAX_HP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("KnightMaxMP")) {
KNIGHT_MAX_MP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("ElfMaxHP")) {
ELF_MAX_HP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("ElfMaxMP")) {
ELF_MAX_MP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("WizardMaxHP")) {
WIZARD_MAX_HP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("WizardMaxMP")) {
WIZARD_MAX_MP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("DarkelfMaxHP")) {
DARKELF_MAX_HP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("DarkelfMaxMP")) {
DARKELF_MAX_MP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("DragonKnightMaxHP")) {
DRAGONKNIGHT_MAX_HP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("DragonKnightMaxMP")) {
DRAGONKNIGHT_MAX_MP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("IllusionistMaxHP")) {
ILLUSIONIST_MAX_HP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("IllusionistMaxMP")) {
ILLUSIONIST_MAX_MP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv50Exp")) {
LV50_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv51Exp")) {
LV51_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv52Exp")) {
LV52_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv53Exp")) {
LV53_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv54Exp")) {
LV54_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv55Exp")) {
LV55_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv56Exp")) {
LV56_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv57Exp")) {
LV57_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv58Exp")) {
LV58_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv59Exp")) {
LV59_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv60Exp")) {
LV60_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv61Exp")) {
LV61_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv62Exp")) {
LV62_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv63Exp")) {
LV63_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv64Exp")) {
LV64_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv65Exp")) {
LV65_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv66Exp")) {
LV66_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv67Exp")) {
LV67_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv68Exp")) {
LV68_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv69Exp")) {
LV69_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv70Exp")) {
LV70_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv71Exp")) {
LV71_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv72Exp")) {
LV72_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv73Exp")) {
LV73_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv74Exp")) {
LV74_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv75Exp")) {
LV75_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv76Exp")) {
LV76_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv77Exp")) {
LV77_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv78Exp")) {
LV78_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv79Exp")) {
LV79_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv80Exp")) {
LV80_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv81Exp")) {
LV81_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv82Exp")) {
LV82_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv83Exp")) {
LV83_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv84Exp")) {
LV84_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv85Exp")) {
LV85_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv86Exp")) {
LV86_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv87Exp")) {
LV87_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv88Exp")) {
LV88_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv89Exp")) {
LV89_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv90Exp")) {
LV90_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv91Exp")) {
LV91_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv92Exp")) {
LV92_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv93Exp")) {
LV93_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv94Exp")) {
LV94_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv95Exp")) {
LV95_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv96Exp")) {
LV96_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv97Exp")) {
LV97_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv98Exp")) {
LV98_EXP = Integer.parseInt(pValue);
} else if (pName.equalsIgnoreCase("Lv99Exp")) {
LV99_EXP = Integer.parseInt(pValue);
} else {
return false;
}
return true;
}
private Config() {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -