안톤 제작
L1NpcInstance.java
else if(npc.get_npcId() == 70315){ // 안톤 2013.5.16 by Koumei
int id = 0, oldarmor = 0, enchant = 0, type = 0;
boolean ck = false;
Pattern p1 = Pattern.compile("[A-D]*"),
p2 = Pattern.compile("[E-H]*"),
p3 = Pattern.compile("[I-L]*"),
p4 = Pattern.compile("[M-P]*"),
p5 = Pattern.compile("[A|E|I|M].*"),
p6 = Pattern.compile("[B|F|J|N].*"),
p7 = Pattern.compile("[C|G|K|O].*"),
p8 = Pattern.compile("[D|H|L|P].*"),
p9 = Pattern.compile("[1-4]*");
Matcher pattern1 = p1.matcher(action),pattern2 = p2.matcher(action),
pattern3 = p3.matcher(action),pattern4 = p4.matcher(action),
pattern5 = p5.matcher(action),pattern6 = p6.matcher(action),
pattern7 = p7.matcher(action),pattern8 = p8.matcher(action),
pattern9 = p9.matcher(action);
if(pattern9.matches()){
if(cha.get_cil().itemCK(1108, 0, 1) != null){
if(action.equals("1") && cha.get_cil().itemCK(76, 2, 1) != null){
id = 836; oldarmor = 76;
}else if(action.equals("2") && cha.get_cil().itemCK(72, 2, 1) != null){
id = 837; oldarmor = 72;
}else if(action.equals("3") && cha.get_cil().itemCK(73, 2, 1) != null){
id = 838; oldarmor = 73;
}else if(action.equals("4") && cha.get_cil().itemCK(70, 2, 1) != null){
id = 839; oldarmor = 70;
}else ck = true;
}else ck = true;
type = 1;
}
if(cha.get_cil().itemCK(865, 0, 100000) != null){
if(type == 0){
if(cha.get_cil().itemCK_forConsume(35, 2, 7, 1) != null && pattern5.matches()) enchant = 7;
else if(cha.get_cil().itemCK_forConsume(35, 2, 8, 1) != null && pattern6.matches()) enchant = 8;
else if(cha.get_cil().itemCK_forConsume(35, 2, 9, 1) != null && pattern7.matches()) enchant = 9;
else if(cha.get_cil().itemCK_forConsume(35, 2, 10, 1) != null && pattern8.matches()) enchant = 10;
else ck = true;
if(pattern1.matches() && cha.get_cil().itemCK(76, 2, 1) != null){
id = 836; oldarmor = 76;
}else if(pattern2.matches() && cha.get_cil().itemCK(72, 2, 1) != null){
id = 837; oldarmor = 72;
}else if(pattern3.matches() && cha.get_cil().itemCK(73, 2, 1) != null){
id = 838; oldarmor = 73;
}else if(pattern4.matches() && cha.get_cil().itemCK(70, 2, 1) != null){
id = 839; oldarmor = 70;
}else ck = true;
type = 2;
}
}else ck = true;
if(ck){
if(type == 2) cha.sendPackets(cha.bph().get_NPCTalk().S_NPCTalkReturn(this, "anton9"), true);
else if(type == 1) cha.sendPackets(cha.bph().get_NPCTalk().S_NPCTalkReturn(this, "anton3"), true);
return;
}
if(type > 0){
if(type == 2){
cha.get_cil().itemConsume(cha, 865, 0, 0, 100000, "안톤 제작");
cha.get_cil().itemConsume(cha, 35, 2, enchant, 1, "안톤 제작");
cha.get_cil().addItemMent(cha,null,id,2,1,-1,enchant-7,0,1,0,0,0,false,false,false,0,-1,"안톤 제작");
}else if(type == 1){
cha.get_cil().itemConsume(cha, 1108, 0, 0, 1, "안톤 제작");
cha.get_cil().addItemMent(cha,null,id,2,1,-1,0,0,1,0,0,0,false,false,false,0,-1,"안톤 제작");
}
cha.get_cil().itemConsume(cha, oldarmor, 2, 0, 1, "안톤 제작");
}
}
i_armors.sql
836 멸마의 판금 갑옷 $15666 $152 5712 11717 갑옷 0 블랙미스릴 17000 0 0 0 1 1 1 1 1 20 0 0 0 0 0 0 0 15 7 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
837 멸마의 비늘 갑옷 $15666 $162 5710 11719 갑옷 0 블랙미스릴 12000 0 0 0 1 1 1 1 1 20 0 0 0 0 0 0 0 14 7 1 0 0 0 0 0 0 0 0 0 0 0 0 8 4 0 1 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
838 멸마의 가죽 갑옷 $15666 $116 5706 11716 갑옷 0 블랙미스릴 10000 0 0 0 1 1 1 1 1 20 0 0 0 0 0 0 0 13 7 1 0 0 0 0 0 0 0 0 0 0 0 0 4 8 0 0 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
839 멸마의 로브 $15666 $2466 5708 11718 갑옷 0 블랙미스릴 2000 0 0 0 1 1 1 1 1 20 0 0 0 0 0 0 0 11 7 1 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
[출처](비공개 카페)

준희미니 님의 최근 댓글
rt 2021 05.25 ㄳ 2021 05.11 ㄳ 2021 05.11 rt 2021 05.09 rt 2021 04.25