말하는 두루마리 만들려고 하는데요
컨텐츠 정보
- 187 조회
- 4 댓글
- 목록
본문
나비켓 item 인벤ID 1760 , GFXID 4337 만들었는데
소스 코드 만들기가 엄청 힘드네요 AI가 알려준대로 소스 추가 할려고 보니 오류가 심하네요 천재 형님들 조언 좀 부탁 드립니다
package lineage.world.object.item.scroll;
import lineage.bean.database.Item;
import lineage.network.packet.server.S_Html;
import lineage.world.object.instance.ItemInstance;
import lineage.world.object.instance.PcInstance;
import lineage.world.object.object;
public class ScrollDunBook extends ScrollTeleport {
// 1. 두루마리를 더블클릭해서 사용할 때 실행되는 부분
@Override
public void toClick(PcInstance pc, ItemInstance item) {
String[] huntList = new String[5];
huntList[0] = "<font color='gree'>[1] 기란 던전</font>";
huntList[1] = "<font color='gree'>[2] 오크 요새</font>";
huntList[2] = "<font color='gree'>[3] 용의 계곡</font>";
huntList[3] = "<font color='gree'>[4] 말하는 섬 던전</font>";
huntList[4] = "<font color='gree'>[5] 은기사 던전</font>";
// 서버의 html 폴더에 있는 'dunbook-k.html' 창을 띄우는 패킷 전송
pc.sendPackets(new S_Html(pc.getId(), "dunbook-k", huntList));
}
// 2. HTML 창에서 번호(action)를 클릭했을 때 실행되는 부분
@Override // 수정됨 (@* 에서 올바른 형식으로 변경)
public void toAction(PcInstance pc, String actionCommand, long o) {
int actionId = 0;
try {
actionId = Integer.parseInt(actionCommand);
} catch (Exception e) {
return;
}
int mapId = 4;
int x = 0;
int y = 0;
boolean move = false;
// 번호에 따른 사냥터 좌표 매핑
switch (actionId) {
case 1: // 기란 던전
x = 33445; y = 32797; mapId = 4; move = true;
break;
case 2: // 오크 요새
x = 32735; y = 32335; mapId = 4; move = true;
break;
case 3: // 용의 계곡
x = 33442; y = 32330; mapId = 4; move = true;
break;
case 4: // 말하는 섬 던전
x = 32571; y = 32775; mapId = 0; move = true;
break;
case 5: // 은기사 던전
x = 33875; y = 33144; mapId = 4; move = true;
break;
}
if (move) {
object.toTeleport(pc, x, y, (short) mapId, 5, true);
}
}
} // 추가됨 (클래스 닫는 괄호)
-
등록일 2026.10.22
-
등록일 2026.10.20말하는 두루마리 만들려고 하는데요댓글 4
-
등록일 2026.10.19
-
등록일 2026.10.19
관련자료
-
첨부등록일 2026.10.20 04:13















