修復经验卡
首先打开Client\MapleCharacter.java找到类似
[*]
[*] private void deleteWhereCharacterId(Connection con, String sql) throws SQLException {
[*] deleteWhereCharacterId(con, sql, id);
[*] }
[*]
在 } 底下增加
public int hasEXPCard() {
for ( int i=5211000; i<=5211048; i++ ) {
if (haveItem(i)) {
return 2;
}
}
return 1;
}
接着打开 server\life\MapleMonster.java
找到
public final int killBy(final MapleCharacter killer, final int lastSkill) {
这一句
继续往下看找到
baseExp = (int) Math.ceil(totalBaseExp * ((double) attackEntry.getDamage() / getMobMaxHp()));
改成
baseExp = (int) Math.ceil(totalBaseExp * ((double) attackEntry.getDamage() / getMobMaxHp() * killer.getClient().getPlayer().hasEXPCard()));
页:
[1]