Config.java裡面找到
public static int ILLUSIONIST_MAX_MP;
在底下加入
public static boolean METEMPSYCHOSIS_SWITCH;//轉生增加血量開關
public static short METEMPSYCHOSIS_1_ADD_HP;//1轉生增加血量
public static short METEMPSYCHOSIS_1_ADD_MP;//1轉生增加魔力
public static short METEMPSYCHOSIS_2_ADD_HP;//2轉生增加血量
public static short METEMPSYCHOSIS_2_ADD_MP;//2轉生增加魔力
public static short METEMPSYCHOSIS_3_ADD_HP;//3轉生增加血量
public static short METEMPSYCHOSIS_3_ADD_MP;//3轉生增加魔力
public static short METEMPSYCHOSIS_4_ADD_HP;//4轉生增加血量
public static short METEMPSYCHOSIS_4_ADD_MP;//4轉生增加魔力
public static short METEMPSYCHOSIS_5_ADD_HP;//5轉生增加血量
public static short METEMPSYCHOSIS_5_ADD_MP;//5轉生增加魔力
public static short METEMPSYCHOSIS_6_ADD_HP;//6轉生增加血量
public static short METEMPSYCHOSIS_6_ADD_MP;//6轉生增加魔力
public static short METEMPSYCHOSIS_7_ADD_HP;//7轉生增加血量
public static short METEMPSYCHOSIS_7_ADD_MP;//7轉生增加魔力
public static short METEMPSYCHOSIS_8_ADD_HP;//8轉生增加血量
public static short METEMPSYCHOSIS_8_ADD_MP;//8轉生增加魔力
public static short METEMPSYCHOSIS_9_ADD_HP;//9轉生增加血量
public static short METEMPSYCHOSIS_9_ADD_MP;//9轉生增加魔力
public static short METEMPSYCHOSIS_10_ADD_HP;//10轉生增加血量
public static short METEMPSYCHOSIS_10_ADD_MP;//10轉生增加魔力
找到
ILLUSIONIST_MAX_MP = Integer.parseInt(charSettings.getProperty(
"IllusionistMaxMP", "1100"));
在底下加入
//轉生次數增加血魔開關
METEMPSYCHOSIS_SWITCH = Boolean.parseBoolean(charSettings.getProperty(
"METEMPSYCHOSIS_SWITCH", "false"));
//轉生次數增加血魔
METEMPSYCHOSIS_1_ADD_HP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_1_ADD_HP", "500"));
METEMPSYCHOSIS_1_ADD_MP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_1_ADD_MP", "500"));
METEMPSYCHOSIS_2_ADD_HP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_2_ADD_HP", "500"));
METEMPSYCHOSIS_2_ADD_MP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_2_ADD_MP", "500"));
METEMPSYCHOSIS_3_ADD_HP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_3_ADD_HP", "500"));
METEMPSYCHOSIS_3_ADD_MP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_3_ADD_MP", "500"));
METEMPSYCHOSIS_4_ADD_HP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_4_ADD_HP", "500"));
METEMPSYCHOSIS_4_ADD_MP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_4_ADD_MP", "500"));
METEMPSYCHOSIS_5_ADD_HP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_5_ADD_HP", "500"));
METEMPSYCHOSIS_5_ADD_MP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_5_ADD_MP", "500"));
METEMPSYCHOSIS_6_ADD_HP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_6_ADD_HP", "500"));
METEMPSYCHOSIS_6_ADD_MP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_6_ADD_MP", "500"));
METEMPSYCHOSIS_7_ADD_HP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_7_ADD_HP", "500"));
METEMPSYCHOSIS_7_ADD_MP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_7_ADD_MP", "500"));
METEMPSYCHOSIS_8_ADD_HP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_8_ADD_HP", "500"));
METEMPSYCHOSIS_8_ADD_MP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_8_ADD_MP", "500"));
METEMPSYCHOSIS_9_ADD_HP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_9_ADD_HP", "500"));
METEMPSYCHOSIS_9_ADD_MP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_9_ADD_MP", "500"));
METEMPSYCHOSIS_10_ADD_HP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_10_ADD_HP", "500"));
METEMPSYCHOSIS_10_ADD_MP =Short.parseShort(charSettings.getProperty(
"METEMPSYCHOSIS_10_ADD_MP", "500"));
//轉生次數增加血魔
找到
} else if (pName.equalsIgnoreCase("IllusionistMaxMP")) {
ILLUSIONIST_MAX_MP = Integer.parseInt(pValue);
在底下加入
//轉生次數增加血魔開關
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_SWITCH")) {
METEMPSYCHOSIS_SWITCH = Boolean.valueOf(pValue);
//轉生次數增加血魔
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_1_ADD_HP")) {
METEMPSYCHOSIS_1_ADD_HP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_1_ADD_MP")) {
METEMPSYCHOSIS_1_ADD_MP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_2_ADD_HP")) {
METEMPSYCHOSIS_2_ADD_HP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_2_ADD_MP")) {
METEMPSYCHOSIS_2_ADD_MP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_3_ADD_HP")) {
METEMPSYCHOSIS_3_ADD_HP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_3_ADD_MP")) {
METEMPSYCHOSIS_3_ADD_MP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_4_ADD_HP")) {
METEMPSYCHOSIS_4_ADD_HP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_4_ADD_MP")) {
METEMPSYCHOSIS_4_ADD_MP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_5_ADD_HP")) {
METEMPSYCHOSIS_5_ADD_HP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_5_ADD_MP")) {
METEMPSYCHOSIS_5_ADD_MP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_6_ADD_HP")) {
METEMPSYCHOSIS_6_ADD_HP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_6_ADD_MP")) {
METEMPSYCHOSIS_6_ADD_MP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_7_ADD_HP")) {
METEMPSYCHOSIS_7_ADD_HP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_7_ADD_MP")) {
METEMPSYCHOSIS_7_ADD_MP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_8_ADD_HP")) {
METEMPSYCHOSIS_8_ADD_HP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_8_ADD_MP")) {
METEMPSYCHOSIS_8_ADD_MP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_9_ADD_HP")) {
METEMPSYCHOSIS_9_ADD_HP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_9_ADD_MP")) {
METEMPSYCHOSIS_9_ADD_MP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_10_ADD_HP")) {
METEMPSYCHOSIS_10_ADD_HP = Short.parseShort(pValue);
} else if (pName.equalsIgnoreCase("METEMPSYCHOSIS_10_ADD_MP")) {
METEMPSYCHOSIS_10_ADD_MP = Short.parseShort(pValue);
//轉生次數增加血魔
C_ItemUSE.java裡面找到
pc.getInventory().removeItem(l1iteminstance, 1);
pc.set_metempsychosis(pc.get_metempsychosis() + 1);//TODO 轉生次數+1
在底下加入
if(Config.METEMPSYCHOSIS_SWITCH){
switch (pc.get_metempsychosis()) {
case 1:
pc.addBaseMaxHp(Config.METEMPSYCHOSIS_1_ADD_HP);
pc.addBaseMaxMp(Config.METEMPSYCHOSIS_1_ADD_MP);
break;
case 2:
pc.addBaseMaxHp(Config.METEMPSYCHOSIS_2_ADD_HP);
pc.addBaseMaxMp(Config.METEMPSYCHOSIS_2_ADD_MP);
break;
case 3:
pc.addBaseMaxHp(Config.METEMPSYCHOSIS_3_ADD_HP);
pc.addBaseMaxMp(Config.METEMPSYCHOSIS_3_ADD_MP);
break;
case 4:
pc.addBaseMaxHp(Config.METEMPSYCHOSIS_4_ADD_HP);
pc.addBaseMaxMp(Config.METEMPSYCHOSIS_4_ADD_MP);
break;
case 5:
pc.addBaseMaxHp(Config.METEMPSYCHOSIS_5_ADD_HP);
pc.addBaseMaxMp(Config.METEMPSYCHOSIS_5_ADD_MP);
break;
case 6:
pc.addBaseMaxHp(Config.METEMPSYCHOSIS_6_ADD_HP);
pc.addBaseMaxMp(Config.METEMPSYCHOSIS_6_ADD_MP);
break;
case 7:
pc.addBaseMaxHp(Config.METEMPSYCHOSIS_7_ADD_HP);
pc.addBaseMaxMp(Config.METEMPSYCHOSIS_7_ADD_MP);
break;
case 8:
pc.addBaseMaxHp(Config.METEMPSYCHOSIS_8_ADD_HP);
pc.addBaseMaxMp(Config.METEMPSYCHOSIS_8_ADD_MP);
break;
case 9:
pc.addBaseMaxHp(Config.METEMPSYCHOSIS_9_ADD_HP);
pc.addBaseMaxMp(Config.METEMPSYCHOSIS_9_ADD_MP);
break;
case 10:
pc.addBaseMaxHp(Config.METEMPSYCHOSIS_10_ADD_HP);
pc.addBaseMaxMp(Config.METEMPSYCHOSIS_10_ADD_MP);
break;
}
}
找到
BroadCastToAll("\\fV" + "恭喜玩家【" + pc.getName()+ "】被打入輪迴獲得新生!");
pc.save(); // DBにキャラクター情報を書き迂む
在底下加入
pc.sendPackets(new S_OwnCharStatus(pc));
java部份大功告成
接著在config裡面的
charsettings.properties
找個位置加入
轉生次數增加的血魔設定,必需轉生完整保留血魔設定
METEMPSYCHOSIS_SWITCH = True
METEMPSYCHOSIS_1_ADD_HP = 500
METEMPSYCHOSIS_1_ADD_MP = 500
METEMPSYCHOSIS_2_ADD_HP = 700
METEMPSYCHOSIS_2_ADD_MP = 700
METEMPSYCHOSIS_3_ADD_HP = 900
METEMPSYCHOSIS_3_ADD_MP = 900
METEMPSYCHOSIS_4_ADD_HP = 1000
METEMPSYCHOSIS_4_ADD_MP = 1000
METEMPSYCHOSIS_5_ADD_HP = 1100
METEMPSYCHOSIS_5_ADD_MP = 1100
METEMPSYCHOSIS_6_ADD_HP = 1200
METEMPSYCHOSIS_6_ADD_MP = 1200
METEMPSYCHOSIS_7_ADD_HP = 1300
METEMPSYCHOSIS_7_ADD_MP = 1300
METEMPSYCHOSIS_8_ADD_HP = 1400
METEMPSYCHOSIS_8_ADD_MP = 1400
METEMPSYCHOSIS_9_ADD_HP = 1500
METEMPSYCHOSIS_9_ADD_MP = 1500
METEMPSYCHOSIS_10_ADD_HP = 1600
METEMPSYCHOSIS_10_ADD_mP = 1600
# ======================================================