리니지 리마스터팩 스냅퍼 개방 레벨설정 본섭화 수정
C_NPCAction
.
.
private String 스냅퍼(L1PcInstance pc, String s) { //검색
try {
String htmlid = "";
if (s.equalsIgnoreCase("A")) {
if (pc.getRingSlotLevel() > 0) { // 이미 개방 되어있음
htmlid = "slot5";
} else {
if (pc.getLevel() >= 60 && pc.getInventory().consumeItem(40308, 10000000)) { // 60개방
pc.setRingSlotLevel(1);
pc.sendPackets(new S_SkillSound(pc.getId(), 12003));
pc.sendPackets(new S_ReturnedStat(S_ReturnedStat.RING_RUNE_SLOT,S_ReturnedStat.SUBTYPE_RING, pc.getRingSlotLevel()));
try {
pc.save();
} catch (Exception e) {}
htmlid = "slot9";
// pc.sendPackets(new
// S_SystemMessage("영웅의 특권으로 왼쪽 반지 슬롯을 개방하였습니다."),
// true);
} else {
htmlid = "slot10";
}
}
} else if (s.equalsIgnoreCase("B")) {
if (pc.getRingSlotLevel() >= 2) { // 이미 개방 되어있음
htmlid = "slot5";
} else if (pc.getRingSlotLevel() == 0) {// 개방되어있는게 없음
pc.sendPackets(new S_SystemMessage("왼쪽 슬롯부터 개방 하십시요."), true);
} else {
if (pc.getLevel() >= 60 && pc.getInventory().consumeItem(40308, 30000000)) { // 60개방
pc.setRingSlotLevel(2);
pc.sendPackets(new S_SkillSound(pc.getId(), 12003));
pc.sendPackets(new S_ReturnedStat(S_ReturnedStat.RING_RUNE_SLOT,S_ReturnedStat.SUBTYPE_RING, pc.getRingSlotLevel()));
try {
pc.save();
} catch (Exception e) {}
htmlid = "slot9";
} else
htmlid = "slot10";
}
} else if (s.equalsIgnoreCase("C")) {
if (pc.getEarringSlotLevel() >= 1) { // 이미 개방 되어있음
htmlid = "slot5";
} else {
if (pc.getLevel() >= 60 && pc.getInventory().consumeItem(40308, 2000000)) { //60개방
pc.setEarringSlotLevel(1);
pc.sendPackets(new S_SkillSound(pc.getId(), 12004));
pc.sendPackets(new S_ReturnedStat(S_ReturnedStat.RING_RUNE_SLOT, S_ReturnedStat.SUBTYPE_RING, 16));
try {
pc.save();
} catch (Exception e) {}
htmlid = "slot9";
} else {
htmlid = "slot10";
}
}
} else if (s.equals("F")) { // 휘장
if (pc.getEmblem_Slot() == 1) {
pc.sendPackets(new S_ServerMessage(3255));
htmlid = "slot5";
// 해당 슬롯은 이미 확장되었습니다.
} else {
if (pc.getInventory().checkItem(40308, 2000000) && pc.getLevel() >= 70) { //70개방
pc.getInventory().consumeItem(40308, 2000000);
pc.setEmblem_Slot(1);
pc.sendPackets(new S_SkillSound(pc.getId(), 12004));
pc.sendPackets(new S_ReturnedStat(S_ReturnedStat.RING_RUNE_SLOT, S_ReturnedStat.SUBTYPE_RING, 128));
pc.sendPackets(new S_NPCTalkReturn(pc.getId(), "slot9"));
try {
pc.save();
} catch (Exception e) {
}
htmlid = "slot9";
} else {
htmlid = "slot11";
}
}
} else if (s.equals("E")) { // 견갑
if (pc.getShoulder_Slot() == 1) {
pc.sendPackets(new S_ServerMessage(3255));
// 해당 슬롯은 이미 확장되었습니다.
} else {
if (pc.getInventory().checkItem(40308, 30000000) && pc.getLevel() >= 83) { //83개방
pc.getInventory().consumeItem(40308, 30000000);
pc.getInventory().storeItem(301068, 1);
pc.setShoulder_Slot(1);
pc.sendPackets(new S_SkillSound(pc.getId(), 12004));
pc.sendPackets(new S_ReturnedStat(S_ReturnedStat.RING_RUNE_SLOT, S_ReturnedStat.SUBTYPE_RING, 64));
try {
pc.save();
} catch (Exception e) {}
htmlid = "slot9";
} else {
htmlid = "slot11";
}
}
}
return htmlid;
} catch (Exception e) {
e.printStackTrace();
return "";
}
}