冰楓論壇

標題: CMS服务端修改教程-冒险岛!killall命令杀怪能获得经验并且怪物照常掉宝教程 [打印本頁]

作者: -Sammy    時間: 2020-7-12 16:09
標題: CMS服务端修改教程-冒险岛!killall命令杀怪能获得经验并且怪物照常掉宝教程
打开client.messages.commands.CommandProcessor.java

找到 map.killMonster(monster, c.getPlayer(), false);
替换为 map.killMonster(monster, c.getPlayer(), true);
并在下面添加 monster.giveExpToCharacter(c.getPlayer(), monster.getExp(), true, 1);

再打开 MapleMonster.java
找到 private void giveExpToCharacter(MapleCharacter attacker, int exp, boolean highestDamage, int numExpSharers) {

替换为
public void giveExpToCharacter(MapleCharacter attacker, int exp, boolean highestDamage, int numExpSharers) {
public void giveExpToCharacter(MapleCharacter attacker, int exp, boolean highestDamage, int numExpSharers) {






歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓