여관 들어가기
해당 자바는 엔피씨액션입니다
이부분 주석처리 해주고요
} else if (s.equalsIgnoreCase("fix")) {
} else if (s.equalsIgnoreCase("room")) {
L1NpcInstance npc = (L1NpcInstance) obj;
int npcId = npc.getNpcTemplate().get_npcId();
switch(npcId){
case 70019:// 글루딘
case 70012:// 말하는 섬 16387 (4003)
case 70031:// 기란
case 70054:// 아덴
case 70065:// 오렌
case 70070:// 윈다우드
case 70075:// 은기사
case 70084:// 하이네
default:
}
이밑에 낑겨주심 댑니다!!
} else if (((L1NpcInstance) obj).getNpcTemplate().get_npcId() == 70012
|| ((L1NpcInstance) obj).getNpcTemplate().get_npcId() == 70019
|| ((L1NpcInstance) obj).getNpcTemplate().get_npcId() == 70031
|| ((L1NpcInstance) obj).getNpcTemplate().get_npcId() == 70054
|| ((L1NpcInstance) obj).getNpcTemplate().get_npcId() == 70065
|| ((L1NpcInstance) obj).getNpcTemplate().get_npcId() == 70070
|| ((L1NpcInstance) obj).getNpcTemplate().get_npcId() == 70075
|| ((L1NpcInstance) obj).getNpcTemplate().get_npcId() == 70084
|| ((L1NpcInstance) obj).getNpcTemplate().get_npcId() == 70096) {
if (s.equalsIgnoreCase("room")) {
if(pc.getInventory().checkItem(40312))
htmlid = "inn5";
else
if(pc.getInventory().findItemId(40308).getCount() >= 300) {
materials = (new int[] {
40308
});
counts = (new int[] {
300
});
createitem = (new int[] {
40312
});
createcount = (new int[] {
1
});
htmlid = "inn4";
} else {
htmlid = "inn3";
}
} else if (s.equalsIgnoreCase("room")) {
if(pc.getInventory().checkItem(40312))
htmlid = "inn5";
else
if(pc.getInventory().findItemId(40308).getCount() >= 600) {
materials = (new int[] {
40308
});
counts = (new int[] {
600
});
createitem = (new int[] {
49016
});
createcount = (new int[] {
1
});
htmlid = "inn4";
} else {
htmlid = "inn3";
}
} else if (s.equalsIgnoreCase("room")) {
int k1 = 0;
try {
k1 = pc.getLawful();
}
catch (Exception exception) { }
if(k1 >= 0) {
htmlid = "inn2";
htmldata = (new String[] {
"여관주인", "300"
});
} else {
htmlid = "inn1";
}
} else if (s.equalsIgnoreCase("hall")) {
int k1 = 0;
int c1 = 0;
try {
k1 = pc.getLawful();
c1 = pc.getClassId();
}
catch (Exception exception1) { }
if(k1 >= 0) {
if(c1 == 0 || c1 == 1)
{
htmlid = "inn4";
htmldata = (new String[] {
"여관주인", "600"
});
} else {
htmlid = "inn10";
}
} else {
htmlid = "inn11";
}
} else if (s.equalsIgnoreCase("return")) {
if(pc.getInventory().checkItem(40312)) {
int ct = pc.getInventory().findItemId(40312).getCount();
int cash = ct * 60;
materials = (new int[] {
40312
});
counts = (new int[] {
ct
});
createitem = (new int[] {
40308
});
createcount = (new int[] {
cash
});
htmlid = "inn20";
String count = Integer.toString(cash);
htmldata = (new String[] {
"여관주인", count
});
} else if (pc.getInventory().checkItem(40312)) {
int ct = pc.getInventory().findItemId(40312).getCount();
int cash = ct * 120;
materials = (new int[] {
49016
});
counts = (new int[] {
ct
});
createitem = (new int[] {
40308
});
createcount = (new int[] {
cash
});
htmlid = "inn20";
String count = Integer.toString(cash);
htmldata = (new String[] {
"여관주인", count
});
} else {
htmlid = "inn7";
}
} else if (s.equalsIgnoreCase("enter")) {
int nowX = pc.getX();
int nowY = pc.getY();
short map = pc.getMapId();
if(pc.getInventory().checkItem(40312)) {
if(map == 0)
L1Teleport.teleport(pc, 32746, 32803, (short)16384, 5, false);
else
if(map > 0)
if(nowX < 32641 && nowX > 32621 && nowY < 32770 && nowY > 32750)
L1Teleport.teleport(pc, 32744, 32803, (short)17408, 5, false); //글말
else
if(nowX < 32638 && nowX > 32618 && nowY < 33177 && nowY > 33157)
L1Teleport.teleport(pc, 32745, 32803, (short)20480, 5, false); //윈말 여관
else
if(nowX < 33995 && nowX > 33975 && nowY < 33322 && nowY > 33302)
L1Teleport.teleport(pc, 32745, 32803, (short)19456, 5, false);//아덴
else
if(nowX < 33447 && nowX > 33427 && nowY < 32799 && nowY > 32779)
L1Teleport.teleport(pc, 32745, 32803, (short)18432, 5, false);//기란
else
if(nowX < 33615 && nowX > 33595 && nowY < 33285 && nowY > 33265)
L1Teleport.teleport(pc, 32745, 32803, (short)22528, 5, false);//하이네
else
if(nowX < 33126 && nowX > 33106 && nowY < 33389 && nowY > 33369)
L1Teleport.teleport(pc, 32745, 32803, (short)21504, 5, false);//은기사
else
if(nowX < 34078 && nowX > 34058 && nowY < 32264 && nowY > 32244)
L1Teleport.teleport(pc, 32745, 32803, (short)24576, 5, false);//오렌
} else if(pc.getInventory().checkItem(40312)) {
if(map == 0)
L1Teleport.teleport(pc, 32744, 32808, (short)16896, 5, false);
else
if(map > 0)
if(nowX < 32641 && nowX > 32621 && nowY < 32760 && nowY > 32740)
L1Teleport.teleport(pc, 32745, 32807, (short)18944, 5, false);
else
if(nowX < 32638 && nowX > 32618 && nowY < 33177 && nowY > 33157)
L1Teleport.teleport(pc, 32745, 32807, (short)19968, 5, false);
else
if(nowX < 33995 && nowX > 33975 && nowY < 33322 && nowY > 33302)
L1Teleport.teleport(pc, 32745, 32807, (short)20992, 5, false);
else
if(nowX < 33447 && nowX > 33427 && nowY < 32799 && nowY > 32779)
L1Teleport.teleport(pc, 32745, 32807, (short)22016, 5, false);
else
if(nowX < 33615 && nowX > 33595 && nowY < 33285 && nowY > 33265)
L1Teleport.teleport(pc, 32745, 32807, (short)23040, 5, false);
else
if(nowX < 33126 && nowX > 33106 && nowY < 33389 && nowY > 33369)
L1Teleport.teleport(pc, 32745, 32807, (short)24064, 5, false);
else
if(nowX < 34078 && nowX > 34058 && nowY < 32264 && nowY > 32244)
L1Teleport.teleport(pc, 32745, 32807, (short)25088, 5, false);
} else {
htmlid = "inn9";
}
}

김닉넴 님의 최근 댓글
클라는 있나요? 2023 04.29 클라 있나요? 2023 03.23 감사합니다 2016 06.06 ㄳ합니다 2016 06.05 ㄳ합니다 2016 06.05