查看: 594|回复: 0

修復经验卡

  • TA的每日心情
    无聊
    2021-8-11 12:24
  • 签到天数: 2 天

    [LV.1]初来乍到

    中级会员

    枫币
    600
    威望
    0
    贡献
    18
    在线时间
    73 小时
    注册时间
    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()));


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

    本版积分规则

    枫叶物语即使倒闭也绝对不会变质
    Copyright © 2001-2013 Discuz Team. Powered by Discuz! X3.5 |网站地图 | 本站已运行: