查看: 3289|回复: 0

續TMS113渾沌頻道教程

[复制链接]

新人上路

枫币
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();
}







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

本版积分规则

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

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

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

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