clientpackets.C_CreateChar.java
找
pc.set_food(40);
將
setAccessLevel setGm
替換
//設定創新角色是否設定為 GM
if (Config.NEW_CREATE_SET_GM) {
pc.setAccessLevel((short) 200);
pc.setGm(true);
} else {
pc.setAccessLevel((short) 0);
pc.setGm(false);
}
//設定創新角色是否設定為 GM
Config.java
找
public static boolean CompressGzip;
找
/** OtherSettings control */
public static boolean SCHECKUSE = true;
最下面加入
public static boolean NEW_CREATE_SET_GM; // 設定創新角色是否設定為 GM
找
public static final String RECORD_SETTINGS_CONFIG_FILE = "./config/record.properties";
最下面加入
public static final String OTHER_SETTINGS_CONFIG_FILE = "./config/othersettings.properties";
找
}catch (Exception e) {
_log.log(Level.SEVERE, e.getLocalizedMessage(), e);
throw new Error("Failed to Load: " + RECORD_SETTINGS_CONFIG_FILE);
}
最下面加入
//othersettings.properties
try {
Properties otherSettings = new Properties();
InputStream is = new FileInputStream(new File(OTHER_SETTINGS_CONFIG_FILE));
otherSettings.load(is);
is.close();
NEW_CREATE_SET_GM = Boolean.parseBoolean(otherSettings.getProperty(
"NewCreateSetGM", "false"));
}
catch (Exception e) {
_log.log(Level.SEVERE, e.getLocalizedMessage(), e);
throw new Error("Failed to Load: " + OTHER_SETTINGS_CONFIG_FILE);
}
validate();
}
繼續
else if (pName.equalsIgnoreCase("LoggingArmorEnchant")) {
LOGGING_ARMOR_ENCHANT = Byte.parseByte(pValue);
}
// othersettings.properties
else if (pName.equalsIgnoreCase("NewCreateSetGM")) {
NEW_CREATE_SET_GM = Boolean.valueOf(pValue); // 設定創新角色是否設定為 GM
}
最後在
模擬器資料夾找
找
config資料夾
找
othersettings.properties
新增
# 設定創新角色是否設定為GM? True=是, False=否 (測試專用)
NewCreateSetGM = false