バージョンに関係なくスキルマックスにするコマンド

Go down

バージョンに関係なくスキルマックスにするコマンド

投稿 by 構築さん on 2014-05-31, 17:22

Code:
import java.io.File;
import net.sf.odinms.client.SkillFactory;
import net.sf.odinms.provider.MapleData;
import net.sf.odinms.provider.MapleDataProvider;
import net.sf.odinms.provider.MapleDataProviderFactory;
import net.sf.odinms.tools.StringUtil;

if (splitted[0].equals("@skillmax")) {
File stringFile = MapleDataProviderFactory.fileInWZPath("skill.wz");
MapleDataProvider skillProvider = MapleDataProviderFactory.getDataProvider(stringFile);
for (int i = 0; i < 10000; i++) {
try {
MapleData job = skillProvider.getData(StringUtil.getLeftPaddedStr(String.valueOf(i), '0', 3) + ".img");
for (MapleData child : job.getChildren()) {
if (!child.getName().equals("skill")) {
continue;
}
for (MapleData children : child.getChildren()) {
int id = 0;
int level = 0;
id = Integer.parseInt(children.getName());
level = children.getChildByPath("level").getChildren().size();
player.changeSkillLevel(SkillFactory.getSkill(id), level, level);
}
}
} catch (RuntimeException e) {
continue;
}
}
}
avatar
構築さん
Admin

Posts : 193
Join date : 2014/05/29

http://maplescience.forumjap.com

トップに戻る Go down

トップに戻る


 
Permissions in this forum:
返信投稿: 不可