리니지 리마스터팩 스냅퍼 개방 레벨설정 본섭화 수정

홈 > 개발존 > 개발 팁/정보
개발 팁/정보
GW5yBT2.png

리니지 리마스터팩 스냅퍼 개방 레벨설정 본섭화 수정

1 소스왕 0 4732

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 "";

}

}


0 댓글
새댓글
새글
N새글 구버전 바람의나라- 4차 일일 퀘스트   1 오션 21:24
N새글 구버전 클래식 바람의나라 - 용궁퀘스트(해마장군 퀘스트…   4 무대 12:35
N새글 구버전 클래식 바람의나라 - 진원관퀘스트 20   1 녹차1 10:23
N새글 구버전 바람의나라 클래식 파마의 피리 찾기 (4)   3 감각 04:05
[바람의나라 클래식 구버전] 놀이방 탐방 15편   4 적중 03-03
구버전 클래식 바람의나라 - 진원관퀘스트 19 + 1   1 녹차1 03-03
구버전 바람의나라 클래식 파마의 피리 찾기 (3)   7 감각11 03-03
H인기글 구버전 클래식 바람의나라 - 용궁퀘스트(문어대장군-3편…   4 무대 03-03
H인기글 구버전 바람의나라 향기서버 - 5차승급 퀘스트 - 2   1 잔비 03-02
N새글 구버전 바람의나라- 4차 일일 퀘스트   1 오션 21:24
N새글 구버전 클래식 바람의나라 - 용궁퀘스트(해마장군 퀘스트…   4 무대 12:35
N새글 구버전 클래식 바람의나라 - 진원관퀘스트 20   1 녹차1 10:23
N새글 구버전 바람의나라 클래식 파마의 피리 찾기 (4)   3 감각 04:05
[바람의나라 클래식 구버전] 놀이방 탐방 15편   4 적중 03-03
구버전 클래식 바람의나라 - 진원관퀘스트 19 + 1   1 녹차1 03-03
구버전 바람의나라 클래식 파마의 피리 찾기 (3)   7 감각11 03-03
H인기글 구버전 클래식 바람의나라 - 용궁퀘스트(문어대장군-3편…   4 무대 03-03
H인기글 구버전 바람의나라 향기서버 - 5차승급 퀘스트 - 2   1 잔비 03-02