[AnotherMS] 드랍정보 [출처] [AnotherMS] 드랍정보 (@USFM - 메이플스토리 공식 카페) |작성자 네오부캐
경로 NPCConversationManager.java
public String checkDrop(int mobId) {
final List<MonsterDropEntry> ranks = MapleMonsterInformationProvider.getInstance().retrieveDrop(mobId);
if (ranks != null && ranks.size() > 0) {
int num = 0, itemId = 0, ch = 0;
MonsterDropEntry de;
StringBuilder name = new StringBuilder();
for (int i = 0; i < ranks.size(); i++) {
de = ranks.get(i);
if (de.chance > 0 && (de.questid <= 0 || (de.questid > 0 && MapleQuest.getInstance(de.questid).getName().length() > 0))) {
itemId = de.itemId;
if (num == 0) {
name.append("#e#b#o" + mobId + "##k#n의 드랍정보 입니다.");
name.append("\r\n");
}
String namez = "#z" + itemId + "#";
if (itemId == 0) { //meso
itemId = 4031041; //display sack of cash
namez = (de.Minimum * getClient().getChannelServer().getMesoRate()) + " ~ " + (de.Maximum * getClient().getChannelServer().getMesoRate()) + " 메소";
}
ch = de.chance * getClient().getChannelServer().getDropRate();
name.append((num + 1) + ") #v" + itemId + "#" + namez + " - " + (Integer.valueOf(ch >= 999999 ? 1000000 : ch).doubleValue() / 10000.0) + "% " + (de.questid > 0 && MapleQuest.getInstance(de.questid).getName().length() > 0 ? ("Requires quest " + MapleQuest.getInstance(de.questid).getName() + " to be started.") : "") + "\r\n");
num++;
}
}
if (name.length() > 0) {
return name.toString();
}
}
return "No drops was returned.";
}
[출처] [AnotherMS] 드랍정보 (@USFM - 메이플스토리 공식 카페) |작성자 네오부캐

원나소년 님의 최근 댓글
초보 개발자도 가능합니까? 아직 개발의 ㄱ자도 모르긴하는데.. 2016 06.07 구축하기 쉬운가용? 2016 06.02 흑 ㅜㅜ 팩을 구하고싶은데 ㅠㅠ 구글링하면 나오려나요?... 2016 06.02 라피스 해보고싶네요 정말 어떻게못하나요... 2016 05.31 하핳... 그런게임들은 프리서버 못하는건가요? 2016 05.31