HP 영구적 올리는 물약
C_ItemUse.java
물약들 있는곳에 껴넣으세요
} else if (itemId == 43014) { // 서버에맞는 물약 번호로 만드셈
if (pc.getBaseMaxHp() < 1200) { // HP설정제한
Random random = new Random();
int chance = random.nextInt(100);
if (chance <= 50) { // 성공확률
pc.addBaseMaxHp((byte) 30); // HP보너스량 조절
pc.sendPackets(new S_SkillSound(pcObjid, 4076));
pc.sendPackets(new S_SystemMessage(pc.getName() + "님의 온 몸이 영혼의 피로 물이 드는것을 느낍니다.")); //멘트 알어서 수정
} else {
pc.addBaseMaxHp((byte) -25); // HP마이너스량 조절
pc.sendPackets(new S_SkillSound(pcObjid, 4075));
pc.sendPackets(new S_SystemMessage(pc.getName() + "님의 피가 영혼에게 흡수되는것을 느낍니다.")); //멘트 알아서 수정
}
}
pc.sendPackets(new S_OwnCharStatus2(pc));
pc.save(); // 저장
pc.getInventory().removeItem(l1iteminstance, 1);

추천인
스크래치 님의 최근 댓글