편지지로 게시판 불러오기 소스
프리서버 오픈소스 리니지 편지지로 게시판 불러오기 소스
빨간색 부분 본인팩에 맞게 수정해서 쓰시면되요
} else if (itemId == 467016) { //위탁게시판
for (L1Object obj : L1World.getInstance().getObject()) {
if (obj instanceof L1BoardInstance) {
L1NpcInstance board = (L1NpcInstance)obj;
if (board.getNpcTemplate().get_npcId() == 45000178) {
pc.sendPackets(new S_Board2(board, 0));
break;
}
}
}
} else if (itemId == 467014) { // 서버정보게시판
for (L1Object obj : L1World.getInstance().getObject()) {
if (obj instanceof L1BoardInstance) {
L1NpcInstance board = (L1NpcInstance)obj;
if (board.getNpcTemplate().get_npcId() == 4500309) {
pc.sendPackets(new S_Board(board, 0));
break;
}
}
}
} else if (itemId == 467013) { // 자유게시판
for (L1Object obj : L1World.getInstance().getObject()) {
if (obj instanceof L1BoardInstance) {
L1NpcInstance board = (L1NpcInstance)obj;
if (board.getNpcTemplate().get_npcId() == 4500302) {
pc.sendPackets(new S_Board(board, 0));
break;
}
}
}
} else if (itemId == 467015) { /// 서버 특화 게시판
for (L1Object obj : L1World.getInstance().getObject()) {
if (obj instanceof L1BoardInstance) {
L1NpcInstance board = (L1NpcInstance)obj;
if (board.getNpcTemplate().get_npcId() == 4500310) {
pc.sendPackets(new S_Board(board, 0));
break;
}
}
}
출처: 프리린

아옳옳 님의 최근 댓글
감사합니다. 2018 05.05 감사합니다. 2018 03.20 감사합니다. 2018 03.20 감사합니다. 2018 03.20 감사합니다. 2018 03.20