사이트 로그인
2020.07.05 12:44
public void levelUp() {
int ap1 = (short) Randomizer.rand(1, 10);
if (getKeyValue("hellmode") != null) {
gainHellAp(ap1);
}
exp -= GameConstants.getExpNeededForLevel(level);
level += 1;
if (level == 10) {
this.gainItem(2460003, (short) 300, false, -1, "적정레벨 지원금.");
this.gainItem(2000005, (short) 300, false, -1, "적정레벨 지원금.");
this.gainItem(2000005, (short) 300, false, -1, "적정레벨 지원금.");
this.gainItem(2000005, (short) 300, false, -1, "적정레벨 지원금.");
this.gainItem(2050004, (short) 300, false, -1, "적정레벨 지원금.");
this.gainItem(2050004, (short) 300, false, -1, "적정레벨 지원금.");
this.gainItem(4310059, (short) 300, false, -1, "적정레벨 지원금.");
this.gainItem(1142075, (short) 1, false, -1, "적정레벨 지원금.");
this.gainMeso(ServerConstants.chwk, true, false, true);
setFPT(0);
dropMessage(1, "[홀릭]\r\n초기 <지원금,아이템> 지급되었습니다.\r\n인벤토리에서 확인해주세요.");
}
if (level == 30) {
this.gainItem(2049360, (short) 5, false, -1, "30레벨 달성 지원");
this.gainItem(2049153, (short) 5, false, -1, "30레벨 달성 지원");
this.gainMeso(5000000, true, false, true);
setFPT(0);
dropMessage(1, "[홀릭]\r\n레벨 30을 달성하여 이벤트 참여 완료\r\n인벤토리에서 확인해주세요.");
}
if (level == 60) {
this.gainItem(2049360, (short) 10, false, -1, "60레벨 달성 지원");
this.gainItem(2049153, (short) 10, false, -1, "60레벨 달성 지원");
this.gainMeso(10000000, true, false, true);
setFPT(0);
dropMessage(1, "[홀릭]\r\n레벨 60을 달성하여 이벤트 참여 완료\r\n인벤토리에서 확인해주세요.");
}
if (level == 100) {
this.gainItem(2049360, (short) 15, false, -1, "100레벨 달성 지원");
this.gainItem(2049153, (short) 15, false, -1, "100레벨 달성 지원");
this.gainMeso(20000000, true, false, true);
setFPT(0);
dropMessage(1, "[홀릭]\r\n레벨 100을 달성하여 이벤트 참여 완료\r\n인벤토리에서 확인해주세요.");
}
if (level == 150) {
this.gainItem(2049360, (short) 20, false, -1, "150레벨 달성 지원");
this.gainItem(2049153, (short) 20, false, -1, "150레벨 달성 지원");
this.gainMeso(50000000, true, false, true);
setFPT(0);
dropMessage(1, "[홀릭]\r\n레벨 150을 달성하여 이벤트 참여 완료\r\n인벤토리에서 확인해주세요.");
}
if (level == 200) {
this.gainItem(2049360, (short) 50, false, -1, "200레벨 달성 지원");
this.gainItem(2049153, (short) 50, false, -1, "200레벨 달성 지원");
this.gainMeso(100000000, true, false, true);
setFPT(0);
dropMessage(1, "[홀릭]\r\n레벨 200을 달성하여 이벤트 참여 완료\r\n인벤토리에서 확인해주세요.");
}
if (level == 250) {
this.gainItem(2049360, (short) 100, false, -1, "250레벨 달성 지원");
this.gainItem(2049153, (short) 100, false, -1, "250레벨 달성 지원");
this.gainMeso(1000000000, true, false, true);
setFPT(0);
dropMessage(1, "[홀릭]\r\n레벨 250을 달성하여 이벤트 참여 완료\r\n인벤토리에서 확인해주세요.");
}
}