查看: 2404|回复: 0

續TMS113渾沌頻道教程

  • TA的每日心情

    2018-8-4 16:33
  • 签到天数: 2 天

    [LV.1]初来乍到

    新人上路

    枫币
    85
    威望
    8
    贡献
    13
    在线时间
    1 小时
    注册时间
    2018-8-3
    QQ
    发表于 2018-8-3 19:55:26 | 显示全部楼层 |阅读模式
    開始
    在MapleMonster.java最上面新增
    [AppleScript] [color=rgb(51, 102, 153) !important]syntaxhighlighter_viewsource [color=rgb(51, 102, 153) !important]syntaxhighlighter_copycode  
    [color=white !important]
    [color=white !important]?

    01

    private MapleMonsterStats overrideStats;





    最下面新增(方便修改)
    [AppleScript] [color=rgb(51, 102, 153) !important]syntaxhighlighter_viewsource [color=rgb(51, 102, 153) !important]syntaxhighlighter_copycode  
    [color=white !important]
    [color=white !important]?

    01

    02

    03

    04

    05

    06

    07

    08

    09

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

        public void changestat() {
            MapleMonsterStats newStats = new MapleMonsterStats();
            if (stats.getHp() * 1000 < 2147483647) {
                newStats.setHp(stats.getHp() * 1000);
            } else {
                newStats.setHp(2147483647);
            }
            setOverrideStats(newStats);
            setHp(getMaxHp());
    }

        public void setOverrideStats(MapleMonsterStats overrideStats) {
            this.overrideStats = overrideStats;
        }

    public long getMaxHp() {
            if (overrideStats != null) {
                return overrideStats.getHp();
            }
            return stats.getHp();
        }







    MapleMap.java裡找到-> public final void spawnMonster(final MapleMonster monster, final int spawnType) {
            monster.setMap(this);
            checkRemoveAfter(monster);

    插入一段
    [AppleScript] [color=rgb(51, 102, 153) !important]syntaxhighlighter_viewsource [color=rgb(51, 102, 153) !important]syntaxhighlighter_copycode  
    [color=white !important]
    [color=white !important]?

    01

    02

    03

    if (channel == 3) {//自行更改你要的頻道
                    monster.changestat();
    }







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

    本版积分规则

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