查看: 1594|回复: 0

修復经验卡

[复制链接]

中级会员

枫币
616
威望
0
贡献
18
在线时间
75 小时
注册时间
2021-7-3
QQ
发表于 2023-5-12 21:37:57 | 显示全部楼层 |阅读模式
  首先打开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()));


您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|枫叶物语冒险岛单机 | 本站已运行:

枫叶物语可能会倒闭,但是绝对不会变质。

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖QQ客服返回顶部